You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Shared/Samples/Manage operational layers/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,18 +9,18 @@ Add, remove, and reorder operational layers in a map.
9
9
10
10
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).
11
11
12
-
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.
12
+
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 it above other layers.
13
13
14
14
## How to use the sample
15
15
16
-
Tap the "Manage Layers" button to display the operational layers that are currently on the map. In the first section, tap the "-" button to remove a layer, or tap "Edit" to drag and reorder the layers. The map will be updated automatically.
16
+
Tap the "Manage Layers" button to display the operational layers that are currently on the map. In the first section, tap the minus button to remove a layer or tap the swap button to change which layer is rendered on top. The map will update automatically.
17
17
18
-
The second section shows layers that have been removed from the map. Tap the "+" button to add a layer back to the map.
18
+
The second section shows layers that have been removed from the map. Tap the plus button to add a layer back to the map.
19
19
20
20
## How it works
21
21
22
22
1. Get the operational layers from the map's `operationalLayers` property.
23
-
2. Add a layer using `map.addOperationalLayer(newOperationalLayer:)` or remove a layer using `map.removeOperationalLayer(operationalLayer:)`. The last layer in the array will be rendered on top.
23
+
2. Add a layer using `Map.addOperationalLayer(_:)` or remove a layer using `Map.removeOperationalLayer(_:)`. The last layer in the array will be rendered on top.
24
24
25
25
## Relevant API
26
26
@@ -29,7 +29,7 @@ The second section shows layers that have been removed from the map. Tap the "+"
29
29
30
30
## Additional information
31
31
32
-
You cannot add the same layer to the map multiple times or add the same layer to multiple maps. Instead, clone the layer with `layer.clone()` to create a new instance.
32
+
You cannot add the same layer to the map multiple times or add the same layer to multiple maps. Instead, clone the layer with `Layer.clone()` to create a new instance.
0 commit comments