Update to MapLibre GL JS v5.0
Describe the problem
v5.0 was released recently: https://github.com/maplibre/maplibre-gl-js/releases/tag/v5.0.0 (https://github.com/maplibre/maplibre-gl-js/pull/5272)
Describe the proposed solution
- Test using v5 with Esri Leaflet Vector
- If all tests pass, include v5 as packaged in the next release. See here for an example of the expected
package.jsonchanges: https://github.com/Esri/esri-leaflet-vector/pull/219/files
Alternatives considered
No response
Additional Information
Note: possibly look into this issue at the same time: https://github.com/Esri/esri-leaflet-vector/issues/152
I've started the process here: #232. I'm getting errors on startup and when I try to pan:
- Startup:
MaplibreGLLayer.js:187 Uncaught TypeError: Cannot set property latRange of #<Dt> which has only a getter - Pan:
MaplibreGLLayer.js:254 Uncaught TypeError: Cannot set property center of #<Dt> which has only a getter
... which seems to be consistent with this error that is an issue in maplibre-gl-leaflet: https://github.com/maplibre/maplibre-gl-leaflet/issues/64.
Next step on this one: we should pull over the changes from https://github.com/maplibre/maplibre-gl-leaflet/pull/82 into esri-leaflet-vector. We hope doing that will resolve this issue.