> I test this code. It works. However, the map also generates a lot of
> redundant old markers, which cause the google map to suspend. My
> question is how to  remove the old marker position when the php file
> is called

Keep a reference to markers when you place them - usually that is done
by pushing them onto an array.
Before adding new markers, cycle through your array and remove old
ones from the map. Don't forget to clear the array so that it doesn't
keep growing.

You can be more efficient by re-using the markers in your array,
repositioning them, and only adding  odd ones if the total number
changes.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to