@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
16 lines (15 loc) • 610 B
TypeScript
import GirafeSingleton from '../../base/GirafeSingleton.js';
import OlMap from 'ol/Map.js';
import type { Extent } from 'ol/extent.js';
import type BaseLayer from 'ol/layer/Base.js';
/** The singleton containing the main OpenLayers map accessible from everywhere */
export default class MapManager extends GirafeSingleton {
private map?;
private createMap;
getMap(): OlMap;
/**
* @returns an array of BaseLayer objects that should be printed and that are not in the layer tree.
*/
getLayersToPrint(): BaseLayer[];
zoomToExtent(extent: Extent, minResolution?: number): void;
}