Switching layers and panning can cause vector tiles to be misaligned
URL
https://www.openstreetmap.org/#map=17/36.104570/-114.903474&layers=SD
How to reproduce the issue?
- Select Shortbread or OMT layer
- Switch to raster layer
- Pan the map
- Switch back to vector layer
The viewport will be out sync with map data. It will resync once you pan the map around again.
Screenshot(s) or anything else?
https://github.com/user-attachments/assets/f7c33cf7-44af-465e-a1a2-9f28a8b0c122
I've also managed to get the vector layers out of sync in a way where neither panning nor zooming causes the layers to resync. Sadly, I was unable to reproduce it.
I can't quite nail it down but I've seen any issue that the VT layers are not immediately rendered after switching and need a tiny pan to be displayed, which is likely related.
I had a similar issue with the MapTiler layer:
https://github.com/user-attachments/assets/c8ede95a-774f-4d2e-b2e4-0df43bb9b75c
I can reproduce this also - came here to report it.
As a further part of the reproduce case:
- If you then pan the vector layer, it jumps at the start of the drag.
My use-case, when I stumbled upon this, and it was a bit consuming to get at the root of it, because the behaviour seems so erratic at first, form misaligned geometry down to half or fully empty viewport: I wanted to compare how the different layers present a mapping of mine.