please check the line number 255 and what else can i do to call the
gdir function in the findDirection method?.

On May 4, 5:46 am, Rossko <[email protected]> wrote:
> > Well i tried adding some other features which will find the exact
> > route that should be followed.My code is not working properly for the
> > function exactroute() which is called on clicking Find Distance.The
> > error is gdir not declared..now gdir is declared in the main function
> > also..there is no erroe using newroute() function which also uses the
> > gdir object.
> > the code is shown 
> > below:http://roshanbharathdas.googlepages.com/congestion6.htm
>
> 'gdir' IS indeed declared - within the local scope of your
> findDirection() function.
> When findDirection() has completed, that 'gdir' vanishes.
>
> When exactroute() is called later, it tries to put a listener on the
> non-existant 'gdir'.
>
> http://econym.org.uk/gmap/scope.htm
>
> I can't see anywhere in your code that calls function newRoute() so
> that will never fail.
> It's probably just as well nothing tries to use that function, as you
> also declare an array called newRoute[] and that may well confuse some
> browsers.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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