JKurtock
unread,Sep 22, 2010, 10:41:10 PM9/22/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
Is it possible to save a directionsResult after it has been dragged by
a user?
Without dragging, one could save the start and end points, then re-
call the DirectionsRenderer and get the same route back. But when the
user drags the route, a "transitional waypoint" is added, and the
route is recalculated including that waypoint (apparently with
stopover:false). Is the position of that transitional waypoint
accessible? If it is, then all of the user waypoints, plus the
transitional waypoint, could be saved. The DirectionsRenderer would
(I assume) render the same directions based on ALL of those waypoints.
Once could save EVERY "step" of the rendered direction, but if the
DirectionsRenderer was called with that large set of waypoints, the
rendered route would be (effectively) non-draggable (as every entered
waypoint would be fixed).
The transitional waypoint is visible (a small dot on the polyline),
but it does not seem to appear in the Steps of the Leg. Rather, the
Step just "goes through" the transitional waypoint without any
indication of that waypoint's position.