How to use the jupyter-leaflet.LeafletTileLayerView 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
var mapv = require('mapv')

var SuperMapCloudTileLayerView = leaflet.LeafletTileLayerView.extend({

    create_obj: function () {
        var url = this.model.get('url');
        var options = this.get_options();
        if (!options.attribution) {
            delete options.attribution;
        }
        this.obj = L.supermap.cloudTileLayer(url, options);
    }

})

var SuperMapTileMapLayerView = leaflet.LeafletTileLayerView.extend({
    create_obj: function () {
        var url = this.model.get('url')
        this.obj = L.supermap.tiledMapLayer(url)
    }
})

var SuperMapRankSymbolThemeLayerView = leaflet.LeafletLayerView.extend({
        create_obj: function () {
            var name = this.model.get('name');
            var symbolType = this.model.get('symbol_type')

            var options = this.get_options();
            if (!options.attribution) {
                delete options.attribution;
            }
            this.obj = L.supermap.rankSymbolThemeLayer(name, SuperMap.ChartType[symbolType], options);
github SuperMap / iclient-python / iclientpy / js / src / iclient.js View on Github external
var leaflet = require('jupyter-leaflet')
var _ = require('underscore')
var version = require('../package.json').version
import L from 'leaflet'

require('leaflet.heat')
require('@supermap/iclient-leaflet')
var mapv = require('mapv')

var SuperMapCloudTileLayerView = leaflet.LeafletTileLayerView.extend({

    create_obj: function () {
        var url = this.model.get('url');
        var options = this.get_options();
        if (!options.attribution) {
            delete options.attribution;
        }
        this.obj = L.supermap.cloudTileLayer(url, options);
    }

})

var SuperMapTileMapLayerView = leaflet.LeafletTileLayerView.extend({
    create_obj: function () {
        var url = this.model.get('url')
        this.obj = L.supermap.tiledMapLayer(url)