@maptiler/weather
Version:
Weather layers for MapTiler Cloud and MapTiler SDK
34 lines (33 loc) • 678 B
TypeScript
import { ColorRamp } from '../../core/ColorRamp';
/**
* Type as returned by the `.pickAt()` method
*/
type TemperaturePickAt = {
/**
* Temperature in degree Celcius
*/
value: number;
/**
* Temperature in degree Farenheit
*/
valueImperial: number;
} | null;
type TemperatureLayerOptions = {
/**
* 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 { TemperaturePickAt, TemperatureLayerOptions };