<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ok,<br>
<br>
I got it. Didn't use the opacity setting.<br>
<pre wrap="">var ronko2 = new OpenLayers.Layer.WMS(
"Kaava-alueet",
<a class="moz-txt-link-rfc2396E" href="http://karsamaki.digikartta.net/asemakaavat/wms">"http://karsamaki.digikartta.net/asemakaavat/wms"</a>,
{layers: 'dikanet:karsa_region,dikanet:karsa_text',
format:'image/gif',transparent:true}, {maxExtent: bounds, <b>opacity: 0.5</b>,
isBaseLayer:false, resolutions: [5.66154, 2.8308, 1.132308, 0.56615,
0.28308, 0.1132308]});</pre>
And that setting overrides the default SLD-setting, right? Now it works
in IE6 as well as in the other browsers.<br>
Sorry for thinking aloud on this list.<span class="moz-smiley-s6"><span>
:-[ </span></span><br>
<br>
- mika -<br>
<br>
Lehtonen, Mika kirjoitti:
<blockquote cite="mid:48C4F6CE.6090308@digikartta.net" type="cite">
<pre wrap="">Sorry,
that isn't totally right. That layer definition doesn't work in any
browser of mine. The key factor is having it as an overlay layer. As a
base layer it works. So it seems that the only solution to have an
overlay layer with regions' opacity set, is to use png and
'alpha:true'-setting. I can provide you a live example of this problem,
if you like. If this is true, I'll be better off by just announcing:
"Dont try this with IE6.". Yet so many people are still using Windows
2000 and IE.
- mika -
Lehtonen, Mika kirjoitti:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Christopher and others,
I have this in my code and can't get the opacity work in IE6.
var ronko2 = new OpenLayers.Layer.WMS(
"Kaava-alueet",
<a class="moz-txt-link-rfc2396E" href="http://karsamaki.digikartta.net/asemakaavat/wms">"http://karsamaki.digikartta.net/asemakaavat/wms"</a>,
{layers: 'dikanet:karsa_region,dikanet:karsa_text',
format:'image/gif',transparent:true}, {maxExtent: bounds,
isBaseLayer:false, resolutions: [5.66154, 2.8308, 1.132308, 0.56615,
0.28308, 0.1132308]});
What's wrong with the code? OL is 2.6. Wms-server is Geoserver and in
there, the SLD says that the opacity of the polygons should be 0.2.
Works in IE7 and FF2-3.
- mika -
Christopher Schmidt kirjoitti:
</pre>
<blockquote type="cite">
<pre wrap="">On Fri, Sep 05, 2008 at 05:43:00PM +0300, Lehtonen, Mika wrote:
</pre>
<blockquote type="cite">
<pre wrap="">And that would work in IE6 with layer format to set image/gif?
- mika -
</pre>
</blockquote>
<pre wrap="">Should.
Regards,
</pre>
</blockquote>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>