()
| 922 | }, |
| 923 | methods: { |
| 924 | drawLineLayer () { |
| 925 | this.lineLayer = new L7.LineLayer({ |
| 926 | blend: 'normal' |
| 927 | }).source(this.data, { |
| 928 | parser: { |
| 929 | type: 'csv', |
| 930 | x: 'lng1', |
| 931 | y: 'lat1', |
| 932 | x1: 'lng2', |
| 933 | y1: 'lat2' |
| 934 | } |
| 935 | }).shape(this.option.selectType.default).size(0.8).color('rgb(13,64,140)').animate({ |
| 936 | enable: this.option.enable, |
| 937 | interval: this.option.interval, |
| 938 | duration: this.option.duration, |
| 939 | trailLength: this.option.trailLength |
| 940 | }).style({ |
| 941 | opacity: this.option.opacity |
| 942 | }) |
| 943 | this.scene.addLayer(this.lineLayer) |
| 944 | }, |
| 945 | async initData () { |
| 946 | if (this.option.data.length === 0) { |
| 947 | const defaultData = await axios.get('./excel/flyLine.text') |
nothing calls this directly
no outgoing calls
no test coverage detected