@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
15 lines (14 loc) • 583 B
TypeScript
import GirafeSingleton from '../../base/GirafeSingleton';
import MapOL from 'ol/Map';
import type { Extent } from 'ol/extent';
import type BaseLayer from 'ol/layer/Base';
/** The singleton containing the main OpenLayers map accessible from everywhere */
export default class MapManager extends GirafeSingleton {
private readonly map;
getMap(): MapOL;
/**
* @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;
}