From 8aa3edd56c279100c9053576f3e90fa55459fe77 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Mon, 16 Jan 2023 16:15:55 +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