On Feb 1, 4:05 pm, Sam <[email protected]> wrote:
> 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.

Please don't do that, we can't debug code snippets.
Please follow the posting guidelines and post a link to your map that
exhibits the problem:
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

>
> 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.

I haven't seen any problems with custom icons on my pages with IE.
What version of IE are you using?

Does this page work for you?
http://www.geocodezip.com/v2_basic8g.asp?filename=example_icons.xml

  -- Larry

>
> 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.

Reply via email to