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/SignTool.js |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/public/map/controls/toolbar/tools/SignTool.js b/public/map/controls/toolbar/tools/SignTool.js
new file mode 100644
index 0000000..de8d425
--- /dev/null
+++ b/public/map/controls/toolbar/tools/SignTool.js
@@ -0,0 +1,47 @@
+/**
+ * 标记按钮
+ * @author liuyl 2015-10-26
+ **/
+define([
+	"base/AppEvent",
+	"dojo",
+	"dojo/_base/declare",
+	"dojo/_base/lang",
+	"controls/toolbar/tools/BaseTool",
+	"dojo/dom-style",
+	"base/ConfigData"
+], function(
+	AppEvent,
+	dojo,
+	declare,
+	lang,
+	BaseTool,
+	domStyle,
+	Configdata
+) {
+	var RL = declare([BaseTool], {
+		_map:null,
+		constructor: function(args) {
+			this._normalIconClass = "tool-sign-normal";
+			this._overIconClass = "tool-sign-over";
+			this._selectedIconClass = "tool-sign-select";
+			this._disableClass="";
+			this.tooltip="标记";
+			this._map=args.map;
+		},
+		activate: function(args) {
+			this.inherited(arguments);
+			domStyle.set(dojo.byId(this._map.id+"_layers"),"cursor","crosshair");
+		},
+		postCreate: function() {
+			this.inherited(arguments);
+		},
+		deactivate: function() {
+			this.inherited(arguments);
+			AppEvent.dispatchAppEvent(AppEvent.SG_CLOSE);
+			domStyle.set(dojo.byId(this._map.id+"_layers"),"cursor","default");
+			//this.inherited(arguments);
+		}
+	});
+	return RL;
+});
\ No newline at end of file

--
Gitblit v1.9.3