forked from github/dataease
Merge pull request #9166 from dataease/pr@dev-v2@refactor_map_arrow_event
refactor(图表): 禁用地图方向键事件
This commit is contained in:
commit
47c2e73092
@ -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({
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user