If I include an alert() before the if statement, as in the snip of
code below, the polylines are drawn when the height is greater than
200m. However if the alert() is left out no polylines are drawn
whether the height is above 200m or not.
getElevationInter(point.lat(),point.lng());
alert(high)
if(high > 200) {
drawLine(points,"blue");
}
I have include a link to the code for both cases, ie with and without
alert, below. Please click on button "Enter Decimal Coords" and then
click on the marker to see the effect. For the alert() version
obviously you will have to keep clicking the alert box 20 times until
all of the heights have been retrieved.
http://members.chello.at/stephen.joung/testsite/indexLOSRadar.html
http://members.chello.at/stephen.joung/testsite/indexLOSRadarwoalert.html
Thanks in advance for any assistance, Steve.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---