-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom levels 1 less in GL than raster? #685
Comments
Yes, tiles are drawn in |
We had some extensive discussions about tile size and zoom level which we need to capture in documentation. If I recall correctly, the upshot is that this is the expected behavior: because GL renders 512px tiles, one tile at a given zoom level renders 4x the area as raster tiles, which have historically been 256px. |
OK, makes sense, although I've always assumed the zoom value is just an arbitrary value. It does need documenting as it makes translating Mapbox Studio styles a bit more awkward - particularly as the data is exported using the 256px zoom references. How does it work with raster data? |
Just found about this issue and I am really surprised. This is not a "minor documentation issue" - you practically decided that Mapbox GL is not slippy map, and it is not compatible with other standardized slippy map things - for example any server side code using standard zoom-to-scale-denominator (13 = 1:100000). You cant use one common datasource-level filtering based on zoom for both raster and vector tiles, you need different styling rules, etc. What a huge standard-breaker... This should be like first thing mentioned in the documentation - in big bold font. Is there perhaps any way to setup Mapbox GL JS to work in slippy maps mode? 256px tiles, standard zoom levels? |
Hmmmm, is there any chance this explains why I get incorrect results from I use Mapbox's Static Image API, and I need to compute the bounding box of those images. Mapbox Support advised me that If I request a static image at MapboxGL zoom 17, and then ask I'm trying to learn enough about the underlying I'm honestly not fussed about the zoom matching with raster-based zooms. I just need a way to compute the bbox of a Mapbox Static Map API image. |
I am closing this issue because the GL team feels 👍 about this decision and does not plan to revisit. |
For posterity, the answer to my comment was: Yes, the 512x512px tile size was the cause of my issue in mapbox/geo-viewport#3 |
Documenting this in Mapbox GL JS fundamentals would be helpful. |
It appears that the zoom levels reported in GL are 1 less than the same data source rendered as raster tiles. See the attached images of the same area as GL and in the Mapbox project view:
The text was updated successfully, but these errors were encountered: