VmControlTerrain

地形控件为地图添加一个控制地形是否显示的按钮。 参考

基础用法

API

Props

属性名说明类型默认值
sourceThe name of terrain source.string-
exaggerationmultiplicator for the elevation. Used to make terrain more "extreme".number-
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

源代码

组件文档

贡献者