|  |  | 
 |  |  |     } | 
 |  |  |     var trackPoints = []; //用来存放从后台获取到的所有历史轨迹点的数据 | 
 |  |  |     if (sensorInfo.length > 0) { | 
 |  |  |         for (var i = 0; i <sensorInfo.length ; i++) { | 
 |  |  |             if (typeof (sensorInfo[i]["e76"]) == "undefined") { | 
 |  |  |                 sensorInfo.splice(i,1); | 
 |  |  |                 i--; | 
 |  |  |             }else { | 
 |  |  |                 var lon = parseFloat(sensorInfo[i].e76.substr(0, sensorInfo[i].e76.length - 1)); | 
 |  |  |                 var lat = parseFloat(sensorInfo[i].e77.substr(0, sensorInfo[i].e77.length - 1)); | 
 |  |  |                 if (lon>150 || lon<70 || lat<=20 || lat>60){ | 
 |  |  |                     sensorInfo.splice(i,1); | 
 |  |  |                     i--; | 
 |  |  |                 } | 
 |  |  |                 if (i>1){ | 
 |  |  |                     if (sensorInfo[i]["e76"]==sensorInfo[i-1]["e76"] && sensorInfo[i]["e77"]==sensorInfo[i-1]["e77"]){ | 
 |  |  |                         sensorInfo.splice(i,1); | 
 |  |  |                         i--; | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         $.each(sensorInfo, function (item, value) { | 
 |  |  |             if (typeof (value.e76) == "undefined") { | 
 |  |  |                 showNoFlightTrajectory(); | 
 |  |  | 
 |  |  |             map.addOverlay(polyline); | 
 |  |  |             var winOpts = { | 
 |  |  |                 width: 250, // 信息窗口宽度 | 
 |  |  |                 height: 175, // 信息窗口高度 | 
 |  |  |                 height: 195, // 信息窗口高度 | 
 |  |  |             } | 
 |  |  |             var textArea = "<div style='width: 250px;height: 200px;margin-left: -8px'>"; | 
 |  |  |             if (lat==PointArr.lat){ | 
 |  |  | 
 |  |  |             }else { | 
 |  |  |                 var data="<p style='height: 30px;font-size: 15px;font-weight: bold;padding: 10px 0 0 13px;color: #2aabd2'>"+"走航信息"+"</p>"; | 
 |  |  |                 data=data+"<p style='padding:10px 0 0 18px '>"+"时间:"+info["time"]+"</p>"; | 
 |  |  |                 data=data+"<p style='padding:10px 0 0 18px '>"+"PM2.5:"+info["e1"]+"</p>"; | 
 |  |  |                 data=data+"<p style='padding:10px 0 0 18px '>"+"PM10:"+info["e2"]+"</p>"; | 
 |  |  |                 data=data+"<p style='padding:10px 0 0 18px '>"+"VOCs总量:"+info["e40"]+"</p>"; | 
 |  |  |                 if (typeof(info["e1"])!="undefined"){ | 
 |  |  |                     data=data+"<p style='padding:10px 0 0 18px '>"+"PM2.5:"+info["e1"]+"</p>"; | 
 |  |  |                 } | 
 |  |  |                 if (typeof(info["e2"])!="undefined"){ | 
 |  |  |                     data=data+"<p style='padding:10px 0 0 18px '>"+"PM10:"+info["e2"]+"</p>"; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 if (typeof(info["e40"])!="undefined"){ | 
 |  |  |                     data=data+"<p style='padding:10px 0 0 18px '>"+"TSP:"+info["e40"]+"</p>"; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 if (typeof (info["e17"])!="undefined"){ | 
 |  |  |                     data=data+"<p style='padding:10px 0 0 18px '>"+"VOCs总量:"+info["e17"]+"</p>"; | 
 |  |  |                 } | 
 |  |  |                 textArea=textArea+data+"</div>"; | 
 |  |  |             } | 
 |  |  |  | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     //添加行驶和终点图标 | 
 |  |  |     function addMarkerEnd(point, name, mapInit, trackUnit, prePoint) { | 
 |  |  |         if (name == "小车行驶") { |