|
|
|
@ -124,7 +124,7 @@ import {conversionCity} from '@/utils/china';
|
|
|
|
|
韶关市: [113.7964, 24.7028]
|
|
|
|
|
};*/
|
|
|
|
|
let geoCoordMap = conversionCity;
|
|
|
|
|
let pointSize = 3;
|
|
|
|
|
let pointLevel = 3;
|
|
|
|
|
let planePath =
|
|
|
|
|
"path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z";
|
|
|
|
|
export default {
|
|
|
|
@ -247,7 +247,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 点的大小
|
|
|
|
|
symbolSize: function (val) {
|
|
|
|
|
return val[2] / pointSize;
|
|
|
|
|
return val[2] / pointLevel;
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
@ -276,7 +276,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 点的大小
|
|
|
|
|
symbolSize: function (val) {
|
|
|
|
|
return val[2] / pointSize;
|
|
|
|
|
return val[2] / pointLevel;
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
normal: {
|
|
|
|
@ -344,12 +344,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
editorOptions() {
|
|
|
|
|
this.setOptionsTitle();
|
|
|
|
|
//this.setOptionsText();
|
|
|
|
|
this.setOptionsSymbol();
|
|
|
|
|
//this.setOptionsPoint();
|
|
|
|
|
this.setOptionsLine();
|
|
|
|
|
this.setOptionsSource();
|
|
|
|
|
this.setOptionsTarget();
|
|
|
|
|
this.setOptionsSymbol();
|
|
|
|
|
this.setOptionsLine();
|
|
|
|
|
this.setOptionsColor();
|
|
|
|
|
this.setOptionsData();
|
|
|
|
|
},
|
|
|
|
@ -389,7 +387,7 @@ export default {
|
|
|
|
|
color: optionsSetup.sourcePointColor,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
pointSize = optionsSetup.sourcePointSize;
|
|
|
|
|
pointLevel = optionsSetup.sourcePointLevel;
|
|
|
|
|
series.label.normal = normal;
|
|
|
|
|
series.itemStyle = itemStyle;
|
|
|
|
|
},
|
|
|
|
@ -409,24 +407,10 @@ export default {
|
|
|
|
|
color: optionsSetup.targetPointColor,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
pointSize = optionsSetup.targetPointSize;
|
|
|
|
|
pointLevel = optionsSetup.targetPointLevel;
|
|
|
|
|
series.label.normal = normal;
|
|
|
|
|
series.itemStyle = itemStyle;
|
|
|
|
|
},
|
|
|
|
|
// 地图字体设置
|
|
|
|
|
setOptionsText() {
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
const series = this.options.series;
|
|
|
|
|
const normal = {
|
|
|
|
|
show: true,
|
|
|
|
|
position: 'right',
|
|
|
|
|
color: optionsSetup.fontTextColor,
|
|
|
|
|
fontSize: optionsSetup.fontTextSize,
|
|
|
|
|
fontWeight: optionsSetup.fontTextWeight,
|
|
|
|
|
}
|
|
|
|
|
series[2].label["normal"] = normal;
|
|
|
|
|
series[3].label["normal"] = normal;
|
|
|
|
|
},
|
|
|
|
|
// 图标设置
|
|
|
|
|
setOptionsSymbol(){
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
@ -459,19 +443,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
return period;
|
|
|
|
|
},
|
|
|
|
|
// 点设置
|
|
|
|
|
setOptionsPoint() {
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
const series = this.options.series;
|
|
|
|
|
pointSize = optionsSetup.pointSize
|
|
|
|
|
const itemStyle = {
|
|
|
|
|
normal: {
|
|
|
|
|
color: optionsSetup.pointColor,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
series[2]["itemStyle"] = itemStyle;
|
|
|
|
|
series[3]["itemStyle"] = itemStyle;
|
|
|
|
|
},
|
|
|
|
|
// 线设置
|
|
|
|
|
setOptionsLine() {
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|