官方文档说这个选中模式默认是关闭的,实际是开着的,写完点击事件之后记得将selectedMode设置为false
设置默认选中,
series: [{
name: 'jc矩阵',
type: 'map',
mapType: 'tyjz',
label: {
normal: {
textStyle: {
fontSize: 15,
fontWeight: 'bold',
color: '#fff',
},
},
},
aspectScale: 0.75,
zoom: 1.2,
itemStyle: {
normal: {
label: {
show: true
},
color: '#ffffff',
borderWidth: 4,
areaColor: 'rgba(0, 120, 255, 0.1)',
borderColor: 'rgba(0, 241, 255, 1)', //线
shadowColor: 'rgba(0, 120, 255, 0.5