Skip to content

ZoomControl

The VMapZoomControl component is used to zoom in and out of the map.

Basic usage

API

Attributes

Use zoom control options from leaflet documentation.

NameDescriptionTypeDefault
disabledIf true, then zoom control is disabled.booleanfalse
positionThe position of the control (one of the corners of the map). See types for possible values.ControlPosition | ExtraControlPosition'centerright'

Events

No events.

Slots

NameDescription
defaultThe default slot can be used to extend behavior.

Exposes

NameDescriptionType
zoomControlLeaflet zoom control instance.Ref<Control.Zoom | null>

Released under the MIT License.