Pressure layer
The PressureLayer shows the atmospheric pressure in millibar (mbar) or hectopascal (hPa). Forecast for air pressure at mean sea level.
Example
Parameters
Options to provide to the Layer constructor
(PressureLayerOptions)
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
Get the air pressure in hPa (or mbar) at a given location
Object
: the value(s) as an object.
value | Air pressure in hPa (or mbar) |
---|
Events
Check out the Layers events reference