Hi
consider the following code:
var map = new GMap2();
var marker = new GMarker(new GLatLng(37.4419, -122.1419),
{ icon:G_DEFAULT_ICON });
map.addOverlay(marker);
//set different image to marker
marker.setImage("http://www.google.com/intl/en_us/mapfiles/ms/micons/
blue-dot.png");
//remove marker
map.removeOverlay(marker);
//add it again
map.addOverlay(marker);
at this point the marker i get on map has original red icon, even
though i changed it by calling setImage
can somebody clarify if its a bug or normal behavior, as i would
expect "marker" object to remember whatever the new icon assigned.
regards,
Art
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---