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

maxBounds does not apply on map.panBy and other camera methods #1539

Closed
mourner opened this issue Sep 24, 2015 · 1 comment
Closed

maxBounds does not apply on map.panBy and other camera methods #1539

mourner opened this issue Sep 24, 2015 · 1 comment
Assignees
Labels

Comments

@mourner
Copy link
Member

mourner commented Sep 24, 2015

map.panBy (and inertia panning) goes off the specified max bounds. Probably a regression since I don't remember it being this way.

@mourner mourner self-assigned this Sep 24, 2015
@mourner mourner changed the title maxBounds does not prevent inertia movement off bounds maxBounds does not prevent map.panBy movement off bounds Sep 24, 2015
@mourner
Copy link
Member Author

mourner commented Sep 24, 2015

Actually not only panBy but most other methods (that modify transform.center directly). Pushing a fix.

@mourner mourner changed the title maxBounds does not prevent map.panBy movement off bounds maxBounds does not apply on map.panBy and other camera methods Sep 24, 2015
mourner added a commit that referenced this issue Sep 24, 2015
mourner added a commit that referenced this issue Sep 24, 2015
mourner added a commit that referenced this issue Sep 24, 2015
mourner added a commit that referenced this issue Sep 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants