UNPKG

xgis-ol

Version:

基于openlayers + ol-ext库进行封装

29 lines (28 loc) 707 B
import { default as Map } from 'ol/Map'; import { default as PrintDialog } from 'ol-ext/control/PrintDialog'; import { default as 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; }