On this page

    Pressure layer

    The PressureLayer shows the atmospheric pressure in millibar (mbar) or hectopascal (hPa). Forecast for air pressure at mean sea level.

    Pressure layer

    Example

    Parameters

    Options to provide to the Layer constructor (PressureLayerOptions)

    Properties

    options.id
    default: "MapTiler Pressure"
    ID of the layer
    options.colorramp
    ColorRamp
    default: ColorRamp.builtin.PRESSURE_2
    Colormap to use. Maximum range possible spans from 900 hPa to 1080 hPa. Default spans from 900 hPa to 1080 hPa
    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
    Pressure layer
    Pressure layer