Sorry Andrew...I do that but it doesn't work.
Carmelo
On 11 Mar, 13:02, Andrew Leach <[email protected]> wrote:
> On Mar 11, 11:50 am, Carmelo <[email protected]> wrote:
>
> > Probably I've done wrong things.
>
> You haven't done what I suggested. You now have
> var gdir=new GDirections(map, document.getElementById
> ("directions"));
> outside your load function, so that it's executed as the page is
> loading. At that point, "map" doesn't exist.
>
> *That* line should be just
> var gdir;
> and you put
> gdir=new GDirections(map, document.getElementById("directions"));
> inside your function load, along with the GEvent.addListener block.
>
> 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
-~----------~----~----~----~------~----~------~--~---