From 62257393d796028472ed42beca7f6413bc449e33 Mon Sep 17 00:00:00 2001
From: ZhuDongming <773644075@qq.com>
Date: Fri, 09 Aug 2019 17:27:42 +0800
Subject: [PATCH] 修改查询不到信息的页面展示
---
src/main/webapp/view/uavTrajectory.jsp | 35 +++++++++++++++++++++++++++++++++--
1 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/view/uavTrajectory.jsp b/src/main/webapp/view/uavTrajectory.jsp
index 2b36e91..7b27d2e 100644
--- a/src/main/webapp/view/uavTrajectory.jsp
+++ b/src/main/webapp/view/uavTrajectory.jsp
@@ -34,10 +34,29 @@
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;">
@@ -79,13 +98,21 @@
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];
@@ -216,6 +243,10 @@
document.getElementById(x).style.color = "#000000";
}
+ function openInfoWindow() {
+ map.openInfoWindow.apply(map, arguments); //������������������
+ }
+
if (count > 0) {
var lab;
if (count > 0 && count <= 8) {
--
Gitblit v1.8.0