/** * @typedef {Object} LayerItem * @property {string} name * @property {string} image * @property {string=} styleUrl * @property {TileLayer|LayerGroup} layer * @property {HTMLDivElement} thumbnailBox */ export default class LayerControl extends Control { /** * @param {Object} [opt_options] Control options. */ constructor(opt_options?: any); /** * @type {HTMLDivElement} layer control container */ layerControlElement: HTMLDivElement; baseLayers: LayerItem[]; /** * @type {LayerGroup} layer group containing all base layers */ baseLayerGroup: LayerGroup; setMap(map: any): void; /** * @param {boolean} visible set visibility of the layer selection */ set displayLayerSelection(visible: boolean); /** * @returns {boolean} true if the layer selection is displayed */ get displayLayerSelection(): boolean; toggleLayerSelection(): void; /** * Hides the layer selection with a fade-out animation */ fadeOutAndHide(): void; } export type LayerItem = { name: string; image: string; styleUrl?: string | undefined; layer: TileLayer | LayerGroup; thumbnailBox: HTMLDivElement; }; import Control from 'ol/control/Control.js'; import LayerGroup from 'ol/layer/Group.js'; import TileLayer from 'ol/layer/Tile.js'; //# sourceMappingURL=LayerControl.d.ts.map