[ka-Map-users] IE6 & Transparency with layers

Jason Fournier jfournier at dmsolutions.ca
Tue Jul 29 13:35:03 EDT 2008


Hi Manu,

 

Please reply to the list – this information could helps others and,  more
importantly, someone else may be able to provide you with the answer you’re
looking after.

 

Transparency for 24 bit PNGs is supported by FF and IE7 so it’s not a good
indicator of the png24 class at work.  Some reasons why this may not be
working:

 

-          No width set on the image (required)

-          No height set on the image (required)

-          No transparent.gif (or equivalent) provided

-          The png24 class would appear to be present but isn’t (unlikely)

 

Do you have a url that we can see?

 

Best regards,

Jason

 

 

 

From: manu - [mailto:malbela7 at hotmail.com] 
Sent: Tuesday, July 29, 2008 12:56 PM
To: Jason Fournier
Subject: RE: [ka-Map-users] IE6 & Transparency with layers

 

Hi Jason,

Thank you very much for your response.

The class png24 is defines and i'm using it with no results on IE6 (working
ok in firefox and ie7). The thing is when i have layers divided by group and
i want to put one layer with point over another one which is a polygon. In
this case, even when i have defined the point layer with the imageformat set
to png24, i have no transparency and i get just the point without the
polygon layer.

Thank you vey much.

Manu

  _____  

From: jfournier at dmsolutions.ca
To: ka-map-users at lists.maptools.org
Subject: RE: [ka-Map-users] IE6 & Transparency with layers
Date: Tue, 29 Jul 2008 11:00:34 -0400

Hi Manu,

 

If I recall correctly ka-Map comes with a css class called png24 (ie, the
pngfix you refer to) – put this on your image, specify a width and a height
(required), and it should work for you.  If there is no png24 class then add
the following to your css:

 

img.png24 {

  filter:expression(msApplyPNGFilter(this));

}

 

And the following to your javascript:

 

function msApplyPNGFilter(o) {

    var t="./images/transparent.gif";

    if( o.src != t ){

        var s=o.src; o.src = t; o.runtimeStyle.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s+"',sizingMethod
='scale')";

}}

 

You will need a single pixel transparent.gif in your images folder for the
above to work verbatim.

 

Hth

Jason

 

 

 

From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of manu -
Sent: Tuesday, July 29, 2008 10:37 AM
To: ka-map-users at lists.maptools.org
Subject: [ka-Map-users] IE6 & Transparency with layers

 

Hi Everyone,

I've been working for some month with ka-map having great results with
Mozilla Firefoz and IE 7. But i'm having problems with IE 6 and tranparency.

The thing is that i have defined my layers with the imageformat set to png24
so the transparency works perfectly with Firefox and IE7. I have tried some
workarounds with pngfix and css modifications with no result.

I will be so thankful if someone could help me with this issue.

Thank you very much for your time.

Manu

  _____  

¡Sé solidario, haz clic! Por cada búsqueda que hagas desde Windows Live
Search, estarás ayudando a los que más lo necesitan ¡Sé solidario, haz clic!
<http://www.unclicsolidario.com/> 

 

  _____  

¡Lo mejor de MSN y Windows Live en tu móvil! Hotmail, Messenger, Spaces

Pruébalo ya  y disfruta de todas sus ventajas donde quieras ¡Lo mejor de MSN
y <http://serviciosmoviles.es.msn.com/>  Windows Live en tu móvil!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20080729/22750d5c/attachment.html


More information about the ka-Map-users mailing list