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.
Vrishali.... (Guest)
on 2009-02-20 06: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!!!!
Chris K. (Guest)
on 2009-02-20 10: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
Vrishali.... (Guest)
on 2009-02-21 12:31
(Received via mailing list)
Ok Thannks.....I have joined that group also...N i got help from
that...


Thanks for support.
Sazima (Guest)
on 2009-02-21 20: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
Sazima (Guest)
on 2009-02-21 20:38
(Received via mailing list)
This topic is locked and can not be replied to.