Display an ArcGIS scene layer from a URL.
Pan and zoom to explore the scene.
- Create an
ArcGISSceneLayer
passing in the URL to a scene layer service. - Use
sceneView.setOnTouchListener
to 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 identifiedGeoElements
withresult.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.
Scene
ArcGISSceneLayer
SceneView
Buildings, scene, model, 3D