一开始根据地图值区间,来设置不同颜色区域
后面需要使用飞线,但是飞线颜色不显示
解决方法
visualMap: {
show: false,
type: "piecewise",
top: 50,
right: 15,
seriesIndex: 0,
pieces: [
{ min: 3, max: 4, color: "#ac4b42" },
{ min: 2, max: 3, color: "#a67027" },
{ min: 1, max: 2, color: "#3d8d61" },
],
},
{
type: "lines",
coordinateSystem: "geo",
zlevel: 15,
effect: {
show: true,
period: 3,
delay: function() {
return Math.ceil(Math.random() * 1000);
},
trailLength: 0.3,
symbol: 'arrow',
color: '#fff791',
symbolSize: 6,
},
lineStyle: {
normal: {
width: 1,
opacity: 0.1,
curveness: 0.3,
color: '#C2E9E7',
type: 'solid',
},
},
data: this.inline,
},
|