# 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

```ts
import type { RangeControlDefinition } from "@mapcairn/core";
 
interface RangeControlDefinition extends ControlBase
```

## Properties

### default

```ts
readonly default: number;
```

The value used until the person changes it.

### kind

```ts
readonly kind: "range";
```

Tells a range control from the other kinds.

### max

```ts
readonly max: number;
```

The highest value the slider allows.

### min

```ts
readonly min: number;
```

The lowest value the slider allows.

### step

```ts
readonly step: number;
```

The smallest change the slider makes. Positive.

### unit

```ts
readonly unit?: LayerTemplate;
```

Appended to the shown value, such as ` px`.

## See also

- [`ControlBase`](https://docs.mapcairn.com/api/core/ControlBase.md)
- [`LayerTemplate`](https://docs.mapcairn.com/api/core/LayerTemplate.md)

Source: [packages/core/src/layers/definition.ts:160](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L160)
