效果图:
代码:
series: [{type: 'map',map: 'china',zoom: 1.2, // 地图放大aspectScale: 0.8, //地图宽高比例roam: true, //地图缩放、平移// 滚轮缩放的极限控制scaleLimit: {min: 0.5, //缩放最小大小max: 6, //缩放最大大小},itemStyle: {normal: {label: {show: true}},emphasis: {label: { // 悬浮时地区名称放大show: true,fontSize: 20},borderWidth: 2, // 悬停时的边框宽度shadowBlur: 20,shadowColor: "rgba(0, 0, 0, 0.5)",borderColor: "#fff",areaColor: "#7cf1de",}},label: {normal: {textStyle: {fontSize: 6,// fontWeight: 'bold',color: 'black'}}},}]},