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

Map boundaries do not restrict view as expected #432

Open
Rutvik-tbz opened this issue Aug 13, 2024 · 0 comments
Open

Map boundaries do not restrict view as expected #432

Rutvik-tbz opened this issue Aug 13, 2024 · 0 comments

Comments

@Rutvik-tbz
Copy link

Steps to Trigger Behavior
Set boundaries on the MapLibre map using the maplibre-react-native library.
Pan or zoom the map to the edge of the defined boundaries.
Observe the behavior when reaching the boundary limits.

Expected Behavior
The map should restrict the view to stay within the defined boundaries, preventing the user from panning or zooming outside these limits.

Actual Behavior
The map allows panning or zooming outside of the set boundaries a little after that it restricts and if I zoom it certain level then it will set me in the actual boundary, displaying areas that the boundary settings should restrict.

zoom level: 13.65
minZoomLevel: 13.5

shared image
in this, I can scroll outside my boundary

Additional Context
I am using the maplibre-react-native library to set map boundaries, but I noticed that the map does not restrict the view as expected. Instead, it allows the user to view areas outside the defined boundaries. This issue occurs even though I have set the boundaries according to the library's documentation. I'm looking for guidance or a fix for this behaviour.

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

1 participant