From 91d732a99bf199e0b60a2168a4cbf61d6984981f Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 17 Apr 2024 15:27:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E5=9C=B0=E5=9B=BE=E6=96=B9=E5=90=91=E9=94=AE=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/charts/map/bubble-map.ts | 1 + .../src/views/chart/components/js/panel/charts/map/map.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/map/bubble-map.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/map/bubble-map.ts index 3cd0749832..23788d2fc8 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/map/bubble-map.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/map/bubble-map.ts @@ -101,6 +101,7 @@ export class BubbleMap extends L7PlotChartView { this.configZoomButton(chart, view) view.once('loaded', () => { view.addLayer(dotLayer) + view.scene.map['keyboard'].disable() view.on('fillAreaLayer:click', (ev: MapMouseEvent) => { const data = ev.feature.properties action({ diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts index 1a833ee039..69ecae76d9 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts @@ -100,6 +100,7 @@ export class Map extends L7PlotChartView { const view = new Choropleth(container, options) this.configZoomButton(chart, view) view.once('loaded', () => { + view.scene.map['keyboard'].disable() view.on('fillAreaLayer:click', (ev: MapMouseEvent) => { const data = ev.feature.properties action({