GeoElementLineOfSight

An analysis object that evaluates visibility along a line defined by observer and target com.arcgismaps.mapping.GeoElement objects. GeoElementLineOfSight renders a line between an observer com.arcgismaps.mapping.GeoElement and a target com.arcgismaps.mapping.GeoElement (each using Point geometry). Visible and obstructed portions of the line are displayed with unique colors (green and red by default). The observer and/or target GeoElements may be moving, in which case visibility will be dynamically updated. 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

See also

Constructors

Link copied to clipboard
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.

Properties

Link copied to clipboard

The location offset applied to the observer com.arcgismaps.mapping.GeoElement in the X direction. The observer location is determined by the location of the com.arcgismaps.mapping.GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the com.arcgismaps.mapping.GeoElement is always maintained, even when the com.arcgismaps.mapping.GeoElement moves.

Link copied to clipboard

The location offset applied to the observer com.arcgismaps.mapping.GeoElement in the Y direction. The observer location is determined by the location of the com.arcgismaps.mapping.GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the com.arcgismaps.mapping.GeoElement is always maintained, even when the com.arcgismaps.mapping.GeoElement moves.

Link copied to clipboard

The location offset applied to the observer com.arcgismaps.mapping.GeoElement in the Z direction. The observer location is determined by the location of the com.arcgismaps.mapping.GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the com.arcgismaps.mapping.GeoElement is always maintained, even when the com.arcgismaps.mapping.GeoElement moves.

Link copied to clipboard

The location offset applied to the target com.arcgismaps.mapping.GeoElement in the X direction. The target location is determined by the location of the com.arcgismaps.mapping.GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the com.arcgismaps.mapping.GeoElement is always maintained, even when the com.arcgismaps.mapping.GeoElement moves.

Link copied to clipboard

The location offset applied to the target com.arcgismaps.mapping.GeoElement in the Y direction. The target location is determined by the location of the com.arcgismaps.mapping.GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the com.arcgismaps.mapping.GeoElement is always maintained, even when the com.arcgismaps.mapping.GeoElement moves.

Link copied to clipboard

The location offset applied to the target com.arcgismaps.mapping.GeoElement in the Z direction. The target location is determined by the location of the com.arcgismaps.mapping.GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the com.arcgismaps.mapping.GeoElement is always maintained, even when the com.arcgismaps.mapping.GeoElement moves.

Inherited properties

Link copied to clipboard

Whether or not an Analysis is visible. Visibility can be controlled for individual Analyses as well as for the AnalysisOverlay that contains them. Will return false if an error occurs.

Link copied to clipboard

The target visibility state. Use LineOfSight.targetVisibilityChanged to handle changes in target visibility.