<?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: Create Dynamic Layer List Using Multiple Services in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-dynamic-layer-list-using-multiple-services/m-p/503994#M46792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi - Complete newbie here, so not sure if this will really *bump* this post or not, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but we are also trying to do this and have not had any luck - surelely someone else has managed this in the last year and a half?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be most appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2014 08:28:54 GMT</pubDate>
    <dc:creator>AmeliaMalcolm</dc:creator>
    <dc:date>2014-04-08T08:28:54Z</dc:date>
    <item>
      <title>Create Dynamic Layer List Using Multiple Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-dynamic-layer-list-using-multiple-services/m-p/503993#M46791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to adapt &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/map_dynamiclayerlist.html" rel="nofollow noopener noreferrer" target="_blank"&gt;this sample&lt;/A&gt;&lt;SPAN&gt; so that when I have multiple services in the map, all of the layers from each service show in the layer list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attempted a few edits without any luck. The best I can get is one service or the other, but not both.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to edit &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function buildLayerList(&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;layer&lt;/SPAN&gt;) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var items = dojo.map(&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;layer.layerInfos&lt;/SPAN&gt;,function(info,index){&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so that it referencees multiple services? And is this even what I need to worry about? There are other places in the code that would need to be amended, but these are the two that stick out to me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-dynamic-layer-list-using-multiple-services/m-p/503993#M46791</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2021-12-11T22:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create Dynamic Layer List Using Multiple Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-dynamic-layer-list-using-multiple-services/m-p/503994#M46792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi - Complete newbie here, so not sure if this will really *bump* this post or not, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but we are also trying to do this and have not had any luck - surelely someone else has managed this in the last year and a half?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be most appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 08:28:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-dynamic-layer-list-using-multiple-services/m-p/503994#M46792</guid>
      <dc:creator>AmeliaMalcolm</dc:creator>
      <dc:date>2014-04-08T08:28:54Z</dc:date>
    </item>
  </channel>
</rss>

