ScaleControlOptions interface

The options for a ScaleControl object.

Extends

Properties

maxWidth

The maximum length of the scale control in pixels. Default 100.

unit

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

Property Details

maxWidth

The maximum length of the scale control in pixels. Default 100.

maxWidth?: number

Property Value

number

unit

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

unit?: "imperial" | "metric" | "nautical"

Property Value

"imperial" | "metric" | "nautical"