<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Andreas,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Yes. Here is how I’m building the layer:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">lyrName = new OpenLayers.Layer.WMS(</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> layer.title,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> baseUrl,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> {</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> layers: layer.name,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> format: 'image/png',</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> transparent: true</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> },</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> {</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> isBaseLayer: false,</span></p>
<p class="MsoNormal" style="margin-left:.5in; text-indent:.5in"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">singleTile: true,
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> ratio: 1,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> transitionEffect: 'resize'</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> }</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> );</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Arial","sans-serif"; color:#0066FF">Brett Spivey</span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:gray">NC OneMap Programmer</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:gray">Center for Geographic Information & Analysis</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:gray">Office of the State Chief Information Officer</span><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:gray"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:gray">919.754.6591</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:gray"><a href="/user/SendEmail.jtp?type=node&node=4548777&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:gray">http://www.cgia.state.nc.us</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:gray"> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:gray">Email correspondence to and from this address may be subject to the North Carolina Public Records Law and may be disclosed to third parties by an authorized state
official.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> Andreas Hocevar-2 [via OSGeo.org] [mailto:ml-node+<a href="/user/SendEmail.jtp?type=node&node=4548777&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>]
<br>
<b>Sent:</b> Friday, March 02, 2012 9:48 PM<br>
<b>To:</b> Spivey, Brett<br>
<b>Subject:</b> Re: using default transparency from service</span></p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi, <br>
<br>
do you have your WMS layer configured with something like <br>
<br>
{layers: "mylayer", transparent: true, format: "image/png"} <br>
<br>
Then things should work. <br>
<br>
Andreas. <br>
<br>
On Wed, Feb 29, 2012 at 9:17 PM, spiveygb <<a href="/user/SendEmail.jtp?type=node&node=4541403&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
</p>
<div>
<p class="MsoNormal"><br>
> When accessing services from ArcGIS Server, either REST or WMS, the layers <br>
> are opaque although they have some transparency by default. Is there no way <br>
> to have the layers draw as intended directly from the service? I know I can <br>
> set opacity when creating the layer but users can add or access <br>
> services/layers from many different servers (that aren't mine). In other <br>
> words, I don't know what services or layers they may add. Therefore, I don't <br>
> want to "assign" a static transparency value for every one of them by <br>
> default in the code. <br>
> ________________________________ <br>
> View this message in context: using default transparency from service <br>
> Sent from the OpenLayers Users mailing list archive at Nabble.com. <br>
> <br>
> _______________________________________________ <br>
> Users mailing list <br>
> <a href="/user/SendEmail.jtp?type=node&node=4541403&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_top" rel="nofollow" link="external">
http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
> </p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<br>
-- <br>
Andreas Hocevar <br>
OpenGeo - <a href="http://opengeo.org/" target="_top" rel="nofollow" link="external">http://opengeo.org/</a><br>
Expert service straight from the developers. <br>
_______________________________________________ <br>
Users mailing list <br>
<a href="/user/SendEmail.jtp?type=node&node=4541403&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br>
</p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" align="center" style="color:#CCCCCC">
</div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt; font-family:"Tahoma","sans-serif"; color:#444444">If you reply to this email, your message will be added to the discussion below:</span></b></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt; font-family:"Tahoma","sans-serif"; color:#444444"><a href="http://osgeo-org.1560.n6.nabble.com/using-default-transparency-from-service-tp4532730p4541403.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.n6.nabble.com/using-default-transparency-from-service-tp4532730p4541403.html</a>
</span></p>
</div>
<div style="margin-top:4.8pt">
<p class="MsoNormal" style="line-height:18.0pt"><span style="font-size:8.5pt; font-family:"Tahoma","sans-serif"; color:#666666">To unsubscribe from using default transparency from service,
<a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external"><span style="font-size:7.0pt; font-family:"Times New Roman","serif"">NAML</span></a>
</span></p>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
E-mail correspondence to and from this address may be subject to the North Carolina Public Records Law and may be disclosed to third parties by an authorized state official.<br>
</font>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/using-default-transparency-from-service-tp4532730p4548777.html">RE: using default transparency from service</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>