Closed Synthian closed 6 years ago
I'm pretty certain this is because the zoom animation in Leaflet is hard wired to zoom levels with a factor of 2, which does not seem to be the case for you. Unfortunately there are a couple of issues you will run into if you use other factors between zoom levels.
Ah, that might very well be the case - it adds up with other things we've been seeing elsewhere. Thanks!
Expected: When zooming in and out with the scroll wheel, the zoom animation will be centered on the mouse cursor.
Result: Depending on where I am on the map (due to projection, I presume) the zoom animation is centered on different locations. The resulting map then "snaps" to the correct image. The zoom center seems to be offset in different directions based on location on the map.
Relevant Code:
Any help resolving this issue would be appreciated, thanks!