Display an ArcGIS scene layer from a URL.
Pan and zoom to explore the scene.
- Create an
ArcGISSceneLayerpassing in the URL to a scene layer service. - Use
sceneView.setOnTouchListenerto get the screen tap locationscreenPoint. - Call
sceneView.identifyLayersAsync(sceneLayer, screenPoint, tolerance, false, 1)to identify features in the scene. - From the resulting
IdentifyLayerResult, get the list of identifiedGeoElementswithresult.getElements(). - Get the first element in the list, checking that it is a feature, and call
sceneLayer.selectFeature(feature)to select it.
This sample shows a Portland building layer from ArcGIS Online.
SceneArcGISSceneLayerSceneView
Buildings, scene, model, 3D
