RangeControlDefinition
A number between two bounds, such as a heatmap's radius. Its value is a
decimal string such as 20. It can fill a URL template like any other
control, or tune how a layer is drawn, which costs no data.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { RangeControlDefinition } from "@mapcairn/core";
interface RangeControlDefinition extends ControlBase
Properties
default
readonly default: number;
The value used until the person changes it.
kind
readonly kind: "range";
Tells a range control from the other kinds.
max
readonly max: number;
The highest value the slider allows.
min
readonly min: number;
The lowest value the slider allows.
step
readonly step: number;
The smallest change the slider makes. Positive.
unit
readonly unit?: LayerTemplate;
Appended to the shown value, such as px.