How to use the esri-leaflet.FeatureManager.extend 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-heatmap / src / HeatmapFeatureLayer.js View on Github external
export { version as VERSION } from '../package.json';

import L from 'leaflet';
import { FeatureManager } from 'esri-leaflet';

export var FeatureLayer = FeatureManager.extend({
  /**
   * Constructor
   */

  initialize: function (options) {
    FeatureManager.prototype.initialize.call(this, options);

    options = L.setOptions(this, options);

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

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

  /**
github Esri / esri-leaflet-cluster / src / ClusterFeatureLayer.js View on Github external
import L from 'leaflet';
import { FeatureManager } from 'esri-leaflet';
export { version as VERSION } from '../package.json';

export var FeatureLayer = FeatureManager.extend({

  statics: {
    EVENTS: 'click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose',
    CLUSTEREVENTS: 'clusterclick clusterdblclick clustermouseover clustermouseout clustermousemove clustercontextmenu'
  },

  /**
   * Constructor
   */

  initialize: function (options) {
    FeatureManager.prototype.initialize.call(this, options);

    options = L.setOptions(this, options);

    this._layers = {};