Forum: Ruby on Rails How to change Image of Markers in google map mashup???????????

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4c9dbbcecdb826fb1443f222850644a0?d=identicon&s=25 Vrishali.... (Guest)
on 2009-02-20 05:20
(Received via mailing list)
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!!!!
51655eeeedad656fad30717c46852437?d=identicon&s=25 Chris Kottom (Guest)
on 2009-02-20 09:25
(Received via mailing list)
This is a question about the GMaps API,  nothing to do with Rails.

http://code.google.com/apis/maps/documentation/ove...
http://groups.google.com/group/Google-Maps-API
4c9dbbcecdb826fb1443f222850644a0?d=identicon&s=25 Vrishali.... (Guest)
on 2009-02-21 11:31
(Received via mailing list)
Ok Thannks.....I have joined that group also...N i got help from
that...


Thanks for support.
Fac81a9d95c81d817a2debb6f717f3ac?d=identicon&s=25 Sazima (Guest)
on 2009-02-21 19:35
(Received via mailing list)
Vrishali,

There are instructions for that in GMaps:

-
http://code.google.com/apis/maps/documentation/ove...

- http://code.google.com/apis/maps/documentation/ref...

Cheers, Sazima
Fac81a9d95c81d817a2debb6f717f3ac?d=identicon&s=25 Sazima (Guest)
on 2009-02-21 19:38
(Received via mailing list)
This topic is locked and can not be replied to.