> If I press the button “Preview” before, and then the “Calculate Vol”
> runs ok. Why it is so?

It might be because you are breaking the elevation services rate-of-
request limits.
Or perhaps you aren't taking account of the asynchronous nature of the
service, and are trying to use results before they have been returned.
Perhaps you are firing multple requests and expecting the results back
in the same order.
Can't tell from a code snippet out of context.

> I don’t want to have the user press a Preview button every time he
> wants to get the volumen of a region.

Write some code to not do it that way.

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