GeoElementLineOfSight constructor

GeoElementLineOfSight({
  1. required GeoElement observerGeoElement,
  2. required GeoElement targetGeoElement,
})

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

The LineOfSight analysis result is a line rendered between the observer and target elements with distinct colors representing visible and obstructed segments. Supported GeoElement types are Graphic, Feature, and DynamicEntity.

Parameters:

  • observerGeoElement — A GeoElement that defines the observer.
  • targetGeoElement — A GeoElement that defines the target.