<?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: Bug with JavaScript API 3.19 AcrGISDynamicMapServiceLayer visibleLayers property in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-problem-with-javascript-api-3-16/m-p/265938#M24553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you post the code you used to get that result returned? I do not get that result. It returns exactly what the documentation specifies an array of visible layer ids.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 15:11:35 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-01-17T15:11:35Z</dc:date>
    <item>
      <title>Possible problem with JavaScript API 3.16 AcrGISDynamicMapServiceLayer visibleLayers property[non-issue]</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-problem-with-javascript-api-3-16/m-p/265937#M24552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;JavaScript API 3.16 AcrGISDynamicMapServiceLayer visibleLayers property does not refer to the property it is described to hold. One would suspect from this description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="304011" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/304011_visLayer.png" style="width: 620px; height: 21px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That this property would hold an array of the layers in the ArcGISDynamicMapServiceLayer that are visible. So one would expect something like [0,3,5]. Representing that the layers in the service at those endpoints that are currently visible. Instead it appears to just return the amount of visible layers. THIS IS NOT HELPFUL. Here is an example of what it shows in the console(see the bottom property in the image below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="304012" alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/304012_actualWorks.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The property that closest resembles what I am looking for is "_defaultVisibleLayers", infact it shows exactly what visibleLayers is supposed to show but I am assuming it is the initial visibile layers and wouldn't change if I changed the visibility:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="304032" alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/304032_dvl.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSO. LOOK AT INDEX 8.&lt;/P&gt;&lt;P&gt;WHAT IS "0" ?&lt;/P&gt;&lt;P&gt;THAT REFERS TO NOTHING TO ME. None of my layers have a unique ID of "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As with all things with programming, it is easy to misunderstand or accidentally overlook something in the Docs so if someone can clear this up for me in regards of me misconstruing the intended purpose of the visibleLayers property please do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise this is a BUG, and it has persisted since atleast 3.16 and is still present at 3.16. It is odd that this has been overlooked and it needs to be addressed and or the property needs a new description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nick T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 15:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-problem-with-javascript-api-3-16/m-p/265937#M24552</guid>
      <dc:creator>NicholasToscano1</dc:creator>
      <dc:date>2017-01-17T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with JavaScript API 3.19 AcrGISDynamicMapServiceLayer visibleLayers property</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-problem-with-javascript-api-3-16/m-p/265938#M24553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you post the code you used to get that result returned? I do not get that result. It returns exactly what the documentation specifies an array of visible layer ids.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 15:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-problem-with-javascript-api-3-16/m-p/265938#M24553</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-17T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with JavaScript API 3.19 AcrGISDynamicMapServiceLayer visibleLayers property</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-problem-with-javascript-api-3-16/m-p/265939#M24554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, turns out I didn't have the latest API the way I thought I did. Once I switched out the old one it worked fine. Thanks for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 15:52:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-problem-with-javascript-api-3-16/m-p/265939#M24554</guid>
      <dc:creator>NicholasToscano1</dc:creator>
      <dc:date>2017-01-17T15:52:29Z</dc:date>
    </item>
  </channel>
</rss>

