Bug when setting fractional zoom (zoomSnap)
-
Hi guys,
Just ran into an issue while trying to set a fractional zoom value on Windy map.
Leaflet by default snaps zoom levels to an integer value, and their documentation says a solution for that is to set zoomSnap value to other than 1 (i.e. 0.1 means we can use 8.1, 8.2, 8.3, and so on). Well, that works for zooming.
However, while in these fractional zoom values, Windy labels are just gone. They are only visible only when zoom value is equal to an integer.
windyInit(config.windyOptions, windyAPI => { const { map, colors, broadcast, store, picker, utils } = windyAPI; map.options.zoomSnap = 0.1; map.setZoom(8.4) }
-
@asjustis Additionally, I found that at least for labels, the issue is calculating the transform position for the label div. As in the screenshot, tile seems to perfectly positioned, and just the label position is somewhere far far away in the galaxy :))
Any chance for a fix or a workaround?
We were about to grab the pro license and launch our project, but bumped into this issue which is quite critical for us.
Thanks,
Justinas!