Skip to main content

Class: G3XMapUtils

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:10

A utility class for working with G3X Touch maps.

Constructors​

Constructor​

new G3XMapUtils(): G3XMapUtils

Returns​

G3XMapUtils

Properties​

AIRPORT_DATA_FLAGS​

readonly static AIRPORT_DATA_FLAGS: number

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:12

Bitflags describing the data required to be loaded in airport facilities used in maps.


DEFAULT_NEXRAD_MIN_RANGE_INDEX​

readonly static DEFAULT_NEXRAD_MIN_RANGE_INDEX: 8 = 8

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:65

The default minimum nominal range index at which the NEXRAD overlay can be displayed.

Methods​

absoluteTerrainEarthColors()​

static absoluteTerrainEarthColors(): Readonly<MapTerrainColorsDefinition>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:172

Gets the earth colors definition for absolute terrain colors.

Returns​

Readonly<MapTerrainColorsDefinition>

The earth colors definition for absolute terrain colors.


groundTerrainEarthColors()​

static groundTerrainEarthColors(): Readonly<MapTerrainColorsDefinition>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:188

Gets the earth colors definition for on ground relative terrain colors.

Returns​

Readonly<MapTerrainColorsDefinition>

The earth colors definition for on ground relative terrain colors.


mapRanges()​

static mapRanges(units): readonly NumberUnitReadOnly<Distance, Unit<Distance>>[]

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:72

Gets the standard map range array.

Parameters​

ParameterTypeDescription
unitsUnitsDistanceSettingModeThe distance units mode for which to get the array.

Returns​

readonly NumberUnitReadOnly<Distance, Unit<Distance>>[]

The standard map range array.


noTerrainEarthColors()​

static noTerrainEarthColors(): Readonly<MapTerrainColorsDefinition>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:164

Gets the earth colors definition for no terrain colors.

Returns​

Readonly<MapTerrainColorsDefinition>

The earth colors definition for no terrain colors.


ownAirplaneIconSize()​

static ownAirplaneIconSize(gduFormat): number

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:197

Gets the size of the own airplane icon, in pixels, for a given GDU format.

Parameters​

ParameterTypeDescription
gduFormatGduFormatThe GDU format for which to get the own airplane icon size.

Returns​

number

The size of the own airplane icon, in pixels, for the specified GDU format.


relativeTerrainEarthColors()​

static relativeTerrainEarthColors(): Readonly<MapTerrainColorsDefinition>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:180

Gets the earth colors definition for relative terrain colors.

Returns​

Readonly<MapTerrainColorsDefinition>

The earth colors definition for relative terrain colors.


trafficMapRanges()​

static trafficMapRanges(): readonly NumberUnitReadOnly<Distance, Unit<Distance>>[]

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:80

Gets the standard traffic map range array.

Returns​

readonly NumberUnitReadOnly<Distance, Unit<Distance>>[]

The standard traffic map range array.


waypointHighlightLineOptions()​

static waypointHighlightLineOptions(gduFormat): WaypointHighlightLineOptions

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:207

Gets waypoint highlight line options for a given GDU format.

Parameters​

ParameterTypeDescription
gduFormatGduFormatThe GDU format for which to get the options.

Returns​

WaypointHighlightLineOptions

Waypoint highlight line options for the specified GDU format.