This commit is contained in:
BianLzhaoMin 2025-04-30 09:17:55 +08:00
parent d6adce52d5
commit c1e18f3e09
1 changed files with 12 additions and 10 deletions

View File

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