ScaleOptions

Properties

Link copied to clipboard
abstract var imperial: Boolean?

Whether to show the imperial scale line (mi/ft).

Link copied to clipboard
abstract var maxWidth: Number?

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

Link copied to clipboard
abstract var metric: Boolean?

Whether to show the metric scale line (m/km).

Link copied to clipboard
abstract var position: PositionsUnion

The position of the control (one of the map corners).

Link copied to clipboard
abstract var updateWhenIdle: Boolean?

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