[ka-Map-users] IE6 & Transparency with layers
Lorenzo Becchi
lorenzo at ominiverdi.com
Thu Aug 14 06:10:30 EDT 2008
Hola Manu,
just to say that using png24 with IE6 and the JS trick is not a good
idea at all.
the rendering is very slow and the overall performances of the map
navigation get bad quickly.
I suggest you to use PNG (PNG16) instead.
you'll avoid all kind of problems on rendering.
ciao
Lorenzo
manu - wrote:
> Hey,
>
> I've changed the kaMap.js file in order to put the class attribute in
> each of the images of the tile, and now my tiles look like this:
>
> <img id="i30" class="png24" height="256" width="256" src="http://192.168.10.43/ka-map/htdocs/tile.php?map=gmap&t=-3072&l=512&s=227538135372&g=Proyectos&i=png24" style="position:
> absolute; top: -256px; left: 0px; width: 256px; height: 256px;
> visibility: visible;"/>
>
> But the result is the same as before, i have no transparency.
>
> Any ideas?
>
> Regards.
>
> Manu
>
> ------------------------------------------------------------------------
> From: malbela7 at hotmail.com
> To: ka-map-users at lists.maptools.org
> Subject: RE: [ka-Map-users] IE6 & Transparency with layers
> Date: Tue, 29 Jul 2008 20:08:39 +0000
>
> Thank you so much Jason,
>
> Hope someone jumps in and give us some ligth
>
> Regards.
>
> 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 15:10:20 -0400
>
> 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 Live en tu móvil!
> <http://serviciosmoviles.es.msn.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 Live en tu móvil!
> <http://serviciosmoviles.es.msn.com/>
>
>
> ------------------------------------------------------------------------
> ¡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/>
> ------------------------------------------------------------------------
> ¡El Mundo Messenger te espera! Entra ya en "I love Messenger" y
> descubre las últimas novedades, trucos, emoticonos… Entra ya en "I
> love Messenger" <http://www.vivelive.com/ilovemessenger/>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
More information about the ka-Map-users
mailing list