sorry for bad expression, I mean I want to let people revise their path which they made before, but I don't know how to resotre the path to the map from database by coordinate.
On 7月17日, 下午4時05分, Andrew Leach <[email protected]> wrote: > On Jul 17, 12:53 pm, "David .Wu" <[email protected]> wrote: > > >http://www.drama.com.tw/map2.html > > it's work now, but I got one more question, I save the coordinate, and > > show it successful, > > but I don't know how to edit the path "again", please help me with the > > function that have default coordinate. > > Not sure I understand the question. The map works quite well! > > I think what I would probably do is > * with a map click, > - snap that to a road > - add the point to an array of locations > - remove the entire directions overlay > - add a new one from the array of waypoints > > You could then implement a mechanism of removing points from the array > (say by clicking a marker to make it disappear). Having removed the > point from the array, remove the directions overlay and use > loadFromWaypoints to create a new one. > > Inserting a point into an array can be handled similarly, say by using > a right-click on a marker to indicate "insert next point after this > one". Having inserted the point into the array, remove the directions > and use loadFromWayPoints to create a new one. > > The maximum number of waypoints is 25, but that's probably reasonable > in this case. > > 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 -~----------~----~----~----~------~----~------~--~---
