VmControlNavigation

A NavigationControl control contains zoom buttons and a compass. see

Basic usage

API

Props

NameDescriptionTypeDefault
showCompassIf true the compass button is included.booleantrue
showZoomIf true the zoom-in and zoom-out buttons are included.booleantrue
visualizePitchIf true the pitch is visualized by rotating X-axis of compass.booleanfalse
positionposition on the map to which the control will be added.enum'top-right'

Events

NameDescriptionType
beforeLoadTriggers before the maplibreObject is loaded.Function
readyTriggers when the maplibreObject is successfully loaded.Function
unreadyTriggers when the maplibreObject loading failed.Function
destroyedTriggers when the maplibreObject is destroyed.Function

Exposes

NameDescriptionType
loadLoad the component manually.Function
unloadDestroy the loaded component manually.Function
reloadLoad the component manually.Function
creatingPromiseDetermine whether the component is created by this.object
maplibreObjectThe maplibreObject created by component.object
getMaplibreObjectGet the maplibreObject created by component.Function

Source

ComponentDocs

Contributors