Fix for empty array when querying for local community geometries
This commit is contained in:
parent
4399cc793f
commit
30424e89d2
3 changed files with 135 additions and 14 deletions
2
vendor/assets/iD/iD.js
vendored
2
vendor/assets/iD/iD.js
vendored
|
@ -69210,7 +69210,7 @@
|
|||
|
||||
|
||||
// Gather community polygon IDs intersecting the map..
|
||||
var matchFeatures = data.community.query(context.map().center(), true);
|
||||
var matchFeatures = data.community.query(context.map().center(), true) || [];
|
||||
var matchIDs = matchFeatures.map(function(feature) { return feature.id; });
|
||||
|
||||
// Gather community resources that are either global or match a polygon.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue