Hi Rossko,
I tried,
elevationService2.getElevationAlongPath({
          path: latlngs,
          samples: SAMPLES
        }, plotElevation_especial);
while (esperaj==0);

Then, when plotElevation_especial ends, it sets esperaj=1, so the
while loop terminates, BUT, with this, the browser keeps sending me
that there is inefficient code (the infinite loop).
Could you give some hint in the array of tasks to do??? please

thanks
mariovi

On 29 mar, 16:32, Rossko <[email protected]> wrote:
> > how could I handle the different response time of these asynchronouse
> > calls?
>
> Build yourself an array of 'tasks to do'.
> Build a response handler that does whatever it needs to do with the
> results just arrived, then looks at the array to see if there are any
> more tasks to do - if so, fire off the next request.

-- 
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 [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-js-api-v3?hl=en.

Reply via email to