http://brianmccallum.co.uk
I entered the following code to try and stop more than one marker
being shown on the map when entering data into info baoxes but it
didn't work.
Can anyone suggest why I still get a marker each time i click the map.
Thanks
var current_marker = null;
GEvent.addListener(map, "click", function(marker, point){
if (current_marker) map.removeOverlay(current_marker);
current_marker = new GMarker(point);
map.addOverlay(current_marker);
--
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.