How to use the jupyter-leaflet.LeafletMapView function in jupyter-leaflet

To help you get started, we’ve selected a few jupyter-leaflet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SuperMap / iclient-python / iclientpy / js / src / iclient.js View on Github external
}, this);
        // this.listenTo(this.model, 'change:line_width', function () {
        //     this.refresh();
        // }, this);
    }

})

var SuperMapEchartsLayerView = leaflet.LeafletLayerView.extend({
    create_obj: function () {
        var options = this.model.get('option');
        this.obj = L.supermap.echartsLayer(options);
    }
})

var SuperMapMapView = leaflet.LeafletMapView.extend({
    create_obj: function () {
        var that = this;
        var options = this.get_options();
        options.crs = L.CRS[options.crs]
        that.obj = L.map(this.el, options);
        var fit_bounds = that.model.get('fit_bounds')
        if (fit_bounds.length === 2) {
            that.obj.fitBounds(fit_bounds);
            that.update_bounds();
            this.model.set('zoom', that.obj.getZoom());
        }
    }
})


var SuperMapCloudTileLayerModel = leaflet.LeafletTileLayerModel.extend({