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')) {