diff --git a/Logic/Osm/OsmObject.ts b/Logic/Osm/OsmObject.ts
index 71bddf53a..13327ca03 100644
--- a/Logic/Osm/OsmObject.ts
+++ b/Logic/Osm/OsmObject.ts
@@ -198,23 +198,25 @@ export class OsmNode extends OsmObject {
this.LoadData(extraData)
}
+
+ /**
+ *
+ * const obj = new OsmNode(1234)
+ * obj.tags.key = "value"
+ * obj.lat = 1
+ * obj.lon = 2
+ * obj.ChangesetXML("123").trim() // => '\n \n '
+ *
+ * @param changesetId
+ * @param header
+ * @constructor
+ */
ChangesetXML(changesetId: string, header?: string): string {
let tags = this.TagsXML()
-
return (
- ' \n' +
- tags +
- " \n"
+ `
+${tags}
+`
)
}
@@ -255,6 +257,11 @@ export class OsmWay extends OsmObject {
return [this.lat, this.lon]
}
+ /**
+ * const obj = new OsmWay(1234)
+ * obj.tags.key = "value"
+ * obj.ChangesetXML("123").trim() // => '\n \n '
+ */
ChangesetXML(changesetId: string, header?: string): string {
let tags = this.TagsXML()
let nds = ""
@@ -263,16 +270,9 @@ export class OsmWay extends OsmObject {
}
return (
- ' \n"
+ `
+${nds}${tags}
+`
)
}