GeoElementLineOfSight

constructor(observerGeoElement: GeoElement, targetGeoElement: GeoElement)

Creates a LineOfSight analysis object that defines an observer and a target using point com.arcgismaps.mapping.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 com.arcgismaps.mapping.GeoElement types are com.arcgismaps.mapping.view.Graphic, com.arcgismaps.data.Feature, and com.arcgismaps.realtime.DynamicEntity.

Since

200.1.0

Parameters

observerGeoElement

A com.arcgismaps.mapping.GeoElement that defines the observer.

targetGeoElement

A com.arcgismaps.mapping.GeoElement that defines the target.

Throws

The GeoElement must be one of the following supported types Graphic, Feature, DynamicEntity, or DynamicEntityObservation. The geometry of the observer GeoElement must be a point and must have a value.