From 3b6e282ccaf48c7db5d06049324fc0a08b780d21 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 6 Jul 2015 19:04:26 -0300 Subject: Use correct marker entry at toggleMarkers --- gmap_arcgis.js | 6 +++--- 1 file 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); } } -- cgit v1.2.3