xgis-ol
Version:
基于openlayers + ol-ext库进行封装
29 lines (28 loc) • 662 B
TypeScript
import Map from "ol/Map";
import PrintDialog from "ol-ext/control/PrintDialog";
import Print from "ol-ext/control/Print";
export default class PrintTool {
private map;
private printDialogControl;
private printControl;
constructor(map: Map);
get PrintDialogControl(): PrintDialog;
/**
* 添加打印对话框
* @param options
*/
addPrintDialogControl(options?: any): PrintDialog;
/**
* 移除
*/
removePrintDialogControl(): void;
/**
* 添加打印控件(简单版)
*/
addPrintControl(): Print;
/**
* 移除
*/
removePrintControl(): void;
dispose(): void;
}