[OpenLayers-Users] transparent overlay and IE

dome febbo domenico.febbo at gmail.com
Fri Feb 2 10:08:13 EST 2007


Ok, IE6 support TIGER WMS Overlay with the option {'alpha':true}, but
Firefox now don't receive this layer.
Is it normal?



---------- Forwarded message ----------
From: Christopher Schmidt <crschmidt at metacarta.com>
Date: 2-feb-2007 15.16
Subject: Re: [OpenLayers-Users] transparent overlay and IE
To: dome febbo <domenico.febbo at gmail.com>
Cc: users at openlayers.org


On Fri, Feb 02, 2007 at 02:58:18PM +0100, dome febbo wrote:
> I can see the example page http://labs.metacarta.com/wms-c/demo.html,
> but with  TIGER Overlay I can't see the baselayer in IE6.
> In OpenLayers.Util.js, there is a method
> "OpenLayers.Util.modifyAlphaImageDiv" with "progid" filter but maybe
> there is a problem?

You can turn on alpha transparency for PNG images in WMS via an 'alpha'
option on the layer:
  OL.Layer.WMS("WMS", "http://example.com/wms.cgi", {'layers':'foo'},
  {'alpha':true})

However, doing this is likely to slow Internet Explorer to a crawl.
Making many large images transparent is simply not supported in IE, and
is therefore off by default.

If you need transparent WMS images, I recommend using some format that
IE supports transparency for natively (GIF or PNG with single-bit
transparency instead of alpha transparency). If you're going to use the
alpha option, you should test it in IE and ensure that  the behavior
matches the performance you need for your application.

Regards,
--
Christopher Schmidt
MetaCarta



More information about the Users mailing list