OK. I finally found an excellent article here.

http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/

which helped me make this work. Thankyou to Marcelo and geocodezip for
your help.


On Apr 17, 9:39 pm, marcelo <[email protected]> wrote:
> On Apr 17, 10:20 pm, e <[email protected]> wrote:
>
> > The reference says
> > GMarker(latlng:GLatLng, opts?:GMarkerOptions)
>
> > Right, so i'm using
>
> > var marker = new GMarker(point, {GIcons:icon});
>
> opts? is GMarkerOptions, and the reference for GMarkerOptions says:
>
> class GMarkerOptions
> Instances of this class are used in the opts? argument to the
> constructor of the GMarker class. There is no constructor for this
> class. Instead, this class is instantiated as a javascript object
> literal.
>
> Property   Type   Description
> icon       GIcon  Chooses the Icon for this class.
>                   If not specified, G_DEFAULT_ICON
>                   is used.
>
> so, that is:
> var myMarker = new GMarker(latlng, {icon:myCustomIcon});
>
> --
> Marcelo -http://maps.forum.nu
> --
--~--~---------~--~----~------------~-------~--~----~
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