>             I read a list of lat long values over a period of time.
> Then I run a for loop and show each of the lat long by using a arrow
> icon. So each time I create a new marker which is red color. What I
> want to do is that when I populate the i+1 marker then the pervious i
> marker I want to change it to different color say for example yellow
> color?

Keep a reference to the last marker created.
When creating the next marker, change the image of the last marker to
a yellow one.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to google-maps-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to