Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Scene Layer Selection

Identify GeoElements in a scene layer.

Scene Layer Selection App

How to use the sample

Click on a building in the scene layer to select it. Deselect buildings by clicking away from the buildings.

How it works

  1. Create an ArcGISSceneLayer passing in the URL to a scene layer service.
  2. Use sceneView.setOnTouchListener to get the screen tap location screenPoint.
  3. Call sceneView.identifyLayersAsync(sceneLayer, screenPoint, tolerance, false, 1) to identify features in the scene.
  4. From the resulting IdentifyLayerResult, get the list of identified GeoElements with result.getElements().
  5. Get the first element in the list, checking that it is a feature, and call sceneLayer.selectFeature(feature) to select it.

About the data

This sample shows a Berlin building layer from ArcGIS Online.

Relevant API

  • Scene
  • ArcGISSceneLayer
  • SceneView

Tags

Search and Query, Buildings, scene, model, 3D