mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix(图表): 修复天地图导出图片,无法导出内容图层的问题
This commit is contained in:
committed by
jianneng-fit2cloud
parent
ac01feb1a7
commit
c2100a0d6c
@@ -712,9 +712,19 @@ const preparePicture = id => {
|
||||
})
|
||||
scene.addControl(zoom)
|
||||
zoom.hide()
|
||||
zoom.getImage().then(res => {
|
||||
// 天地图
|
||||
const getTmapImage = async () => {
|
||||
const res = await scene.exportPng('png')
|
||||
canvas2Picture(res, true)
|
||||
})
|
||||
}
|
||||
zoom
|
||||
.getImage()
|
||||
.then(res => {
|
||||
canvas2Picture(res, true)
|
||||
})
|
||||
.catch(() => {
|
||||
getTmapImage()
|
||||
})
|
||||
}
|
||||
}
|
||||
const unPreparePicture = id => {
|
||||
|
||||
Reference in New Issue
Block a user