mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 03:41:33 +00:00
Use osmId/Entity.id.toOSM
This commit is contained in:
@@ -26,7 +26,7 @@ _.extend(iD.Node.prototype, {
|
||||
asJXON: function(changeset_id) {
|
||||
var r = {
|
||||
node: {
|
||||
'@id': this.id.replace('n', ''),
|
||||
'@id': this.osmId(),
|
||||
'@lon': this.loc[0],
|
||||
'@lat': this.loc[1],
|
||||
'@version': (this.version || 0),
|
||||
|
||||
@@ -88,10 +88,10 @@ _.extend(iD.Way.prototype, {
|
||||
asJXON: function(changeset_id) {
|
||||
var r = {
|
||||
way: {
|
||||
'@id': this.id.replace('w', ''),
|
||||
'@id': this.osmId(),
|
||||
'@version': this.version || 0,
|
||||
nd: _.map(this.nodes, function(id) {
|
||||
return { keyAttributes: { ref: id.replace('n', '') } };
|
||||
return { keyAttributes: { ref: iD.Entity.id.toOSM(id) } };
|
||||
}),
|
||||
tag: _.map(this.tags, function(v, k) {
|
||||
return { keyAttributes: { k: k, v: v } };
|
||||
|
||||
Reference in New Issue
Block a user