Class: MapSystemConfig
A map system config for the WT21 PFD/MFD map.
Constructors
constructor
• new MapSystemConfig(): MapSystemConfig
Returns
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
Name | Type | Description |
---|---|---|
role | string | number | The role to configure. |
builder | WaypointDisplayBuilder | The 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
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus to use. |
waypointAlerter | WaypointAlerter | A waypoint alerter that will control the flash of the alering waypoint. |
pfdOrMfd | PfdOrMfd | Whether this map is on the PFD or MFD. |
Returns
fn
A builder function to configure the flight plan display system.
▸ (builder
): void
Parameters
Name | Type |
---|---|
builder | FlightPlanDisplayBuilder |
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
Name | Type |
---|---|
builder | WaypointDisplayBuilder |
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
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus to use. |
pfdOrMfd | PfdOrMfd | Whether this map is on the PFD or MFD. |
Returns
fn
A builder function to configure the mod flight plan display system.
▸ (builder
): void
Parameters
Name | Type |
---|---|
builder | FlightPlanDisplayBuilder |
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
Name | Type | Description |
---|---|---|
intruder | TcasIntruder | The intruder for which to create an icon. |
context | MapSystemContext <{ ownAirplaneProps : MapOwnAirplanePropsModule ; traffic : MapTrafficModule }, any , any , any > | The context of the icon's parent map. |
Returns
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
Name | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The canvas rendering context for which to initialize styles. |
Returns
void
Defined in
workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:428