-
Notifications
You must be signed in to change notification settings - Fork 5
Lock to integer zoom levels for raster sources? #14
Comments
Taking into account slight blurriness of the raster tiles (mapbox/mapbox-gl-native#10076), I don't think you have to lock the zoom levels. Not from the rendering quality POV, at least. |
There's also the issue of the amount of detail. It just looks bad when you overzoom and the map is very empty. It doesn't look too hard, so I think I'll just test it and see how it works. Do I understand correctly, that I should edit |
I think so, editing |
PS: but I think over-zoom is handled via maximumZoomLevel property of the map object. |
By overzoom, in this case, I mean e.g. the map being at zoom 14.9, using tiles from zoom level 14. |
14.9 should actually use 15 zoom. The shift should occur at .5 . There was a corresponding commit regarding it in Mapbox GL and I think we already use the version with it. |
Looks to me like the shift occurs at .0, but I'll see better when I can test with the locking on and off. |
Confirmed for vector tiles - indeed, shift occurs at .0 and, for safety, you have to even add a little tolerance (0.01?) to force the shift. No idea, where did I remember this .5 from. Sorry for confusion |
Much better with integer zoom levels! I can send a PR, I'd suggest adding a boolean property |
Excellent! Please send the PR. If you want to add Whatever choice you will make, I am sure it will be fine. I am working on cache cleaning. As soon as these both are in, we can push out new release for the widget so you could work with the up-to-date version. |
No description provided.
The text was updated successfully, but these errors were encountered: