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

Jason Fournier jfournier at dmsolutions.ca
Tue Jul 29 15:10:20 EDT 2008


Hi Manu,

 

I took a look.  The tiles do not appear to have class="png24" on them:

 

<img width="256" height="256"
src="http://216.230.155.125/ka-map/htdocs/tile.php?map=gmap&t=-2560&l=1024&s
=227538135372&g=Proyectos&i=png24" style="position: absolute; top: 256px;
left: 768px; width: 256px; height: 256px; visibility: visible;" id="i75"/>

 

It’s possible that the class is being applied via the DOM but I don’t think
that’s the case.  It’s been a while - I can’t recall if there’s a way
through ka-Map‘s API to apply png24 to the tiles or not.  Perhaps others can
jump in and let us know if there’s a way.  If not then you’ll likely want to
use 8 bit pngs (and sacrifice alpha transparency for IE6 compatibility).

 

Best regards,

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 2:00 PM
To: ka-map-users at lists.maptools.org
Subject: RE: [ka-Map-users] IE6 & Transparency with layers

 

Sorry Jason, i just clicked the Reply button without considering the mailing
list.

Here you have the url where you can find the sample i'm working on.

http://216.230.155.125/ka-map/htdocs

If you open it with IE6 and select the layer "Proyectos" you can see what is
going wrong.

Thank you

  _____  

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 13:35:03 -0400

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 Windows <http://serviciosmoviles.es.msn.com/>  Live en tu móvil!

 

  _____  

¡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/68f876d7/attachment-0001.html


More information about the ka-Map-users mailing list