Firebug tells you that GIcon is not defined.

Custom icons are handled differently in V3, see this page:
http://code.google.com/apis/maps/documentation/v3/overlays.html#SimpleIcons

On Dec 31 2009, 7:02 pm, fishtoprecords <[email protected]> wrote:
> 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 maphttp://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