Skip to content

ScaleControl

The VMapScaleControl component is used to shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems.

Basic usage

API

Attributes

Use scale control options from leaflet documentation.

NameDescriptionTypeDefault
imperialWhether to show the imperial scale line (mi/ft). Disabled by default.numberfalse
positionThe position of the control (one of the corners of the map). See types for possible values.ControlPosition | ExtraControlPosition'bottomright'

Events

No events.

Slots

NameDescription
defaultThe default slot can be used to extend behavior.

Exposes

NameDescriptionType
scaleControlLeaflet scale control instance.Ref<Control.Scale | null>

Released under the MIT License.