mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +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) {
|
||||
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']),
|
||||
|
||||
Reference in New Issue
Block a user