How to use the esri-leaflet.FeatureLayer 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-renderers / src / FeatureLayerHook.js View on Github external
pRend.attachStylesToLayer(this._pointLayer);
          options.proportionalPolygon = true;
        }
        rend = classBreaksRenderer(rendererInfo, options);
        break;
      case 'uniqueValue':
        rend = uniqueValueRenderer(rendererInfo, options);
        break;
      default:
        rend = simpleRenderer(rendererInfo, options);
    }
    rend.attachStylesToLayer(this);
  };
}

Esri.FeatureLayer.addInitHook(function () {
  // the only method not shared with the clustered implementation
  L.Util.bind(this.createNewLayer, this);
  wireUpRenderers();
});

if (L.esri.Cluster) {
  L.esri.Cluster.FeatureLayer.addInitHook(wireUpRenderers)
}