You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

58 lines
1.5 KiB

var option = {
series: [
{
type: 'map3D',
name: '山西',
selectedMode: 'single', //地图高亮单选
boxDepth: 230, //地图倾斜度
regionHeight: 6, //地图高度
map: '山西',
viewControl: {
distance: 1000, //地图视角 控制初始大小
rotateSensitivity: 1, //禁止旋转
zoomSensitivity: 1, //禁止缩放
},
label: {
show: true, //是否显示市
textStyle: {
color: '#c8ced5', //文字颜色
fontSize: 12, //文字大小
backgroundColor: 'rgba(0,0,0,0)', //透明度0清空文字背景
},
},
itemStyle: {
color: 'rgb(18,57,90)', //地图颜色
borderWidth: 1, //分界线wdith
borderColor: '#459bca', //分界线颜色
},
emphasis: {
label: {
show: true, //是否显示高亮
textStyle: { color: '#fff' }, //高亮文字颜色
},
itemStyle: { color: '#A7820D' }, //地图高亮颜色
},
data: [
{
name: '运城市',
value: 0,
label: { textStyle: { color: '#fff' } }, //高亮文字颜色
itemStyle: { color: '#A7820D' }, //地图高亮颜色
},
],
//高亮市区 echarts bug 不生效
// regions: [
// {
// name: '运城',
// itemStyle: {
// borderWidth: 3,
// areaColor: 'red',
// color: 'red',
// },
// },
// ],
},
],
};
export default option;