Class: MapTodIcon
A VNAV waypoint icon.
Hierarchy
MapWaypointImageIcon
<VNavWaypoint
>↳
MapTodIcon
Constructors
constructor
• new MapTodIcon(waypoint
, priority
, size
, options?
): MapTodIcon
Constructor.
Parameters
Name | Type | Description |
---|---|---|
waypoint | VNavWaypoint | The waypoint associated with this icon. |
priority | number | The render priority of this icon. Icons with higher priorities should be rendered above those with lower priorities. |
size | Readonly <Omit <Float64Array , "set" | "sort" | "copyWithin" >> | The size of this icon, as [width, height] in pixels. |
options? | AbstractMapWaypointIconOptions | Options with which to initialize this icon. |
Returns
Overrides
MapWaypointImageIcon\<VNavWaypoint\>.constructor
Defined in
workingtitle-instruments-wt21/shared/Map/MapTod.ts:61
Properties
anchor
• Readonly
anchor: Subscribable
<Readonly
<Omit
<Float64Array
, "set"
| "sort"
| "copyWithin"
>>>
The anchor point of this icon, expressed relative to its width and height. [0, 0] is the top-left corner, and [1, 1] is the bottom-right corner.
Inherited from
MapWaypointImageIcon.anchor
Defined in
sdk/components/map/MapWaypointIcon.ts:86
img
• Protected
Readonly
img: HTMLImageElement
This icon's image.
Inherited from
MapWaypointImageIcon.img
Defined in
sdk/components/map/MapWaypointIcon.ts:150
offset
• Readonly
offset: Subscribable
<Readonly
<Omit
<Float64Array
, "set"
| "sort"
| "copyWithin"
>>>
The offset of this icon from the projected position of its associated waypoint, as [x, y]
in pixels.
Inherited from
MapWaypointImageIcon.offset
Defined in
sdk/components/map/MapWaypointIcon.ts:89
priority
• Readonly
priority: Subscribable
<number
>
Inherit Doc
Inherited from
MapWaypointImageIcon.priority
Defined in
sdk/components/map/MapWaypointIcon.ts:77
size
• Readonly
size: Subscribable
<Readonly
<Omit
<Float64Array
, "set"
| "sort"
| "copyWithin"
>>>
The size of this icon, as [width, height]
in pixels.
Inherited from
MapWaypointImageIcon.size
Defined in
sdk/components/map/MapWaypointIcon.ts:80
waypoint
• Readonly
waypoint: VNavWaypoint
The waypoint associated with this icon.
Inherited from
MapWaypointImageIcon.waypoint
Defined in
sdk/components/map/MapWaypointIcon.ts:100
tempVec2
▪ Static
Protected
Readonly
tempVec2: Float64Array
Inherited from
MapWaypointImageIcon.tempVec2
Defined in
sdk/components/map/MapWaypointIcon.ts:74
Methods
draw
▸ draw(context
, mapProjection
): void
Parameters
Name | Type |
---|---|
context | CanvasRenderingContext2D |
mapProjection | MapProjection |
Returns
void
Inherit Doc
Inherited from
MapWaypointImageIcon.draw
Defined in
sdk/components/map/MapWaypointIcon.ts:113
drawIconAt
▸ drawIconAt(context
, mapProjection
, left
, top
): void
Parameters
Name | Type |
---|---|
context | CanvasRenderingContext2D |
mapProjection | MapProjection |
left | number |
top | number |
Returns
void
Inherit Doc
Inherited from
MapWaypointImageIcon.drawIconAt
Defined in
sdk/components/map/MapWaypointIcon.ts:158