aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 2057506..5d0e8a8 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -140,7 +140,7 @@ function gmapArcgis(config) {
var count = 0;
- for (value in object) {
+ for (var value in object) {
count++;
}
@@ -292,7 +292,7 @@ function gmapArcgis(config) {
this.identifyPolygon(this.config['layers'][element]);
}
else if (this.config['layers'][element].overlay[0] != undefined) {
- for (i=0; i < this.config['layers'][element].overlay.length; i++) {
+ for (var i=0; i < this.config['layers'][element].overlay.length; i++) {
this.config['layers'][element].overlay[i].setVisible(true);
}
}
@@ -736,12 +736,12 @@ function gmapArcgis(config) {
// Close all registered infoWindows
closeInfoWindows: function() {
- overlays = [ 'layers', 'markers' ];
+ var overlays = [ 'layers', 'markers' ];
- for (i in overlays) {
+ for (var i in overlays) {
var overlay = this.config[overlays[i]];
- for (element in overlay) {
+ for (var element in overlay) {
if (overlay[element].infowindow != undefined) {
this.config[overlays[i]][element].infowindow.close();
}