Fernando, siguiente parece; http://www.marsrutai.info/directions.htm
On 1月8日, 午前9:49, Fernando Torres <[email protected]> wrote: > Hola, > > Almost like this, but in your link the user cant only drag the start and the > end point. I want to leave the user drag the vertex along the route and > redraw the polyline with the new direction > > On Thu, Jan 7, 2010 at 10:20 PM, japonyol <[email protected]> wrote: > > Hola Fernando, > > like this? > >http://japonyol.net/editor/por-coche.html > > > On 1月8日, 午前12:35, Fernando Torres <[email protected]> wrote: > > > Hello everyone, > > > > I am researching the classes of GM api to allow a Direction traced by the > > > API can be adjusted by user by dragging and dropping parts of the route > > as > > > he chooses, as we do on Google maps application. > > > > I found some examples more or less close to what I want but nothing that > > > works like google maps app. > > > > After some research I came to the following algorithm, and would like to > > ask > > > the experts if they agree that this is the best way to enable this > > behavior: > > > > 1) Get the start and finish address from the user > > > 2) By GDirection, load the direction (route) suggested by the API > > > 3) For each point on the route (each beginning and end of new street), > > > create an object GMarker with draggable option enabled. > > > 4) Draw a polyline along the way > > > 5) If the user drag and drop a GMarker, calls the load method of > > GDirection > > > passing the start address (lat and lng) and each intermediate point (Each > > > lat and long of each GMarker) > > > 6) Repaint the pollyline over the new route > > > > This is a good approach or am I reinventing the wheel? > > > > Any suggestions on high level? (no need to write code, just enter an > > > approach) > > > > Thanks > > > -- > > 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]<google-maps-api%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-api?hl=en.
-- 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.
