Radar layer

The RadarLayer shows the atmospheric radar reflectivity in radar reflectivity factor (dBZ). Forecast for maximum composite radar reflectivity value.

Radar layer

Example

Parameters

Options to provide to the Layer constructor (RadarLayerOptions)

Properties

options.id
default: "MapTiler Radar"
ID of the layer
options.colorramp
ColorRamp
default: ColorRamp.builtin.RADAR
Colormap to use. Maximum range possible spans from -20dBZ to 80dBZ. Default spans from 0dBZ to 75dBZ
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

Events

Check out the Layers events reference

The Weather JS module can only be used with the MapTiler SDK.