Skip to main content

Class: MapSystemConfig

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

Constructors

constructor

new MapSystemConfig(): MapSystemConfig

Returns

MapSystemConfig

Properties

CyanPath

Static Readonly CyanPath: FlightPathRenderStyle

Defined in

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


HoldLegActivePath

Static Readonly HoldLegActivePath: FlightPathVectorStyle

Defined in

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


HoldLegDashedPath

Static Readonly HoldLegDashedPath: FlightPathVectorStyle

Defined in

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


HoldLegMapPath

Static Readonly HoldLegMapPath: FlightPathVectorStyle

Defined in

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


HoldLegPath

Static Readonly HoldLegPath: FlightPathVectorStyle

Defined in

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


MagentaPath

Static Readonly MagentaPath: FlightPathRenderStyle

Defined in

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


WhiteDashedPath

Static Readonly WhiteDashedPath: FlightPathRenderStyle

Defined in

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


WhitePath

Static Readonly WhitePath: FlightPathRenderStyle

Defined in

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

Methods

configWptRoles

configWptRoles(role, builder): void

Configures the map waypoint role styles.

Parameters

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

Returns

void

Defined in

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


configureFlightPlan

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

Configures the map flight plan display layer.

Parameters

NameTypeDescription
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

fn

A builder function to configure the flight plan display system.

▸ (builder): void

Parameters
NameType
builderFlightPlanDisplayBuilder
Returns

void

Defined in

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


configureMapWaypoints

configureMapWaypoints(): (builder: WaypointDisplayBuilder) => void

Configures the map waypoint display layer.

Returns

fn

A builder function to configure the waypoint display system.

▸ (builder): void

Parameters
NameType
builderWaypointDisplayBuilder
Returns

void

Defined in

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


configureModFlightPlan

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

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

Parameters

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

Returns

fn

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

▸ (builder): void

Parameters
NameType
builderFlightPlanDisplayBuilder
Returns

void

Defined in

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


createTrafficIntruderIcon

createTrafficIntruderIcon(intruder, context): MapTrafficIntruderIcon

Creates an icon for a traffic intruder.

Parameters

NameTypeDescription
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.

Defined in

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


getOwnAirplanePropsToBind

getOwnAirplanePropsToBind(): MapOwnAirplanePropsKey[]

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.

Defined in

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


initTrafficLayerCanvasStyles

initTrafficLayerCanvasStyles(context): void

Initializes global canvas styles for the traffic layer.

Parameters

NameTypeDescription
contextCanvasRenderingContext2DThe canvas rendering context for which to initialize styles.

Returns

void

Defined in

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