import Map from "ol/Map"; import { Control, ScaleLine } from "ol/control"; import "ol/ol.css"; import "ol-ext/dist/ol-ext.css"; import PrintDialog from "ol-ext/control/PrintDialog"; import { Options } from "ol-ext/control/PrintDialog"; export declare function scaleControl(useScaleBarStyle: boolean): ScaleLine; export declare function northArrowControl(): Control; export declare function resetControl(listener: any, icon: string): Control; export interface PrintControlOptions extends Options { map: Map; } export declare class PrintControl extends PrintDialog { mainMap: Map; constructor({ map }: PrintControlOptions); /** * Toggle scaleControl when printControl is open * Instead, display CanvasScaleLine which can be printed */ private setupCanvasScaleLine; /** * Setup custom styling and event listeners of print button displayed on map */ private setupPrintButton; /** * Display scale (1:XXX) on CanvasScaleLine control * This can not natively be done with this element, but it has all the inherited * functions from OL ScaleLine to allow us to set this */ private syncScaleText; /** * Hide browser dialog */ private customiseContent; }