Fix for empty array when querying for local community geometries

This commit is contained in:
Bryan Housel 2018-04-16 15:49:14 -04:00
parent 4399cc793f
commit 30424e89d2
3 changed files with 135 additions and 14 deletions

View file

@ -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.