diff options
-rw-r--r-- | gmap_arcgis.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 9e59f15..e695e9c 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -365,6 +365,12 @@ function gmapArcgis(config) { function processResultSet(fset) { var fs = fset.features; var title; + + // Abort if empty resultset + if (fs == undefined) { + return; + } + for (var i = 0, c = fs.length; i < c; i++) { var feature = fs[i]; |