Zooming out all the way on vector layer causes glitches
URL
No response
How to reproduce the issue?
- Select Shortbread layer
- Zoom out all the way
- Move the map
Screenshot(s) or anything else?
https://www.youtube.com/watch?v=pkm_rfYuFYM
Duplicate of #6226?
@tomhughes No, trying to upload a video.
@tomhughes Added a video.
Duplicate of https://github.com/openstreetmap/openstreetmap-website/pull/6137#issuecomment-3101954672 which @tomhughes refused to look at before merging / deploying ("no I didn't try it on low zooms because ...").
I didn't refuse to look at it - as I said I was unable to reproduce it and your description of the problem was totally unclear!
@AntonKhorev Let's focus on the solution. <3
@tomhughes Are you able to reproduce it now?
FWIW this happens on all browsers I tried
macOS Chome/Firefox/Safari iOS Safari Android Firefox/Chrome
See maplibre/maplibre-gl-leaflet#73 and maplibre/maplibre-gl-leaflet#82.
It's probably quicker to switch back to MapLibre v<5.
Echoes of OpenHistoricalMap/issues#353. If this is the same issue, zooming out to raster z0–z1 really exacerbates it due to the discrepancy between raster and vector zoom levels. Ultimately, OpenHistoricalMap/ohm-website#263 fixed it by constraining vertical panning at the poles, but without constraining horizontal panning beyond the antimeridian.
See maplibre/maplibre-gl-leaflet#73 and maplibre/maplibre-gl-leaflet#82.
It's probably quicker to switch back to MapLibre v<5.
For the record, that PR has been merged and included in MapLibre GL Leaflet v0.1.3, so a bump similar to this one might resolve the issues.
I've updated that now...
Is it already deployed? Looks different but still pretty wonky around the poles. https://youtu.be/EsoAamHSRn0
Yes I deployed it - it looked better for me though possibly still not perfect.