@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
18 lines (17 loc) • 649 B
TypeScript
import { Map } from 'ol';
import olVectorTileLayer from 'ol/layer/VectorTile.js';
import LayerVectorTiles from '../../../models/layers/layervectortiles.js';
import LayerGroup from 'ol/layer/Group.js';
declare class VectorTilesManager {
map: Map;
basemapLayers: (olVectorTileLayer | LayerGroup)[];
constructor(map: Map);
removeAllBasemapLayers(): void;
/**
* Adds a vectortiles basemap based on its layerName. If no layerName is provided,
* will use apply from ol-mapbox-style to create all layers.
* @param basemap
*/
addBasemapLayer(basemap: LayerVectorTiles): void;
}
export default VectorTilesManager;