如果,试过了各种办法还是细细的一根线。
type: ‘map’就能把线加粗,谁有好的办法。
myChart.setOption({
tooltip: {
formatter: '{b}'
},
series: [{
data:[],
type: 'map3d',
mapType: 'world',
hoverable: false,
clickable: false,
roam: {
focus: 'China',
autoRotate: false
},
baseLayer: {
backgroundColor: '',
backgroundImage: 'bd/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.23,23.16]
}]
},
markLine : {
smooth:true,
effect : {
show: true
},
itemStyle : {
borderWidth: 100,
normal: {
borderWidth:100,
width:10,
color: 'yellow',
lineStyle: {
type: 'solid',
width: 100,
borderWidth: 100,
shadowBlur: 100
}
}
},
data : [ [ {
geoCoord : [116.46,39.92]
}, {
geoCoord : [113.23,23.16]
} ] ]
}
}]
});
type: ‘map’就能把线加粗,谁有好的办法。
myChart.setOption({
tooltip: {
formatter: '{b}'
},
series: [{
data:[],
type: 'map3d',
mapType: 'world',
hoverable: false,
clickable: false,
roam: {
focus: 'China',
autoRotate: false
},
baseLayer: {
backgroundColor: '',
backgroundImage: 'bd/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.23,23.16]
}]
},
markLine : {
smooth:true,
effect : {
show: true
},
itemStyle : {
borderWidth: 100,
normal: {
borderWidth:100,
width:10,
color: 'yellow',
lineStyle: {
type: 'solid',
width: 100,
borderWidth: 100,
shadowBlur: 100
}
}
},
data : [ [ {
geoCoord : [116.46,39.92]
}, {
geoCoord : [113.23,23.16]
} ] ]
}
}]
});









