@maptiler/sdk
Version:
The Javascript & TypeScript map SDK tailored for MapTiler Cloud
18 lines (17 loc) • 596 B
TypeScript
import { Map as SDKMap } from '../Map';
import { IControl } from 'maplibre-gl';
/**
* A `MaptilerTerrainControl` control adds a button to turn terrain on and off
* by triggering the terrain logic that is already deployed in the Map object.
*/
export declare class MaptilerTerrainControl implements IControl {
_map: SDKMap;
_container: HTMLElement;
_terrainButton: HTMLButtonElement;
constructor();
onAdd(map: SDKMap): HTMLElement;
onRemove(): void;
_toggleTerrain(): void;
_updateTerrainIcon(): void;
}
export declare function toggleTerrain(map: SDKMap): void;