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

zoom maxBounds should be depend on window size #4371

Closed
strech345 opened this issue Mar 6, 2017 · 2 comments
Closed

zoom maxBounds should be depend on window size #4371

strech345 opened this issue Mar 6, 2017 · 2 comments

Comments

@strech345
Copy link

strech345 commented Mar 6, 2017

if i set the maxBounds the zoom would be also fixed. But it would be nice if it depends on the window size, so that its possible to see full bounds on max zoom out.

here i see full frame on max zoom out
correct

here i dont see full frame on max zoom out
correct-not

There is olso a problem with flyto by using maxBounds. It flicker - i think because of flying out and in of boundary.

@mollymerp
Copy link
Contributor

Hi @strech345 ,
Thank you for submitting your issue. Could you please use the provided issue template for this issue? It includes spaces for key information like the version of mapbox-gl-js that you're using and exact steps to reproduce the issue. Because these are missing from your report, we cannot diagnose and fix the issue.

maxBounds is meant to constrain the viewable area of the map by preventing the user from zooming / panning outside those bounds. if its behaving unexpectedly we'd like to help but need the information requested in the template 👍

@mourner
Copy link
Member

mourner commented Apr 18, 2017

I think the original report was about changing the maxBounds behavior so that you can zoom out further than maxBounds dictates so that you can see the maxBounds area fully. No plans to implement this currently. And the flyTo flickering issue is likely #2521.

@mourner mourner closed this as completed Apr 18, 2017
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

No branches or pull requests

3 participants