This is Google Maps API setImage demonstration. This is methods for GMarker class added in GM API v2.75, to change marker icon after it was placed on map, without need to delete old one.

Click on map to place markers over it, and then click Change images button to see setImage in action.

Beware, this method have some restrictions and for more information read this entry

(c) 2007 Witold Rugowski (NetManiac). My blog