HighLow Layer
Last updated
Last updated
Variable rendered as highs/lows
radius
Type: number, required
Radius in km to filter nearby values. The greater radius, the less values are detected.
unitFormat
Default: null
Unit definition to be used for formatting numbers.
textFormatFunction
Type: function (value: number, unitFormat: UnitFormat) => string
, optional
Default: (value, unitFormat) => unitFormat ? formatValue(value, unitFormat) : Math.round(value).toString()
Function to format the value.
textFontFamily
Type: string, optional
Default: "Helvetica Neue", Arial, Helvetica, sans-serif
textSize
Type: number, optional
Default: 12
textColor
Type: color [number, number, number, number?]
, optional
Default: [255, 255, 255]
textOutlineWidth
Type: number, optional
Default: 1
textOutlineColor
Type: color [number, number, number, number?]
, optional
Default: [13, 13, 13]
palette
Type: color palette text or array, optional
Palette used to interpolate values to colors.
Formats:
See common for all layers.
See common for all layers.
Type: , optional
Font family of the text. See .
Size of the text. See .
Color of the text. See .
Width of outline around the text, relative to the font size. See .
Color of outline around the text. See .
text (string
) - see for details
array ([number, PaletteColor][]
) - PaletteColor
is any object accepted by