Class: MapTrafficIntruderIcon
Defined in: src/garminsdk/components/map/MapTrafficIntruderIcon.tsx:40
A view representation of a TCAS intruder for MapTrafficIntruderLayer.
Extends
Constructors
Constructor
new MapTrafficIntruderIcon(
intruder,trafficModule,ownshipModule,garminTrafficModule,followAirplaneModule,options):MapTrafficIntruderIcon
Defined in: src/garminsdk/components/map/MapTrafficIntruderIcon.tsx:74
Constructor.
Parameters
| Parameter | Type | Description |
|---|---|---|
intruder | TcasIntruder | This view's associated intruder. |
trafficModule | MapTrafficModule | The traffic module for this icon's parent map. |
ownshipModule | MapOwnAirplanePropsModule | The own airplane properties module for this icon's parent map. |
garminTrafficModule | MapGarminTrafficModule | The Garmin traffic module for this icon's parent map. |
followAirplaneModule | MapFollowAirplaneModule | The follow airplane module for this icon's parent map. |
options | MapTrafficIntruderIconOptions | Configuration options for this icon. |
Returns
MapTrafficIntruderIcon
Overrides
AbstractMapTrafficIntruderIcon.constructor
Properties
intruder
readonlyintruder:TcasIntruder
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:329
This icon's associated intruder.
Inherited from
AbstractMapTrafficIntruderIcon.intruder
isOffScale
isOffScale:
boolean=false
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:320
Whether this icon's intruder is off-scale at the time it was last drawn.
Inherited from
AbstractMapTrafficIntruderIcon.isOffScale
ownshipModule
protectedreadonlyownshipModule:MapOwnAirplanePropsModule
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:331
The ownship module for this icon's parent map.
Inherited from
AbstractMapTrafficIntruderIcon.ownshipModule
projectedPos
readonlyprojectedPos:Float64Array<ArrayBuffer>
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:318
The projected position of this icon's intruder, in pixel coordinates, at the time it was last drawn.
Inherited from
AbstractMapTrafficIntruderIcon.projectedPos
trafficModule
protectedreadonlytrafficModule:MapTrafficModule
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:330
The traffic module for this icon's parent map.
Inherited from
AbstractMapTrafficIntruderIcon.trafficModule
Methods
draw()
draw(
projection,context,offScaleRange):void
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:341
Draws this icon.
Parameters
| Parameter | Type | Description |
|---|---|---|
projection | MapProjection | The map projection. |
context | CanvasRenderingContext2D | The canvas rendering context to which to draw this icon. |
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
Inherited from
AbstractMapTrafficIntruderIcon.draw
drawIcon()
protecteddrawIcon(projection,context,projectedPos,isOffScale):void
Defined in: src/garminsdk/components/map/MapTrafficIntruderIcon.tsx:86
Draws this icon.
Parameters
| Parameter | Type | Description |
|---|---|---|
projection | MapProjection | The map projection. |
context | CanvasRenderingContext2D | The canvas rendering context to which to draw this icon. |
projectedPos | ReadonlyFloat64Array | The projected position of this icon's intruder. |
isOffScale | boolean | Whether this icon's intruder is off-scale. |
Returns
void
Overrides
AbstractMapTrafficIntruderIcon.drawIcon
handleOffScaleRange()
protectedhandleOffScaleRange(projection,ownAirplanePos,offScaleRange):void
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:370
Updates this icon's intruder's projected position and off-scale status using a specific range from the own airplane to define off-scale.
Parameters
| Parameter | Type | Description |
|---|---|---|
projection | MapProjection | The map projection. |
ownAirplanePos | GeoPointInterface | The position of the own airplane. |
offScaleRange | NumberUnitInterface<Distance> | The distance from the own airplane to this icon's intruder beyond which the intruder is considered off-scale. |
Returns
void
Inherited from
AbstractMapTrafficIntruderIcon.handleOffScaleRange
updatePosition()
protectedupdatePosition(projection,offScaleRange):void
Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:352
Updates this icon's intruder's projected position and off-scale status.
Parameters
| Parameter | Type | Description |
|---|---|---|
projection | MapProjection | The map projection. |
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