**
I am trying to add external controls to play, pause and resume loading of
google markers. I used setTimeout to load markers with a delay. But can
somebody tell me where should I using clearTimeout to pause loading of
google markers? Using it in a separate function didn't work for me.
for (var i = 0; i < all_markers.length; i++) {
t2 = setTimeout(function(){
addMarker();
},i * 300);
}
function pauseAnimation(){
clearTimeout(t2);
}
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/KsCHyjW7KXcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.