| | |
| | | var monitorDataMin = []; |
| | | var flyingDataMax = []; |
| | | var monitorDataMax = []; |
| | | var list = new Array(); |
| | | var startPoint = trackPoints[i]; |
| | | var endPoint = trackPoints[i + 1]; |
| | | var marker; |
| | |
| | | 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 monitorDataCoincide = monitorDataSort(sensorInfo[e.id], monitorData, monitorParameters); |
| | | var flyingDataCoincide = flyingDataSort(sensorInfo[e.id], flyingData, flyingParameters); |
| | |
| | | } |
| | | |
| | | function black(x) { |
| | | 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() { |