Skip to main content

Class: MapTodLayer

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:42

The map layer for displaying the Tod.

Extends​

Constructors​

Constructor​

new MapTodLayer(props): MapTodLayer

Defined in: sdk/components/FSComponent.ts:73

Creates an instance of a DisplayComponent.

Parameters​

ParameterTypeDescription
propsMapTodLayerPropsThe propertis of the component.

Returns​

MapTodLayer

Inherited from​

MapSyncedCanvasLayer<MapTodLayerProps>.constructor

Properties​

boundsSub​

protected readonly boundsSub: VecNSubject

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:66


clipPathStream​

protected readonly clipPathStream: ClippedPathStream

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:67


context?​

optional context: [] = undefined

Defined in: sdk/components/FSComponent.ts:64

The context on this component, if any.

Inherited from​

MapSyncedCanvasLayer.context


contextType?​

readonly optional contextType: readonly [] = undefined

Defined in: sdk/components/FSComponent.ts:67

The type of context for this component, if any.

Inherited from​

MapSyncedCanvasLayer.contextType


desAdvisoryWaypoint​

protected desAdvisoryWaypoint: undefined | VNavWaypoint

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:46


DesAdvisoryWaypointRole​

protected readonly DesAdvisoryWaypointRole: "DesAdvisoryRole" = 'DesAdvisoryRole'

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:48


facLoader​

protected readonly facLoader: FacilityLoader

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:65


FixInfoMarkerRole​

protected readonly FixInfoMarkerRole: "FixInfoMarkerRole" = 'FixInfoMarkerRole'

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:50


FixInfoWaypointRole​

protected readonly FixInfoWaypointRole: "FixInfoWaypointRole" = 'FixInfoWaypointRole'

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:49


fixInfoWpEntries​

protected readonly fixInfoWpEntries: Map<WT21FixInfoWaypoint, FixInfoWaypointEntry>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:68


isInit​

protected isInit: boolean = false

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:78

Inherited from​

MapSyncedCanvasLayer.isInit


mapStyles​

protected readonly mapStyles: any

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:63


props​

props: MapTodLayerProps & ComponentProps

Defined in: sdk/components/FSComponent.ts:61

The properties of the component.

Inherited from​

MapSyncedCanvasLayer.props


todLegEndDistance​

protected todLegEndDistance: NumberUnit<string, SimpleUnit<Distance>>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:61


todWaypoint​

protected todWaypoint: undefined | VNavWaypoint

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:45


TodWaypointRole​

protected readonly TodWaypointRole: "TodRole" = 'TodRole'

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:47


vnavDesAdvisoryLegDistance​

protected readonly vnavDesAdvisoryLegDistance: ConsumerSubject<number>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:58


vnavDesAdvisoryLegIndex​

protected readonly vnavDesAdvisoryLegIndex: ConsumerSubject<number>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:57


vnavDistanceToDesAdvisory​

protected readonly vnavDistanceToDesAdvisory: ConsumerSubject<number>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:59


vnavDistanceToTod​

protected readonly vnavDistanceToTod: ConsumerSubject<number>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:55


vnavPathMode​

protected readonly vnavPathMode: ConsumerSubject<VNavPathMode>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:52


vnavTodLegDistance​

protected readonly vnavTodLegDistance: ConsumerSubject<number>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:54


vnavTodLegIndex​

protected readonly vnavTodLegIndex: ConsumerSubject<number>

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:53

Accessors​

buffer​

Get Signature​

get buffer(): C

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:98

Gets this layer's buffer canvas instance.

Throws​

Error if this layer's buffer canvas instance has not been initialized.

Returns​

C

This layer's buffer canvas instance.

Inherited from​

MapSyncedCanvasLayer.buffer


display​

Get Signature​

get display(): C

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:85

Gets this layer's display canvas instance.

Throws​

Error if this layer's display canvas instance has not been initialized.

Returns​

C

This layer's display canvas instance.

Inherited from​

MapSyncedCanvasLayer.display

Methods​

copyBufferToDisplay()​

copyBufferToDisplay(): void

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:171

Copies the contents of the buffer to the display. Has no effect if this layer does not have a buffer.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.copyBufferToDisplay


createCanvasInstance()​

protected createCanvasInstance(canvas, context, isDisplayed): MapCanvasLayerCanvasInstance

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:227

Creates a canvas instance.

Parameters​

ParameterTypeDescription
canvasHTMLCanvasElementThe canvas element.
contextCanvasRenderingContext2DThe canvas 2D rendering context.
isDisplayedbooleanWhether the canvas is displayed.

Returns​

MapCanvasLayerCanvasInstance

a canvas instance.

Inherited from​

MapSyncedCanvasLayer.createCanvasInstance


destroy()​

destroy(): void

Defined in: sdk/components/FSComponent.ts:98

Destroys this component.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.destroy


getContext()​

protected getContext(context): never

Defined in: sdk/components/FSComponent.ts:106

Gets a context data subscription from the context collection.

Parameters​

ParameterTypeDescription
contextneverThe context to get the subscription for.

Returns​

never

The requested context.

Throws​

An error if no data for the specified context type could be found.

Inherited from​

MapSyncedCanvasLayer.getContext


getHeight()​

getHeight(): number

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:134

Gets the height of the canvas element, in pixels.

Returns​

number

the height of the canvas element.

Inherited from​

MapSyncedCanvasLayer.getHeight


getWidth()​

getWidth(): number

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:126

Gets the width of the canvas element, in pixels.

Returns​

number

the width of the canvas element.

Inherited from​

MapSyncedCanvasLayer.getWidth


isVisible()​

isVisible(): boolean

Defined in: sdk/components/map/MapLayer.ts:38

Checks whether this layer is visible.

Returns​

boolean

whether this layer is visible.

Inherited from​

MapSyncedCanvasLayer.isVisible


onAfterRender()​

onAfterRender(): void

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:182

A callback called after the component renders.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.onAfterRender


onAttached()​

onAttached(): void

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:71

Returns​

void

Inherit Doc​

Overrides​

MapSyncedCanvasLayer.onAttached


onBeforeRender()​

onBeforeRender(): void

Defined in: sdk/components/FSComponent.ts:80

A callback that is called before the component is rendered.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.onBeforeRender


onDetached()​

onDetached(): void

Defined in: sdk/components/map/MapLayer.ts:108

This method is called when this layer is detached from its parent map component.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.onDetached


onMapProjectionChanged()​

onMapProjectionChanged(mapProjection, changeFlags): void

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:150

Parameters​

ParameterType
mapProjectionMapProjection
changeFlagsnumber

Returns​

void

Inherit Doc​

Overrides​

MapSyncedCanvasLayer.onMapProjectionChanged


onSleep()​

onSleep(): void

Defined in: sdk/components/map/MapLayer.ts:81

This method is called when this layer's parent map is put to sleep.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.onSleep


onUpdated()​

onUpdated(time, elapsed): void

Defined in: sdk/components/map/MapLayer.ts:101

This method is called once every map update cycle.

Parameters​

ParameterTypeDescription
timenumberThe current time as a UNIX timestamp.
elapsednumberThe elapsed time, in milliseconds, since the last update.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.onUpdated


onVisibilityChanged()​

onVisibilityChanged(isVisible): void

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:187

This method is called when this layer's visibility changes.

Parameters​

ParameterTypeDescription
isVisiblebooleanWhether the layer is now visible.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.onVisibilityChanged


onWake()​

onWake(): void

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

This method is called when this layer's parent map is woken.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.onWake


render()​

render(): null | VNode

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:256

Returns​

null | VNode

Inherit Doc​

Inherited from​

MapSyncedCanvasLayer.render


setHeight()​

setHeight(height): void

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:157

Sets the height of the canvas element, in pixels.

Parameters​

ParameterTypeDescription
heightnumberThe new height.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.setHeight


setVisible()​

setVisible(val): void

Defined in: sdk/components/map/MapLayer.ts:46

Sets this layer's visibility.

Parameters​

ParameterTypeDescription
valbooleanWhether this layer should be visible.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.setVisible


setWidth()​

setWidth(width): void

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:142

Sets the width of the canvas element, in pixels.

Parameters​

ParameterTypeDescription
widthnumberThe new width.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.setWidth


tryGetBuffer()​

tryGetBuffer(): undefined | MapCanvasLayerCanvasInstance

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:118

Attempts to get this layer's buffer canvas instance.

Returns​

undefined | MapCanvasLayerCanvasInstance

This layer's buffer canvas instance, or undefined if it has not been initialized.

Inherited from​

MapSyncedCanvasLayer.tryGetBuffer


tryGetDisplay()​

tryGetDisplay(): undefined | MapCanvasLayerCanvasInstance

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:110

Attempts to get this layer's display canvas instance.

Returns​

undefined | MapCanvasLayerCanvasInstance

This layer's display canvas instance, or undefined if it has not been initialized.

Inherited from​

MapSyncedCanvasLayer.tryGetDisplay


updateCanvasSize()​

protected updateCanvasSize(): void

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:234

Updates the canvas element's size.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.updateCanvasSize


updateDesAdvisoryWaypoint()​

updateDesAdvisoryWaypoint(): void

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:234

Updates the DES Advisory waypoint.

Returns​

void


updateFromProjectedSize()​

protected updateFromProjectedSize(projectedSize): void

Defined in: sdk/components/map/layers/MapSyncedCanvasLayer.ts:20

Updates this layer according to the current size of the projected map window.

Parameters​

ParameterTypeDescription
projectedSizeReadonlyFloat64ArrayThe size of the projected map window.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.updateFromProjectedSize


updateFromVisibility()​

protected updateFromVisibility(): void

Defined in: sdk/components/map/layers/MapCanvasLayer.tsx:196

Updates this layer according to its current visibility.

Returns​

void

Inherited from​

MapSyncedCanvasLayer.updateFromVisibility


updateTodWaypoint()​

updateTodWaypoint(): void

Defined in: workingtitle-instruments-wt21/shared/Map/MapTodLayer.tsx:210

Updates the TOD waypoint.

Returns​

void