Switch Map Activities

Complexity: Beginner Data Requirement: ArcGIS Tutorial Data for Desktop

The purpose of this sample is to show how to create multiple MapView's in a single application using multiple activities.

Sample Design

This sample creates two distinct MapView objects in seperate activities whereby you can switch between the two activities via a button. As you zoom or pan around either map the extent of the current map is sent as a message to the other map which honors the extent it recieves.

Using the Sample

Steps:
  1. Install the APK on your device
  2. The initial map opens up with the World Topo Map basemap.
  3. Zoom and pan around the map to set a custom extent
  4. Hit the 'Go to Map 2' button
  5. This will launch a new activity with the World Street Map set at the extent from initial map
  6. Continue zooming and panning in either map and hitting the button to send/recieve extents between the two maps
5/31/2012