Skip to content
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

Static map image files renders with slightly different/wrong zoom #167

Open
denkan opened this issue May 24, 2017 · 3 comments
Open

Static map image files renders with slightly different/wrong zoom #167

denkan opened this issue May 24, 2017 · 3 comments

Comments

@denkan
Copy link

denkan commented May 24, 2017

I'm rendering static images based on web ui map and have encountered a minor difference between the renderings: the zoom level seems to differ by 1

I'm using docker image klokantech/tileserver-gl:v1.7.0.

Feel free to check out the following screendumps which demonstrates the behavior:

Web UI (mapbox-gl) with zoom 12:
Web UI with zoom 12
Static file with zoom 12 – wrong:
Static file with zoom 12 – wrong!
Static file with altered zoom to 13 – correct:
Static file with altered zoom to 13 – correct!

@petrsloup
Copy link
Member

The mapbox-gl-native (rasterization backend) uses 512x512 tiles, so the zoom level numbering is off by 1 (as compared to the "traditional" 256x256 tiles).

@denkan
Copy link
Author

denkan commented May 25, 2017

@petrsloup Oh, so that's expected behavior when using mapbox-gl.js on frontend?

Simple enough to adjust the zoom level to the static image url, I just want to confirm that this is a correct observation and as expected.

@muesliq
Copy link

muesliq commented May 3, 2018

@denkan See mapbox/mapbox-gl-js#685 for explanations. Raster zoom level 13 = vector zoom level 12. There is always an offset of 1 between raster and vector.

This issue should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants