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/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