[OpenLayers-Users] Problem with transparent PNG's and IE6

Glen Stampoultzis gstamp at gmail.com
Thu Oct 11 03:36:41 EDT 2007


Okay.  Worked out what was going on.  The opacity was being set to 100
in IE which seems to have interacted poorly with the filter PNG
images.  Since setting 100 opacity is unnecessary I modified the code
to remove the opacity filter.  Hope this helps someone avoid wasting
lots of time one day. :-)

On 11/10/2007, Glen Stampoultzis <gstamp at gmail.com> wrote:
> On 11/10/2007, jonz <jonathan.zaid at mediolanum.it> wrote:
> >
> > I don't know what your code was to generate the image nor do I understand
> > what was expected, but I too dealt with the transparent PNG IE6 "problem" in
> > the HTML content of a popup div. What I did was to convert every   tag
> > so for example
> >                  /img/OpenLayers/pop/ul.png
> >
> > becomes
> > <DIV style="DISPLAY: inline-block; FILTER:
> > progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/img/OpenLayers/pop/ul.png',
> > sizingMethod='scale'); WIDTH: 32px; HEIGHT: 9px"></DIV>
> >
> > in the case that OpenLayers.Util.alphaHack() is true.
> >
> > Don't know if this is the best way to do it, but it works for me.
> >
> >
> > ciao
> > jon
> >
>
> Thanks Jon,
>
> Which is basically what I'm it's doing (OL markers do this
> automatically).  As can be see from the screenshot [1] it works for
> the ones on the background map but not for those on popup map.
>
>
> [1] http://farm3.static.flickr.com/2201/1530334012_e5301a8a3e_o.gif
>



More information about the Users mailing list