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

diff --git a/public/map/controls/toolbar/tools/NavBaseTool.js b/public/map/controls/toolbar/tools/NavBaseTool.js
new file mode 100644
index 0000000..223c20f
--- /dev/null
+++ b/public/map/controls/toolbar/tools/NavBaseTool.js
@@ -0,0 +1,44 @@
+/**
+* 地图浏览工具的基类
+* @author 温杨彪 2015-9-13
+**/
+define([
+"dojo",
+"dojo/_base/declare", 
+"controls/toolbar/tools/BaseTool",
+"esri/toolbars/navigation"
+], function(
+  dojo,
+  declare, 
+  BaseTool,
+  Navigation
+) {
+  var RL = declare([BaseTool], {
+	  _navTool:null,
+	  _navType:"",
+    constructor: function(args) {
+    },
+    activate:function(args)
+    {
+    	if(this._activated || !this._enable)
+			return;
+    	this.inherited(arguments);
+    	this._navTool.activate(this._navType);
+    },
+    postCreate:function()
+    {
+    	this.inherited(arguments);
+    	this._navTool = new Navigation(this.map);
+    },
+    deactivate:function()
+    {
+    	if(!this._enable || !this._activated)
+			return;
+    	this.inherited(arguments);
+    	this._navTool.deactivate();
+    }
+    
+    
+  });
+  return RL;
+});

--
Gitblit v1.9.3