From cc057efa91c8be3e0b6656ec71ff17db1ea588a6 Mon Sep 17 00:00:00 2001 From: liqi <1174845810@qq.com> Date: Wed, 23 Apr 2025 20:49:56 +0800 Subject: [PATCH] 1 --- src/views/contentData/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/contentData/index.js b/src/views/contentData/index.js index fe49cb6..ae075eb 100644 --- a/src/views/contentData/index.js +++ b/src/views/contentData/index.js @@ -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) + }); } }); }