<?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: JSAPI is not honoring transparency setting in map service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6484#M600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually....this works well too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var imgParams = new esri.layers.ImageParameters;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;imgParams.format = "PNG24";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;var yourMap = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://yourURL/ArcGIS/rest/services/yourMapService/MapServer" rel="nofollow" target="_blank"&gt;http://yourURL/ArcGIS/rest/services/yourMapService/MapServer&lt;/A&gt;&lt;SPAN&gt;", {"opacity":0.6, "imageparameters": imgParams});&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2013 20:08:35 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-04-10T20:08:35Z</dc:date>
    <item>
      <title>JSAPI is not honoring transparency setting in map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6481#M597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map service with a dynamic layer that has a transparency set to 50 on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When its brought into ArcMap the transparency is honored but when brought&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in using JSAPI it doesn't honor it. I'm using version 3.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a fix for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 15:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6481#M597</guid>
      <dc:creator>DonnyVelazquez</dc:creator>
      <dc:date>2013-02-28T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI is not honoring transparency setting in map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6482#M598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I've had this issue, I have made sure to set an image parameter to PNG 32 on the layer that I need transparencies on:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var imgParams = new esri.layers.ImageParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; imgParams.format = "PNG32";

&amp;nbsp;&amp;nbsp;&amp;nbsp; var exampleLayer = new esri.layers.ArcGISTiledMapServiceLayer(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer",
&amp;nbsp;&amp;nbsp;&amp;nbsp; { id: testLayerID, imageParameters: imgParams, visible: true });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6482#M598</guid>
      <dc:creator>MarcusBush</dc:creator>
      <dc:date>2021-12-10T20:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI is not honoring transparency setting in map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6483#M599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had this problem and i sent a ticket to ESRI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had two layers, one a tiledservice (MrSID imagery) and a dynamicservice of polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The inside of the polygons were empty but when adding the polygon over the tiled service, the transparency and the antialiasing weren't working at all. But when we set the image format to png 32 of the dynamicservice with your trick, it all work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, if you check the documentation in the API, it says that you need to use the function setImageFormat or the pass the parameter imageFormat in the creation of you TiledService, but it won't work. But with your trick, it works very well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 13:10:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6483#M599</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2013-03-25T13:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI is not honoring transparency setting in map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6484#M600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually....this works well too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var imgParams = new esri.layers.ImageParameters;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;imgParams.format = "PNG24";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;var yourMap = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://yourURL/ArcGIS/rest/services/yourMapService/MapServer" rel="nofollow" target="_blank"&gt;http://yourURL/ArcGIS/rest/services/yourMapService/MapServer&lt;/A&gt;&lt;SPAN&gt;", {"opacity":0.6, "imageparameters": imgParams});&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 20:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6484#M600</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-10T20:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI is not honoring transparency setting in map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6485#M601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Marcus &amp;amp; Gibby. Your solutions worked for me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI: If you use a esri.layers.FeatureLayer it seems to respect the opacity no need to set an image parameter....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 19:55:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-is-not-honoring-transparency-setting-in-map/m-p/6485#M601</guid>
      <dc:creator>ShawnCarson</dc:creator>
      <dc:date>2013-05-17T19:55:59Z</dc:date>
    </item>
  </channel>
</rss>

