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
Parameter | 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
A builder function to configure the flight plan display system.
(
builder
):void
Parameters
Parameter | Type |
---|---|
builder | FlightPlanDisplayBuilder |
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
Parameter | Type |
---|---|
builder | WaypointDisplayBuilder |
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
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus to use. |
pfdOrMfd | PfdOrMfd | Whether this map is on the PFD or MFD. |
Returns
A builder function to configure the mod flight plan display system.
(
builder
):void
Parameters
Parameter | Type |
---|---|
builder | FlightPlanDisplayBuilder |
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
Parameter | Type | Description |
---|---|---|
role | string | number | The role to configure. |
builder | WaypointDisplayBuilder | The 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
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()
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
Parameter | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The canvas rendering context for which to initialize styles. |
Returns
void