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 nativeExploratoryLocationLineOfSight. - GeoElement-anchored (
GeoElementLineOfSightProps + observerGraphic + targetGraphic): both endpoints follow<Graphic>s as they move — mirrors the nativeExploratoryGeoElementLineOfSight.
Both modes draw on the nearest <AnalysisOverlay> (3D / <SceneView> only) and report the
target’s visibility via onTargetVisibilityChange.
Parameters
Section titled “Parameters”LineOfSightProps | GeoElementLineOfSightProps & object
Returns
Section titled “Returns”null