I'm not sure if this is expected behavior, but I noticed that if you
declare a GIcon using a sprite as follows, it will fail in Internet
Explorer, but work ok in Firefox:
var myicon = new GIcon(G_DEFAULT_ICON);
myicon.sprite = {image:"/site_media/images/sprite.png", left: 16};
If you don't explicitly declare a "top" positioning for the image,
then top isNaN, and later gets multiplied with a integer in the middle
of obfuscated Google code and breaks. The following code works for me:
var myicon = new GIcon(G_DEFAULT_ICON);
myicon.sprite = {image:"/site_media/images/sprite.png", left: 16,
top: 0};
This kind of caught me by surprise, and I wonder if this browser
variation shouldn't be addressed within the GMap code itself.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---