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).
This commit is contained in:
Martin Raifer
2015-09-05 15:35:43 +02:00
parent 90bc645e44
commit dd32ec39b3

View File

@@ -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']),