You can use GMarker.hide() and GMarker.show() methods to keep the
image.

GMarker.setImage() is intended for temporary image changes. The
documentation says:

"this method is primarily intended to implement highlighting or
dimming effects, rather than drastic changes in marker's appearances."

> can somebody clarify if its a bug or normal behavior, as i would
> expect "marker" object to remember whatever the new icon assigned.

You are changing the image property of the icon. Icon is defined when
the marker is constructed.
--~--~---------~--~----~------------~-------~--~----~
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