diff options
-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); } } |