openstreetmap-website icon indicating copy to clipboard operation
openstreetmap-website copied to clipboard

Zooming out all the way on vector layer causes glitches

Open louwers opened this issue 5 months ago • 12 comments

URL

No response

How to reproduce the issue?

  1. Select Shortbread layer
  2. Zoom out all the way
  3. Move the map

Screenshot(s) or anything else?

https://www.youtube.com/watch?v=pkm_rfYuFYM

louwers avatar Jul 23 '25 13:07 louwers

Duplicate of #6226?

tomhughes avatar Jul 23 '25 13:07 tomhughes

@tomhughes No, trying to upload a video.

louwers avatar Jul 23 '25 13:07 louwers

@tomhughes Added a video.

louwers avatar Jul 23 '25 13:07 louwers

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 ...").

AntonKhorev avatar Jul 23 '25 16:07 AntonKhorev

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!

tomhughes avatar Jul 23 '25 16:07 tomhughes

@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

louwers avatar Jul 23 '25 17:07 louwers

See maplibre/maplibre-gl-leaflet#73 and maplibre/maplibre-gl-leaflet#82.

It's probably quicker to switch back to MapLibre v<5.

hlfan avatar Jul 24 '25 07:07 hlfan

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.

1ec5 avatar Jul 24 '25 08:07 1ec5

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.

waldyrious avatar Jul 29 '25 17:07 waldyrious

I've updated that now...

tomhughes avatar Jul 29 '25 18:07 tomhughes

Is it already deployed? Looks different but still pretty wonky around the poles. https://youtu.be/EsoAamHSRn0

louwers avatar Jul 29 '25 18:07 louwers

Yes I deployed it - it looked better for me though possibly still not perfect.

tomhughes avatar Jul 29 '25 18:07 tomhughes