This bit of code in your search complete callback -
     document.getElementById("latlong").innerHTML +=
(markerLatLng.toUrlValue() + "<br/>");
sets the coords into the visible element.

So, using that as a template, this bit of code -
     document.getElementById("latlong").innerHTML = "" ;
will set it blank.  Note the straightforward = , not an += append.

So now all you need to do is to put the set-blank code somewhere to be
run at the right time.

Here's the line in your search complete callback that removes "old"
markers from the map
     map.clearOverlays();
That's probably a good time to blank the old coords text too?

Not a maps issue, this kind of thing is covered in any javascript
tutorial.

cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to