Hi Jeff, thanks for your comment, I just did the way you mention,
with:
if (status == google.maps.ElevationStatus.OK)
        {
        document.getElementById("elvolumen").value= "OKKK";
        intentadenuevo=0;
        //alert('OKKK');
        }
else
        {
        if (status == google.maps.ElevationStatus.INVALID_REQUEST)
                {
                document.getElementById("elvolumen").value= "INVALID_REQUEST";

                }
        else
                {
                if (status == google.maps.ElevationStatus.OVER_QUERY_LIMIT)
                        {
                        //document.getElementById("elvolumen").value= 
"INVALID_REQUEST";
                        }
                else
                        {
                        if (status == 
google.maps.ElevationStatus.REQUEST_DENIED)
                                {
                                document.getElementById("elvolumen").value= 
"UNKOWN_ERROR";
                                }
                        }

                }
and the execution returns, INVALID_REQUEST, so I am checking why if
the code before de elevation request runs repeatedly fast, it fails.
With alert or pauses, runs ok.
thanks
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.

Reply via email to