mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-30 03:39:36 +02:00
+3
-5
@@ -1,5 +1,3 @@
|
||||
import _map from 'lodash-es/map';
|
||||
|
||||
import { osmEntity } from './entity';
|
||||
import { geoAngle, geoExtent } from '../geo';
|
||||
import { utilArrayUniq } from '../util';
|
||||
@@ -221,9 +219,9 @@ Object.assign(osmNode.prototype, {
|
||||
'@lon': this.loc[0],
|
||||
'@lat': this.loc[1],
|
||||
'@version': (this.version || 0),
|
||||
tag: _map(this.tags, function(v, k) {
|
||||
return { keyAttributes: { k: k, v: v } };
|
||||
})
|
||||
tag: Object.keys(this.tags).map(function(k) {
|
||||
return { keyAttributes: { k: k, v: this.tags[k] } };
|
||||
}, this)
|
||||
}
|
||||
};
|
||||
if (changeset_id) r.node['@changeset'] = changeset_id;
|
||||
|
||||
Reference in New Issue
Block a user