Fix bug which blocked uploads

This commit is contained in:
Pieter Vander Vennet 2021-05-09 18:56:51 +02:00
parent bcf71a601e
commit 2c677ee8a2
4 changed files with 13 additions and 1 deletions

View file

@ -149,6 +149,9 @@ export abstract class OsmObject {
TagsXML(): string {
let tags = "";
for (const key in this.tags) {
if(key.startsWith("_")){
continue;
}
const v = this.tags[key];
if (v !== "") {
tags += ' <tag k="' + Utils.EncodeXmlValue(key) + '" v="' + Utils.EncodeXmlValue(this.tags[key]) + '"/>\n'