Merge pull request #3504 from dataease/pr@dev@fix_map_label

fix(地图): 未开启标签但开启了提示二者会被同时触发
This commit is contained in:
王嘉豪 2022-10-27 20:59:46 +08:00 committed by GitHub
commit 0480a98d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -889,7 +889,9 @@ export const BASE_MAP = {
},
emphasis: {
label: {
show: false
}
}
}
}

View File

@ -95,6 +95,7 @@ export function baseMapOption(chart_option, chart, themeStyle, curAreaCode) {
chart_option.series[0].label.shadowBlur = 2
chart_option.series[0].label.showdowColor = customAttr.label.shadowColor
}
chart_option.series[0].itemStyle.emphasis.label.show = customAttr.label.show
}
const valueArr = chart.data.series[0].data
// visualMap