Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to animate markers in Google Maps.

Status
Not open for further replies.

cdvalera

Programmer
Aug 5, 2008
6
EC
Hi experts.

I´ve managed to build a little prg that simulate a car tracking in google maps. My problem is that the map doesn´t refresh or got centered when the marker goes out of sight.

My code is uploaded at:
This is what i need to do:

Hope anyone can help me on thisThank´s in advance

Christian Valera V.
 
Have you looked at the source code in you example, specially the function animate. Look at the line:
Code:
map.setCenter(poly.getVertex(0),17);


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Thanks mike, wanted to to see the posters code, not the examples...
Planning to implement something like this without the animation, but a live update (every 30 mins) on the location of a or multiple truck(s)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top