mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 15:08:23 +02:00
Treat entities on addr:interpolation lines as points, not vertices
(closes #3241)
This commit is contained in:
@@ -51,6 +51,15 @@ _.extend(Node.prototype, {
|
||||
});
|
||||
},
|
||||
|
||||
isOnAddressLine: function(resolver) {
|
||||
return resolver.transient(this, 'isOnAddressLine', function() {
|
||||
return resolver.parentWays(this).filter(function(parent) {
|
||||
return parent.tags.hasOwnProperty('addr:interpolation') &&
|
||||
parent.geometry(resolver) === 'line';
|
||||
}).length > 0;
|
||||
});
|
||||
},
|
||||
|
||||
asJXON: function(changeset_id) {
|
||||
var r = {
|
||||
node: {
|
||||
|
||||
Reference in New Issue
Block a user