I am storing a direction object in database after converting it to a string using json.stringify
when i want to redraw i read that string and i used json.parse to convert it back to direction object and assigned that object as follows
currentDirections = directionsDisplay.getDirections();
var hehe = JSON.stringify(currentDirections)
hehe = JSON.parse(hehe)
directionsDisplay.setDirections(hehe);
the variable hehe alerted as object but the list line of code throws an error which is as follows…
Invalid value
for property : [object
Object] [Break on this error]
W[A].bindTo=function(a,b,c,d){c=c||a;var…unction
jf(a){a=a.g[1];return a!=j?a:””}
i used the other way like eval… i can get the object back but when assigned it is showing the same error.
i would like to have some suggestions, answers, hints and anything.
EDIT:
after trying with ext js i got the same problem
I made a work around for this.
and published in my site.
http://vikku.info/programming/google-maps-v3/draggable-directions/saving-draggable-directions-saving-waypoints-google-directions-google-maps-v3.htm