3D line of sight
What is line of sight analysis?
3D line of sight analysis is a type of visibility analysis that calculates whether a target location is visible from an observer location and renders a line indicating visibility to the scene view. You can perform it in real-time to dynamically update whenever an observer or target moves.
The line returned by the analysis contains two segments based on what can be seen by the observer and what is obstructed. Starting from the observer, the line displays with a color indicating visibility (the default is green) until it encounters an obstruction, and afterward the remaining segment displays with a color indicating that the view is obstructed (the default is red).
Line of sight analysis requires that you specify observer and target locations, which can be either a point location or a geoelement. The observer and target parameters must be of the same type.
Line of sight analysis has practical applications in architecture, military science, and many other fields.
Real-world use cases for line of sight analysis include the following:
- Designing civic structures such as roads and theatres.
- Minimizing the visibility of oil rigs and junkyards in urban areas.
- Preserving key views of famous landmarks and parks in city skylines.
Types of line of sight operations
The following table describes the different types of 3D line of sight operations:
Operation | Description | Example |
---|---|---|
Location , Line | Performs a line of sight analysis between two point locations in a scene. |
![]() |
Geo | Performs a line of sight analysis between two geoelements in a scene. |
![]() |
How to perform a line of sight analysis
The general steps to perform a line of sight analysis are as follows:
Create a scene view and set its extent to the desired location.
Create a point or geoelement to serve as an observer, then create a second to serve as a target.
Create a
Line
analysis that matches the type of your observer and target.Of Sight Add the
Line
analysis to the scene view to display the results.Of Sight
Code examples
Display a line of sight (Point)
This example performs and displays a line of sight analysis in a scene view at the provided observer and target locations (3D points). Line of sight analysis can be performed by either using the analysis operation directly or using the JavaScript Line
widget.
Display a line of sight (GeoElement)
This example performs and displays a line of sight analysis in a scene view at the provided observer (taxi) and target (building) geoelements, updating the analysis dynamically whenever the geoelement taxi changes position.
Tutorials

Display a viewshed
Perform and display a viewshed analysis in a 3D scene.

Display a line of sight
Perform and display a line of sight analysis in a 3D scene.

Measure a distance in 3D
Evaluate the horizontal, vertical, and direct distances between two points in a 3D scene.
API support
Viewshed analysis | Line of sight analysis | Distance measurement | Area measurement | |
---|---|---|---|---|
ArcGIS Maps SDK for JavaScript | 1 | 2 | ||
ArcGIS Maps SDK for .NET | ||||
ArcGIS Maps SDK for Kotlin | ||||
ArcGIS Maps SDK for Swift | ||||
ArcGIS Maps SDK for Java | ||||
ArcGIS Maps SDK for Qt | ||||
ArcGIS API for Python | ||||
ArcGIS REST JS | ||||
Esri Leaflet | ||||
MapBox GL JS | ||||
OpenLayers |
- 1. Access with geoprocessing task
- 2. Supports point location line of sight
Tool support
Viewshed analysis | Line of sight analysis | Distance measurement | Area measurement | |
---|---|---|---|---|
ArcGIS Pro | ||||
ArcGIS Scene Viewer |