ArcGIS Runtime SDK for iOS

Scene layer selection

Description

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

How it works

Steps:

  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 sceneLayer.select(feature) to select it.


In this topic
  1. Description