I’m having a problem with showing my markers. I successfully hide them in an array but I’m having problems on showing them back here is my code.
function filtermark(){
for (var i = 0; i < markersArray.length; i++ ) {
markersArray[i].setMap(null);
}
}
function showmark(){
for (var i = 0; i < markersArray.length; i++ ) {
markersArray[i].setMap(map);
}
}
Looking at the code you posted in your earlier question, your map variable is local to your load function. It probably needs to be global.