| | |
| | | padding: 0; |
| | | list-style: none; |
| | | } |
| | | |
| | | #cpm { |
| | | width:300px; |
| | | height:100px; |
| | | position: absolute; |
| | | background-color: #ffffff; |
| | | display: none; |
| | | left:50%; |
| | | top:50%; |
| | | margin-left: -150px; |
| | | margin-top: -50px; |
| | | z-index: 11; |
| | | color: #000000; |
| | | border: 2px solid #FF7F50; |
| | | font-size : 28px; |
| | | line-height : 100px; |
| | | text-align : center; |
| | | } |
| | | </style> |
| | | |
| | | <body> |
| | | <div class="main_body"> |
| | | <div id="cpm">查无飞行轨迹</div> |
| | | <div id="mapCanvas"></div> <!-- 百度地图 --> |
| | | <!-- 传sensorInfo,regionCode,regionName,monitorPoint,device--> |
| | | <div id="uavTrajectoryParams" style="display: none;"> |
| | |
| | | latitude = 31.391562; |
| | | point = new BMap.Point(longitude, latitude); |
| | | map.centerAndZoom(point, 17); |
| | | alert("查不到相关数据"); |
| | | document.getElementById("cpm").style.display='block'; |
| | | } |
| | | var trackPoints = []; //用来存放从后台获取到的所有历史轨迹点的数据 |
| | | var coincidentPoints = new Array(); |
| | | if (sensorInfo.length > 0) { |
| | | $.each(sensorInfo, function (item, value) { |
| | | trackPoints.push(new BMap.Point(value.经度.substr(0,value.经度.length-1), value.纬度.substr(0,value.纬度.length-1))); |
| | | if(typeof(value.经度)=="undefined"){ |
| | | longitude = 120.987287; |
| | | latitude = 31.391562; |
| | | point = new BMap.Point(longitude, latitude); |
| | | map.centerAndZoom(point, 17); |
| | | document.getElementById("cpm").style.display='block'; |
| | | }else{ |
| | | trackPoints.push(new BMap.Point(value.经度.substr(0,value.经度.length-1), value.纬度.substr(0,value.纬度.length-1))); |
| | | } |
| | | }) |
| | | for (var i = 0; i < trackPoints.length; i++) { |
| | | var startPoint = trackPoints[i]; |
| | |
| | | document.getElementById(x).style.color = "#000000"; |
| | | } |
| | | |
| | | function openInfoWindow() { |
| | | map.openInfoWindow.apply(map, arguments); //开启信息窗口 |
| | | } |
| | | |
| | | if (count > 0) { |
| | | var lab; |
| | | if (count > 0 && count <= 8) { |