<?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: Sample to get the list of available layers on servers and show checkbox list in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409206#M37666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, While the above example is helpful is toggling the layers list, I'm looking for he following things as well:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Getting list of available layers on server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Showing them on an accordion like control on the maps whose visibility can be toggled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 07:04:48 GMT</pubDate>
    <dc:creator>BiranchiPanda</dc:creator>
    <dc:date>2014-06-18T07:04:48Z</dc:date>
    <item>
      <title>Sample to get the list of available layers on servers and show checkbox list</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409204#M37664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to get list of layers (like roads/ports etc) from ArcGIS server and show them using a checkbox list on the map. I was unable to find samples on how to retrieve the available layers list. Any examples demonstrating this would be of much help...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 07:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409204#M37664</guid>
      <dc:creator>BiranchiPanda</dc:creator>
      <dc:date>2014-06-17T07:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sample to get the list of available layers on servers and show checkbox list</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409205#M37665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hope this link helps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/map_explicitlayerlist.html"&gt;https://developers.arcgis.com/javascript/jssamples/map_explicitlayerlist.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 09:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409205#M37665</guid>
      <dc:creator>ManishkumarPatel</dc:creator>
      <dc:date>2014-06-17T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sample to get the list of available layers on servers and show checkbox list</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409206#M37666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, While the above example is helpful is toggling the layers list, I'm looking for he following things as well:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Getting list of available layers on server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Showing them on an accordion like control on the maps whose visibility can be toggled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 07:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409206#M37666</guid>
      <dc:creator>BiranchiPanda</dc:creator>
      <dc:date>2014-06-18T07:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sample to get the list of available layers on servers and show checkbox list</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409207#M37667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at this &lt;/SPAN&gt;&lt;A href="http://jsbin.com/majom/1/edit"&gt;example&lt;/A&gt;&lt;SPAN&gt; that shows how checkboxes for all visible layers are added from multiple services.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 12:27:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409207#M37667</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-06-18T12:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sample to get the list of available layers on servers and show checkbox list</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409208#M37668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Ken,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the great reply! It saved me a lot of time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm now stuck and looking for the following features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I want the layers checkbox to be visible but don't want to show them by default on page load. I tried doing the following, but this resulted in not showing the checkbox at all &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&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; map.on("layers-add-result", function (evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.each(evt.layers[0], function (i, layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.each(layer.layerInfos, function (index, info) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; info.defaultVisibility = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buildLayerList(evt);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I want to show the checkboxes in a accordion like control inside the map area itself. To start with I placed the checkbox div inside the map div, but that resulted in blocking up the entire horizontal space for that much height. I tried with fixed width and relative/absolute placement... none worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hint/example would be of great help and would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Biranchi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409208#M37668</guid>
      <dc:creator>BiranchiPanda</dc:creator>
      <dc:date>2021-12-11T18:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sample to get the list of available layers on servers and show checkbox list</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409209#M37669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to do something like &lt;/SPAN&gt;&lt;A href="http://jsbin.com/mupir/1/edit"&gt;this&lt;/A&gt;&lt;SPAN&gt; with an accordian panel?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 13:30:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409209#M37669</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-06-19T13:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sample to get the list of available layers on servers and show checkbox list</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409210#M37670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3856"&gt;Ken Buja&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply. yes, I want to show the layers list in an accordion on the map itself. Any sample would be of great help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Biranchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 08:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sample-to-get-the-list-of-available-layers-on/m-p/409210#M37670</guid>
      <dc:creator>BiranchiPanda</dc:creator>
      <dc:date>2014-07-15T08:31:18Z</dc:date>
    </item>
  </channel>
</rss>

