Skip to main content

Restrict Interaction

Contents

Restrict the map to a certain geographic area, based on a bounding box of coordinates. The user can zoom in and out of that bounded area, but can only pan to just beyond it. If Toggle Gestures is displayed on the map, the user will not be able to interact with the map at all.

Restrict Interaction

activity_sample_highlight_building.xml

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent">
<com.trimblemaps.mapsdk.maps.MapView android:id="@+id/mapView" android:layout_width="match_parent" android:layout_height="match_parent"/>
</FrameLayout>

Sample Code

Last updated May 29, 2024.
Contents