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 | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/view/uavTrajectory.jsp b/src/main/webapp/view/uavTrajectory.jsp
index 26bf277..c783125 100644
--- a/src/main/webapp/view/uavTrajectory.jsp
+++ b/src/main/webapp/view/uavTrajectory.jsp
@@ -161,6 +161,7 @@
var monitorDataMin = [];
var flyingDataMax = [];
var monitorDataMax = [];
+ var list = new Array();
var startPoint = trackPoints[i];
var endPoint = trackPoints[i + 1];
var marker;
@@ -296,11 +297,17 @@
}
marker.addEventListener("click", function () {
this.openInfoWindow(infoWindow);
- $(".BMap_pop img").css('margin-left','-10px');
+ $(".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 monitorDataCoincide = monitorDataSort(sensorInfo[e.id], monitorData, monitorParameters);
var flyingDataCoincide = flyingDataSort(sensorInfo[e.id], flyingData, flyingParameters);
@@ -339,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