Good morning,
I have in one button called (Preview) this code (it just request some
elevations):
function muestrav()
{
var whitney = new google.maps.LatLng(36.578581, -118.291994);
var lonepine = new google.maps.LatLng(36.606111, -118.062778);
var pathh = [ whitney, lonepine];
var pathRequest = {
'path': pathh,
'samples': 256
}
// Initiate the path request.
if (elevator)
{
elevator.getElevationAlongPath(pathRequest,
plotElevation_especial33);
}
}
In another button called (Calculate Volume), I calculate the volume of
a region by calling several times the following code (one time for
each subregion of the region):
elevationService2.getElevationAlongPath({
path: latlngs,
samples: SAMPLES
}, calculateVolx);
The strange behaviour is this:
If I press the button “Calculate Volumen” directly, if fails
calculation (just skips some first subregions and calculates only the
last subregion).
If I press the button “Preview” before, and then the “Calculate Vol”
runs ok. Why it is so?
I don’t want to have the user press a Preview button every time he
wants to get the volumen of a region. Very unfirendly, if he forgets
to press this preview button, he will not get any result.
Thanks a lot
mariobi40
--
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.