Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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'
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'
})