This commit is contained in:
parent
d6adce52d5
commit
c1e18f3e09
|
|
@ -173,15 +173,17 @@ function getLocationInfo(id) {
|
||||||
// 处理一下交叉信息
|
// 处理一下交叉信息
|
||||||
if (crossingList && crossingList.length > 0) {
|
if (crossingList && crossingList.length > 0) {
|
||||||
crossingList.forEach((item) => {
|
crossingList.forEach((item) => {
|
||||||
const lonAndLatList = item.lonAndLat.split(",");
|
if (item.lonAndLat && item.lonAndLat.indexOf(",") > -1) {
|
||||||
lonAndLatList.forEach((lonAndLat, index) => {
|
const lonAndLatList = item.lonAndLat.split(",");
|
||||||
const lonAndLatItem = lonAndLat.split("@");
|
lonAndLatList.forEach((lonAndLat, index) => {
|
||||||
crossingListNew.push({
|
const lonAndLatItem = lonAndLat.split("@");
|
||||||
baiduLon: lonAndLatItem[0],
|
crossingListNew.push({
|
||||||
baiduLat: lonAndLatItem[1],
|
baiduLon: lonAndLatItem[0],
|
||||||
...item,
|
baiduLat: lonAndLatItem[1],
|
||||||
|
...item,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
initMap();
|
initMap();
|
||||||
|
|
@ -782,8 +784,8 @@ function getOrgTreeData() {
|
||||||
data[0].children[0].children[0].lon &&
|
data[0].children[0].children[0].lon &&
|
||||||
data[0].children[0].children[0].lat
|
data[0].children[0].children[0].lat
|
||||||
) {
|
) {
|
||||||
intLng = data[0].children[0].children[0].lon;
|
// intLng = data[0].children[0].children[0].lon;
|
||||||
intLat = data[0].children[0].children[0].lat;
|
// intLat = data[0].children[0].children[0].lat;
|
||||||
}
|
}
|
||||||
|
|
||||||
getScrollData(nodeId);
|
getScrollData(nodeId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue