You change the icon for the marker by

1) Looking at the API Reference for GMarker and GIcon:

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

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

    and/or

2) Looking up an appropriate tutorial an Mike Williams' excellent set:

    http://econym.org.uk/gmap/geicons.htm

    http://econym.org.uk/gmap/custom.htm

    and/or

3) Searching this discussion group using the box at the top right of
the page for, say, "changing marker icon":

    
http://www.google.com/search?client=safari&rls=en-us&q=changing+marker+icon&ie=UTF-8&oe=UTF-8


On Feb 20, 2:18 pm, "Vrishali...." <[email protected]> wrote:
> 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!!!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to