Merge pull request #9166 from dataease/pr@dev-v2@refactor_map_arrow_event

refactor(图表): 禁用地图方向键事件
This commit is contained in:
wisonic-s 2024-04-17 15:28:49 +08:00 committed by GitHub
commit 47c2e73092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,7 @@ export class BubbleMap extends L7PlotChartView<ChoroplethOptions, Choropleth> {
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({

View File

@ -100,6 +100,7 @@ export class Map extends L7PlotChartView<ChoroplethOptions, Choropleth> {
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({