Just a thought.
If you are only wanting to redraw the same route (ie not use any other
aspects of the DirectionsResult), you could pull the path points out
by iterating through the legs and steps.
This would give you an accurate path definition that you could then
store, and later retrieve, push back into a polyline MVCarray and
recreate the line exactly as the DirectionsResult described it at the
time you did the DirectionsService on it.
...stu

On Aug 30, 7:33 pm, Stewart <[email protected]> wrote:
> Hi All -
>
> I'm building a webapp where I want to store a stringified
> DirectionsResult into my DB, and then pull it out later on and show it
> on a map at a later time.
>
> I've got a sample application here:http://bolidian.com/samples/gmapi/test.html
>
> As you can guess, it's not working. :-/
>
> When I first use a DirectionsService to get the DirectionsResult and
> pass it to a DirectionsRenderer then, it works fine. I then stringify
> the DirectionsResult and put in my DB, then pull it out, destring it
> (using json2.js) and call setDirections on a DirectionsRenderer: no
> response. The DirectionsRenderer doesn't show anything.
>
> My javascript console shows this error:
>
> Error: b[Kb] is not a function
> Source File:http://maps.gstatic.com/intl/en_us/mapfiles/api-3/2/2/main.js
> Line: 85
>
> I don't understand what this error means or why it's there -- and that
> JS code is heavily minified so I can't really understand it.
>
> Note that I've carefully compared the DirectionsResult going into and
> out of the DB, and they're identical char-by-char.
>
> Any help would be most appreciated! All the code is at that link
> above.
>
> Thanks,
> Stewart

-- 
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.

Reply via email to