First version of the new importer (stiil needs to convert non timed tracks into routes).
This commit is contained in:
1 parent
102a2feddc
commit
90fb0e6944
4 files changed
+194
-138
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user