Radar layer
The RadarLayer shows the atmospheric radar reflectivity in radar reflectivity factor (dBZ). Forecast for maximum composite radar reflectivity value.
Example
Parameters
Options to provide to the Layer constructor
(RadarLayerOptions)
options.id
default: "MapTiler Radar"
|
ID of the layer |
---|---|
options.colorramp
ColorRamp
default:
ColorRamp.builtin.RADAR |
Colormap to use. Maximum range possible spans from -20 dBZ to 80 dBZ. Default spans from 0 dBZ to 75 dBZ
Note: the built-in color ramp
ColorRamp.builtin.RADAR_CLOUD was specificaly designed by our team to represent cloud coverage, and may be more intuitive for generalistic weather forecast usecases. Give it a try! |
options.opacity
default: 1
|
Opacity of the layer in [0, 1] |
options.smooth
default: true
|
Whether or not the colorramp must be smooth |
Methods
Check out the Layers method reference
Get the radar reflectivity in dBZ at a given location
Object
: the value(s) as an object.
value | Reflectivity in dBZ unit |
---|
Events
Check out the Layers events reference