From 888e940f2a8da0457136730aecfdfb421b160626 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Tue, 8 Aug 2023 11:28:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=85=AC=E4=BA=A4=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E4=B8=80=E7=9B=B4=E6=98=BE=E7=A4=BAbug=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/quanju/containers/public/olMap.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/client/src/sections/quanju/containers/public/olMap.js b/web/client/src/sections/quanju/containers/public/olMap.js index 939d33cc..696b1ff2 100644 --- a/web/client/src/sections/quanju/containers/public/olMap.js +++ b/web/client/src/sections/quanju/containers/public/olMap.js @@ -53,6 +53,11 @@ const OlMap = (props) => { olMap.removeGeometryLayer('geometry_road_' + index) }) } + if (tab != 'operation') { + busRunData.forEach((d, index) => { + olMap.removeGeometryLayer('geometry_bus_' + index) + }) + } } }, [tab])