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