-
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
Map#setMaxZoom caps maxZoom at 20 #3677
Labels
Comments
Relatedly, mapbox/mapbox-gl-native#7155 tracks increasing the maximum zoom level beyond 21 in the native SDKs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is possible to initialize a map using options that specify an arbitrary maxZoom (Transform's default is 22). However, Map#setMaxZoom will refuse to later set any value above 20.
setMaxZoom with this behavior was added by #2235 and #2243, but I can't find anywhere in the issue history or commit logs where it is explicitly said that this was intentional or necessary.
I have some high resolution rasters whose tiles reach their native resolution at zooms 22-24.
mapbox-gl-js version: 0.28.0
Steps to Trigger Behavior
http://jsbin.com/sozesekomi/edit?html,js,output
Expected Behavior
Max zoom is adjusted to given value, and current zoom is clamped as necessary.
Actual Behavior
Error thrown that maxZoom must be between minZoom and 20.
The text was updated successfully, but these errors were encountered: