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:
Bryan Housel
2019-02-14 00:27:32 -05:00
parent 9e2acd836c
commit 6525bbf154
+1 -1
View File
@@ -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],