Class: MapNexradModule
Defined in: src/garminsdk/components/map/modules/MapNexradModule.ts:6
A module for map weather radar mode data.
Constructors
Constructor
new MapNexradModule():
MapNexradModule
Returns
MapNexradModule
Properties
colors
readonly
colors:Subject
<readonly readonly [number
,number
][]>
Defined in: src/garminsdk/components/map/modules/MapNexradModule.ts:20
The color array for the NEXRAD overlay. Each entry E_i
of the array is a tuple [color, rate]
that defines a
color stop, where color
is an RGBA color expressed as R + G * 256 + B * 256^2 + A * 256^3
and rate
is a
precipitation rate in millimeters per hour.
In general, the color defined by E_i
is applied to precipitation rates ranging from the rate defined by E_i-1
to the rate defined by E_i
. There are two special cases. The color defined by E_0
is applied to the
precipitation rates from zero to the rate defined by E_0
. The color defined by E_n-1
, where n
is the length
of the array, is applied to the precipitation rates from the rate defined by E_n-2
to positive infinity.
showNexrad
readonly
showNexrad:Subject
<boolean
>
Defined in: src/garminsdk/components/map/modules/MapNexradModule.ts:8
Whether to show the NEXRAD overlay.