VmControlTerrain
A TerrainControl
control contains a button for turning the terrain on and off.
Basic usage
API
Props
Name | Description | Type | Default |
---|---|---|---|
source | The name of terrain source. | string | - |
exaggeration | multiplicator for the elevation. Used to make terrain more "extreme". | number | - |
position | position on the map to which the control will be added. | enum | 'top-right' |
Events
Name | Description | Type |
---|---|---|
beforeLoad | Triggers before the maplibreObject is loaded. | Function |
ready | Triggers when the maplibreObject is successfully loaded. | Function |
unready | Triggers when the maplibreObject loading failed. | Function |
destroyed | Triggers when the maplibreObject is destroyed. | Function |
Exposes
Name | Description | Type |
---|---|---|
load | Load the component manually. | Function |
unload | Destroy the loaded component manually. | Function |
reload | Load the component manually. | Function |
creatingPromise | Determine whether the component is created by this. | object |
maplibreObject | The maplibreObject created by component. | object |
getMaplibreObject | Get the maplibreObject created by component. | Function |