Interface ScaleOptions

Index

Properties

Properties

optional public imperial?: boolean

Whether to show the imperial scale line (mi/ft). Default value: true.

optional public maxWidth?: number

Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500). Default value: 100.

optional public metric?: boolean

Whether to show the metric scale line (m/km). Default value: true.

optional public position?: string

The position of the control (one of the map corners). See control positions. Default value: 'bottomleft'.

optional public updateWhenIdle?: boolean

If true, the control is updated on moveend, otherwise it's always up-to-date (updated on move). Default value: false.