From 2fc1d32f72fd5751af0e32f346993f7cb0da9c62 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 19 Mar 2026 16:46:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9C=B0=E5=9B=BE):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E5=9C=B0=E5=9B=BE=E7=BC=A9=E6=94=BE=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E9=80=BB=E8=BE=91=EF=BC=8C=E8=B0=83=E6=95=B4=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_antv.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 5a71335ee5..a8f7d3cec6 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -1266,8 +1266,9 @@ export function configL7Zoom( if (zoomOption) { scene.removeControl(zoomOption) } - onlineMapStatusOption(chart, mapKey?.mapType, scene, true) - if (shouldHideZoom(basicStyle)) { + const hideZoom = shouldHideZoom(basicStyle) + onlineMapStatusOption(chart, mapKey?.mapType, scene, !hideZoom) + if (hideZoom) { return } if (!scene?.getControlByName('zoom')) {