Skip to main content

Class: MapTodIcon

Defined in: workingtitle-instruments-wt21/shared/Map/MapTod.ts:52

A VNAV waypoint icon.

Extends

  • MapWaypointImageIcon<VNavWaypoint>

Constructors

Constructor

new MapTodIcon(waypoint, priority, size, options?): MapTodIcon

Defined in: workingtitle-instruments-wt21/shared/Map/MapTod.ts:61

Constructor.

Parameters

ParameterTypeDescription
waypointVNavWaypointThe waypoint associated with this icon.
prioritynumberThe render priority of this icon. Icons with higher priorities should be rendered above those with lower priorities.
sizeReadonlyFloat64ArrayThe size of this icon, as [width, height] in pixels.
options?AbstractMapWaypointIconOptionsOptions with which to initialize this icon.

Returns

MapTodIcon

Overrides

MapWaypointImageIcon<VNavWaypoint>.constructor

Properties

anchor

readonly anchor: Subscribable<Readonly<Omit<Float64Array, "set" | "sort" | "copyWithin">>>

Defined in: sdk/components/map/MapWaypointIcon.ts:86

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


img

protected readonly img: HTMLImageElement

Defined in: sdk/components/map/MapWaypointIcon.ts:150

This icon's image.

Inherited from

MapWaypointImageIcon.img


offset

readonly offset: Subscribable<Readonly<Omit<Float64Array, "set" | "sort" | "copyWithin">>>

Defined in: sdk/components/map/MapWaypointIcon.ts:89

The offset of this icon from the projected position of its associated waypoint, as [x, y] in pixels.

Inherited from

MapWaypointImageIcon.offset


priority

readonly priority: Subscribable<number>

Defined in: sdk/components/map/MapWaypointIcon.ts:77

Inherit Doc

Inherited from

MapWaypointImageIcon.priority


size

readonly size: Subscribable<Readonly<Omit<Float64Array, "set" | "sort" | "copyWithin">>>

Defined in: sdk/components/map/MapWaypointIcon.ts:80

The size of this icon, as [width, height] in pixels.

Inherited from

MapWaypointImageIcon.size


waypoint

readonly waypoint: VNavWaypoint

Defined in: sdk/components/map/MapWaypointIcon.ts:100

The waypoint associated with this icon.

Inherited from

MapWaypointImageIcon.waypoint


tempVec2

protected readonly static tempVec2: Float64Array

Defined in: sdk/components/map/MapWaypointIcon.ts:74

Inherited from

MapWaypointImageIcon.tempVec2

Methods

draw()

draw(context, mapProjection): void

Defined in: sdk/components/map/MapWaypointIcon.ts:113

Parameters

ParameterType
contextCanvasRenderingContext2D
mapProjectionMapProjection

Returns

void

Inherit Doc

Inherited from

MapWaypointImageIcon.draw


drawIconAt()

protected drawIconAt(context, mapProjection, left, top): void

Defined in: sdk/components/map/MapWaypointIcon.ts:158

Parameters

ParameterType
contextCanvasRenderingContext2D
mapProjectionMapProjection
leftnumber
topnumber

Returns

void

Inherit Doc

Inherited from

MapWaypointImageIcon.drawIconAt