On Nov 23, 1:53 pm, David <[email protected]> wrote:
> Hi all,
>
> I have been slowing learning my way around Google Maps and need some
> help with a custom icon.
>
> The site in question is located at:  
> http://www.internetpersona.com/map4/map5.html
>
> I am using MarkerClusterer and have already changed the .png image for
> the clustered addresses.  I am having no luck understanding where to
> make the change for the single marker.  The google default marker
> keeps popping up even after I've commented out the line that seems to
> point to it.
>
> Needless to say I am unable to substitute my own marker when I can't
> even find out where the orginial is referenced.  It may be in the
> MarkerClusterer.js script.  Unfortunately, I can't seem to find it
> there either.
>
> Any help would be very much appreciated.

This line defines a GMarker with the default icon:
var markerOnMap = new GMarker(point);
to use your own icon you need to use the format:
var markerOnMap = new GMarker(point, {icon: myIcon});
(where myIcon refers to your icon.  See:
http://code.google.com/apis/maps/documentation/reference.html#GMarker
and:
http://code.google.com/apis/maps/documentation/reference.html#GMarkerOptions

  -- Larry

--

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=.


Reply via email to