From d74b495736f0c04522ec54274b70fed0ded2878d Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 27 Jun 2023 11:30:06 +0800
Subject: [PATCH] 任务新增导出
---
public/map/controls/toolbar/tools/PrintTool.js | 41 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/public/map/controls/toolbar/tools/PrintTool.js b/public/map/controls/toolbar/tools/PrintTool.js
new file mode 100644
index 0000000..0c06981
--- /dev/null
+++ b/public/map/controls/toolbar/tools/PrintTool.js
@@ -0,0 +1,41 @@
+define([
+ "base/AppEvent",
+ "dojo",
+ "dojo/_base/declare",
+ "dojo/_base/lang",
+ "controls/toolbar/tools/BaseTool",
+ "dojo/dom-style"
+], function(
+ AppEvent,
+ dojo,
+ declare,
+ lang,
+ BaseTool,
+ domStyle
+) {
+ var RL = declare([BaseTool], {
+ constructor: function(args) {
+ this.id="printbutton";
+ this.widgetId="PrintWidget";
+ this.tooltip="地图打印";
+ this._normalIconClass="tool-print-normal";
+ this._overIconClass="tool-print-over";
+ this._selectedIconClass="tool-print-select";
+ AppEvent.addAppEventListener(AppEvent.RUN_WIDGET,lang.hitch(this,function(args){
+
+ }));
+ },
+ activate: function(args) {
+
+ AppEvent.dispatchAppEvent(AppEvent.RUN_WIDGET,this.widgetId);
+ },
+ postCreate: function() {
+ this.inherited(arguments);
+ },
+ deactivate: function() {
+ this.inherited(arguments);
+ AppEvent.dispatchAppEvent(AppEvent.CLOSE_WIDGET,this.widgetId);
+ }
+ });
+ return RL;
+});
\ No newline at end of file
--
Gitblit v1.9.3