Have you tried to use one image for all markers instead of an image for every marker seperately? The technique is called sprite and the functionality is integrated in v3.
It's a up to date and fast way to change the marker colors - and it reduces server requests. On Jun 12, 7:55 am, huzzy143 <huzzy...@gmail.com> wrote: > Hi, > > I have situation where i want to add Markers with different color. > > By default when i add a Marker it is of Red color or sometimes its > Green color. How can i control the color? > > In some situations i want Red Color Marker but in others i want a > Green Color Marker. I don't want to use custom images for this instead > use built in Markers, just change the colors. > > Can anyone please help me out? > > Thanks, > Huzefa -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.