Merge pull request #6561 from dataease/pr@dev@fix_symbol_map_theme

fix: 修复符号地图主题修改无效
This commit is contained in:
wisonic-s 2023-11-07 14:09:25 +08:00 committed by GitHub
commit a54c753836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}`
},