<?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: May service layers in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/may-service-layers/m-p/458045#M10524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;getAllDetails: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/index.html?com/esri/ags/layers/supportClasses/AllDetails.html&amp;amp;com/esri/ags/layers/supportClasses/class-list.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/index.html?com/esri/ags/layers/supportClasses/AllDetails.html&amp;amp;com/esri/ags/layers/supportClasses/class-list.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can return a layersDetails which is an array of detailed information about each layer in a map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; 
&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;myMayService&lt;/SPAN&gt;.getAllDetails( new AsyncResponder(
function myAllResultFunction(result:AllDetails, token:Object = null):void
{
layerDetails = new ArrayCollection(result.layersDetails);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
},
function myFaultFunction(error:Object, token:Object = null):void
{
Alert.show(String(error));
}
));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But to assign it your legend should automatically happen when you check the layers on assuming you have already added your service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:23:36 GMT</pubDate>
    <dc:creator>JoeHewitt</dc:creator>
    <dc:date>2021-12-11T20:23:36Z</dc:date>
    <item>
      <title>May service layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/may-service-layers/m-p/458044#M10523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a published a May service consisting of many layers on ARCGIS Server. I want to access from flex application the layers array of this map service in order to assign this layer array to esri legend control in flex application. Is there any way to access the layers in the published map services. please note I am using flex API under flash builder 4.6. Any advice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nadeem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 19:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/may-service-layers/m-p/458044#M10523</guid>
      <dc:creator>NadeemQazi</dc:creator>
      <dc:date>2013-06-18T19:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: May service layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/may-service-layers/m-p/458045#M10524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;getAllDetails: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/index.html?com/esri/ags/layers/supportClasses/AllDetails.html&amp;amp;com/esri/ags/layers/supportClasses/class-list.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/index.html?com/esri/ags/layers/supportClasses/AllDetails.html&amp;amp;com/esri/ags/layers/supportClasses/class-list.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can return a layersDetails which is an array of detailed information about each layer in a map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; 
&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;myMayService&lt;/SPAN&gt;.getAllDetails( new AsyncResponder(
function myAllResultFunction(result:AllDetails, token:Object = null):void
{
layerDetails = new ArrayCollection(result.layersDetails);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
},
function myFaultFunction(error:Object, token:Object = null):void
{
Alert.show(String(error));
}
));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But to assign it your legend should automatically happen when you check the layers on assuming you have already added your service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/may-service-layers/m-p/458045#M10524</guid>
      <dc:creator>JoeHewitt</dc:creator>
      <dc:date>2021-12-11T20:23:36Z</dc:date>
    </item>
  </channel>
</rss>

