ArcGIS Runtime SDK for iOS

Scene layer selection


This sample demonstrates how to identify geoelements in a scene layer.

How it works


  1. Create an AGSArcGISSceneLayer passing in the URL to a scene layer service.
  2. Use sceneView.touchDelegate to get the screen tap location screenPoint.
  3. Call sceneView.identifyLayer(_:screenPoint:tolerance:returnPopupsOnly:completion:) to identify features in the scene.
  4. From the resulting AGSIdentifyLayerResult, get the list of identified AGSGeoElements with result.geoElements.
  5. Get the first element in the list, checking that it is a feature, and call to select it.

In this topic
  1. Description