Skip to content

LineOfSight

LineOfSight(props): null

Defined in: src/LineOfSight.tsx:28

Declarative exploratory line of sight between an observer and a target.

Two modes:

  • Location-based (LineOfSightProps): fixed observer and target points — mirrors the native ExploratoryLocationLineOfSight.
  • GeoElement-anchored (GeoElementLineOfSightProps + observerGraphic + targetGraphic): both endpoints follow <Graphic>s as they move — mirrors the native ExploratoryGeoElementLineOfSight.

Both modes draw on the nearest <AnalysisOverlay> (3D / <SceneView> only) and report the target’s visibility via onTargetVisibilityChange.

LineOfSightProps | GeoElementLineOfSightProps & object

null