just specify the icon ? var marker = new google.maps.Marker({ position: latlng, map: map, flat: true, title: "meh" draggable: false }) iconFile = 'http://maps.google.com/mapfiles/ms/icons/green-dot.png'; marker.setIcon(iconFile)
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.