Class: FlightPathWaypointLabel
Defined in: workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:15
An map flightplan waypoint label for the WT21. Capable of showing speed and altitude restrictions.
Extends
MapCullableLocationTextLabel
Constructors
Constructor
new FlightPathWaypointLabel(
waypoint
,displaySetting?
,options?
):FlightPathWaypointLabel
Defined in: workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:28
Ctor
Parameters
Parameter | Type | Description |
---|---|---|
waypoint | FlightPathWaypoint | The map waypoint object to display. |
displaySetting? | UserSetting <number > | The map display settings object. |
options? | MapLocationTextLabelOptions | The label options. |
Returns
FlightPathWaypointLabel
Overrides
MapCullableLocationTextLabel.constructor
Properties
alwaysShow
readonly
alwaysShow:Subscribable
<boolean
>
Defined in: sdk/components/map/MapCullableTextLabel.ts:34
Inherit Doc
Inherited from
MapCullableLocationTextLabel.alwaysShow
anchor
readonly
anchor:Subscribable
<Readonly
<Omit
<Float64Array
,"set"
|"sort"
|"copyWithin"
>>>
Defined in: sdk/components/map/MapTextLabel.ts:89
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
bgBorderRadius
readonly
bgBorderRadius:Subscribable
<number
>
Defined in: sdk/components/map/MapTextLabel.ts:116
The border radius of this label's background.
Inherited from
MapCullableLocationTextLabel.bgBorderRadius
bgColor
readonly
bgColor:Subscribable
<string
>
Defined in: sdk/components/map/MapTextLabel.ts:110
This label's background color.
Inherited from
MapCullableLocationTextLabel.bgColor
bgOutlineColor
readonly
bgOutlineColor:Subscribable
<string
>
Defined in: sdk/components/map/MapTextLabel.ts:122
The outline color of this label's background.
Inherited from
MapCullableLocationTextLabel.bgOutlineColor
bgOutlineWidth
readonly
bgOutlineWidth:Subscribable
<number
>
Defined in: sdk/components/map/MapTextLabel.ts:119
The outline width of this label's background.
Inherited from
MapCullableLocationTextLabel.bgOutlineWidth
bgPadding
readonly
bgPadding:Subscribable
<Readonly
<Omit
<Float64Array
,"set"
|"sort"
|"copyWithin"
>>>
Defined in: sdk/components/map/MapTextLabel.ts:113
The padding of this label's background, in pixels. Expressed as [top, right, bottom, left].
Inherited from
MapCullableLocationTextLabel.bgPadding
bounds
readonly
bounds:Float64Array
Defined in: sdk/components/map/MapCullableTextLabel.ts:37
Inherit Doc
Inherited from
MapCullableLocationTextLabel.bounds
font
readonly
font:Subscribable
<string
>
Defined in: sdk/components/map/MapTextLabel.ts:92
The font type of this label.
Inherited from
MapCullableLocationTextLabel.font
fontColor
readonly
fontColor:Subscribable
<string
>
Defined in: sdk/components/map/MapTextLabel.ts:98
The font color of this label.
Inherited from
MapCullableLocationTextLabel.fontColor
fontOutlineColor
readonly
fontOutlineColor:Subscribable
<string
>
Defined in: sdk/components/map/MapTextLabel.ts:104
The font outline color of this label.
Inherited from
MapCullableLocationTextLabel.fontOutlineColor
fontOutlineWidth
readonly
fontOutlineWidth:Subscribable
<number
>
Defined in: sdk/components/map/MapTextLabel.ts:101
The font outline width of this label, in pixels.
Inherited from
MapCullableLocationTextLabel.fontOutlineWidth
fontSize
readonly
fontSize:Subscribable
<number
>
Defined in: sdk/components/map/MapTextLabel.ts:95
The font size of this label, in pixels.
Inherited from
MapCullableLocationTextLabel.fontSize
invalidation
readonly
invalidation:SubEventInterface
<FlightPathWaypointLabel
,void
>
Defined in: sdk/components/map/MapCullableTextLabel.ts:40
Inherit Doc
Inherited from
MapCullableLocationTextLabel.invalidation
location
readonly
location:Subscribable
<GeoPointInterface
>
Defined in: sdk/components/map/MapTextLabel.ts:314
Inherited from
MapCullableLocationTextLabel.location
offset
readonly
offset:Subscribable
<Readonly
<Omit
<Float64Array
,"set"
|"sort"
|"copyWithin"
>>>
Defined in: sdk/components/map/MapTextLabel.ts:316
Inherited from
MapCullableLocationTextLabel.offset
priority
readonly
priority:Subscribable
<number
>
Defined in: sdk/components/map/MapTextLabel.ts:83
Inherit Doc
Inherited from
MapCullableLocationTextLabel.priority
showBg
readonly
showBg:Subscribable
<boolean
>
Defined in: sdk/components/map/MapTextLabel.ts:107
Whether to show the background for this label.
Inherited from
MapCullableLocationTextLabel.showBg
text
readonly
text:Subscribable
<string
>
Defined in: sdk/components/map/MapTextLabel.ts:80
Inherit Doc
Inherited from
MapCullableLocationTextLabel.text
tempVec2
protected
readonly
static
tempVec2:Float64Array
Defined in: sdk/components/map/MapTextLabel.ts:77
Inherited from
MapCullableLocationTextLabel.tempVec2
Methods
destroy()
destroy():
void
Defined in: workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:40
Returns
void
Inherit Doc
Overrides
MapCullableLocationTextLabel.destroy
draw()
draw(
context
,mapProjection
):void
Defined in: workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:54
Parameters
Parameter | Type |
---|---|
context | CanvasRenderingContext2D |
mapProjection | MapProjection |
Returns
void
Inherit Doc
Overrides
MapCullableLocationTextLabel.draw
drawBackground()
protected
drawBackground(context
,centerX
,centerY
,width
,height
):void
Defined in: sdk/components/map/MapTextLabel.ts:230
Draws this label's background to a canvas.
Parameters
Parameter | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The canvas rendering context. |
centerX | number | The x-coordinate of the center of the label, in pixels. |
centerY | number | the y-coordinate of the center of the label, in pixels. |
width | number | The width of the background, in pixels. |
height | number | The height of the background, in pixels. |
Returns
void
Inherited from
MapCullableLocationTextLabel.drawBackground
drawText()
protected
drawText(context
,centerX
,centerY
):void
Defined in: workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:68
Parameters
Parameter | Type |
---|---|
context | CanvasRenderingContext2D |
centerX | number |
centerY | number |
Returns
void
Inherit Doc
Overrides
MapCullableLocationTextLabel.drawText
getPosition()
protected
getPosition(mapProjection
,out
):Float64Array
Defined in: sdk/components/map/MapTextLabel.ts:338
Parameters
Parameter | Type |
---|---|
mapProjection | MapProjection |
out | Float64Array |
Returns
Float64Array
Inherit Doc
Inherited from
MapCullableLocationTextLabel.getPosition
loadBackgroundPath()
protected
loadBackgroundPath(context
,left
,top
,width
,height
,radius
):void
Defined in: sdk/components/map/MapTextLabel.ts:278
Loads the path of this label's background to a canvas rendering context.
Parameters
Parameter | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The canvas rendering context to use. |
left | number | The x-coordinate of the left edge of the background, in pixels. |
top | number | The y-coordinate of the top edge of the background, in pixels. |
width | number | The width of the background, in pixels. |
height | number | The height of the background, in pixels. |
radius | number | The border radius of the background, in pixels. |
Returns
void
Inherited from
MapCullableLocationTextLabel.loadBackgroundPath
setDisplayed()
setDisplayed(
isDisplayed
):void
Defined in: workingtitle-instruments-wt21/shared/Map/FlightPathWaypointLabel.ts:49
Sets whether or not the label is displayed.
Parameters
Parameter | Type | Description |
---|---|---|
isDisplayed | boolean | Whether or not the label is displayed. |
Returns
void
setTextStyle()
protected
setTextStyle(context
):void
Defined in: sdk/components/map/MapTextLabel.ts:197
Loads this label's text style to a canvas rendering context.
Parameters
Parameter | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The canvas rendering context to use. |
Returns
void
Inherited from
MapCullableLocationTextLabel.setTextStyle
updateBounds()
updateBounds(
mapProjection
):void
Defined in: sdk/components/map/MapCullableTextLabel.ts:75
Parameters
Parameter | Type |
---|---|
mapProjection | MapProjection |
Returns
void
Inherit Doc
Inherited from
MapCullableLocationTextLabel.updateBounds