diff options
author | Silvio <silvio@socioambiental.org> | 2015-07-06 19:04:26 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2015-07-06 19:04:26 -0300 |
commit | 3b6e282ccaf48c7db5d06049324fc0a08b780d21 (patch) | |
tree | 1425e67e13947fdd093290156c7df2e0beab4caf | |
parent | 0ccce2f27495396bcb838f003c47f238142f0311 (diff) | |
download | gmap_arcgis_js-3b6e282ccaf48c7db5d06049324fc0a08b780d21.tar.gz gmap_arcgis_js-3b6e282ccaf48c7db5d06049324fc0a08b780d21.tar.bz2 |
Use correct marker entry at toggleMarkers
-rw-r--r-- | gmap_arcgis.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 80494c4..26a3b79 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -470,11 +470,11 @@ function gmapArcgis(config) { // Hide/show each marker for (i=0; i < markers.length; i++) { - if (markers[i].getVisible()) { + if (markers[i].marker.getVisible()) { isVisible = true; - markers[i].setVisible(false); + markers[i].marker.setVisible(false); } else { - markers[i].setVisible(true); + markers[i].marker.setVisible(true); } } |