How to use the esri-leaflet.FeatureManager.prototype function in esri-leaflet

To help you get started, we’ve selected a few esri-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 Esri / esri-leaflet-cluster / src / ClusterFeatureLayer.js View on Github external
initialize: function (options) {
    FeatureManager.prototype.initialize.call(this, options);

    options = L.setOptions(this, options);

    this._layers = {};
    this._leafletIds = {};

    this.cluster = L.markerClusterGroup(options);
    this._key = 'c' + (Math.random() * 1e9).toString(36).replace('.', '_');

    this.cluster.addEventParent(this);
  },
github Esri / esri-leaflet-heatmap / src / HeatmapFeatureLayer.js View on Github external
onRemove: function (map) {
    FeatureManager.prototype.onRemove.call(this, map);
    this._map.removeLayer(this.heat);
  },
github Esri / esri-leaflet-cluster / src / ClusterFeatureLayer.js View on Github external
onAdd: function (map) {
    FeatureManager.prototype.onAdd.call(this, map);
    this._map.addLayer(this.cluster);
  },
github Esri / esri-leaflet-heatmap / src / HeatmapFeatureLayer.js View on Github external
initialize: function (options) {
    FeatureManager.prototype.initialize.call(this, options);

    options = L.setOptions(this, options);

    this._cache = {};
    this._active = {};

    this.heat = window.L.heatLayer([], options);
  },