On this page

    Precipitation layer

    The PrecipitationLayer shows the atmospheric precipitation in millimeter per hour (mm/h). Forecast for precipitation of all sorts (rain, snow, hail, sleet) in amount per hour.

    Precipitation layer

    Example

    Parameters

    Options to provide to the Layer constructor (PrecipitationLayerOptions)

    Properties

    options.id
    default: "MapTiler Precipitation"
    ID of the layer
    options.colorramp
    ColorRamp
    default: ColorRamp.builtin.PRECIPITATION
    Colormap to use. Maximum range possible spans from 0 mm/h to 50 mm/h. Default spans from 0 mm/h to 50 mm/h
    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
    Precipitation layer
    Precipitation layer