mirror of
https://github.com/dataease/dataease.git
synced 2026-06-09 21:27:21 +08:00
fix(地图): 优化在线地图缩放控制逻辑,调整隐藏条件
This commit is contained in:
committed by
jianneng-fit2cloud
parent
0954f172c1
commit
2fc1d32f72
@@ -1266,8 +1266,9 @@ export function configL7Zoom(
|
||||
if (zoomOption) {
|
||||
scene.removeControl(zoomOption)
|
||||
}
|
||||
onlineMapStatusOption(chart, mapKey?.mapType, scene, true)
|
||||
if (shouldHideZoom(basicStyle)) {
|
||||
const hideZoom = shouldHideZoom(basicStyle)
|
||||
onlineMapStatusOption(chart, mapKey?.mapType, scene, !hideZoom)
|
||||
if (hideZoom) {
|
||||
return
|
||||
}
|
||||
if (!scene?.getControlByName('zoom')) {
|
||||
|
||||
Reference in New Issue
Block a user