maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

Map boundaries do not restrict view as expected

Open Rutvik-tbz opened this issue 6 months ago • 0 comments

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.

Rutvik-tbz avatar Aug 13 '24 06:08 Rutvik-tbz