Class: MapUtils
Defined in: workingtitle-instruments-epic2/shared/Map/MapUtils.ts:8
Provides utility functions for working with Garmin maps.
Constructors
Constructor
new MapUtils():
MapUtils
Returns
MapUtils
Methods
absoluteTerrainEarthColors()
static
absoluteTerrainEarthColors():Readonly
<MapTerrainColorsDefinition
>
Defined in: workingtitle-instruments-epic2/shared/Map/MapUtils.ts:704
Gets the earth colors definition for absolute terrain colors.
Returns
Readonly
<MapTerrainColorsDefinition
>
The earth colors definition for absolute terrain colors.
connextPrecipRadarColors()
static
connextPrecipRadarColors(): readonly readonly [number
,number
][]
Defined in: workingtitle-instruments-epic2/shared/Map/MapUtils.ts:739
Gets the weather color array for the Connext precipitation radar overlay.
Returns
readonly readonly [number
, number
][]
The weather color array for the Connext precipitation radar overlay.
groundTerrainEarthColors()
static
groundTerrainEarthColors():Readonly
<MapTerrainColorsDefinition
>
Defined in: workingtitle-instruments-epic2/shared/Map/MapUtils.ts:720
Gets the earth colors definition for on ground relative terrain colors.
Returns
Readonly
<MapTerrainColorsDefinition
>
The earth colors definition for on ground relative terrain colors.
noTerrainEarthColors()
static
noTerrainEarthColors():Readonly
<MapTerrainColorsDefinition
>
Defined in: workingtitle-instruments-epic2/shared/Map/MapUtils.ts:696
Gets the earth colors definition for no terrain colors.
Returns
Readonly
<MapTerrainColorsDefinition
>
The earth colors definition for no terrain colors.
relativeTerrainEarthColors()
static
relativeTerrainEarthColors():Readonly
<MapTerrainColorsDefinition
>
Defined in: workingtitle-instruments-epic2/shared/Map/MapUtils.ts:712
Gets the earth colors definition for relative terrain colors.
Returns
Readonly
<MapTerrainColorsDefinition
>
The earth colors definition for relative terrain colors.
showAltitudeForLeg()
static
showAltitudeForLeg(leg
):boolean
Defined in: workingtitle-instruments-epic2/shared/Map/MapUtils.ts:14
Determines whether an altitude for a leg should be displayed on the map.
Parameters
Parameter | Type | Description |
---|---|---|
leg | LegDefinition | the leg def |
Returns
boolean
whther to show the altitude