Add, remove, and reorder operational layers in a map.
Operational layers display the primary content of the map and usually provide dynamic content for the user to interact with (as opposed to basemap layers that provide context).
The order of operational layers in a map determines the visual hierarchy of layers in the view. You can bring attention to a specific layer by rendering above other layers.
When the app starts, a list displays the operational layers that are currently displayed in the map. Right-tap on the list item to remove the layer, or left-tap to move it to the top. The map will be updated automatically.
The second list shows layers that have been removed from the map. Tap one to add it to the map.
- Get the operational layers from the map using
map.OperationalLayers
. - Add or remove layers using
layerList.Add(layer)
andlayerList.Remove(layer)
respectively. The last layer in the list will be rendered on top.
- ArcGISMapImageLayer
- Map
- MapView
- MapView.OperationalLayers
You cannot add the same layer to the map multiple times or add the same layer to multiple maps. Instead, create a new layer using the FeatureTable
.
add, delete, layer, map, remove