On Nov 12, 7:38 pm, Timothy Whalin <[email protected]> wrote:
> Hello, I am using the following code for a custom icon:
> var myIcon = new GIcon(G_DEFAULT_ICON);
> myIcon.image = "custom_icon.png";
> myIcon.iconSize = new GSize(34, 34);
> var markerOptions = { icon:myIcon };
>
> From every website I've gone to and all the pages I've read through on
> the custom icons, this all seems like it should work.

It would work, if you used the custom icon.

You set up your array of markers and associated bits and pieces first.
But the markers you set up are default markers; you're not specifying
any markerOptions there. So when you come to loop through the array
and add them to the map, you're getting exactly what you have set up.
Review the documentation for GMarker().

A couple of observations:
- you don't need to set markers as clickable and not draggable; that's
the default setup.
- where your "infowindow" overlay has a scrollbar (Mexico) I can't
drag the scrollbar, at least in Firefox. It drags the map.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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