On Aug 21, 1:29 pm, Jason <[email protected]> wrote: > I've been working on creating an application that stores mileage and > displays progress along a Google Maps route. I have a basic map up and > working, with start/end/waypoints set with driving directions > connecting them. What I want to be able to do is take a number of > miles and display where the user is "at" along this route. Is there a > way to do this using the Google Maps API?
Yes. But it is not built in. > > I've been searching around for some time, but either this is an > uncommon problem or I'm not using the right search terms. I came > across some examples using polygon lines instead of actual directions > (e.g.http://stackoverflow.com/questions/2698112/how-to-add-markers-on-goog...) > but they seem to either focus on polygons and/or utilize version 2 of > the Maps API. > > Any solutions or pointers in the right directly would be most > appreciated. You need to do something like this: http://www.geocodezip.com/v3_animate_marker_directions.html http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/16cd7a807ff89d2/ef5246350b50146f?lnk=gst&q=cartrip#ef5246350b50146f But what you want to do is simpler. I think the pieces should all be there. The main one being the port of polyline.GetPointAtDistance from Mike Williams' epoly extension. Post a link to your map if you want more specific advice or if you run into trouble. -- Larry -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
