From a4e06ccd3cd976fbe4eef99e188d42ec9f3ad054 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 08 Apr 2021 09:32:05 +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