I have been having a play and im pretty sure this is the code I need
to add
polyPoints.length = 0;
for(i = 0; i < markers.length; i++) {
polyPoints.push(markers[i].getLatLng());
// document.getElementById("coords").innerHTML += i+": "+markers
[i].getLatLng().toUrlValue(6)+"<br>";
document.testme.coords.value += "paul";
}
I have tidied up the other issues and removed the addpoint function as
the above seems to do what I want better.
But wherever I put it it either breaks, or just doesnt do anything.
I tried to use joes source code, but its so different to mine, I feel
like I am missing an obvious something.
I have tried putting the above in startShape and startdrawing as they
seem the best place, but im obviously missing something, I dont think
I know enough about JS to see where I am going wrong :( Currently its
commented out in startShape
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---