Esri / Esri/esri-leaflet-vector
Layers do not align with basemap (regression) when using Maplibre GL JS v4
- Dominant language
- JavaScript
- Stars
- 72
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
This is a regression (same issue) on #130.
Starting at Esri Leaflet Vector v4.2.4, if you zoom out then pan up (or down), the layers will be misaligned with the basemap.
### Reproduction
1. Open https://jsbin.com/bilemud/3/edit which uses esri-leaflet-vector **v4.2.3**
2. Pan the map down (off the screen)
- Expected: Points and basemap pan off the screen, and the basemap is never mis-aligned with the points
- Actual: Points and basemap pan off the screen, and the basemap is never mis-aligned with the points ✅
3. Open https://jsbin.com/jexevoy/4/edit which uses esri-leaflet-vector **v4.2.4**
4. Pan the map down (off the screen)
- Expected: Points and basemap pan off the screen, and the basemap is never mis-aligned with the points
- Actual: The points pan off the screen, but the basemap stays in view, so the basemap is mis-aligned with the points. ❌

### Additional Reproduction
Also note, this issue can be seen in the current Esri Leaflet documentation, for example here: https://developers.arcgis.com/esri-leaflet/samples/simple-feature-layer/
https://github.com/user-attachments/assets/9e4a0d70-aa07-4a8c-90bf-f61a75b581d6
### System Info
```shell
- Leaflet version: 1.9.4
- Esri Leaflet version: 3.1.0
- Esri Leaflet Vector version: 4.2.4
```
### Additional Information
In [Esri Leaflet Vector v4.2.4](https://github.com/Esri/esri-leaflet-vector/releases/tag/v4.2.4) was when we upgraded to Maplibre GL JS v4, so **I think this issue is caused by a change in Maplibre GL JS v4**.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.