> Thanks for the quick reply.  I've done what you've suggested but alas,
> it is still not working.  I'm not really sure how to proceed.  I've
> placed the .js file below.

No need for the code dump, you gave a link to see the real thing in
action

> var myIcon;

This defines one 'myIcon' in global context

>       function initialize() {
...
>                   var myIcon = new GIcon();

This defines another 'myIcon' local to initialize()
When initialize() is completed, it gets destroyed.

>        function createMarker(point, title, street_address, city,
...
>                                                 var markerOnMap = new 
> GMarker(point, {icon: myIcon});

When this runs after the XML download of XML data, only the global
'myIcon' is available.  As it was never defined, the icon goes to
default instead.

Remove the 'var' in your initialize() to have it set the existing
global 'myIcon' to the values you want.
               myIcon = new GIcon();

--

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