On Mar 12, 10:11 am, Carmelo <[email protected]> wrote:
> UPDATE.
> Athttp://www.tipicipuglia.it/mappe/forno/index_x.htmlthere's no more
> white page, but the Gdirection doesn't work.
> Any suggestion?
Move lines 171 to 179 inclusive, that's these lines:
171 GEvent.addListener(gdir, "error", function() {
172 var code = gdir.getStatus().code;
173 var reason="Code "+code;
174 if (reasons[code]) {
175 reason = reasons[code]
176 }
177
178 alert("Failed to obtain directions, "+reason);
179 });
to just after line 50, that's this line:
50 gdir= new GDirections(map, document.getElementById("results"));
Currently, you are (again) attempting to add a listener to gdir, when
gdir is not defined as a GDirections object.
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
-~----------~----~----~----~------~----~------~--~---