> My problem is that my createMarker() method is supposed to return a
> GIcon so another object can add it to the map. If I fire some event
> then I can't return the marker. I tried returning the marker anyway,
> but I think Google Maps is doing something so that I can't change the
> icon.
I'm sure you're right. I'd take the existence of a special method
http://code.google.com/apis/maps/documentation/reference.html#GMarker.setImage
to alter a markers main image after it has been created, as an
indication that the GMarker takes a 'snapshot' of a GIcon when the
marker is created, and subsequent changes to the GIcon won't affect
the GMarker.
Unless you want to delve into undocumented properties, I think you'll
have to find an event-driven way of creating your marker GIcons.
cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---