import Helper from '@ember/component/helper'; import type { Map as MapboxMap } from 'mapbox-gl'; import type { RasterDEMSourceSpecification, TerrainSpecification } from 'mapbox-gl'; export interface MapboxGlTerrainSignature { Args: { Positional: [ Partial?, Partial? ]; Named: { map: MapboxMap; sourceId?: string; }; }; Return: void; } /** * Helper to add and manage terrain on a Mapbox map instance. * * This helper allows the addition of a raster DEM source and configuration * of terrain settings on a provided MapboxMap instance. It ensures proper * cleanup of resources when the helper is destroyed. * * @class MapboxGlTerrainHelper * * Positional arguments: * @argument {Partial} [sourceSpec] - The source specification for the raster DEM. Optional. * @argument {Partial} [terrainSpec] - The terrain specification. Optional. * * Named arguments: * @argument {MapboxMap} map - The MapboxMap instance where terrain is added. * @argument {string} [sourceId] - Optional identifier for the terrain source. Defaults to a unique identifier. */ export default class MapboxGlTerrain extends Helper { private sourceId; private map?; compute([sourceSpec, terrainSpec,]: MapboxGlTerrainSignature["Args"]["Positional"] | undefined, { map, sourceId }: MapboxGlTerrainSignature['Args']['Named']): void; private addTerrain; willDestroy(): void; } //# sourceMappingURL=mapbox-gl-terrain.d.ts.map