count the numbers of markers
or put the markers in array
and set on event click
the marker[i].setIcon(old icon)
add the new marker
Henke

2011/1/18 kalyan <[email protected]>

> Is there any way to change gmap marker icon while onclick and get back
> its original icon while clicking another marker or map. Suppose, In my
> gmap, I'm showing events in different colors(icon's). while clicking a
> marker the icon should change to yellow and should get back its
> original color when clicking another marker on the map. Thanks in
> advance..
>
> --
> 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]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

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