On May 2, 7:39 am, payal <[email protected]> wrote:
>
> function getRoute()
> {
>         directionsPanel = document.getElementById("route");
>         source1 =  document.getElementById("starttrip1");
>         destination =  document.getElementById("endtrip1");
>
>         directions = new GDirections(map, directionsPanel);
>         directions = new GDirections(map);
>         directions.load("from: "+source1.value+" to: "+destination.value);
>
> }

I don't see anything wrong with that. If GDirections is not defined,
it's not *that* line which is going wrong, anyway: it's the line which
is supposed to define GDirections. That's in the API itself. Please
follow the posting guidelines and give a link to your page.
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

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

Reply via email to