中国地图等比还原南海版

image.png
$.getJSON(uploadedDataURL, function(geoJson) {
    echarts.registerMap('china1', geoJson);
    myChart.setOption(option = {
        backgroundColor: '#ccc',
        geo: {
            show: true,
            map: 'china1',
            label: {},
            roam: true,
            itemStyle: {
                normal: {
                    areaColor: '#031525',
                    borderColor: '#3B5077',
                    borderWidth: 1,
                    shadowBlur: 1
                },
                emphasis: {
                    areaColor: '#2B91B7'
                }
            }
        },
        series: [

            {
                type: 'map',
                map: 'china1',
                geoIndex: 0,
                aspectScale: 0.75,
                data: [

                ]
            }
        ]
    })
})

echart demo 地址

你可能感兴趣的:(中国地图等比还原南海版)