Calling animate(0); should do the trick (i.e. d = 0). You can test this by 
running the animation. After it finishes, type this into your browser 
address field:

javascript:animate(0)

and you will see that the animation relaunches. But keep in mind that you 
have to consider some aspects when restarting the animation:

   - If there is a running animation, stop it, clear the polyline and start 
   over *OR* ignore the restart command and let it finish first.
   - If a previous animation has finished, clear the polyline that has been 
   created as it will continue drawing it when rerunning (so a straight line to 
   the start and then a second layer of polylines)

I hope your problems are solved now ;-)

Regards,
  Martin

-- 
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.

Reply via email to