下载地址:https://github.com/lixinGiting/Echart-X-3D-Demo
myChart.setOption({
tooltip: {
formatter: '{b}'
},
series: [{
data: [],
type: 'map3d',
mapType: 'world',
hoverable: false,
clickable: false,
roam: {
focus: 'China',
autoRotate: true
},
baseLayer: {
backgroundColor: '',
backgroundImage: 'asset/earth.jpg',
quality: 'high',
},
itemStyle: {
normal: {
label: {
show: true
},
borderWidth: 1,
borderColor: 'yellow',
areaStyle: {
color: 'rgba(0, 0, 0, 0)'
}
}
},
markPoint: {
large: true,
symbolSize: 20,
effect: {
show: true,
shadowBlur: 0.4
},
data: [{
geoCoord: [116.46, 39.92]
}, {
geoCoord: [113.51,23.22]
}, {
geoCoord: [-122.98,49.28]
}, {
geoCoord: [9.16,45.51]
}]
},
markLine: {
smooth: true,
effect: {
show: true
},
itemStyle: {
borderWidth: 100,
normal: {
borderWidth: 100,
width: 10,
color: 'red',
lineStyle: {
type: 'solid',
width: 100,
borderWidth: 100,
shadowBlur: 100
}
}
},
data: [[
{geoCoord: [116.46, 39.92]},
{geoCoord: [113.51,23.22]}
],
[
{geoCoord: [-122.98,49.28]},
{geoCoord: [9.16,45.51]}
]]
},
}]
});
效果图