aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index e27808d..2127e4e 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -623,7 +623,7 @@ function gmapArcgis(config) {
// First find out in which layers there are results
for (var n in layers) {
- var layer = n;
+ var layer = layers[n];
var args = jQuery.extend(true, {}, params);
var url = URL_ARCGIS_TIS + '/' + layer + '/query?where=' + where + '&f=pjson';