|
|
@ -188,7 +188,7 @@ export default {
|
|
|
|
type: "lines",
|
|
|
|
type: "lines",
|
|
|
|
zlevel: 1,
|
|
|
|
zlevel: 1,
|
|
|
|
effect: {
|
|
|
|
effect: {
|
|
|
|
show: true,
|
|
|
|
show: false,
|
|
|
|
period: 6,
|
|
|
|
period: 6,
|
|
|
|
trailLength: 0.7,
|
|
|
|
trailLength: 0.7,
|
|
|
|
color: "#fff",
|
|
|
|
color: "#fff",
|
|
|
@ -210,14 +210,14 @@ export default {
|
|
|
|
symbolSize: 10,
|
|
|
|
symbolSize: 10,
|
|
|
|
effect: {
|
|
|
|
effect: {
|
|
|
|
show: true,
|
|
|
|
show: true,
|
|
|
|
period: 6,
|
|
|
|
period: 4,
|
|
|
|
trailLength: 0,
|
|
|
|
trailLength: 0,
|
|
|
|
symbol: planePath,
|
|
|
|
symbol: 'arrow',
|
|
|
|
symbolSize: 15
|
|
|
|
symbolSize: 5
|
|
|
|
},
|
|
|
|
},
|
|
|
|
lineStyle: {
|
|
|
|
lineStyle: {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
// 小飞机颜色+ 线条
|
|
|
|
// 颜色+ 线条
|
|
|
|
color: '#ffa022',
|
|
|
|
color: '#ffa022',
|
|
|
|
width: 1,
|
|
|
|
width: 1,
|
|
|
|
opacity: 0.4,
|
|
|
|
opacity: 0.4,
|
|
|
@ -313,7 +313,9 @@ export default {
|
|
|
|
editorOptions() {
|
|
|
|
editorOptions() {
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsText();
|
|
|
|
this.setOptionsText();
|
|
|
|
|
|
|
|
this.setOptionsSymbol();
|
|
|
|
this.setOptionsPoint();
|
|
|
|
this.setOptionsPoint();
|
|
|
|
|
|
|
|
this.setOptionsLine();
|
|
|
|
this.setOptionsColor();
|
|
|
|
this.setOptionsColor();
|
|
|
|
this.setOptionsData();
|
|
|
|
this.setOptionsData();
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -350,7 +352,39 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lable["normal"] = normal;
|
|
|
|
lable["normal"] = normal;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 地图点设置
|
|
|
|
// 图标设置
|
|
|
|
|
|
|
|
setOptionsSymbol(){
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
const series = this.options.series[1];
|
|
|
|
|
|
|
|
const effect = {
|
|
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
|
|
period: this.setPeriod(optionsSetup),
|
|
|
|
|
|
|
|
trailLength: 0,
|
|
|
|
|
|
|
|
symbol: this.setSymbol(optionsSetup),
|
|
|
|
|
|
|
|
symbolSize: optionsSetup.symbolSize,
|
|
|
|
|
|
|
|
color: optionsSetup.symbolColor,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
series['effect'] = effect;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
setSymbol(optionsSetup) {
|
|
|
|
|
|
|
|
let symbol;
|
|
|
|
|
|
|
|
if (optionsSetup.symbol == 'plane') {
|
|
|
|
|
|
|
|
symbol = planePath;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
symbol = "arrow";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return symbol;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
setPeriod(optionsSetup){
|
|
|
|
|
|
|
|
let period;
|
|
|
|
|
|
|
|
if (optionsSetup.symbol == 'plane') {
|
|
|
|
|
|
|
|
period = optionsSetup.symbolPeriod - 1;
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
period = optionsSetup.symbolPeriod;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return period;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 点设置
|
|
|
|
setOptionsPoint() {
|
|
|
|
setOptionsPoint() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const series = this.options.series[2];
|
|
|
|
const series = this.options.series[2];
|
|
|
@ -362,6 +396,21 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
series["itemStyle"] = itemStyle;
|
|
|
|
series["itemStyle"] = itemStyle;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 线设置
|
|
|
|
|
|
|
|
setOptionsLine() {
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
const series = this.options.series[1];
|
|
|
|
|
|
|
|
const lineStyle = {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
|
|
|
|
// 线条颜色
|
|
|
|
|
|
|
|
color: optionsSetup.lineColor,
|
|
|
|
|
|
|
|
width: optionsSetup.lineWidth,
|
|
|
|
|
|
|
|
opacity: 0.4,
|
|
|
|
|
|
|
|
curveness: 0.2
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
series['lineStyle'] = lineStyle;
|
|
|
|
|
|
|
|
},
|
|
|
|
// 地图颜色设置
|
|
|
|
// 地图颜色设置
|
|
|
|
setOptionsColor() {
|
|
|
|
setOptionsColor() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|