diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 6c9a134..9543ae2 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,38 +2,12 @@
-
@@ -100,12 +74,123 @@
' + '基站名称:'+name + '
' + '基站状态:'+status + '
';
+ var fea = feature.values_.geometry.flatCoordinates
+ console.log(fea)
+ if (feature.values_.geometry.flatCoordinates.length == 4) {
+ content.innerHTML = '' + '基站名称:' + name + '
' + '基站状态:' + status + '
';
overlay.setPosition(coordinate);
map.addOverlay(overlay);
- } else {
- console.log("******************************************************")
+ } else if (feature.values_.geometry.flatCoordinates.length == 5) {
+ var WI = feature.values_.geometry.flatCoordinates[3]
+ $.getJSON("/getJsonString/", {"WI": WI}, function (res) {
+ console.log(res)
+ content.innerHTML = '' + '姓名:' + res.data + '
' + 'ID:' + feature.values_.geometry.flatCoordinates[2] + '
' + 'stat:' + feature.values_.geometry.flatCoordinates[4] + '
';
+ overlay.setPosition(coordinate);
+ map.addOverlay(overlay);
+ })
+
}
+
})
});
@@ -5050,7 +5062,7 @@ $(function () {
map.removeLayer(station_4);
$("#selectLayer").val("0");
- }else if (value == '34') {
+ } else if (value == '34') {
map.removeLayer(changquxingqudianweizhi);
map.removeLayer(changqushiwaijizhan);
map.removeLayer(qidongguolufangMCCpeidianjianjizhan);
@@ -5154,7 +5166,7 @@ $(function () {
map.addLayer(shebei1)
map.addLayer(door1)
- }else if (value == '35') {
+ } else if (value == '35') {
map.removeLayer(changquxingqudianweizhi);
map.removeLayer(changqushiwaijizhan);
map.removeLayer(qidongguolufangMCCpeidianjianjizhan);
@@ -5257,7 +5269,7 @@ $(function () {
map.addLayer(jianzhuwu2)
map.addLayer(door2)
- }else if (value == '36') {
+ } else if (value == '36') {
map.removeLayer(changquxingqudianweizhi);
map.removeLayer(changqushiwaijizhan);
map.removeLayer(qidongguolufangMCCpeidianjianjizhan);
@@ -5360,7 +5372,7 @@ $(function () {
map.addLayer(jianzhuwu3)
map.addLayer(door3)
- }else if (value == '37') {
+ } else if (value == '37') {
map.removeLayer(changquxingqudianweizhi);
map.removeLayer(changqushiwaijizhan);
map.removeLayer(qidongguolufangMCCpeidianjianjizhan);
@@ -5463,7 +5475,7 @@ $(function () {
map.addLayer(louti4)
map.addLayer(door4)
- }else if (value == '38') {
+ } else if (value == '38') {
map.removeLayer(changquxingqudianweizhi);
map.removeLayer(changqushiwaijizhan);
map.removeLayer(qidongguolufangMCCpeidianjianjizhan);
@@ -5566,7 +5578,7 @@ $(function () {
map.addLayer(jianzhuwu5)
map.addLayer(door5)
- }else if (value == '39') {
+ } else if (value == '39') {
map.removeLayer(changquxingqudianweizhi);
map.removeLayer(changqushiwaijizhan);
map.removeLayer(qidongguolufangMCCpeidianjianjizhan);
@@ -5669,8 +5681,7 @@ $(function () {
map.addLayer(jianzhuwu6)
map.addLayer(door6)
- }
- else if (value == '39') {
+ } else if (value == '39') {
map.removeLayer(changquxingqudianweizhi);
map.removeLayer(changqushiwaijizhan);
map.removeLayer(qidongguolufangMCCpeidianjianjizhan);
@@ -5880,19 +5891,20 @@ $(function () {
// console.log(array[i].ID)
var x = array[i].x;
var y = array[i].y;
+ var ID = array[i].ID;
+ var WI = array[i].WI;
+ var stat = array[i].stat;
+
lon = (x * Math.cos(38 * Math.PI / 180) + y * Math.sin(38 * Math.PI / 180)) / 91026.63 + 107.553186752;
lat = (y * Math.cos(38 * Math.PI / 180) - x * Math.sin(38 * Math.PI / 180)) / 111000 + 34.9092271939;
// console.log(lon, lat);
- var lonlat = new Array(lon, lat);
+ var lonlat = new Array(lon, lat, ID, WI, stat);
marker.push(lonlat);
//添加marker
}
addMarker(marker)
}
- // if (i== 'MID'){
- // console.log('message: ' + e.data)
- // }
if (socket.readyState == WebSocket.OPEN) socket.onopen();
window.s = socket;
}
@@ -6350,6 +6362,7 @@ $(function () {
}
});
+
$(".base-station-2").click(function () {
var flag = document.getElementsByClassName('base-station-2');
for (var i = 0; i < flag.length; i++) {
diff --git a/dashboard/templates/dashboard/index.html b/dashboard/templates/dashboard/index.html
index de94a3d..407d7d5 100644
--- a/dashboard/templates/dashboard/index.html
+++ b/dashboard/templates/dashboard/index.html
@@ -163,12 +163,12 @@
-