I actually am using both Gdirections and the line editor to create lines. I can see how combining them can implement the capability I want. However, if you are familiar with MyMaps, it seems Google just very recently added a new feature called "draw a line along roads" which automatically does that. If the coding has been done for MyMaps, it would be relatively straightforward for Google to port it to the API, so the question is: when are they planning to do that, if at all?
If they are, I would rather wait than do the coding myself. Thanks On Jul 11, 11:45 am, Andrew Leach <[email protected]> wrote: > On Jul 11, 3:31 pm, Rami <[email protected]> wrote: > > > I really the new feature in MyMaps where one can draw a line along > > roads. It makes line editing much easier. The question is does the > > API have a simple trick to accomplish that, or do I have to write my > > own code to accomplish that? > > The API has GDirections which will work out routes along known roads. > Or you can draw and edit lines > yourselfhttp://code.google.com/apis/maps/documentation/reference.html#GPolyli.... > You could even use a combination and either edit a GDirections line, > or use GDirections to assist with a manually-drawn line. > > But if GDirections doesn't do what you want for you, you will need to > write some code. > > Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
