@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
21 lines (20 loc) • 680 B
TypeScript
import type { FrameState } from 'ol/Map.js';
import SimpleMaskLayer from '../../../tools/layers/simplemasklayer.js';
export type ScaleFn = (frameState: FrameState) => number;
/**
* A layer to display a mask with a scale- and page size dependent cut-out box for printing.
*/
declare class PrintMaskLayer extends SimpleMaskLayer {
private scaleFn?;
constructor(options?: {});
/**
* Sets the provided scale function to retrieve the current scale.
*/
setGetScaleFn(scaleFn: ScaleFn): void;
getRotation(): number;
/**
* Draw the print canvas mask.
*/
render(frameState: FrameState): HTMLCanvasElement;
}
export default PrintMaskLayer;