[Google Maps API v3] Re: Store the first DirectionsResult.routes() element from a DirectionsRequest into a private variable

2011-01-13 Thread David DE LA PENA
Thank you Martin! So I ask again my first question: Why the .getDirectionsRoute() call from an instance of MapTrajet remains empty after a .calcRoute () ? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group,

[Google Maps API v3] Re: Store the first DirectionsResult.routes() element from a DirectionsRequest into a private variable

2011-01-13 Thread David DE LA PENA
Thank you so much! :-) I still don't understand why you wrote that *"my function returns immediately after issuing the request"* because the callback function is as any callback function execute AFTER the request.. And the value returned shouldn't be null when OK status.. Can you tell me more

[Google Maps API v3] Re: Store the first DirectionsResult.routes() element from a DirectionsRequest into a private variable

2011-01-13 Thread David DE LA PENA
Thank you for your answer Rossko! But can you tell me more about the 'OK' DirectionStatus from the callback function? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@g

[Google Maps API v3] Store the first DirectionsResult.routes() element from a DirectionsRequest into a private variable

2011-01-13 Thread David DE LA PENA
Hello everyone, I'm trying to get the first route from a DirectionRequest. (See the code below) The .getDirectionsRoute() call from an instance of MapTrajet remains empty after a .calcRoute () Any idea? Thank you My custom "class": function MapTrajet(div, adresseDestination) { .