# ScaleControlOptions

> **ScaleControlOptions** = `object`

Defined in: [ui/control/scale\_control.ts:14](<https://github.com/maplibre/maplibre-gl-js/blob/538a7680ab16d5cf5a6564ee0ce72a11be14d142/src/ui/control/scale_control.ts#L14>)

The [ScaleControl](<https://maplibre.org/maplibre-gl-js/docs/API/classes/ScaleControl/index.md>) options object

## Properties

### maxWidth?

> `optional` **maxWidth?**: `number`

Defined in: [ui/control/scale\_control.ts:19](<https://github.com/maplibre/maplibre-gl-js/blob/538a7680ab16d5cf5a6564ee0ce72a11be14d142/src/ui/control/scale_control.ts#L19>)

The maximum length of the scale control in pixels.

#### Default Value

```ts
100
```

---

### unit?

> `optional` **unit?**: [`Unit`](<https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/Unit/index.md>)

Defined in: [ui/control/scale\_control.ts:24](<https://github.com/maplibre/maplibre-gl-js/blob/538a7680ab16d5cf5a6564ee0ce72a11be14d142/src/ui/control/scale_control.ts#L24>)

Unit of the distance (`'imperial'`, `'metric'` or `'nautical'`).

#### Default Value

```ts
'metric'
```
