| | |
| | | import { Factor } from "./Factor"; |
| | | import calculate from "@/utils/map/calculate"; |
| | | import { Factor } from './Factor'; |
| | | import calculate from '@/utils/map/calculate'; |
| | | |
| | | /** |
| | | * |
| | |
| | | }] |
| | | */ |
| | | setData: function (dataList, drawMode, callback) { |
| | | if (dataList.length == 0) { |
| | | return; |
| | | } |
| | | this.clearData(); |
| | | |
| | | dataList.forEach((d) => { |
| | |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | this.convertGPS(this.lnglats_GPS, callback); |
| | | }, |
| | | |
| | | // 新增一个新数据 |
| | | addData: function (dataList, drawMode, callback) { |
| | | if (dataList.length == 0) { |
| | | return; |
| | | } |
| | | |
| | | var newGps = []; |
| | | dataList.forEach((data) => { |
| | | this.times.push(data.time); |
| | |
| | | // 获取数据长度 |
| | | length: function () { |
| | | return this.lnglats_GD.length; |
| | | }, |
| | | } |
| | | }; |
| | | |
| | | export { FactorDatas }; |