Hi Larry, since my pseudocode is:

funcion calculateVolumenx(results, sstatus)  //this is the callback
routine
{
//a lot of processing
//then calls calculateVolumen()  //notice without x
}

function calculateVolumen()
{
//stuff then
//pause  <-- only runs ok if I set pauses
elevationService2.getElevationAlongPath({
          path: latlngs,
          samples: SAMPLES
        }, calculateVolumenx);
}

So, calculateVolumen calls calculateVolumenx,
calculateVolumenx calls calculateVolumen,
calculateVolumen calls calculateVolumenx,
and so on.....
obviously I have end conditions.
Whay this operations cannot be accomplish without pauses? if pause
enough, it runs OK, but slowly though.
thanks Larry
mariobi40
ps. at some point, inside the callback calls distancefrom utility,
would this affect?

-- 
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