From efd6b30e1b41024ee4b7c0f6cf69a49f87f5da69 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 12 Jun 2023 00:41:51 +0200 Subject: [PATCH] Fix: uploads were broken --- Logic/Osm/OsmObject.ts | 48 +++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) 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 + - " \n" + ` +${nds}${tags} +` ) }