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/ErrCorrectButton.js | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/public/map/controls/toolbar/tools/ErrCorrectButton.js b/public/map/controls/toolbar/tools/ErrCorrectButton.js
new file mode 100644
index 0000000..e06586a
--- /dev/null
+++ b/public/map/controls/toolbar/tools/ErrCorrectButton.js
@@ -0,0 +1,33 @@
+/**
+ * 纠错按钮
+ *
+ * @author haoml
+ */
+define([ "dojo", "dojo/_base/declare", "base/AppEvent","dojo/_base/lang","dojo/dom-style",
+ "controls/toolbar/tools/BaseTool" ], function(dojo,
+ declare, AppEvent, lang, domStyle, BaseTool) {
+ var RL = declare([BaseTool],
+ {
+ _map:null,
+ constructor : function(args) {
+ this._normalIconClass = "tool-errcorrect-normal";
+ this._overIconClass = "tool-errcorrect-over";
+ this._selectedIconClass = "tool-errcorrect-select";
+ this._disableClass = "";
+ this.tooltip = "地图纠错";
+ this._map = args.map;
+ },
+ deactivate : function() {
+ this.inherited(arguments);
+ domStyle.set(dojo.byId(this._map.id + "_layers"),"cursor","default");
+ AppEvent.dispatchAppEvent(AppEvent.ERR_CLOSE);
+ },
+ activate : function() {
+ this.inherited(arguments);
+
+ AppEvent.dispatchAppEvent(AppEvent.ERRCORRECT_RUN);
+ domStyle.set(dojo.byId(this._map.id + "_layers"),"cursor","crosshair");
+ }
+ });
+ return RL;
+});
\ No newline at end of file
--
Gitblit v1.9.3