Skip to main content

Class: FlightPathWaypointLabel

An map flightplan waypoint label for the WT21. Capable of showing speed and altitude restrictions.

Hierarchy

  • MapCullableLocationTextLabel

    FlightPathWaypointLabel

Constructors

constructor

new FlightPathWaypointLabel(waypoint, displaySetting?, options?): FlightPathWaypointLabel

Ctor

Parameters

NameTypeDescription
waypointFlightPathWaypointThe map waypoint object to display.
displaySetting?UserSetting<number>The map display settings object.
options?MapLocationTextLabelOptionsThe label options.

Returns

FlightPathWaypointLabel

Overrides

MapCullableLocationTextLabel.constructor

Defined in

workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:28

Properties

alwaysShow

Readonly alwaysShow: Subscribable<boolean>

Inherit Doc

Inherited from

MapCullableLocationTextLabel.alwaysShow

Defined in

sdk/components/map/MapCullableTextLabel.ts:34


anchor

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

The anchor point of this label, expressed relative to this label's width/height. [0, 0] is the top-left corner, and [1, 1] is the bottom-right corner.

Inherited from

MapCullableLocationTextLabel.anchor

Defined in

sdk/components/map/MapTextLabel.ts:89


bgBorderRadius

Readonly bgBorderRadius: Subscribable<number>

The border radius of this label's background.

Inherited from

MapCullableLocationTextLabel.bgBorderRadius

Defined in

sdk/components/map/MapTextLabel.ts:116


bgColor

Readonly bgColor: Subscribable<string>

This label's background color.

Inherited from

MapCullableLocationTextLabel.bgColor

Defined in

sdk/components/map/MapTextLabel.ts:110


bgOutlineColor

Readonly bgOutlineColor: Subscribable<string>

The outline color of this label's background.

Inherited from

MapCullableLocationTextLabel.bgOutlineColor

Defined in

sdk/components/map/MapTextLabel.ts:122


bgOutlineWidth

Readonly bgOutlineWidth: Subscribable<number>

The outline width of this label's background.

Inherited from

MapCullableLocationTextLabel.bgOutlineWidth

Defined in

sdk/components/map/MapTextLabel.ts:119


bgPadding

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

The padding of this label's background, in pixels. Expressed as [top, right, bottom, left].

Inherited from

MapCullableLocationTextLabel.bgPadding

Defined in

sdk/components/map/MapTextLabel.ts:113


bounds

Readonly bounds: Float64Array

Inherit Doc

Inherited from

MapCullableLocationTextLabel.bounds

Defined in

sdk/components/map/MapCullableTextLabel.ts:37


font

Readonly font: Subscribable<string>

The font type of this label.

Inherited from

MapCullableLocationTextLabel.font

Defined in

sdk/components/map/MapTextLabel.ts:92


fontColor

Readonly fontColor: Subscribable<string>

The font color of this label.

Inherited from

MapCullableLocationTextLabel.fontColor

Defined in

sdk/components/map/MapTextLabel.ts:98


fontOutlineColor

Readonly fontOutlineColor: Subscribable<string>

The font outline color of this label.

Inherited from

MapCullableLocationTextLabel.fontOutlineColor

Defined in

sdk/components/map/MapTextLabel.ts:104


fontOutlineWidth

Readonly fontOutlineWidth: Subscribable<number>

The font outline width of this label, in pixels.

Inherited from

MapCullableLocationTextLabel.fontOutlineWidth

Defined in

sdk/components/map/MapTextLabel.ts:101


fontSize

Readonly fontSize: Subscribable<number>

The font size of this label, in pixels.

Inherited from

MapCullableLocationTextLabel.fontSize

Defined in

sdk/components/map/MapTextLabel.ts:95


invalidation

Readonly invalidation: SubEventInterface<FlightPathWaypointLabel, void>

Inherit Doc

Inherited from

MapCullableLocationTextLabel.invalidation

Defined in

sdk/components/map/MapCullableTextLabel.ts:40


location

Readonly location: Subscribable<GeoPointInterface>

Inherited from

MapCullableLocationTextLabel.location

Defined in

sdk/components/map/MapTextLabel.ts:314


offset

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

Inherited from

MapCullableLocationTextLabel.offset

Defined in

sdk/components/map/MapTextLabel.ts:316


priority

Readonly priority: Subscribable<number>

Inherit Doc

Inherited from

MapCullableLocationTextLabel.priority

Defined in

sdk/components/map/MapTextLabel.ts:83


showBg

Readonly showBg: Subscribable<boolean>

Whether to show the background for this label.

Inherited from

MapCullableLocationTextLabel.showBg

Defined in

sdk/components/map/MapTextLabel.ts:107


text

Readonly text: Subscribable<string>

Inherit Doc

Inherited from

MapCullableLocationTextLabel.text

Defined in

sdk/components/map/MapTextLabel.ts:80


tempVec2

Static Protected Readonly tempVec2: Float64Array

Inherited from

MapCullableLocationTextLabel.tempVec2

Defined in

sdk/components/map/MapTextLabel.ts:77

Methods

destroy

destroy(): void

Returns

void

Inherit Doc

Overrides

MapCullableLocationTextLabel.destroy

Defined in

workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:40


draw

draw(context, mapProjection): void

Parameters

NameType
contextCanvasRenderingContext2D
mapProjectionMapProjection

Returns

void

Inherit Doc

Overrides

MapCullableLocationTextLabel.draw

Defined in

workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:54


drawBackground

drawBackground(context, centerX, centerY, width, height): void

Draws this label's background to a canvas.

Parameters

NameTypeDescription
contextCanvasRenderingContext2DThe canvas rendering context.
centerXnumberThe x-coordinate of the center of the label, in pixels.
centerYnumberthe y-coordinate of the center of the label, in pixels.
widthnumberThe width of the background, in pixels.
heightnumberThe height of the background, in pixels.

Returns

void

Inherited from

MapCullableLocationTextLabel.drawBackground

Defined in

sdk/components/map/MapTextLabel.ts:230


drawText

drawText(context, centerX, centerY): void

Parameters

NameType
contextCanvasRenderingContext2D
centerXnumber
centerYnumber

Returns

void

Inherit Doc

Overrides

MapCullableLocationTextLabel.drawText

Defined in

workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:68


getPosition

getPosition(mapProjection, out): Float64Array

Parameters

NameType
mapProjectionMapProjection
outFloat64Array

Returns

Float64Array

Inherit Doc

Inherited from

MapCullableLocationTextLabel.getPosition

Defined in

sdk/components/map/MapTextLabel.ts:338


loadBackgroundPath

loadBackgroundPath(context, left, top, width, height, radius): void

Loads the path of this label's background to a canvas rendering context.

Parameters

NameTypeDescription
contextCanvasRenderingContext2DThe canvas rendering context to use.
leftnumberThe x-coordinate of the left edge of the background, in pixels.
topnumberThe y-coordinate of the top edge of the background, in pixels.
widthnumberThe width of the background, in pixels.
heightnumberThe height of the background, in pixels.
radiusnumberThe border radius of the background, in pixels.

Returns

void

Inherited from

MapCullableLocationTextLabel.loadBackgroundPath

Defined in

sdk/components/map/MapTextLabel.ts:278


setDisplayed

setDisplayed(isDisplayed): void

Sets whether or not the label is displayed.

Parameters

NameTypeDescription
isDisplayedbooleanWhether or not the label is displayed.

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:49


setTextStyle

setTextStyle(context): void

Loads this label's text style to a canvas rendering context.

Parameters

NameTypeDescription
contextCanvasRenderingContext2DThe canvas rendering context to use.

Returns

void

Inherited from

MapCullableLocationTextLabel.setTextStyle

Defined in

sdk/components/map/MapTextLabel.ts:197


updateBounds

updateBounds(mapProjection): void

Parameters

NameType
mapProjectionMapProjection

Returns

void

Inherit Doc

Inherited from

MapCullableLocationTextLabel.updateBounds

Defined in

sdk/components/map/MapCullableTextLabel.ts:75