Skip to content

ScaleControlOptions

ScaleControlOptions: object

The ScaleControl options object

Type declaration

maxWidth?

optional maxWidth: number

The maximum length of the scale control in pixels.

Default Value

100

unit?

optional unit: Unit

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

Default Value

'metric'

Defined in

src/ui/control/scale_control.ts:14