mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
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:
@@ -210,7 +210,7 @@ iD.Connection = function(useHttps) {
|
|||||||
tag: _.map(tags, function(value, key) {
|
tag: _.map(tags, function(value, key) {
|
||||||
return { '@k': key, '@v': value };
|
return { '@k': key, '@v': value };
|
||||||
}),
|
}),
|
||||||
'@version': 0.3,
|
'@version': 0.6,
|
||||||
'@generator': 'iD'
|
'@generator': 'iD'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -240,7 +240,7 @@ iD.Connection = function(useHttps) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
osmChange: {
|
osmChange: {
|
||||||
'@version': 0.3,
|
'@version': 0.6,
|
||||||
'@generator': 'iD',
|
'@generator': 'iD',
|
||||||
'create': nest(changes.created.map(rep), ['node', 'way', 'relation']),
|
'create': nest(changes.created.map(rep), ['node', 'way', 'relation']),
|
||||||
'modify': nest(changes.modified.map(rep), ['node', 'way', 'relation']),
|
'modify': nest(changes.modified.map(rep), ['node', 'way', 'relation']),
|
||||||
|
|||||||
Reference in New Issue
Block a user