Class: MapTrafficIntruderIcon
A view representation of a TCAS intruder for MapTrafficIntruderLayer.
Hierarchy
AbstractMapTrafficIntruderIcon
↳
MapTrafficIntruderIcon
Constructors
constructor
• new MapTrafficIntruderIcon(intruder
, trafficModule
, ownshipModule
, garminTrafficModule
, followAirplaneModule
, options
): MapTrafficIntruderIcon
Constructor.
Parameters
Name | 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
Overrides
AbstractMapTrafficIntruderIcon.constructor
Defined in
src/garminsdk/components/map/MapTrafficIntruderIcon.tsx:74
Properties
intruder
• Readonly
intruder: TcasIntruder
This icon's associated intruder.
Inherited from
AbstractMapTrafficIntruderIcon.intruder
Defined in
src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:329
isOffScale
• isOffScale: boolean
= false
Inherited from
AbstractMapTrafficIntruderIcon.isOffScale
Defined in
src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:320
ownshipModule
• Protected
Readonly
ownshipModule: MapOwnAirplanePropsModule
The ownship module for this icon's parent map.
Inherited from
AbstractMapTrafficIntruderIcon.ownshipModule
Defined in
src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:331
projectedPos
• Readonly
projectedPos: Float64Array
Inherited from
AbstractMapTrafficIntruderIcon.projectedPos
Defined in
src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:318
trafficModule
• Protected
Readonly
trafficModule: MapTrafficModule
The traffic module for this icon's parent map.
Inherited from
AbstractMapTrafficIntruderIcon.trafficModule
Defined in
src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:330
Methods
draw
▸ draw(projection
, context
, offScaleRange
): void
Draws this icon.
Parameters
Name | Type | Description |
---|---|---|
projection | MapProjection | The map projection. |
context | CanvasRenderingContext2D | The canvas rendering context to which to draw this icon. |
offScaleRange | NumberUnitInterface <Distance , Unit <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
Defined in
src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:341
drawIcon
▸ drawIcon(projection
, context
, projectedPos
, isOffScale
): void
Parameters
Name | Type |
---|---|
projection | MapProjection |
context | CanvasRenderingContext2D |
projectedPos | Readonly <Omit <Float64Array , "set" | "sort" | "copyWithin" >> |
isOffScale | boolean |
Returns
void
Inherit Doc
Overrides
AbstractMapTrafficIntruderIcon.drawIcon
Defined in
src/garminsdk/components/map/MapTrafficIntruderIcon.tsx:86
handleOffScaleRange
▸ handleOffScaleRange(projection
, ownAirplanePos
, offScaleRange
): void
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
Name | Type | Description |
---|---|---|
projection | MapProjection | The map projection. |
ownAirplanePos | GeoPointInterface | The position of the own airplane. |
offScaleRange | NumberUnitInterface <Distance , Unit <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
Defined in
src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:370
updatePosition
▸ updatePosition(projection
, offScaleRange
): void
Updates this icon's intruder's projected position and off-scale status.
Parameters
Name | Type | Description |
---|---|---|
projection | MapProjection | The map projection. |
offScaleRange | NumberUnitInterface <Distance , Unit <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.updatePosition
Defined in
src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:352