<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>Good afternoon,</div>
<div> </div>
<div>I am having an issue printing layers when using opacity for WMS layer. It seems that when 2 of my area features are added to the same map only 1 of them can have opacity for both to print properly. If I add opacity to both layers, none of them print. If
however only 1 layer has opacity then they both show up. Has anyone encountered this before and has any solution? The only thing I have that works is to combine both the WMS layers into one single layer (using typenames of both to combine) except now this
only has 1 opacity when both layers originally have different values.</div>
<div> </div>
<div>Appreciate any advice,</div>
<div> </div>
<div>My map is declared as - </div>
<div> </div>
<div><font face="Courier New">map_print = <font color="#0000FF">new</font> OpenLayers.Map(<font color="#A31515">"map"</font>, {</font></div>
<div><font face="Courier New"> controls: [],</font></div>
<div><font face="Courier New"> maxExtent: <font color="#0000FF">new</font> OpenLayers.Bounds(-5621.0164289504, 5778375.8585485, 31216.186095582, 5808291.3979497),</font></div>
<div><font face="Courier New"> maxScale: 100,</font></div>
<div><font face="Courier New"> allOverlays: <font color="#0000FF">true</font>,</font></div>
<div><font face="Courier New"> minScale: 125000,</font></div>
<div><font face="Courier New"> maxResolution: <font color="#A31515">"auto"</font>,</font></div>
<div><font face="Courier New"> numZoomLevels: 31,</font></div>
<div><font face="Courier New"> fractionalZoom: <font color="#0000FF">true</font>,</font></div>
<div><font face="Courier New"> units: <font color="#A31515">"m"</font>,</font></div>
<div><font face="Courier New"> projection: <font color="#0000FF">new</font> OpenLayers.Projection(<font color="#A31515">"EPSG:3776"</font>),</font></div>
<div><font face="Courier New"> displayProjection: <font color="#0000FF">new</font> OpenLayers.Projection(<font color="#A31515">"EPSG:3776"</font>)</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New">And my WMS layers get added like so -</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> layer_Print = <font color="#0000FF">new</font> OpenLayers.Layer.WMS(original.layers[num].name, wms, {</font></div>
<div><font face="Courier New"> layers: typenames,</font></div>
<div><font face="Courier New"> VERSION: <font color="#A31515">"1.3.0"</font>,</font></div>
<div><font face="Courier New"> transparent: <font color="#0000FF">true</font></font></div>
<div><font face="Courier New"> },{</font></div>
<div><font face="Courier New"> isBaseLayer: <font color="#0000FF">false</font>,</font></div>
<div><font face="Courier New"> singleTile: <font color="#0000FF">true</font>,</font></div>
<div><font face="Courier New"> visibility: <font color="#0000FF">true</font>,</font></div>
<div><font face="Courier New"> buffer: 1,</font></div>
<div><font face="Courier New"> ratio: 1,</font></div>
<div><font face="Courier New"> title: <font color="#A31515">"Ortho Image"</font></font></div>
<div><font face="Courier New"> });</font></div>
<div><font face="Courier New"> layer_Print.setOpacity(opacity);</font></div>
<div><font face="Courier New"> map_print.addLayer(layer_Print);</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New"> </font></div>
<div> </div>
</font>
<DIV><P><HR>
This e-mail is intended for the original recipient(s) only. If you have received it in error, please advise the sender and delete this message.
</P></DIV>
</body>
</html>