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

6
+
7
+
## Use case
8
+
9
+
`identifyLayers` allows users to tap on a map, returning features at that location across multiple layers. Because some layer types have sublayers, the sample recursively counts results for sublayers within each layer.
10
+
11
+
## How to use the sample
12
+
13
+
Tap to identify features. A banner will list layers with features under the tapped location, as well as a layer count.
14
+
15
+
## How it works
16
+
17
+
1. The tapped position is passed to `ArcGISMapViewController.identifyLayers`.
18
+
2. For each `IdentifyLayerResult` in the results, features are counted.
19
+
20
+
Note: there is one identify result per layer with matching features; if the feature count is 0, that means a sublayer contains the matching features.
21
+
22
+
## Relevant API
23
+
24
+
* ArcGISMapViewController.identifyLayers
25
+
* IdentifyLayerResult
26
+
* IdentifyLayerResult.layerContent.name
27
+
* IdentifyLayerResult.sublayerResults
28
+
29
+
## Additional information
30
+
31
+
The `GeoViewController` supports two methods of identify: `identifyLayer()`, which identifies features within a specific layer, and `identifyLayers()`, which identifies features for all layers in the current view.
0 commit comments