forked from github/dataease
Merge pull request #9052 from dataease/pr@dev-v2@fix_map_suspension
fix(图表): 修复地图关闭悬浮后未隐藏缩放按钮
This commit is contained in:
commit
dc890dda31
@ -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<PlotOptions>) {
|
||||
const options = plot.options
|
||||
if (options.zoom === false) {
|
||||
return
|
||||
}
|
||||
plot.once('loaded', () => {
|
||||
const zoomOptions = {
|
||||
initZoom: plot.scene.getZoom(),
|
||||
|
Loading…
Reference in New Issue
Block a user