Skip to main content

Class: MapWaypointDisplayController

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapWaypointDisplayController.ts:32

A map system controller that controls the display settings of the nearest waypoints.

Extends​

Constructors​

Constructor​

new MapWaypointDisplayController(context, mapWaypointsDisplay, pfdOrMfd, mfdSettings?, fixInfo?): MapWaypointDisplayController

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapWaypointDisplayController.ts:70

Creates an instance of the WaypointDisplayController.

Parameters​

ParameterTypeDescription
contextMapSystemContext<WaypointDisplayControllerModules, any, any, WaypointDisplayControllerContext>The map system context to use with this controller.
mapWaypointsDisplaySubscribable<MapWaypointsDisplay>A subscribable MapWaypointsDisplay.
pfdOrMfd"MFD" | "PFD"pfd or mfd.
mfdSettings?UserSettingManager<MfdAliasedUserSettingTypes>The MFD settings, if this is for the MFD, otherwise leave undefined.
fixInfo?Epic2FixInfoManagerThe fix info manager.

Returns​

MapWaypointDisplayController

Overrides​

MapSystemController.constructor

Properties​

context​

protected readonly context: MapSystemContext<WaypointDisplayControllerModules, any, any, WaypointDisplayControllerContext>

Defined in: sdk/components/mapsystem/MapSystemController.ts:24

Inherited from​

MapSystemController.context


displayWaypoint​

protected displayWaypoint: FacilityWaypoint<Facility> | undefined

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapWaypointDisplayController.ts:52


CtrWaypointRole​

readonly static CtrWaypointRole: "CtrWptRole" = 'CtrWptRole'

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapWaypointDisplayController.ts:35

Accessors​

isAlive​

Get Signature​

get isAlive(): boolean

Defined in: sdk/components/mapsystem/MapSystemController.ts:20

Whether this controller is alive.

Returns​

boolean

Inherited from​

MapSystemController.isAlive

Methods​

destroy()​

destroy(): void

Defined in: sdk/components/mapsystem/MapSystemController.ts:106

Destroys this controller.

Returns​

void

Inherited from​

MapSystemController.destroy


onAfterMapRender()​

onAfterMapRender(): void

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapWaypointDisplayController.ts:81

This method is called after this controller' map is rendered.

Returns​

void

Overrides​

MapSystemController.onAfterMapRender


onAfterUpdated()​

onAfterUpdated(time, elapsed): void

Defined in: sdk/components/mapsystem/MapSystemController.ts:78

This method is called immediately after this controller's map updates its layers.

Parameters​

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

Returns​

void

Inherited from​

MapSystemController.onAfterUpdated


onBeforeUpdated()​

onBeforeUpdated(time, elapsed): void

Defined in: sdk/components/mapsystem/MapSystemController.ts:68

This method is called immediately before this controller's map updates its layers.

Parameters​

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

Returns​

void

Inherited from​

MapSystemController.onBeforeUpdated


onDeadZoneChanged()​

onDeadZoneChanged(deadZone): void

Defined in: sdk/components/mapsystem/MapSystemController.ts:48

This method is called when the dead zone of this controller's map changes.

Parameters​

ParameterTypeDescription
deadZoneReadonlyFloat64ArrayThe map's new dead zone.

Returns​

void

Inherited from​

MapSystemController.onDeadZoneChanged


onMapDestroyed()​

onMapDestroyed(): void

Defined in: sdk/components/mapsystem/MapSystemController.ts:99

This method is called when this controller's map is destroyed.

Returns​

void

Inherited from​

MapSystemController.onMapDestroyed


onMapProjectionChanged()​

onMapProjectionChanged(mapProjection, changeFlags): void

Defined in: sdk/components/mapsystem/MapSystemController.ts:58

This method is called when the projection of this controller's map changes.

Parameters​

ParameterTypeDescription
mapProjectionMapProjectionThe map projection.
changeFlagsnumberBit flags describing the type of change.

Returns​

void

Inherited from​

MapSystemController.onMapProjectionChanged


onSleep()​

onSleep(): void

Defined in: sdk/components/mapsystem/MapSystemController.ts:92

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

Returns​

void

Inherited from​

MapSystemController.onSleep


onWake()​

onWake(): void

Defined in: sdk/components/mapsystem/MapSystemController.ts:85

This method is called when this controller's map is awakened.

Returns​

void

Inherited from​

MapSystemController.onWake