Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ScaleOptions

Hierarchy

  • ScaleOptions

Index

Properties

Optional imperial

imperial: boolean

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

Optional maxWidth

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 metric

metric: boolean

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

Optional position

position: string

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

Optional updateWhenIdle

updateWhenIdle: boolean

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