| | |
| | | this.initMapLine() |
| | | }, |
| | | |
| | | initMapLine (cb = () => { }) { |
| | | initMapLine (infos = {}, cb = () => { }) { |
| | | let currentLine = this.wayLineList.find(item => item.wayline_id == this.form.file_id) |
| | | |
| | | if (!currentLine) return |
| | |
| | | this.$refs.MapContainer.initAddEntity('polyline', { |
| | | url: `${import.meta.env.VITE_APP_AIRLINE_URL + currentLine.object_key}?_t=${new Date().getTime()}`, |
| | | type: currentLine.wayline_type, |
| | | cb |
| | | cb, |
| | | infos |
| | | }) |
| | | } |
| | | }) |
| | |
| | | |
| | | that.device_sns = [] |
| | | |
| | | this.initMapLine(async (polygon) => { |
| | | this.initMapLine({}, async (polygon) => { |
| | | const currentLine = that.wayLineList.find(item => item.wayline_id === waylineId) |
| | | |
| | | //按照航线来 |