LocationLineOfSight constructor

LocationLineOfSight({
  1. required ArcGISPoint observerLocation,
  2. required ArcGISPoint targetLocation,
})

Creates a LineOfSight analysis object that defines an observer and a target using Point objects.

The LineOfSight analysis result is a line rendered between the observer and target locations with distinct colors representing visible and obstructed segments.

Parameters:

  • observerLocation — A point that defines the location of the observer.
  • targetLocation — A point that defines the location of the target.