> var current_marker = null;

The idea is sound, but current_marker is local in scope to
initialize(), and so new ones are being made after initialize() has
finished.
Move the declaration outside of any function to make it global in
scope.
http://econym.org.uk/gmap/scope.htm

-- 
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