From 51497d12c0ff598ffcbb6981c0a00462e010772a Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Thu, 11 Apr 2024 10:36:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=85=B3=E9=97=AD=E6=82=AC=E6=B5=AE=E5=90=8E?= =?UTF-8?q?=E6=9C=AA=E9=9A=90=E8=97=8F=E7=BC=A9=E6=94=BE=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_antv.ts | 7 +++++-- 1 file changed, 5 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 22d6887aaf..491170c8c8 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 @@ -21,8 +21,7 @@ import { LIST_CLASS } from '@antv/l7plot-component/dist/esm/legend/category/constants' import substitute from '@antv/util/esm/substitute' -import { Plot as L7Plot } from '@antv/l7plot/dist/esm/core/plot' -import type { PlotOptions } from '@antv/l7plot/dist/esm/types' +import type { Plot as L7Plot, PlotOptions } from '@antv/l7plot/dist/esm' import { Zoom } from '@antv/l7' import { createL7Icon } from '@antv/l7-component/es/utils/icon' import { DOM } from '@antv/l7-utils' @@ -855,6 +854,10 @@ class CustomZoom extends Zoom { } } export function configL7Zoom(plot: L7Plot) { + const options = plot.options + if (options.zoom === false) { + return + } plot.once('loaded', () => { const zoomOptions = { initZoom: plot.scene.getZoom(),