OK. But this does not work: <input id="togglepause" type="button" onclick="toggleAnimation(d)" value="Pause" /> ... function toggleAnimation(d) { GLog.write(d); jStop = true; if(!jStop) { jStop = true; document.getElementById("togglepause").value = "Play"; } else { jStop = false; animate(d); } }
Where am I doing wrong? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.