> please check the line number 255
255 function newRoute(){
That is a function definition. Nothing happens unless you call the
function.
> ... and what else can i do to call the
> gdir function in the findDirection method?.
When people struggle with a object declared in local scope in one
function that they would like to be available in the scope of some
other function, the usual practice is to declare that object globally.
http://econym.org.uk/gmap/scope.htm
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---