On Mar 11, 11:11 am, Carmelo <[email protected]> wrote:
> Oh yes...sorry, you're right.
> I did not paste all the 
> address:http://www.tipicipuglia.it/mappe/forno/indexx.html

You're doing things in the wrong order. You are assigning an event
listener to "gdir" without making gdir a GDirections object. You have
  var gdir=  new GDirections(...)
inside your function load: the "var" makes it a local variable, so it
will never be available outside that function; and that function is
executed after you have already attempted to add the listener.

Leave the var out of that line, so that it uses the global variable
you have created; and move the GEvent.addListener block inside
function load so that gdir is actually a GDirections object when it's
called.

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