|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var trackPoints = []; //用来存放从后台获取到的所有历史轨迹点的数据 | 
|---|
|  |  |  | var coincidentPoints = new Array(); | 
|---|
|  |  |  | var flyingParameters = ['经度', '纬度', '高度', '速度x', '速度y', '速度z']; | 
|---|
|  |  |  | var flyingParameters = ['经度', '纬度', '高度', '向北速度', '向东速度', '向下速度']; | 
|---|
|  |  |  | var monitorParameters = ['PM2.5', 'PM10', '一氧化碳', '二氧化硫', '二氧化氮', '臭氧', 'VOCs总量', '气压', '温度', '湿度', '核辐射']; | 
|---|
|  |  |  | if (sensorInfo.length > 0) { | 
|---|
|  |  |  | $.each(sensorInfo, function (item, value) { | 
|---|
|  |  |  | 
|---|
|  |  |  | winfowText += '<h3 style="background-color: #CD5C5C;color:white;margin-bottom: 1px">监测因子信息</h3>'; | 
|---|
|  |  |  | for (var prop in monitorDataResult) { | 
|---|
|  |  |  | if (monitorDataResult.hasOwnProperty(prop)) { | 
|---|
|  |  |  | monitorSensorsCount++; | 
|---|
|  |  |  | for (var j = 0; j < monitorParameters.length; j++) { | 
|---|
|  |  |  | if (prop == monitorParameters[j]) { | 
|---|
|  |  |  | monitorSensorsCount = j; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 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 += '<h3 style="background-color: #66CD00;color:white;margin-bottom: 1px">飞行因子信息</h3>'; | 
|---|
|  |  |  | for (var prop in flyingDataResult) { | 
|---|
|  |  |  | if (flyingDataResult.hasOwnProperty(prop)) { | 
|---|
|  |  |  | flyingSensorsCount++; | 
|---|
|  |  |  | for (var j = 0; j < flyingParameters.length; j++) { | 
|---|
|  |  |  | if (prop == flyingParameters[j]) { | 
|---|
|  |  |  | flyingSensorsCount = j; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 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>"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | var flyingSensorsCoincideCount = -1; | 
|---|
|  |  |  | for (var prop in monitorDataCoincide) { | 
|---|
|  |  |  | if (monitorDataCoincide.hasOwnProperty(prop)) { | 
|---|
|  |  |  | monitorSensorsCoincideCount++; | 
|---|
|  |  |  | for (var j = 0; j < monitorParameters.length; j++) { | 
|---|
|  |  |  | if (prop == monitorParameters[j]) { | 
|---|
|  |  |  | monitorSensorsCoincideCount = j; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 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 += '<h3 style="background-color: #66CD00;color:white;margin-bottom: 1px">飞行因子信息</h3>'; | 
|---|
|  |  |  | for (var prop in flyingDataCoincide) { | 
|---|
|  |  |  | if (flyingDataCoincide.hasOwnProperty(prop)) { | 
|---|
|  |  |  | flyingSensorsCoincideCount++; | 
|---|
|  |  |  | for (var j = 0; j < flyingParameters.length; j++) { | 
|---|
|  |  |  | if (prop == flyingParameters[j]) { | 
|---|
|  |  |  | flyingSensorsCoincideCount = j; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 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>"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|