@maptiler/weather
Version:
Weather layers for MapTiler Cloud and MapTiler SDK
30 lines (29 loc) • 567 B
TypeScript
import { ColorRamp } from '../../core/ColorRamp';
/**
* Type as returned by the `.pickAt()` method
*/
type RadarPickAt = {
/**
* Reflectivity in dBZ unit
*/
value: number;
} | null;
type RadarLayerOptions = {
/**
* 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 { RadarPickAt, RadarLayerOptions };