Your problem is on this line:
var dirn = new GDirections("map") ;
The first parameter of GDirections should be a GMap2() Object, not a
String.
It's a bit tricky to see what's going on because the actual crash occurs
deep in obfuscated API code. The reply from the server comes back, using
the cross-domain JS trick, so the "__toplevel__" line that triggered the
sequence of events doesn't exist in the source. Venkman shows it as line
1 of a phantom file called "nav".
The processing of the reply from the server proceeds as normal until it
tries to display the results on the "map". Since "map" is a String()
instead of a GMap2(), "map".addOverlay() is not a function.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---