First version of the new importer (stiil needs to convert non timed tracks into routes).

This commit is contained in:
vdv committed 2022-12-13 12:41:13 +01:00
1 parent 102a2feddc
commit 90fb0e6944
4 files changed
+194 -138

No files matched your search

+4 -4
View File
@@ -7,7 +7,7 @@ export default class Metadata {
constructor(object) {
this.name = object.name;
this.desc = object.desc;
this.time = object.time ? new Date(object.time) : new Date();
this.time = object.time ? new Date(object.time) : undefined;
this.keywords = object.keywords;
this.extensions = object.extensions;
if (object.author) {
@@ -17,7 +17,7 @@ export default class Metadata {
if (!Array.isArray(object.link)) {
object.link = [object.link];
}
this.link = object.link.map(l => new Link(l));
this.link = object.link.map((l) => new Link(l));
}
if (object.bounds) {
this.bounds = new Bounds(object.bounds);
@@ -25,5 +25,5 @@ export default class Metadata {
if (object.copyright) {
this.copyright = new Copyright(object.copyright);
}
}
}
}
}