From 19b5137730e50e16a0bac65f4f985a4e4a2aa15e Mon Sep 17 00:00:00 2001 From: qingzhengli <1204552371@qq.com> Date: Tue, 2 Apr 2024 18:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E6=89=93=E5=BC=80=E8=81=9A=E5=90=88=E5=BC=B9?= =?UTF-8?q?=E7=AA=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Home/components/RoadAndEvents/utils/map.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js index a0b120d9..ab20e917 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js @@ -238,19 +238,19 @@ export class MarkerCluster { const reset = () => { if (!window.openInfoWindow) { - // console.log(window.openInfoWindow, "rest"); + // console.log("窗口movestart中", new Date()); this.infoWindow?.close?.(); } }; map.on("zoomstart", reset); - map.on("mapmove", reset); + map.on("zoomend", reset); + map.on("movestart", reset); map.on("moveend", async () => { if (window.openInfoWindow) { - console.log("窗口位移结束"); + // console.log("窗口位移结束", new Date()); window.openInfoWindow = false; - await new Promise((resolve) => setTimeout(resolve, 840)); - window.infoWindow?.open?.(); + // window.infoWindow?.open?.(); } });