I'm using the esri leaflet plugin
We're using a GeoJSON data layer with the plugin.
However, for debugging purposes, I need the following:
1) how can I tell when the layer has finished loading?
2) how can I access the GeoJSON data points when the layer has finished loading?
1. the featureLayer 'load' event is triggered when all graphics in the current map extent have been drawn.
L.esri.Layers.FeatureLayer | Esri Leaflet > Events > 'Load'
var myFeatureLayer = new L.esri.featureLayer(... myFeatureLayer.on('load', function(evt){ //do something cool });
2. not an entirely satisfying answer, but see this thread.