Commit 39bd917e by 前端

Merge branch 'v1.16.3' into 'develop'

修复基站定位解析地址异常

See merge request !29
2 parents 8c29360b 69f4f2f1
...@@ -52,7 +52,10 @@ const MAPGEO = { ...@@ -52,7 +52,10 @@ const MAPGEO = {
MAPGEO.geocoder.getAddress(arr, function (status, result) { MAPGEO.geocoder.getAddress(arr, function (status, result) {
if (status === 'complete' && result.info === 'OK') {//获取地址成功 if (status === 'complete' && result.info === 'OK') {//获取地址成功
result.regeocodes.forEach((item, idx) => { result.regeocodes.forEach((item, idx) => {
data[initIdx + idx].transferAddress = item.formattedAddress; let o = arr[idx]
let _idx = data.findIndex(k => k.elng == o.lng && k.elat == o.lat);
//data[initIdx + idx].transferAddress = item.formattedAddress;
data[_idx].transferAddress = item.formattedAddress;
obj.totalNum++; obj.totalNum++;
}); });
if (obj.totalNum === obj.realNum) { if (obj.totalNum === obj.realNum) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!