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

Set default maxZoom to 22 #4333

Merged
merged 3 commits into from
Feb 28, 2017
Merged

Set default maxZoom to 22 #4333

merged 3 commits into from
Feb 28, 2017

Conversation

jingsam
Copy link
Contributor

@jingsam jingsam commented Feb 27, 2017

As I know, all mapbox public sources such as satellite and streets are 0~22 zoom level. And maps in Mapbox studio can be zoomed into 22 max level. However, the default maxZoom level for mapbox-gl-js is 20. This cause inconsistency when a developer zoomed his maps in Mapbox studio to 22 and get stuck at 20 in his application. The shared URL provided by mapbox studio also stuck at 20. I know developers can set default maxZoom of mapbox-gl-js to 22 explicitly, but it needs some effort for them to figure out the solution.

@jfirebaugh
Copy link
Contributor

Thanks @jingsam. Can you fix the test failure?

@jingsam
Copy link
Contributor Author

jingsam commented Feb 28, 2017

  • failed line-width very-overscaled

I don't know why this test failed, please help me check it out

@jfirebaugh
Copy link
Contributor

I think the problem is this line, which requests a zoom of 21. Prior to your change, the default max zoom would affect the result, producing an effective zoom level of 20. Now it's actually rendering at 21. Try changing the line to "zoom": 20.

@jingsam
Copy link
Contributor Author

jingsam commented Feb 28, 2017

OK for now

@jfirebaugh jfirebaugh merged commit 2345131 into mapbox:master Feb 28, 2017
@jfirebaugh
Copy link
Contributor

Thanks!

@1ec5
Copy link
Contributor

1ec5 commented Mar 8, 2017

mapbox/mapbox-gl-native#8318 tracks doing the same in the native SDKs.

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

Successfully merging this pull request may close these issues.

3 participants