fix: 修复符号地图主题修改无效

This commit is contained in:
wisonic-s 2023-11-07 14:06:33 +08:00
parent 57ffac98e1
commit 0f4e4c33a6

View File

@ -550,14 +550,17 @@ export default {
},
getMapTheme(chart) {
let theme = 'light'
let theme = 'normal'
if (chart.customStyle) {
const customStyle = JSON.parse(chart.customStyle)
if (customStyle.baseMapStyle && customStyle.baseMapStyle.baseMapTheme) {
theme = customStyle.baseMapStyle.baseMapTheme
}
}
return theme
if (theme === 'light') {
theme = 'normal'
}
return `amap://styles/${theme}`
},