From dd32ec39b3fabd2b9325370303e80513627a892e Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Sat, 5 Sep 2015 15:35:43 +0200 Subject: [PATCH] Correct API version in osmChange and changeset XML The version attribute of the osmChange and changeset XML should read `0.6` (the version of the OSM API the data is created for), even though the attribute is actually ignored by the OSM API (see http://wiki.openstreetmap.org/wiki/OsmChange). --- js/id/core/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/core/connection.js b/js/id/core/connection.js index 6944ed73c..985d9e019 100644 --- a/js/id/core/connection.js +++ b/js/id/core/connection.js @@ -210,7 +210,7 @@ iD.Connection = function(useHttps) { tag: _.map(tags, function(value, key) { return { '@k': key, '@v': value }; }), - '@version': 0.3, + '@version': 0.6, '@generator': 'iD' } } @@ -240,7 +240,7 @@ iD.Connection = function(useHttps) { return { osmChange: { - '@version': 0.3, + '@version': 0.6, '@generator': 'iD', 'create': nest(changes.created.map(rep), ['node', 'way', 'relation']), 'modify': nest(changes.modified.map(rep), ['node', 'way', 'relation']),