How to use the jupyter-leaflet.LeafletTileLayerModel 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
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({
    defaults: _.extend({}, leaflet.LeafletTileLayerModel.prototype.defaults, {
        _view_name: 'SuperMapCloudTileLayerView',
        _model_name: 'SuperMapCloudTileLayerModel',
        _view_module: 'iclientpy',
        _model_module: 'iclientpy',
        map_name: '',
        type: ''
    })
})

var SuperMapTileMapLayerModel = leaflet.LeafletTileLayerModel.extend({
    defaults: _.extend({}, leaflet.LeafletTileLayerModel.defaults, {
        _view_name: 'SuperMapTileMapLayerView',
        _model_name: 'SuperMapTileMapLayerModel',
        _view_module: 'iclientpy',
        _model_module: 'iclientpy'
github SuperMap / iclient-python / iclientpy / js / src / iclient.js View on Github external
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({
    defaults: _.extend({}, leaflet.LeafletTileLayerModel.prototype.defaults, {
        _view_name: 'SuperMapCloudTileLayerView',
        _model_name: 'SuperMapCloudTileLayerModel',
        _view_module: 'iclientpy',
        _model_module: 'iclientpy',
        map_name: '',
        type: ''
    })
})

var SuperMapTileMapLayerModel = leaflet.LeafletTileLayerModel.extend({
    defaults: _.extend({}, leaflet.LeafletTileLayerModel.defaults, {
        _view_name: 'SuperMapTileMapLayerView',
        _model_name: 'SuperMapTileMapLayerModel',
        _view_module: 'iclientpy',
        _model_module: 'iclientpy'
    })