> Pls help me to animate a marker through the polyline in the map.

You've asked before, as well as Mike's tutorial you've been pointed at
this discussion -
   
http://groups.google.com/group/Google-Maps-API/browse_frm/thread/98dd941c5d96782c/7a35ce8fc71fbe2f
which in turn leads to this example -
   http://www.geocodezip.com/track_pefa9e.asp

> Please see the below 
> url.http://ntsdev.initexperts.com/nts2/content/testgpoly.html

Before you get into animation, though, you need to fix the 'slow
script' errors.
This is because you have 13,000 points in your one polyline.

There is a small thing you can do towards that:
In your XML itself, the format is -
    <point lat="44.804271698" lng="20.5250301361"/>
which is accurate to about the thickness of a hair.
There's no point in using more than six places of decimals.
    <point lat="44.804271" lng="20.525030"/>
That'll make the XML file smaller.

Most of all though, you need to ruthlessly reduce the number of your
points - I guess it's a GPS tracklog.  Almost all the slow action is
the API building a polyline with 13,000 points.
It's  a question that comes up often, sample discussions -
 
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/bb34cab86749ef1c/86338dbbc3c6f8b5?lnk=gst&q=points+reduction#86338dbbc3c6f8b5
 
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/da5142c0b96c2ffd/fe6294a9373a0e39?lnk=gst&q=points+reduction#fe6294a9373a0e39
and so on

cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to