Hi,
I'd really appreciate some help getting a IE issue sorted.
I have a map with icons on it, and it works great. But in IE it
doesn't have the custom icon image, just squished version of the
typical 'marker' image. I'm just can't see how it could be in the
code, maybe it is a server issue? I've included code snippets below.
As a work around I tried using GMarker.setImage instead of a GIcon,
and that worked fine in other browsers but I had the same issue in IE,
it didn't show.
I am leaning towards some kind of permission issue that I am not aware
of. Like, IE doesn't want to load the image for some reason.
Occasionally when I refresh the page the correct icon images will
flash on the map before being replaced by the default marker images.
Here is the marker code:
icons.green = new GIcon(G_DEFAULT_ICON);
icons.green.image = "/images/green_icon.png";
icons.green.iconSize = new GSize(10,10);
icons.green.shadowSize = new GSize(0,0);
icons.green.iconAnchor = new GPoint(0,0);
After defining a few colors, the GIcon instance is assigned to a
location object as the 'icon' property and then added to the map:
stops.each(
function (stop) {
var marker = new GMarker(stop.latLng, {icon: stop.icon});
map.addOverlay(marker);
}
);
Your input is helpful, thanks in advance.
Cheers,
-Sam
--
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.