Skip to main content

Class: MapSystemConfig

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:69

A map system config for the WT21 PFD/MFD map.

Constructors

Constructor

new MapSystemConfig(): MapSystemConfig

Returns

MapSystemConfig

Properties

CyanPath

readonly static CyanPath: FlightPathRenderStyle

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:91


HoldLegActivePath

readonly static HoldLegActivePath: FlightPathVectorStyle

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:102


HoldLegDashedPath

readonly static HoldLegDashedPath: FlightPathVectorStyle

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:112


HoldLegMapPath

readonly static HoldLegMapPath: FlightPathVectorStyle

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:107


HoldLegPath

readonly static HoldLegPath: FlightPathVectorStyle

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:97


MagentaPath

readonly static MagentaPath: FlightPathRenderStyle

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:72


WhiteDashedPath

readonly static WhiteDashedPath: FlightPathRenderStyle

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:84


WhitePath

readonly static WhitePath: FlightPathRenderStyle

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:78

Methods

configureFlightPlan()

static configureFlightPlan(bus, waypointAlerter, pfdOrMfd): (builder) => void

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:259

Configures the map flight plan display layer.

Parameters

ParameterTypeDescription
busEventBusThe event bus to use.
waypointAlerterWaypointAlerterA waypoint alerter that will control the flash of the alering waypoint.
pfdOrMfdPfdOrMfdWhether this map is on the PFD or MFD.

Returns

A builder function to configure the flight plan display system.

(builder): void

Parameters
ParameterType
builderFlightPlanDisplayBuilder
Returns

void


configureMapWaypoints()

static configureMapWaypoints(): (builder) => void

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:218

Configures the map waypoint display layer.

Returns

A builder function to configure the waypoint display system.

(builder): void

Parameters
ParameterType
builderWaypointDisplayBuilder
Returns

void


configureModFlightPlan()

static configureModFlightPlan(bus, pfdOrMfd): (builder) => void

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:360

Configures the map flight plan display layer for the mod flight plan.

Parameters

ParameterTypeDescription
busEventBusThe event bus to use.
pfdOrMfdPfdOrMfdWhether this map is on the PFD or MFD.

Returns

A builder function to configure the mod flight plan display system.

(builder): void

Parameters
ParameterType
builderFlightPlanDisplayBuilder
Returns

void


configWptRoles()

static configWptRoles(role, builder): void

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:231

Configures the map waypoint role styles.

Parameters

ParameterTypeDescription
rolestring | numberThe role to configure.
builderWaypointDisplayBuilderThe waypoint display builder

Returns

void


createTrafficIntruderIcon()

static createTrafficIntruderIcon(intruder, context): MapTrafficIntruderIcon

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:410

Creates an icon for a traffic intruder.

Parameters

ParameterTypeDescription
intruderTcasIntruderThe intruder for which to create an icon.
contextMapSystemContext<{ ownAirplaneProps: MapOwnAirplanePropsModule; traffic: MapTrafficModule; }, any, any, any>The context of the icon's parent map.

Returns

MapTrafficIntruderIcon

An icon for the specified intruder.


getOwnAirplanePropsToBind()

static getOwnAirplanePropsToBind(): MapOwnAirplanePropsKey[]

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:165

Gets the own airplane properties to bind to event bus events.

Returns

MapOwnAirplanePropsKey[]

An array of own airplane properties to bind to event bus events.


initTrafficLayerCanvasStyles()

static initTrafficLayerCanvasStyles(context): void

Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:428

Initializes global canvas styles for the traffic layer.

Parameters

ParameterTypeDescription
contextCanvasRenderingContext2DThe canvas rendering context for which to initialize styles.

Returns

void