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

Document viewport-based limitation on zooming out #2904

Closed
davidtheclark opened this issue Jul 22, 2016 · 1 comment
Closed

Document viewport-based limitation on zooming out #2904

davidtheclark opened this issue Jul 22, 2016 · 1 comment

Comments

@davidtheclark
Copy link
Contributor

I'm told by @samanpwbb that a feature of Mapbox GL JS is that it sets a minimum zoom based on your viewport size, so you can't zoom out far enough to see empty space instead of map. That explains why I've been unable to zoom out to level 0.

I can't find this in the documentation. Is it there? If not, I think it probably should be. I know it confused me.

I tried searching through issues to find a record about this but didn't uncover anything, though I imagine it must have been discussed before and I just didn't find it. Sorry if this is a duplicate.

@davidtheclark davidtheclark changed the title Document built-in limitation on zooming out Document viewport-based limitation on zooming out Jul 22, 2016
@asheemmamoowala asheemmamoowala self-assigned this Jul 9, 2021
@asheemmamoowala
Copy link
Contributor

asheemmamoowala commented Jul 9, 2021

This was fixed in #9028. You can now zoom out to see a full world (i.e z0 tile) even on small viewports and the docs for Map#setMinZoom include:

It is not always possible to zoom out and reach the set minZoom. Other factors such as map height may restrict zooming. For example, if the map is 512px tall it will not be possible to zoom below zoom 0 no matter what the minZoom is set to.

@asheemmamoowala asheemmamoowala removed their assignment Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants