<?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 Getting Dynamic Map Service Layer Name On ArcGIS API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-dynamic-map-service-layer-name-on-arcgis/m-p/375403#M34855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Can you please take a look at &lt;SPAN style="color: #358daa;"&gt;&lt;A href="https://jsfiddle.net/Behseini/sp920ee7/1/"&gt;This Demo&lt;/A&gt;​&lt;/SPAN&gt; and let me know how I can get the Selected Layer Name through API when check boxes are checked?&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;As you can see at &lt;A href="https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer" rel="nofollow" style="color: #358daa;"&gt;This Link&lt;/A&gt; the service is providing 3 layers as:&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A href="http://i.stack.imgur.com/Unxgx.png" rel="nofollow" style="color: #358daa;"&gt;&lt;IMG alt="enter image description here" class="jive-image" src="http://i.stack.imgur.com/Unxgx.png" style="border: 0px;" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;and I need to get these names as they are selected I already tried the &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/data_requestLayerInfo.html" rel="nofollow" style="color: #358daa;"&gt;Request layer info&lt;/A&gt; but this seems retuns metadata about fields only Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2016 19:01:47 GMT</pubDate>
    <dc:creator>BehrouzHosseini</dc:creator>
    <dc:date>2016-05-27T19:01:47Z</dc:date>
    <item>
      <title>Getting Dynamic Map Service Layer Name On ArcGIS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-dynamic-map-service-layer-name-on-arcgis/m-p/375403#M34855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Can you please take a look at &lt;SPAN style="color: #358daa;"&gt;&lt;A href="https://jsfiddle.net/Behseini/sp920ee7/1/"&gt;This Demo&lt;/A&gt;​&lt;/SPAN&gt; and let me know how I can get the Selected Layer Name through API when check boxes are checked?&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;As you can see at &lt;A href="https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer" rel="nofollow" style="color: #358daa;"&gt;This Link&lt;/A&gt; the service is providing 3 layers as:&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A href="http://i.stack.imgur.com/Unxgx.png" rel="nofollow" style="color: #358daa;"&gt;&lt;IMG alt="enter image description here" class="jive-image" src="http://i.stack.imgur.com/Unxgx.png" style="border: 0px;" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;and I need to get these names as they are selected I already tried the &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/data_requestLayerInfo.html" rel="nofollow" style="color: #358daa;"&gt;Request layer info&lt;/A&gt; but this seems retuns metadata about fields only Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 19:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-dynamic-map-service-layer-name-on-arcgis/m-p/375403#M34855</guid>
      <dc:creator>BehrouzHosseini</dc:creator>
      <dc:date>2016-05-27T19:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Dynamic Map Service Layer Name On ArcGIS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-dynamic-map-service-layer-name-on-arcgis/m-p/375404#M34856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LayerInfos has the information.&amp;nbsp; &lt;/P&gt;&lt;P&gt;so&amp;nbsp; &lt;/P&gt;&lt;P&gt;layer.layerInfos[0].name returns Cities&lt;/P&gt;&lt;P&gt;layer.layerInfos[1].name returns Rivers&lt;/P&gt;&lt;P&gt;layer.layerInfos[2].name returns States&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layer is the ArcGISDynamicMapServiceLayer for that service in your example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2016 21:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-dynamic-map-service-layer-name-on-arcgis/m-p/375404#M34856</guid>
      <dc:creator>RichardAbram</dc:creator>
      <dc:date>2016-05-28T21:06:29Z</dc:date>
    </item>
  </channel>
</rss>

