Map :Restricting Panning

1044
1
09-19-2016 10:47 PM
ThomasSaldana
New Contributor II

Hi, does anyone know how to restrict a maps panning to an area? 

0 Kudos
1 Reply
AlexanderNohe1
Occasional Contributor III

While untested, I believe that the setMaxExtent() method may give you the right answer:

MapView | ArcGIS Android 10.2.8 API 

The documentation says the following:

Sets the boundary extent of the map. The boundary extent imposes an restriction on the viewable area of the map. The center of the map can not go beyond boundary extent when you navigate the map.

I hope this helps!