ur welcome lorenz... :)

i dont have clear idea about that ...but even i too have faced the
similar kind of problem many times ..one way u can do is u can make it
as call back function and proceed further or executing remaning code
by setting setTimeout function ...

On Jul 10, 3:03 pm, Lorenz <[email protected]> wrote:
> Thanks deemanth, it works, but is there a way to change the method
> from asynch to synch ,like gdir.asynch=false or whatever you want,
> because In my code I have to use the vertices from the Polyline and I
> can't freeze the code until the "load()" method has charged the
> response of the query..
> On Jul 10, 8:43 am, deemanth <[email protected]> wrote:
>
> > solution : check this out , this should solve ur problem for loading
> > polyline
>
> > GEvent.addListener(gdir, 'load', function() {
> >                 gdir.getPolyline();
>
> > });
>
> > On Jul 10, 6:08 am, Rossko <[email protected]> wrote:
>
> > > > ok thanks, but what can I do for doing it?Is there any properties of
> > > > GDirections that I have to change?
>
> > > Try and understand what asynchronous means -
> > >    http://econym.org.uk/gmap/async.htm
> > > then you'll know to look into callback functions
>
> > > 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