|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .BMap_pop img { | 
|---|
|  |  |  | top: 45px !important; | 
|---|
|  |  |  | left: 420px !important; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .BMap_pop div:nth-child(1) div { | 
|---|
|  |  |  | 
|---|
|  |  |  | var monitorDataMin = []; | 
|---|
|  |  |  | var flyingDataMax = []; | 
|---|
|  |  |  | var monitorDataMax = []; | 
|---|
|  |  |  | var list = new Array(); | 
|---|
|  |  |  | var startPoint = trackPoints[i]; | 
|---|
|  |  |  | var endPoint = trackPoints[i + 1]; | 
|---|
|  |  |  | var marker; | 
|---|
|  |  |  | 
|---|
|  |  |  | for (var prop in monitorDataResult) { | 
|---|
|  |  |  | if (monitorDataResult.hasOwnProperty(prop)) { | 
|---|
|  |  |  | monitorSensorsCount++; | 
|---|
|  |  |  | winfowText += ("<p style='height: 22px;line-height: 22px'>" + prop + ":" + monitorDataResult[prop] + '<input id="a' + i + monitorSensorsCount + '" class="' + i + '" type="button" value="最小值" onclick="showMonitorMinOrMax(this,sensorInfoMin,monitorDataMin,monitorParameters)" style="width:80px;display: inline-block;position: absolute;right:120px"/><span id="aa' + i + monitorSensorsCount + '" style="width:80px;display: none;position: absolute;right:120px;text-align: center"></span><input id="b' + i + monitorSensorsCount + '" class="' + i + '" type="button" value="最大值" onclick="showMonitorMinOrMax(this,sensorInfoMax,monitorDataMax,monitorParameters)" style="width:80px;display: inline-block;position: absolute;right:25px"/><span id="bb' + i + monitorSensorsCount + '" style="width:80px;display: none;position: absolute;right:25px;text-align: center"></span>' + "</p>"); | 
|---|
|  |  |  | winfowText += ("<p style='height: 22px;line-height: 22px'>" + prop + ":" + monitorDataResult[prop] + '<input id="a' + i + monitorSensorsCount + '" class="' + i + '" type="button" value="最小值" onclick="showMonitorMinOrMax(this,sensorInfoMin,monitorDataMin,monitorParameters)" onmousemove="moveChangeColor(this)" onmouseout="outChangeColor(this)" style="width:80px;height:18px;margin-top:2px;display: inline-block;position: absolute;right:120px;border-width: 0px;border-radius: 3px; background:#7C73E9;cursor: pointer; outline: none;color:white"/><span id="aa' + i + monitorSensorsCount + '" style="width:80px;display: none;position: absolute;right:120px;text-align: center"></span><input id="b' + i + monitorSensorsCount + '" class="' + i + '" type="button" value="最大值" onclick="showMonitorMinOrMax(this,sensorInfoMax,monitorDataMax,monitorParameters)" onmousemove="moveChangeColor(this)" onmouseout="outChangeColor(this)" style="width:80px;height:18px;margin-top:2px;display: inline-block;position: absolute;right:25px;border-width: 0px;border-radius: 3px; background:#7C73E9;cursor: pointer; outline: none;color:white"/><span id="bb' + i + monitorSensorsCount + '" style="width:80px;display: none;position: absolute;right:25px;text-align: center"></span>' + "</p>"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | winfowText += '<h4 style="background-color: #66CD00;color:white;margin-bottom: 1px">飞行因子信息</h4>'; | 
|---|
|  |  |  | for (var prop in flyingDataResult) { | 
|---|
|  |  |  | if (flyingDataResult.hasOwnProperty(prop)) { | 
|---|
|  |  |  | flyingSensorsCount++; | 
|---|
|  |  |  | winfowText += ("<p style='height: 22px;line-height: 22px'>" + prop + ":" + flyingDataResult[prop] + '<input id="c' + i + flyingSensorsCount + '" class="' + i + '" type="button" value="最小值" onclick="showFlyingMinOrMax(this,sensorInfoMin,flyingDataMin,flyingParameters)" style="width:80px;display: inline-block;position: absolute;right:120px"/><span id="cc' + i + flyingSensorsCount + '" style="width:80px;display: none;position: absolute;right:120px;text-align: center"></span><input id="d' + i + flyingSensorsCount + '" class="' + i + '" type="button" value="最大值" onclick="showFlyingMinOrMax(this,sensorInfoMax,flyingDataMax,flyingParameters)" style="width:80px;display: inline-block;position: absolute;right:25px"/><span id="dd' + i + flyingSensorsCount + '" style="width:80px;display: none;position: absolute;right:25px;text-align: center"></span>' + "</p>"); | 
|---|
|  |  |  | winfowText += ("<p style='height: 22px;line-height: 22px'>" + prop + ":" + flyingDataResult[prop] + '<input id="c' + i + flyingSensorsCount + '" class="' + i + '" type="button" value="最小值" onclick="showFlyingMinOrMax(this,sensorInfoMin,flyingDataMin,flyingParameters)" onmousemove="moveChangeColor(this)" onmouseout="outChangeColor(this)" style="width:80px;height:18px;margin-top:2px;display: inline-block;position: absolute;right:120px;border-width: 0px;border-radius: 3px; background:#7C73E9;cursor: pointer; outline: none;color:white"/><span id="cc' + i + flyingSensorsCount + '" style="width:80px;display: none;position: absolute;right:120px;text-align: center"></span><input id="d' + i + flyingSensorsCount + '" class="' + i + '" type="button" value="最大值" onclick="showFlyingMinOrMax(this,sensorInfoMax,flyingDataMax,flyingParameters)" onmousemove="moveChangeColor(this)" onmouseout="outChangeColor(this)" style="width:80px;height:18px;margin-top:2px;display: inline-block;position: absolute;right:25px;border-width: 0px;border-radius: 3px; background:#7C73E9;cursor: pointer; outline: none;color:white"/><span id="dd' + i + flyingSensorsCount + '" style="width:80px;display: none;position: absolute;right:25px;text-align: center"></span>' + "</p>"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | winfowText += "</div>"; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 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 = | 
|---|
|  |  |  | 
|---|
|  |  |  | for (var prop in monitorDataCoincide) { | 
|---|
|  |  |  | if (monitorDataCoincide.hasOwnProperty(prop)) { | 
|---|
|  |  |  | monitorSensorsCoincideCount++; | 
|---|
|  |  |  | winfowText1 += ("<p style='height: 22px;line-height: 22px'>" + prop + ":" + monitorDataCoincide[prop] + '<input id="e' + e.id + monitorSensorsCoincideCount + '" class="' + e.id + '" type="button" value="最小值" onclick="showMonitorMinOrMax(this,sensorInfoMin,monitorDataMin,monitorParameters)" style="width:80px;display: inline-block;position: absolute;right:120px"/><span id="ee' + e.id + monitorSensorsCoincideCount + '" style="width:80px;display: none;position: absolute;right:120px;text-align: center"></span><input id="f' + e.id + monitorSensorsCoincideCount + '" class="' + e.id + '" type="button" value="最大值" onclick="showMonitorMinOrMax(this,sensorInfoMax,monitorDataMax,monitorParameters)" style="width:80px;display: inline-block;position: absolute;right:25px"/><span id="ff' + e.id + monitorSensorsCoincideCount + '" style="width:80px;display: none;position: absolute;right:25px;text-align: center"></span>' + "</p>"); | 
|---|
|  |  |  | winfowText1 += ("<p style='height: 22px;line-height: 22px'>" + prop + ":" + monitorDataCoincide[prop] + '<input id="e' + e.id + monitorSensorsCoincideCount + '" class="' + e.id + '" type="button" value="最小值" onclick="showMonitorMinOrMax(this,sensorInfoMin,monitorDataMin,monitorParameters)" onmousemove="moveChangeColor(this)" onmouseout="outChangeColor(this)" style="width:80px;height:18px;margin-top:2px;display: inline-block;position: absolute;right:120px;border-width: 0px;border-radius: 3px; background:#7C73E9;cursor: pointer; outline: none;color:white "/><span id="ee' + e.id + monitorSensorsCoincideCount + '" style="width:80px;display: none;position: absolute;right:120px;text-align: center"></span><input id="f' + e.id + monitorSensorsCoincideCount + '" class="' + e.id + '" type="button" value="最大值" onclick="showMonitorMinOrMax(this,sensorInfoMax,monitorDataMax,monitorParameters)" onmousemove="moveChangeColor(this)" onmouseout="outChangeColor(this)" style="width:80px;height:18px;margin-top:2px;display: inline-block;position: absolute;right:25px;border-width: 0px;border-radius: 3px; background:#7C73E9;cursor: pointer; outline: none;color:white"/><span id="ff' + e.id + monitorSensorsCoincideCount + '" style="width:80px;display: none;position: absolute;right:25px;text-align: center"></span>' + "</p>"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | winfowText1 += '<h4 style="background-color: #66CD00;color:white;margin-bottom: 1px">飞行因子信息</h4>'; | 
|---|
|  |  |  | for (var prop in flyingDataCoincide) { | 
|---|
|  |  |  | if (flyingDataCoincide.hasOwnProperty(prop)) { | 
|---|
|  |  |  | flyingSensorsCoincideCount++; | 
|---|
|  |  |  | winfowText1 += ("<p style='height: 22px;line-height: 22px'>" + prop + ":" + flyingDataCoincide[prop] + '<input id="g' + e.id + flyingSensorsCoincideCount + '" class="' + e.id + '" type="button" value="最小值" onclick="showFlyingMinOrMax(this,sensorInfoMin,flyingDataMin,flyingParameters)" style="width:80px;display: inline-block;position: absolute;right:120px"/><span id="gg' + e.id + flyingSensorsCoincideCount + '" style="width:80px;display: none;position: absolute;right:120px;text-align: center"></span><input id="h' + e.id + flyingSensorsCoincideCount + '" class="' + e.id + '" type="button" value="最大值" onclick="showFlyingMinOrMax(this,sensorInfoMax,flyingDataMax,flyingParameters)" style="width:80px;display: inline-block;position: absolute;right:25px"/><span id="hh' + e.id + flyingSensorsCoincideCount + '" style="width:80px;display: none;position: absolute;right:25px;text-align: center"></span>' + "</p>"); | 
|---|
|  |  |  | winfowText1 += ("<p style='height: 22px;line-height: 22px'>" + prop + ":" + flyingDataCoincide[prop] + '<input id="g' + e.id + flyingSensorsCoincideCount + '" class="' + e.id + '" type="button" value="最小值" onclick="showFlyingMinOrMax(this,sensorInfoMin,flyingDataMin,flyingParameters)" onmousemove="moveChangeColor(this)" onmouseout="outChangeColor(this)" style="width:80px;height:18px;margin-top:2px;display: inline-block;position: absolute;right:120px;border-width: 0px;border-radius: 3px; background:#7C73E9;cursor: pointer; outline: none;color:white "/><span id="gg' + e.id + flyingSensorsCoincideCount + '" style="width:80px;display: none;position: absolute;right:120px;text-align: center"></span><input id="h' + e.id + flyingSensorsCoincideCount + '" class="' + e.id + '" type="button" value="最大值" onclick="showFlyingMinOrMax(this,sensorInfoMax,flyingDataMax,flyingParameters)" onmousemove="moveChangeColor(this)" onmouseout="outChangeColor(this)" style="width:80px;height:18px;margin-top:2px;display: inline-block;position: absolute;right:25px;border-width: 0px;border-radius: 3px; background:#7C73E9;cursor: pointer; outline: none;color:white"/><span id="hh' + e.id + flyingSensorsCoincideCount + '" style="width:80px;display: none;position: absolute;right:25px;text-align: center"></span>' + "</p>"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | winfowText1 += "</div>"; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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() { | 
|---|
|  |  |  | 
|---|
|  |  |  | $("#" + e.id.substr(0, 1) + e.id).show(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function moveChangeColor(e) { | 
|---|
|  |  |  | $("#" + e.id).css('backgroundColor', '#A49EF0'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function outChangeColor(e) { | 
|---|
|  |  |  | $("#" + e.id).css('backgroundColor', '#7C73E9'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (count > 0) { | 
|---|
|  |  |  | var lab; | 
|---|
|  |  |  | if (count > 0 && count <= 8) { | 
|---|
|  |  |  | 
|---|
|  |  |  | map.addOverlay(lab); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (count == 0) { | 
|---|
|  |  |  | var lab = new BMap.Label(count + 1, {position: startPoint, offset: new BMap.Size(-7, -22)}); | 
|---|
|  |  |  | if (i != 0 && i != trackPoints.length - 1) { | 
|---|
|  |  |  | var lab = new BMap.Label(count + 1, {position: startPoint, offset: new BMap.Size(-7, -22)}); | 
|---|
|  |  |  | } else if (i == 0 || i == trackPoints.length - 1) { | 
|---|
|  |  |  | var lab = new BMap.Label(count + 1, {position: startPoint, offset: new BMap.Size(-6, -21)}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | lab.setStyle({ | 
|---|
|  |  |  | color: "#fff", | 
|---|
|  |  |  | fontSize: "16px", | 
|---|