中国地图边境加阴影echarts 地图配置项内容和展示

做项目要用到这个效果,就网上找到了两个,居然还要收费,我想说句MMP,然后自己就回来鼓捣了一会儿,终于搞定,大家拿走不谢~

配置项如下
      option = {
    backgroundColor: '#000',//画布背景颜色
    geo: {
        show: true,
        map: 'china',
        label: {
            normal: {
                show: false
            },
            emphasis: {
                show: false,
            }
        },
        roam: false,
        itemStyle: {
            normal: {
                areaColor: '#031525',
                borderWidth: 0,
                shadowColor: 'rgba(255,0,0, 1)',
                shadowBlur: 15
            }
        }
    },
    series: [
    {
        type: 'map',
        map: 'china',
        geoIndex: 1,
        aspectScale: 0.75, //长宽比
        showLegendSymbol: false, // 存在legend时显示
        label: {
            normal: {
                show: false,
            },
            emphasis: {
                show: false,
                textStyle: {
                    color: '#fff'
                }
            }
        },
        roam: false,
        itemStyle: {
            normal: {
                areaColor: '#031525',
                borderColor: '#3B5077',
                borderWidth: 1
            },
            emphasis: {
                areaColor: '#2B91B7'
            }
        },
    }]
}
    
截图如下