Set Map Activity


Selects which map is current. This activity works for both 2D maps and 3D scenes.


You might have an app with two maps of the same area, one 2D and the other 3D. You could use the Set Map Extent activity to zoom out from the (default) 2D map, and then use the Set Map activity to switch to the 3D scene and use another Set Map Extent activity to zoom in on the 3D scene.

At any point in a workflow, if you aren't sure which map is current, use a Set Map activity to explicitly set the current map.


Map Id


Type: String

The map extension ID of the map that you want to switch to.

To find the map extension IDs of an app's maps, find the string "$type": "map-extension" in the app's JSON. Use the value of that object's id property as the Map Id input.

You can view an app's underlying JSON from the Designer. Click the map and press Ctrl+Shift+E to open the JSON and then use Ctrl+F in the app's JSON to find the IDs.

Many templates use default as the map's extension ID and, if there's a second map, map-config-2 as the second map's extension ID.


This activity has no outputs.


For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.