echarts地图点击后不要显示地名

echarts yekong 68℃

echarts地图渲染后,当我们点击地图时,会显示地名,这里我们并不想显示地名,那么要如何处理呢?

echarts地图点击后不要显示地名

通过select.label.show设置为false就可以了。

select: {
  label: {
    show: false,
    color: '#fff',
    normal: {
      show: true,
      textStyle: {
        fontSize: 14,
        fontWeight: 400,
        color: '#fff'
      }
    },
    emphasis: {
      textStyle: {
        fontSize: 14,
        fontWeight: 400,
        color: '#fff'
      }
    }
  },
  itemStyle: {
    areaColor: '#416ef8',
    borderWidth: 0,
  }
}, 
喜欢 (0)