Open gavinr-maps opened 7 months ago
I have published a separate version of Esri Leaflet that includes the change:
to:
latLngBounds,
The good news is that when we change to the new version, the originally reported error does not show:
BUT if we add a feature layer to that map, we get a NEW error:
TypeError: Cannot read properties of undefined (reading 'lat')
... so I'm not sure if this is the correct fix. or maybe we need an additional fix.
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.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: https://github.com/Esri/esri-leaflet/blob/48cfd690614594428b09da284e30e08892a8ab6e/src/Layers/FeatureLayer/FeatureGrid.js#L3
to:
?