<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: using LayerDrawingOptions to change opacity of 1 layer in a mapService in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267360#M24703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;fixed.&amp;nbsp; sorry about that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 18:09:48 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2013-06-07T18:09:48Z</dc:date>
    <item>
      <title>using LayerDrawingOptions to change opacity of 1 layer in a mapService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267357#M24700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I may be making this more complicated than it needs to be, but I'd like to be able to change the transparency (same as opacity?) of 1 layer in a map service, while leaving the other layers alone and having them displayed at the opacity defined by the map service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is easy to do on all layers served by the service, but with 10.1 server you can specify an individual layer to adjust the opacity. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At least this is my understanding. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting a bit confused with the type or Renderer (simple?) needed for the LayerDrawingOptions.&amp;nbsp; Also do I have to set all the symbols, or will it "default" to the existing definitions of the map service?&amp;nbsp; The map service is defined via an .sd file, so other than a few fixed points (ie. the layer that I want the opacity to change on), I'll have minimal visibility into what else is defined, symbology, etc.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're running a 10.1 Arcgis server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, my questions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Is my understanding correct on this is how to change opacity of a single layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Is there a code example I've missed? or a 1,2,3 type how to do it.&amp;nbsp;&amp;nbsp; I don't mind doing some experimenting, but a kick in the right direction would be helpful.&amp;nbsp; Again, maybe I'm looking at the examples and making more of it than necessary. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) I don't need to define all the symbols or anything do I? just set the transparency. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad this functionality is there.&amp;nbsp; Thanks for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 15:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267357#M24700</guid>
      <dc:creator>ScottDawson</dc:creator>
      <dc:date>2013-06-05T15:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: using LayerDrawingOptions to change opacity of 1 layer in a mapService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267358#M24701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the functionality you need to take advantage of is the same as someone who needs to redefine the symbology of one or many layers entirely.&amp;nbsp; this means you have to create a new &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jsapi/layerdrawingoptions.html"&gt;layerDrawingOption&lt;/A&gt;&lt;SPAN&gt; and assign it the appropriate transparency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you don't necessarily have to redefine renderers for any layers, but you have to include a layerDrawingOption for any layer that needs to be drawn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i wrote up a quick &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/jagravois/PWP2k/"&gt;fiddle&lt;/A&gt;&lt;SPAN&gt; which shows how to pass one layer "as is" and another with a new renderer and transparency set.&amp;nbsp; you could skip the custom renderer if you wanted....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 16:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267358#M24701</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-06-07T16:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: using LayerDrawingOptions to change opacity of 1 layer in a mapService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267359#M24702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;i wrote up a quick &lt;A href="http://jsfiddle.net/jagravois/PWP2k/"&gt;fiddle&lt;/A&gt; which shows how to pass one layer "as is" and another with a new renderer and transparency set.&amp;nbsp; you could skip the custom renderer if you wanted....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John - I'd like to see your example but the fiddle is blank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 18:04:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267359#M24702</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2013-06-07T18:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: using LayerDrawingOptions to change opacity of 1 layer in a mapService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267360#M24703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;fixed.&amp;nbsp; sorry about that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 18:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267360#M24703</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-06-07T18:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: using LayerDrawingOptions to change opacity of 1 layer in a mapService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267361#M24704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a similar issue to Scott's and was hoping that your fiddle could help.&amp;nbsp; Unfortunately the link to the fiddle in your post doesn't have a target URL.&amp;nbsp; Any chance you could repost the link?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2014 19:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-layerdrawingoptions-to-change-opacity-of-1/m-p/267361#M24704</guid>
      <dc:creator>GaryPlayer</dc:creator>
      <dc:date>2014-08-10T19:15:30Z</dc:date>
    </item>
  </channel>
</rss>

