]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/assets/iD/iD.js
Fix for empty array when querying for local community geometries
[rails.git] / vendor / assets / iD / iD.js
index 32f5a40da3b995b3db01f6d2e76db648c346bfa8..87615260a4b338e5bdf7f5c813f75c99d8f5ce72 100644 (file)
 
 
           // 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.