forked from github/dataease
Merge pull request #5376 from dataease/pr@dev@fix_flow_map_switch
fix(流向地图): 流向地图切换异常
This commit is contained in:
commit
c22dd71823
@ -14,7 +14,12 @@ export function baseFlowMapOption(chartDom, chartId, chart, action) {
|
||||
const mapStyle = `amap://styles/${color.mapStyle ? color.mapStyle : 'normal'}`
|
||||
const lang = getLanguage().includes('zh') ? 'zh' : 'en'
|
||||
let init = false
|
||||
if (!chartDom) {
|
||||
if (!chartDom?.map) {
|
||||
try {
|
||||
chartDom.destroy()
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
chartDom = new Scene({
|
||||
id: chartId,
|
||||
map: new GaodeMap({
|
||||
|
Loading…
Reference in New Issue
Block a user