Merge pull request #6561 from dataease/pr@dev@fix_symbol_map_theme
fix: 修复符号地图主题修改无效
This commit is contained in:
commit
a54c753836
@ -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}`
|
||||
},
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user