> Thank you very much for your help. When I remove the + from the +=, it
> only lists 1 coordinate at a time. Is there a way I can fix this?
Put it back. Where before you had
document.getElementById("latlong").innerHTML +=
(markerLatLng.toUrlValue() + "<br/>");
you still want
document.getElementById("latlong").innerHTML +=
(markerLatLng.toUrlValue() + "<br/>");
Do not alter, amend or move it in any way.
> Also, where would I put the map.clearOverlays();?
Exactly where it was before. I pointed it out to you as an good place
to also clear the textual div if you thought about what the
clearOverlays() did and why, a landmark if you like. Why would you
want to alter it or move it. To spell it out, where you had one line
-
map.clearOverlays();
you should add another, so that it looks like -
map.clearOverlays();
document.getElementById("latlong").innerHTML = "" ;
instead.
I've been trying not to write this for you because you said wanted to
be more familiar with javascript. Learn by doing ; understand what
code does before changing things, if a change doesn't do what you
expect go back and look at it again. Copy/paste teaches you nothing.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---