echarts鼠标移入地图高亮及样式修改

        series: [
          {
            type: "map",
            mapType: "hz",
            silent: false, //鼠标移入区域变色 如果设置为true则无法高亮
            // 鼠标移入高亮区域属性
            emphasis: {
            borderWidth: 0,
            borderColor: "transparent",
            //高亮区域颜色
            areaColor: "red",
                      },
          }
               ]
//做地图下钻 获取点击区域名称时 需要设置silent为false才能获取到params中的name
      chart.on("click", function (params) {
        console.log(params.name);
        that.$emit("place", params.name)
      });

你可能感兴趣的:(echarts(大屏可视化),echarts)