Skip to main content

Class: G3XTrafficMapBuilder

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Assembled/G3XTrafficMapBuilder.tsx:79

Builds G3X Touch traffic maps.

Constructors

Constructor

new G3XTrafficMapBuilder(): G3XTrafficMapBuilder

Returns

G3XTrafficMapBuilder

Methods

build()

static build<MapBuilder>(mapBuilder, options): MapBuilder

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Assembled/G3XTrafficMapBuilder.tsx:210

Configures a map builder to generate a G3X Touch traffic map. The map consists of an optional active flight plan layer, an optional traffic range ring layer, a traffic intruder layer, and an airplane icon layer. The map is centered on the player airplane and is locked in Heading Up orientation.

The controller [GarminMapKeys.TrafficRange]: TrafficMapRangeController is added to the map context and can be used to control the range of the traffic map.

The map builder will not be configured to apply a custom projected size, dead zone, or to automatically update the map.

Type Parameters

Type Parameter
MapBuilder extends MapSystemBuilder<any, any, any, any>

Parameters

ParameterTypeDescription
mapBuilderMapBuilderThe map builder to configure.
optionsG3XTrafficMapBaseOptionsOptions for configuring the map.

Returns

MapBuilder

The builder, after it has been configured.


buildInset()

static buildInset<MapBuilder>(mapBuilder, options): MapBuilder

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Assembled/G3XTrafficMapBuilder.tsx:341

Configures a map builder to generate a G3X Touch traffic inset map. The map consists of an optional active flight plan layer, an optional traffic range ring layer, a traffic intruder layer, and an airplane icon layer. The map is centered on the player airplane and is locked in Heading Up orientation.

The controller [GarminMapKeys.TrafficRange]: TrafficMapRangeController is added to the map context and can be used to control the range of the traffic map.

The map builder will not be configured to apply a custom projected size, dead zone, or to automatically update the map.

Type Parameters

Type Parameter
MapBuilder extends MapSystemBuilder<any, any, any, any>

Parameters

ParameterTypeDescription
mapBuilderMapBuilderThe map builder to configure.
optionsG3XTrafficInsetMapOptionsOptions for configuring the map.

Returns

MapBuilder

The builder, after it has been configured.