@maptiler/weather
Version:
Weather layers for MapTiler Cloud and MapTiler SDK
33 lines (32 loc) • 618 B
TypeScript
import { ColorRamp } from '../../core/ColorRamp';
/**
* Type as returned by the `.pickAt()` method
*/
type PressurePickAt = {
/**
* Air pressure in hPa (or mbar)
*/
value: number;
};
/**
* Options for the PressureLayer
*/
type PressureLayerOptions = {
/**
* ID of the layer
*/
id?: string;
/**
* Opacity of the layer in [0, 1]
*/
opacity?: number;
/**
* Colormap to use
*/
colorramp?: ColorRamp;
/**
* Whether or not the colorramp must be smooth
*/
smooth?: boolean;
};
export type { PressureLayerOptions, PressurePickAt };