<?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: Transparent features in ArcGISDynamicMapServiceLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75461#M6845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Osama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to set the transparency using the &lt;A href="https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html#opacity" rel="nofollow noopener noreferrer" target="_blank"&gt;opacity &lt;/A&gt;property.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&lt;SPAN class="kwd"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; layer &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;layerUrl&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"opacity"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0.5&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;});&lt;/SPAN&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 22:55:27 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-10T22:55:27Z</dc:date>
    <item>
      <title>Transparent features in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75460#M6844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I have a dynamic layer that has some transparent polygons as come from the MXD, The transparency is working perfectly fine in the Portal for ArcGIS, but when using the ArcGIS JavaScript viewer it is showing the polygons filled with solid color. Please help! (The imageTransparecny is set to false).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 11:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75460#M6844</guid>
      <dc:creator>deleted-user-FIIGSkDYOcdf</dc:creator>
      <dc:date>2014-10-09T11:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transparent features in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75461#M6845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Osama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to set the transparency using the &lt;A href="https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html#opacity" rel="nofollow noopener noreferrer" target="_blank"&gt;opacity &lt;/A&gt;property.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&lt;SPAN class="kwd"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; layer &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;layerUrl&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"opacity"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0.5&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;});&lt;/SPAN&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75461#M6845</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-10T22:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transparent features in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75462#M6846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jake for the quick respond. setting the opacity will affect the whole layer. I just need to load the layer as seen in the arcmap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 11:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75462#M6846</guid>
      <dc:creator>deleted-user-FIIGSkDYOcdf</dc:creator>
      <dc:date>2014-10-09T11:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transparent features in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75463#M6847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the &lt;A href="https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html#setvisibility"&gt;setVisibility &lt;/A&gt;property, you can choose which layers to show with the ArcGISDynamicMapServiceLayer.&amp;nbsp; So, you can add this class twice, one for all the layers that will not be transparent, and another for the one that needs transparency applied.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this &lt;A href="http://jsfiddle.net/arzdya50/"&gt;JS Fiddle&lt;/A&gt; for an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 11:41:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75463#M6847</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-10-09T11:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transparent features in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75464#M6848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that in my case I have all the layers in one service. and I have a large number of layers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a bug with the Javascript API with layers with transparency?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 12:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75464#M6848</guid>
      <dc:creator>deleted-user-FIIGSkDYOcdf</dc:creator>
      <dc:date>2014-10-09T12:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transparent features in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75465#M6849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Osama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; No this is not a bug in the API. The thing is that you are using an ArcGISDynamicMapServiceLayer which is just returned to the API from the server as an image and not individual sublayers. So this means that you can not by default set the transparency for one or more specific sublayer in this map service. But you can go this if your ArcGIS Server is 10.1 or greater by using ImageParameters and LayerDarwingOptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the &lt;A href="http://jsfiddle.net/rscheitlin/arzdya50/1/"&gt;updated Fiddle&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 13:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75465#M6849</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-09T13:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transparent features in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75466#M6850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert, Using the image Parameters fixed the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 20:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparent-features-in/m-p/75466#M6850</guid>
      <dc:creator>deleted-user-FIIGSkDYOcdf</dc:creator>
      <dc:date>2014-10-09T20:13:44Z</dc:date>
    </item>
  </channel>
</rss>

