Reset blinking marker in googlemap
I manage to blink my marker using this code
interval = setInterval(function() { toggleMarker() }, 500);
function toggleMarker() {
if (marker.getVisible()) {
marker.setVisible(false);
} else {
marker.setVisible(true);
}
}
from here How to make marker image in google maps to blink
Now I need to unblink the marker, tried this and other combination not
working
function unblinkMarker(marker){
if (marker.getVisible()) {
marker.setVisible(true);
}
}
Any help much appreciated
No comments:
Post a Comment