forked from github/dataease
refactor(图表): 禁用地图方向键事件
This commit is contained in:
parent
0718bbe9f6
commit
91d732a99b
@ -101,6 +101,7 @@ export class BubbleMap extends L7PlotChartView<ChoroplethOptions, Choropleth> {
|
|||||||
this.configZoomButton(chart, view)
|
this.configZoomButton(chart, view)
|
||||||
view.once('loaded', () => {
|
view.once('loaded', () => {
|
||||||
view.addLayer(dotLayer)
|
view.addLayer(dotLayer)
|
||||||
|
view.scene.map['keyboard'].disable()
|
||||||
view.on('fillAreaLayer:click', (ev: MapMouseEvent) => {
|
view.on('fillAreaLayer:click', (ev: MapMouseEvent) => {
|
||||||
const data = ev.feature.properties
|
const data = ev.feature.properties
|
||||||
action({
|
action({
|
||||||
|
@ -100,6 +100,7 @@ export class Map extends L7PlotChartView<ChoroplethOptions, Choropleth> {
|
|||||||
const view = new Choropleth(container, options)
|
const view = new Choropleth(container, options)
|
||||||
this.configZoomButton(chart, view)
|
this.configZoomButton(chart, view)
|
||||||
view.once('loaded', () => {
|
view.once('loaded', () => {
|
||||||
|
view.scene.map['keyboard'].disable()
|
||||||
view.on('fillAreaLayer:click', (ev: MapMouseEvent) => {
|
view.on('fillAreaLayer:click', (ev: MapMouseEvent) => {
|
||||||
const data = ev.feature.properties
|
const data = ev.feature.properties
|
||||||
action({
|
action({
|
||||||
|
Loading…
Reference in New Issue
Block a user