<?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: Why are my map service layers opaque? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737364#M68296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;require([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/layers/ArcGISDynamicMapServiceLayer",&lt;BR /&gt; "dojo/domReady!"&lt;BR /&gt;], function (Map, ArcGISDynamicMapServiceLayer) {&lt;BR /&gt; var map = new Map("map", {&lt;BR /&gt; basemap: "topo", &lt;BR /&gt; center: [-98.493629, 29.424122], //centers on san antonio &lt;BR /&gt; zoom: 10 //zooms to all of bexar county, must be integer&lt;BR /&gt; });&lt;BR /&gt; var tempLayer = new ArcGISDynamicMapServiceLayer(url);&lt;BR /&gt; tempLayer.setImageFormat("png32");&lt;BR /&gt; map.addLayer(tempLayer);&lt;BR /&gt; console.log(tempLayer.id);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The url I am using in the tempLayer requires a login/password to access, and I can't give that out. Is my code correct otherwise? If it is, then maybe the problem is how the layer is set up on my ArcGIS server? I didn't have this problem in 4.4, so maybe there is a difference in what 4.4 and 3.21 need the ArcGIS server settings to be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 15:31:23 GMT</pubDate>
    <dc:creator>GregSalvador</dc:creator>
    <dc:date>2017-08-23T15:31:23Z</dc:date>
    <item>
      <title>Why are my map service layers opaque?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737360#M68292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've recently had to switch from writing code in the javascript 4.4 API to the 3.21 API because of the lack toolbar functionality. This means rewriting my code. When I was working with the 4.4, I could call a Map Service by using MapImageLayer. In 3.21, I use&amp;nbsp;ArcGISDynamicMapServiceLayer. However, in 3.21, my layers are completely opaque. This wasn't a problem in 4.4, as MapImageLayer would show the layer the same way it had been published. How do I get the layers to look the same as when they were published?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:05:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737360#M68292</guid>
      <dc:creator>GregSalvador</dc:creator>
      <dc:date>2017-08-23T14:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my map service layers opaque?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737361#M68293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You just need to use an imageFormat of png32 when your layers need transparency:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html#imageformat" title="https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html#imageformat"&gt;https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html#imageformat&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737361#M68293</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-08-23T14:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my map service layers opaque?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737362#M68294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert! Small problem: My layer is now transparent like it should be, but it is only picking up one sublayer. I had thought my opaque shape was covering all of the other sublayers, but now I see that only the one sublayer is being drawn. Is there a way to get the computer to draw all of the layers without me defining every sublayer in the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737362#M68294</guid>
      <dc:creator>GregSalvador</dc:creator>
      <dc:date>2017-08-23T14:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my map service layers opaque?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737363#M68295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Can you share the code yo are attempting for the layer? Sounds like you are doing something wrong, as all visible sublayers will be drawn unless otherwise specified in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737363#M68295</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-08-23T15:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my map service layers opaque?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737364#M68296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;require([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/layers/ArcGISDynamicMapServiceLayer",&lt;BR /&gt; "dojo/domReady!"&lt;BR /&gt;], function (Map, ArcGISDynamicMapServiceLayer) {&lt;BR /&gt; var map = new Map("map", {&lt;BR /&gt; basemap: "topo", &lt;BR /&gt; center: [-98.493629, 29.424122], //centers on san antonio &lt;BR /&gt; zoom: 10 //zooms to all of bexar county, must be integer&lt;BR /&gt; });&lt;BR /&gt; var tempLayer = new ArcGISDynamicMapServiceLayer(url);&lt;BR /&gt; tempLayer.setImageFormat("png32");&lt;BR /&gt; map.addLayer(tempLayer);&lt;BR /&gt; console.log(tempLayer.id);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The url I am using in the tempLayer requires a login/password to access, and I can't give that out. Is my code correct otherwise? If it is, then maybe the problem is how the layer is set up on my ArcGIS server? I didn't have this problem in 4.4, so maybe there is a difference in what 4.4 and 3.21 need the ArcGIS server settings to be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737364#M68296</guid>
      <dc:creator>GregSalvador</dc:creator>
      <dc:date>2017-08-23T15:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my map service layers opaque?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737365#M68297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Your code looks fine. The difference currently is that 3.x api respects the visibility settings of layers and their sublayer from the map service. So if a layer is visible by default in the map service then it will be displayed as visible in 3.x and if a grouped layer is set to visible false then none of the sublayers will be shown. I know when 4.4 came out sublayer visibility was not respected (this is a bug).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737365#M68297</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-08-23T15:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my map service layers opaque?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737366#M68298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much sir, I would have never figured all this out on my own. Is there a resource that shows when ESRI is going to update the 4x API? I've seen the functionality matrix, but it is pretty vauge on when some fixes are expected to happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 16:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737366#M68298</guid>
      <dc:creator>GregSalvador</dc:creator>
      <dc:date>2017-08-23T16:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my map service layers opaque?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737367#M68299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No there will be no list of dates when features will be added or fixed. That would be bad business practice for a software development company.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 16:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-my-map-service-layers-opaque/m-p/737367#M68299</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-08-23T16:04:07Z</dc:date>
    </item>
  </channel>
</rss>

