Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animate a route with google map js api v3

Given two geo-localized points (start and end of the route), I want to animate the drawing of the route between them.

Do you know how if it's achievable with the Google map js v3 api?

Thanks

like image 866
xavier.seignard Avatar asked Jul 17 '12 09:07

xavier.seignard


2 Answers

I found something for you.

http://www.geocodezip.com/v3_animate_marker_directions.html Visit this website hit F12 on chrome go to sources tab and select v3-animate-marker-direction.html You'll the complete code of it on how it is used. I you need help on it, kindly comment

and a pretty good example here also, but I guess it is implemented on v2 http://www.kmcgraphics.com/google/

Regards, Suyash

like image 82
Suyash Dixit Avatar answered Oct 04 '22 03:10

Suyash Dixit


Using this Example you can animate more than one markers within the route. the animate and startAnimation functions handle multiple markers. You can modify the code based on your requirement. Hope it helps.

like image 40
sTg Avatar answered Oct 04 '22 02:10

sTg