Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

ScaleControlOptions ​

ScaleControlOptions = object

Defined in: src/ui/control/scale_control.ts:14

The ScaleControl options object

Properties ​

maxWidth? ​

optional maxWidth: number

Defined in: src/ui/control/scale_control.ts:19

The maximum length of the scale control in pixels.

Default Value ​

ts
100

unit? ​

optional unit: Unit

Defined in: src/ui/control/scale_control.ts:24

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

Default Value ​

ts
'metric'