Skip to main content

Class: MapFixInfoWaypointIcon<T>

An icon for a fix info waypoint.

Type parameters

NameType
Textends Waypoint

Hierarchy

  • AbstractMapWaypointIcon<T>

    MapFixInfoWaypointIcon

Constructors

constructor

new MapFixInfoWaypointIcon<T>(waypoint, mapStyles, clipPathStream): MapFixInfoWaypointIcon<T>

Constructor.

Type parameters

NameType
Textends Waypoint

Parameters

NameTypeDescription
waypointTThe waypoint.
mapStylesWT21MapStylesThe map styles.
clipPathStreamClippedPathStreamThe path stream to draw to.

Returns

MapFixInfoWaypointIcon<T>

Overrides

AbstractMapWaypointIcon\<T\>.constructor

Defined in

workingtitle-instruments-wt21/shared/Map/MapTod.ts:135

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

AbstractMapWaypointIcon.anchor

Defined in

sdk/components/map/MapWaypointIcon.ts:86


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

AbstractMapWaypointIcon.offset

Defined in

sdk/components/map/MapWaypointIcon.ts:89


priority

Readonly priority: Subscribable<number>

Inherit Doc

Inherited from

AbstractMapWaypointIcon.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

AbstractMapWaypointIcon.size

Defined in

sdk/components/map/MapWaypointIcon.ts:80


waypoint

Readonly waypoint: T

The waypoint associated with this icon.

Inherited from

AbstractMapWaypointIcon.waypoint

Defined in

sdk/components/map/MapWaypointIcon.ts:100


tempVec2

Static Protected Readonly tempVec2: Float64Array

Inherited from

AbstractMapWaypointIcon.tempVec2

Defined in

sdk/components/map/MapWaypointIcon.ts:74

Methods

draw

draw(context, mapProjection): void

Parameters

NameType
contextCanvasRenderingContext2D
mapProjectionMapProjection

Returns

void

Inherit Doc

Inherited from

AbstractMapWaypointIcon.draw

Defined in

sdk/components/map/MapWaypointIcon.ts:113


drawIconAt

drawIconAt(context, mapProjection, x, y): void

Parameters

NameType
contextCanvasRenderingContext2D
mapProjectionMapProjection
xnumber
ynumber

Returns

void

Inherit Doc

Overrides

AbstractMapWaypointIcon.drawIconAt

Defined in

workingtitle-instruments-wt21/shared/Map/MapTod.ts:146