Interface: MapTrafficIntruderIcon
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:26
A map icon for a TCAS intruder.
Properties
intruder
readonlyintruder:TcasIntruder
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:28
This icon's associated intruder.
isOffScale
readonlyisOffScale: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
readonlyprojectedPos: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
| Parameter | Type | Description |
|---|---|---|
projection | MapProjection | The map projection. |
context | CanvasRenderingContext2D | The canvas rendering context to which to draw. |
offScaleRange | NumberUnitInterface<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