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
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:60
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:167
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:183
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
): readonlyNumberUnitReadOnly
<Distance
,Unit
<Distance
>>[]
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:67
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()
static
noTerrainEarthColors():Readonly
<MapTerrainColorsDefinition
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:159
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:192
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()
static
relativeTerrainEarthColors():Readonly
<MapTerrainColorsDefinition
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:175
Gets the earth colors definition for relative terrain colors.
Returns
Readonly
<MapTerrainColorsDefinition
>
The earth colors definition for relative terrain colors.
trafficMapRanges()
static
trafficMapRanges(): readonlyNumberUnitReadOnly
<Distance
,Unit
<Distance
>>[]
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/G3XMapUtils.ts:75
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:202
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
WaypointHighlightLineOptions
Waypoint highlight line options for the specified GDU format.