Identify GeoElements in a scene layer.
Click on a building in the scene layer to select it. Deselect buildings by clicking away from the buildings.
- Create an
ArcGISSceneLayer
passing in the URL to a scene layer service. - Wait for the user to tap with the
sceneView.GeoViewTapped
event and get the tapped screen point. - Call
sceneView.IdentifyLayersAsync(sceneLayer, screenPoint, tolerance, false, 1)
to identify features in the scene. - From the resulting
IdentifyLayerResult
, get the list of identifiedGeoElements
withresult.GeoElements
. - Get the first element in the list, checking that it is a feature, and call
sceneLayer.SelectFeature(feature)
to select it.
- ArcGISSceneLayer
- Scene
- SceneView
This sample shows a Berlin building layer from ArcGIS Online.
3D, Buildings, Search and Query, model, scene