How to change Image of Markers in google map mashup?


#1

Hi!!!

I am working on google map mashup. I tried to display the markers for
four locations and its getting displayed.
But these markers’s image is default image by google. (balloon shaped
image)
Now i want to put my own image as marker,
So can anybody plz tell me how it can be done???

The code i follow for creating marker is,

function createMarker(point,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, “click”, function() {
marker.openInfoWindowHtml(html);
});
return marker;
}

Please Help Me!!!


#2

This is a question about the GMaps API, nothing to do with Rails.

http://code.google.com/apis/maps/documentation/overlays.html#Custom_Icons
http://groups.google.com/group/Google-Maps-API


#3

Ok Thannks…I have joined that group also…N i got help from
that…

Thanks for support.


#4

http://code.google.com/apis/maps/documentation/reference.html#GIcon

Cheers, Sazima


#5

Vrishali,

There are instructions for that in GMaps:

http://code.google.com/apis/maps/documentation/overlays.html#Custom_Icons

Cheers, Sazima