From 3bcf7d30f78f88f701cf70ced77917534a3f613a Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 27 Nov 2015 18:02:52 -0200 Subject: Abort if empty resultset on addMarkers --- gmap_arcgis.js | 6 ++++++ 1 file changed, 6 insertions(+) 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]; -- cgit v1.2.3