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
readonlystaticAIRPORT_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
readonlystaticDEFAULT_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()
staticabsoluteTerrainEarthColors():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()
staticgroundTerrainEarthColors():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()
staticmapRanges(units): readonlyNumberUnitReadOnly<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
| Parameter | Type | Description |
|---|---|---|
units | UnitsDistanceSettingMode | The distance units mode for which to get the array. |
Returns
readonly NumberUnitReadOnly<Distance, Unit<Distance>>[]
The standard map range array.
noTerrainEarthColors()
staticnoTerrainEarthColors():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()
staticownAirplaneIconSize(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
| Parameter | Type | Description |
|---|---|---|
gduFormat | GduFormat | The 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()
staticrelativeTerrainEarthColors():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()
statictrafficMapRanges(): readonlyNumberUnitReadOnly<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()
staticwaypointHighlightLineOptions(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
| Parameter | Type | Description |
|---|---|---|
gduFormat | GduFormat | The GDU format for which to get the options. |
Returns
Waypoint highlight line options for the specified GDU format.