You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call 'eachActiveFeature' on a feature layer, the following error is thrown:
Uncaught TypeError: this._layers[i].getBounds is not a function
at NewClass.eachActiveFeature ([email protected]:3852)
at NewClass.map.on (VM65 runner:12)
at NewClass.fire (leaflet-src.js:587)
i'm 99% certain that we just need to implement a simpler check for point geometries to see whether they are inside the current map extent.
// https://github.com/Esri/esri-leaflet/blob/6606d8e1bd95e5997064765e0946ee714af07c41/src/Layers/FeatureLayer/FeatureLayer.js#L251for(variinthis._layers){// bounds can only be fetched from polylines and polygonsif(activeBounds.intersects(this._layers[i].getBounds())&&this._currentSnapshot.indexOf(this._layers[i].feature.id)!==-1){fn.call(context,this._layers[i]);}}
not sure how i missed that when i added the new method.
L.version
): 1.0.3L.esri.VERSION
): 2.0.8When I call 'eachActiveFeature' on a feature layer, the following error is thrown:
Uncaught TypeError: this._layers[i].getBounds is not a function
at NewClass.eachActiveFeature ([email protected]:3852)
at NewClass.map.on (VM65 runner:12)
at NewClass.fire (leaflet-src.js:587)
See JSBin: https://jsbin.com/kavoqukace/edit?html,output
The text was updated successfully, but these errors were encountered: