From f26fde54fdc51424030eed8e9a0fc4c6529f1ac2 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 25 Jun 2021 08:44:18 +0800
Subject: [PATCH] 空间分析

---
 widgets/searchL/Widget.js |   60 +++++++++---------------------------------------------------
 1 files changed, 9 insertions(+), 51 deletions(-)

diff --git a/widgets/searchL/Widget.js b/widgets/searchL/Widget.js
index 0c7a8ac..760379e 100644
--- a/widgets/searchL/Widget.js
+++ b/widgets/searchL/Widget.js
@@ -11,7 +11,8 @@
 	'jimu/BaseWidget',
 	'jimu/utils',
 	'jimu/css!libs/zTree_v3/css/zTreeStyle/zTreeStyle.css',
-	'libs/zTree_v3/js/jquery.ztree.all'
+	'libs/zTree_v3/js/jquery.ztree.all',
+	'./Cesiumadd'
 ],
 	function (declare,
 		lang,
@@ -33,50 +34,7 @@
 			startup: function () {
 				var that = this;
 
-				function createTooltip(frameDiv) {//抄录createTooltip函数
-
-					var tooltip = function (frameDiv) {
-
-						var div = document.createElement('DIV');
-						div.className = "twipsy right";
-
-						var arrow = document.createElement('DIV');
-						arrow.className = "twipsy-arrow";
-						div.appendChild(arrow);
-
-						var title = document.createElement('DIV');
-						title.className = "twipsy-inner";
-						div.appendChild(title);
-
-						this._div = div;
-						this._title = title;
-						this.message = '';
-
-						// add to frame div and display coordinates
-						frameDiv.appendChild(div);
-						var that = this;
-						div.onmousemove = function (evt) {
-							that.showAt({ x: evt.clientX, y: evt.clientY }, that.message);
-						};
-					};
-
-					tooltip.prototype.setVisible = function (visible) {
-						this._div.style.display = visible ? 'block' : 'none';
-					};
-
-					tooltip.prototype.showAt = function (position, message) {
-						if (position && message) {
-							this.setVisible(true);
-							this._title.innerHTML = message;
-							this._div.style.left = position.x + 10 + "px";
-							this._div.style.top = (position.y - this._div.clientHeight / 2) + "px";
-							this.message = message;
-						}
-					};
-
-					return new tooltip(frameDiv);
-				}
-				window.MYcreateTooltip = createTooltip;//全局使用
+			
 
 				//关键词&&坐标
 				$("#i-f-gjz").click(function () {
@@ -215,13 +173,13 @@
 				if (d == []) {
 					if (n == 0) {
 						this.beginLayUi(d);
-                        topic.publish('getLegendsData', "legends", d, "./images/addL/全景.png", "全景站点");
+						topic.publish('getLegendsData', "legends", d, "./images/addL/全景.png", "全景站点");
 					} else if (n == 1) {
 						this.beginLayUi(1, d);
-                        topic.publish('getLegendsData', "legends", d, "./images/addL/监控.png", "监控站点");
+						topic.publish('getLegendsData', "legends", d, "./images/addL/监控.png", "监控站点");
 					} else if (n == 2) {
 						this.beginLayUi(1, 1, d);
-                        topic.publish('getLegendsData', "legends", d, "./images/addL/全景.png", "监测站点");
+						topic.publish('getLegendsData', "legends", d, "./images/addL/全景.png", "监测站点");
 					}
 				} else {
 					var i = 1;
@@ -233,13 +191,13 @@
 					var data = d;
 					if (n == 0) {
 						this.beginLayUi(data);
-                        topic.publish('getLegendsData', "legends", d, "./images/addL/全景.png", "全景站点");
+						topic.publish('getLegendsData', "legends", d, "./images/addL/全景.png", "全景站点");
 					} else if (n == 1) {
 						this.beginLayUi(1, data);
-                        topic.publish('getLegendsData', "legends", d, "./images/addL/监控.png", "监控站点");
+						topic.publish('getLegendsData', "legends", d, "./images/addL/监控.png", "监控站点");
 					} else if (n == 2) {
 						this.beginLayUi(1, 1, data);
-                        topic.publish('getLegendsData', "legends", d, "./images/addL/监测.png", "监测站点");
+						topic.publish('getLegendsData', "legends", d, "./images/addL/监测.png", "监测站点");
 					}
 				}
 			},

--
Gitblit v1.9.3