Skip to main content

Interface: MapTrafficIntruderIcon

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:26

A map icon for a TCAS intruder.

Properties

intruder

readonly intruder: TcasIntruder

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:28

This icon's associated intruder.


isOffScale

readonly isOffScale: boolean

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:34

Whether this icon's intruder is off-scale at the time it was last drawn.


projectedPos

readonly projectedPos: ReadonlyFloat64Array

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:31

The projected position of this icon's intruder, in pixel coordinates, at the time it was last drawn.

Methods

draw()

draw(projection, context, offScaleRange): void

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:43

Draws this icon.

Parameters

ParameterTypeDescription
projectionMapProjectionThe map projection.
contextCanvasRenderingContext2DThe canvas rendering context to which to draw.
offScaleRangeNumberUnitInterface<Distance>The distance from the own airplane to this icon's intruder beyond which the intruder is considered off-scale. If the value is NaN, the intruder is never considered off-scale.

Returns

void