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 9827278..7d89422 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -475,11 +475,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); } } |