On this page

    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 -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

    Events

    Check out the Layers events reference

    Was this helpful?

    SDK JS
    Modules
    Reference
    Radar layer
    Radar layer