I'm trying to work though the examples of changing an icon. I'm
missing something. Probably something really simple.

On my page,
http://www.fnfbook.com/
there are links to two nearly identical html pages.
this one works perfectly:

http://www.fnfbook.com/easy.html

this one fails to even show the base map
http://www.fnfbook.com/badicon.html

The change is that I define a variable:
var blueIcon = new GIcon(G_DEFAULT_ICON);
//blueIcon.image = "http://www.google.com/intl/en_us/mapfiles/ms/
micons/blue-dot.png";

and use it in the options for the marker

                        var aLatlng = new google.maps.LatLng(this.latitude,
this.longitude);
                        var options = {
                                position: aLatlng,
                                draggable: false,
                                bouncy: false,
                                title: this.title,
                                icon: blueIcon,
                                map: map
                            };
                        var marker = new google.maps.Marker(options );

I've tried with the real image URL and with it commented out.

Pointers or help greatly appreciated.
Thanks
Pat

--

You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.


Reply via email to