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
Uncaught SyntaxError: The requested module '/v135/leaflet@1.9.4/es2022/leaflet.mjs' does not provide an export named 'toLatLngBounds' (at FeatureGrid.js:3:3)
Describe the bug
When trying to load Esri Leaflet via ES Modules via an ESM CDN like esm.sh or esm.run by jsDelivr, there is an error:
Notes:
Reproduction
esm.sh reproduction:
esm.run reproduction:
Logs
No response
System Info
Additional Information
It does look like Leaflet exports as
latLngBounds
- https://github.com/Leaflet/Leaflet/blob/b2fd591c33785227e0d4036c1a80a00bd2debd53/src/geo/index.js#L2... so is the fix as simple as changing this:
esri-leaflet/src/Layers/FeatureLayer/FeatureGrid.js
Line 3 in 48cfd69
to:
?
The text was updated successfully, but these errors were encountered: