Skip to main content

Abstract Class: MapFormatController<L>

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:64

A map system controller that controls the display settings of the various format and terrain/wxr combinations.

Extends​

Extended by​

Type Parameters​

Type ParameterDefault type
L extends MapFormatControllerLayersMapFormatControllerLayers

Constructors​

Constructor​

new MapFormatController<L>(context, currentMapFormatConfig, terrWxState, tfcEnabled): MapFormatController<L>

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:117

Creates an instance of the MapFormatController.

Parameters​

ParameterTypeDescription
contextMapSystemContext<MapFormatControllerModules>The map system context to use with this controller.
currentMapFormatConfigSubscribable<MapFormatConfig>A subscribable for the current map format config.
terrWxStateSubscribable<TerrWxState>A subscribable for the current terr wx state.
tfcEnabledSubscribable<boolean>A subscribable for whether tfc is enabled.

Returns​

MapFormatController<L>

Overrides​

MapSystemController<MapFormatControllerModules, L>.constructor

Properties​

bingLayer?​

protected readonly optional bingLayer: L["bing"]

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:77


context​

protected readonly context: MapSystemContext<MapFormatControllerModules, L, any, any>

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

Inherited from​

MapSystemController.context


currentMapFormatConfig​

protected readonly currentMapFormatConfig: Subscribable<MapFormatConfig>

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:119

A subscribable for the current map format config.


isOnGround​

protected readonly isOnGround: ConsumerSubject<boolean>

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:86


sub​

protected readonly sub: EventSubscriber<AirGroundDataProviderEvents>

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:85


terrainWeatherStateModule​

protected readonly terrainWeatherStateModule: MapTerrainWeatherStateModule

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:68


terrWxState​

protected readonly terrWxState: Subscribable<TerrWxState>

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:120

A subscribable for the current terr wx state.


tfcEnabled​

protected readonly tfcEnabled: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:121

A subscribable for whether tfc is enabled.


weatherModule​

protected readonly weatherModule: MapWxrModule

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:69


WX_NEXRAD_COLORS​

readonly static WX_NEXRAD_COLORS: readonly readonly [number, number][]

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:99


WX_RADAR_COLORS​

readonly static WX_RADAR_COLORS: readonly readonly [number, number][]

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:91

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


getOffset()​

protected getOffset(formatConfig): Float64Array

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:274

Sets the map target offset for the specified format.

Parameters​

ParameterTypeDescription
formatConfigMapFormatConfigThe format config to use.

Returns​

Float64Array

The target projected offset.


getRangeEndpoints()​

protected getRangeEndpoints(formatConfig): Float64Array

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:283

Calculates the range endpoints for a given format config.

Parameters​

ParameterTypeDescription
formatConfigMapFormatConfigThe format config to use.

Returns​

Float64Array

The calculated range endpoints.


onAfterMapRender()​

onAfterMapRender(): void

Defined in: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:144

Returns​

void

Inherit Doc​

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: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:136

Parameters​

ParameterType
_mapProjectionMapProjection
changeFlagsnumber

Returns​

void

Inherit Doc​

Overrides​

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: workingtitle-instruments-epic2/shared/Map/Controllers/MapFormatController.ts:130

Returns​

void

Inherit Doc​

Overrides​

MapSystemController.onWake