let option = {
color: ['#FF8C00', '#00acea', '#1DE9B6'],
tooltip: {
trigger: 'item',
formatter: '{b}'
},
geo: {
map: '滁州',
// aspectScale: 1, //长宽比
// zoom: 1,
roam: true, //是否允许缩放
label: { //设置缩放后,发现地图区和县不显示了,只有鼠标划过才显示,因此设置为true
normal: {
show: true,
textStyle: {
color: '#d6fdef',
fontSize: 16
}
},
emphasis: {
textStyle: {
color: '#fff'
}
}
},
itemStyle: {
borderColor: 'rgba(147, 235, 248, 1)',
echarts地图放大拖拽
最新推荐文章于 2024-05-15 14:56:23 发布