On Jul 18, 7:55 am, gdp <[email protected]> wrote:
> Hi - the function below is called to create a set of markers on a map.
> My problem is that within the marker click listener I am trying to
> change the icon image. What is in fact happening is that the last
> marker to be added to the map ends up showing my 'special' icon as
> soon as it is drawn and the click event does not change the icon for
> any clicked marker. The 2 alerts show the problem - the first alert
> shows the correct marker id value onclick, the second alert always
> shows the id of the last marker added to the map and this is the
> marker that is given the 'special' image. So I guess my question is
> how to do get the setIcon method to act on the marker identified in
> the first alert.
>
> Hope that makes a bit of sense to someone. Thanks for any help given
> as usual.

Where is the link to a map that shows the problem?

  -- Larry

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