This sample demonstrates how to perform a line of sight analysis between two points in a SceneView.
A LineOfSight
analysis is a type of visual analysis you can perform on a scene. The LineOfSight
analysis aims to answer the question: 'What are the visible and obstructed portions of a line between two locations?'. The output is a line, in an overlay, with two different colors - one representing visible areas, and the other representing obstructed areas.
- Create a
LocationLineOfSight
, and assign values for theobserverLocation
, andtargetLocation
. - Once the
LocationLineOfSight
is created, add it to anAnalysisOverlay
, and add theAnalysisOverlay
to theSceneView
. - The first screen tap, sets the
observerLocation
. - Each subsequent screen tap, sets the
targetLocation
and creates a newLocationLineOfSight
.
- AnalysisOverlay
- ArcGISTiledElevationSource
- LocationLineOfSight
- SceneView
- Surface