echarts 地图板块点击着色,移除着色
//选择省份变色
showProvince(name) {
this.oldName = name;
this.mapChart && this.mapChart.dispatchAction({
type: 'geoSelect',
name
})
},
//移除上次点击变色
hideProvince() {
this.mapChart && this.mapChart.dispatchAction({
type: 'geoUnSelect',
name: this.oldName
})
},