From f3849fc81a59b43d720937e2678ed87a062d69b2 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 22 Apr 2021 18:23:05 +0800
Subject: [PATCH] 修改当处警员无位置信息时,给一个默认的经纬度
---
public/map/widgets/securityMap/SecurityMap.js | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/public/map/widgets/securityMap/SecurityMap.js b/public/map/widgets/securityMap/SecurityMap.js
index c2b1228..3599e89 100644
--- a/public/map/widgets/securityMap/SecurityMap.js
+++ b/public/map/widgets/securityMap/SecurityMap.js
@@ -275,6 +275,7 @@
var lttd = that.getQueryStringByKey('wd');
anumber = that.getQueryStringByKey('code');
realname = that.getQueryString('name');
+ console.log(lgtd, 1111);
//如果处警员的位置信息存在
if (lgtd != null && lgtd != "") {
//所在位置标记
@@ -311,17 +312,12 @@
//that.polygonFlag = true;
that.newElectronicFenceId = anumber;
}
-
}
}
})
} else {
//当前处警员没有位置信息,则默认定位到市中心位置
that.isPosition = false;
- var lgtd1 = '115.862321';
- var lttd1 = '28.591108';
- //所在位置标记
- that.addPoint(that.addEntitys, lgtd1, lttd1, './images/security.png');
}
//调用点击事件
--
Gitblit v1.9.3