From 8fbe4c86d435c2b5a572d9557a4bdb914d06c833 Mon Sep 17 00:00:00 2001
From: ZhuDongming <773644075@qq.com>
Date: Fri, 16 Aug 2019 17:20:08 +0800
Subject: [PATCH] 添加重合点查看记录

---
 src/main/webapp/view/uavTrajectory.jsp |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/src/main/webapp/view/uavTrajectory.jsp b/src/main/webapp/view/uavTrajectory.jsp
index 9a53293..c783125 100644
--- a/src/main/webapp/view/uavTrajectory.jsp
+++ b/src/main/webapp/view/uavTrajectory.jsp
@@ -77,7 +77,6 @@
 
     .BMap_pop img {
         top: 45px !important;
-        left: 420px !important;
     }
 
     .BMap_pop div:nth-child(1) div {
@@ -162,6 +161,7 @@
             var monitorDataMin = [];
             var flyingDataMax = [];
             var monitorDataMax = [];
+            var list = new Array();
             var startPoint = trackPoints[i];
             var endPoint = trackPoints[i + 1];
             var marker;
@@ -297,17 +297,18 @@
                 }
                 marker.addEventListener("click", function () {
                     this.openInfoWindow(infoWindow);
+                    $(".BMap_pop img").css('margin-left', '-10px');
+                    for (var i = 0; i < list.length; i++) {
+                        $("#" + list[i]).css('color', 'blue');
+                    }
                 });
             })(i);
 
             function openInfo(e) {
+                if (list.indexOf(e.id) == -1) {
+                    list.push(e.id);
+                }
                 var point = new BMap.Point(sensorInfo[e.id].������.substr(0, sensorInfo[e.id].������.length - 1), sensorInfo[e.id].������.substr(0, sensorInfo[e.id].������.length - 1));
-                var flyingData = [];
-                var monitorData = [];
-                var flyingDataMin = [];
-                var monitorDataMin = [];
-                var flyingDataMax = [];
-                var monitorDataMax = [];
                 var monitorDataCoincide = monitorDataSort(sensorInfo[e.id], monitorData, monitorParameters);
                 var flyingDataCoincide = flyingDataSort(sensorInfo[e.id], flyingData, flyingParameters);
                 var winfowText1 =
@@ -345,7 +346,15 @@
             }
 
             function black(x) {
-                document.getElementById(x).style.color = "#000000";
+                if (list.length > 0) {
+                    if (list.indexOf(x) == -1) {
+                        document.getElementById(x).style.color = "#000000";
+                    } else {
+                        document.getElementById(x).style.color = "blue";
+                    }
+                } else {
+                    document.getElementById(x).style.color = "#000000";
+                }
             }
 
             function openInfoWindow() {

--
Gitblit v1.8.0