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
readonlystaticCyanPath:FlightPathRenderStyle
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:91
HoldLegActivePath
readonlystaticHoldLegActivePath:FlightPathVectorStyle
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:102
HoldLegDashedPath
readonlystaticHoldLegDashedPath:FlightPathVectorStyle
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:112
HoldLegMapPath
readonlystaticHoldLegMapPath:FlightPathVectorStyle
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:107
HoldLegPath
readonlystaticHoldLegPath:FlightPathVectorStyle
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:97
MagentaPath
readonlystaticMagentaPath:FlightPathRenderStyle
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:72
WhiteDashedPath
readonlystaticWhiteDashedPath:FlightPathRenderStyle
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:84
WhitePath
readonlystaticWhitePath:FlightPathRenderStyle
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:78
Methods
configureFlightPlan()
staticconfigureFlightPlan(bus,waypointAlerter,settings): (builder) =>void
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:259
Configures the map flight plan display layer.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus to use. |
waypointAlerter | WaypointAlerter | A waypoint alerter that will control the flash of the alering waypoint. |
settings | UserSettingManager<MapSettingsPfdAliased | MapSettingsMfdAliased> | The map user settings |
Returns
A builder function to configure the flight plan display system.
(
builder):void
Parameters
| Parameter | Type |
|---|---|
builder | FlightPlanDisplayBuilder |
Returns
void
configureMapWaypoints()
staticconfigureMapWaypoints(): (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
| Parameter | Type |
|---|---|
builder | WaypointDisplayBuilder |
Returns
void
configureModFlightPlan()
staticconfigureModFlightPlan(bus,settings): (builder) =>void
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:363
Configures the map flight plan display layer for the mod flight plan.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus to use. |
settings | UserSettingManager<MapSettingsPfdAliased | MapSettingsMfdAliased> | The map user settings |
Returns
A builder function to configure the mod flight plan display system.
(
builder):void
Parameters
| Parameter | Type |
|---|---|
builder | FlightPlanDisplayBuilder |
Returns
void
configWptRoles()
staticconfigWptRoles(role,builder):void
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:231
Configures the map waypoint role styles.
Parameters
| Parameter | Type | Description |
|---|---|---|
role | string | number | The role to configure. |
builder | WaypointDisplayBuilder | The waypoint display builder |
Returns
void
createTrafficIntruderIcon()
staticcreateTrafficIntruderIcon(intruder,context):MapTrafficIntruderIcon
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:412
Creates an icon for a traffic intruder.
Parameters
| Parameter | 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.
getOwnAirplanePropsToBind()
staticgetOwnAirplanePropsToBind():MapOwnAirplanePropsKey[]
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:165
Gets the own airplane properties to bind to event bus events.
Returns
An array of own airplane properties to bind to event bus events.
initTrafficLayerCanvasStyles()
staticinitTrafficLayerCanvasStyles(context):void
Defined in: workingtitle-instruments-wt21/shared/Map/MapSystemConfig.ts:430
Initializes global canvas styles for the traffic layer.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | CanvasRenderingContext2D | The canvas rendering context for which to initialize styles. |
Returns
void