VmControlTerrain

A TerrainControl control contains a button for turning the terrain on and off.

Basic usage

API

Props

NameDescriptionTypeDefault
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

Source

ComponentDocs

Contributors