mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 11:16:36 +02:00
Exclude current entity's value from address nearby values lookup
re: https://github.com/openstreetmap/iD/issues/5887#issuecomment-463385328
This commit is contained in:
@@ -96,7 +96,7 @@ export function uiFieldAddress(field, context) {
|
||||
var box = geoExtent(l).padByMeters(200);
|
||||
|
||||
var results = context.intersects(box)
|
||||
.filter(function hasTag(d) { return d.tags[key]; })
|
||||
.filter(function hasTag(d) { return d.id !== _entity.id && d.tags[key]; })
|
||||
.map(function(d) {
|
||||
return {
|
||||
title: d.tags[key],
|
||||
|
||||
Reference in New Issue
Block a user