-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 max bounds for pan #442
Comments
@ahmadsholehin The easiest way to handle this is in the
Your custom control doesn't work because the viewport props is already out of bounds, and by aborting you never update the viewport to be valid again. |
Thanks @Pessimistress. For anyone looking out for the same, got it working via
Define a static maxBounds getter in |
Is there an easy way to set the max bounds of the map when panning?
Tried
as well as
Also tried to hook onto a custom map control via
_onPan
but that'll get everything stuck once the bounds have been reached.
The text was updated successfully, but these errors were encountered: