@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
21 lines (20 loc) • 538 B
TypeScript
import Map from 'ol/Map.js';
/**
* Manager to display a simple mask layer with a cut-out box in the middle.
*/
declare class SimpleMaskManager {
private readonly maskLayer;
private readonly map;
private visible;
constructor(map: Map);
/**
* Display the mask or hide it.
*/
setMaskVisibility(visible: boolean): void;
/**
* Update the size (width, height), in pixels of the mask.
*/
setMaskSize(size: [number, number]): void;
private renderMask;
}
export default SimpleMaskManager;