Ehud,<br><br>Paul already answered your question. You can change layer<br>opacity in the mapfile, so the ka-Map loads with a pre-setted<br>value. You can set this by metadata "opacity" value, like:<br><br>METADATA
<br> "opacity" "80"<br>END<br><br>But this works only in Firefox until now. In IE, even if <br>you set this value, the ka-Map starts with no transparency.<br>The problem I related in last email occurs when you try to
<br>change layer's opacity in Ka-Map's legend menu.<br><br>But, as I said, you are in right way! Congratulations again!<br><br>regards,<br><br>Pedro Garcia.<br><br><div><span class="gmail_quote">2006/4/28, Ehud Shabtai <
<a href="mailto:eshabtai@gmail.com">eshabtai@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 4/28/06, Paul Spencer <
<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>> wrote:<br><br>> sorry for the delay, I've applied your patches to cvs.<br><br>Thanks Paul.<br><br>> The opacity metadata changes the opacity of the layer using CSS in
<br>> the client rather than in mapserver.<br><br>Thanks for the tip, I'll see if I can figure out why lines are<br>disappearing when opacity is used.<br><br>> On 28-Apr-06, at 2:52 AM, Ehud Shabtai wrote:<br>><br>
> > I think these changes should be merged to CVS. They only affect layers<br>> > with "imageformat = alpha", so I don't expect any regressions.<br>> ><br>> > Paul, what do you think?<br>
> ><br>> > Pedro, how do you change the layer opacity? Through the map file?<br>> ><br>> > On 4/28/06, Pedro Garcia <<a href="mailto:pedro.gspace@gmail.com">pedro.gspace@gmail.com</a>> wrote:
<br>> >> Ehud,<br>> >><br>> >> Congratulations!!! PNG24 transparency is working in IE!!!<br>> >> I tested in:<br>> >> * Windows XP SP2<br>> >> * IE 6.0<br>> >> * Firefox
1.5<br>> >> * ka-Map latest CVS version<br>> >><br>> >> I tested with a map with 2 layers:<br>> >> 1) A Ikonos raster image with 4m pixel resolution;<br>> >> 2) A vector polygonal layer with labels and two
<br>> >> metadata info, as you can see:<br>> >><br>> >> NAME "shpBairros"<br>> >> GROUP "Bairros"<br>> >> STATUS ON<br>> >> DATA "/ms4w/apps/MapaVix/Shapes/Bairros.shp"
<br>> >> TYPE POLYGON<br>> >> UNITS METERS<br>> >> SIZEUNITS PIXELS<br>> >> LABELITEM "Text"<br>> >> TOLERANCE 0<br>> >> TOLERANCEUNITS PIXELS
<br>> >> METADATA<br>> >> "imageformat" "ALPHA"<br>> >> "opacity" "80"<br>> >> END<br>> >><br>> >> OBS: The full mapfile is attached.
<br>> >><br>> >> I can test it in Windows 2000 late.<br>> >><br>> >> Take a long time to translate your diffs to my local copy<br>> >> to test it, so I'm attaching the modified files so others
<br>> >> can test it more easily.<br>> >><br>> >> But I found a problem: when I try to change the vector layer<br>> >> transparency, the layer disappears, but if I turn of, and turn<br>
> >> on after, the layer appears again. But I think you're going<br>> >> in the right direction to the solution. Congratulations again,<br>> >> with your code whe are next to solve the most critical
<br>> >> issue in ka-Map portability in my opinion.<br>> >><br>> >> I'm attached 2 sreenshots, 1 with Firefox and other with IE,<br>> >> and you can see clearly the transparency.<br>> >>
<br>> >> regards,<br>> >><br>> >> Pedro Garcia.<br>> >><br>> >> 2006/4/11, Ehud Shabtai <<a href="mailto:eshabtai@gmail.com">eshabtai@gmail.com</a>>:<br>> >>>
<br>> >> Jacob,<br>> >><br>> >> I can't reproduce it.<br>> >><br>> >> I'm using IE 6.0 which version do you use?<br>> >><br>> >> Ehud.<br>> >><br>> >> On 4/11/06, Delfos, Jacob <
<a href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</a>> wrote:<br>> >>> Ehud,<br>> >>><br>> >>> During panning, the whole map sometimes turns black. As soon as I<br>
> >>> let go<br>> >>> of the mouse, it becomes normal again. Sometimes if I let go of the<br>> >>> mouse before it turns black, it becomes black once it finishes<br>> >>> loading,
<br>> >>> and turns normal when I press the mouse down.<br>> >>><br>> >>> Also, when turning the satellite image off, and then on again, the<br>> >>> entire page turns black once it has finished loading (see attached
<br>> >>> screenshot). This only happens in IE. Is it to do with the<br>> >>> application<br>> >>> of the PNG-hack?<br>> >>><br>> >>> Regards,<br>> >>>
<br>> >>> Jacob<br>> >>><br>> >>><br>> >>>> -----Original Message-----<br>> >>>> From: <a href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org
</a><br>> >>>> [mailto:<a href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</a>] On<br>> >> Behalf Of<br>> >>>> Ehud Shabtai<br>> >>>> Sent: 11 April 2006 14:57
<br>> >>>> To: Shoaib Burq<br>> >>>> Cc: <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> >>>> Subject: Re: [ka-Map-users] PNG transparency in IE - some
<br>> >>>> conclusions<br>> >>>><br>> >>><br>> >>><br>> >>><br>> >><br>> >><br>> >> --<br>> >> Ehud Shabtai<br>> >>
<a href="http://www.freemap.co.il/map/">http://www.freemap.co.il/map/</a><br>> >><br>> >> _______________________________________________<br>> >> ka-Map-users mailing list<br>> >> <a href="mailto:ka-Map-users@lists.maptools.org">
ka-Map-users@lists.maptools.org</a><br>> >> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>> >><br>> >><br>> >>
<br>> ><br>> ><br>> > --<br>> > Ehud Shabtai<br>> > <a href="http://www.freemap.co.il/map/">http://www.freemap.co.il/map/</a><br>><br>> +-----------------------------------------------------------------+
<br>> |Paul Spencer <a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a> |<br>> +-----------------------------------------------------------------+<br>> |Applications & Software Development |
<br>> |DM Solutions Group Inc <a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>> +-----------------------------------------------------------------+<br>><br>><br>><br>
><br>><br><br><br>--<br>Ehud Shabtai<br><a href="http://www.freemap.co.il/map/">http://www.freemap.co.il/map/</a><br></blockquote></div><br>