This commit is contained in:
liqi 2025-04-23 20:49:56 +08:00
parent 65d405eb3c
commit cc057efa91
1 changed files with 10 additions and 0 deletions

View File

@ -161,6 +161,13 @@ export function allDevices(options, type, show) {
graphicLayer.addGraphic(graphic);
} else {
graphic.show = show;
graphic.setOptions({
position: new mars3d.LngLatPoint(
deviceItem.lon,
deviceItem.lat,
0
)
});
}
});
}
@ -194,6 +201,9 @@ export function allDevices(options, type, show) {
graphicLayer.addGraphic(graphic);
} else {
graphic.show = show;
graphic.setOptions({
position: new mars3d.LngLatPoint(deviceItem.lon, deviceItem.lat, 0)
});
}
});
}