通过aspectScale设置地图宽高比例
aspectScale
geo: [
{
map: 'js',
roam: false, //是否允许缩放
zoom: 1.1, //默认显示级别
aspectScale: 0.75,
scaleLimit: {
min: 0,
max: 3
}, //缩放级别
itemStyle: {
normal: {
areaColor: '#0e349a',
shadowColor: '#0a399b',
shadowBlur: 1,
shadowOffsetX: 0,
shadowOffsetY: 10,
}
},
}, {
map: 'js',
roam: false, //是否允许缩放
zoom: 1.13, //默认显示级别
scaleLimit: {
min: 0,
max: 3
}, //缩放级别
itemStyle: {
normal: {
areaColor: '#0c4794',
shadowColor: '#02085a',
shadowBlur: 1,
shadowOffsetX: 0,
shadowOffsetY: 10,
}
},
},
],