diff options
-rw-r--r-- | gmap_arcgis.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 24c2608..dc22f17 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -137,7 +137,7 @@ function gmapArcgis(config) { } // Callback only if layers is not empty - if (layers.toSource() !== "({})") { + if (Object.keys(layers).length > 0) { params.identify.callback(layers, params.infowindow, err); } } |