VmControlNavigation

导航组件为地图添加一个带缩放和罗盘按钮的控件。 参考

基础用法

API

Props

属性名说明类型默认值
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

事件名说明类型
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

名称说明类型
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

源代码

组件文档

贡献者