<?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: Check whether a sub-layer in an ArcGISDynamicMapServiceLayer is a FeatureLayer? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-whether-a-sub-layer-in-an/m-p/268123#M7004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The type of sublayer is returned by the REST API when you request the REST point corresponding to 'All Layers' or to a specific layer : &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer/layers?f=pjson"&gt;sample&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/"&gt;documentation&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But AFAIK there is no support for that in the SL API so you will have to deserialize by yourself the result of the query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2011 13:32:35 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2011-04-26T13:32:35Z</dc:date>
    <item>
      <title>Check whether a sub-layer in an ArcGISDynamicMapServiceLayer is a FeatureLayer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-whether-a-sub-layer-in-an/m-p/268122#M7003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am developing a silverlight application that displays an ArcGISDynamicMapServiceLayer in a Map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Among all the sub-layers, I want to identify all the Feature Layers and do some corresponding process. However, I haven't found a good way to distinguish Feature Layers from all the others (such as Group Layers, Annotation Layers, and Annotation Sublayers). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The following code can exclude all the Group Layers, but not Annotation Layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;***********************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;foreach (LayerInfo subLayer in tempDynamicLayer.Layers)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (subLayer.SubLayerIds == null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; // do something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;***********************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there any better way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My development environment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- .Net 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Silverlight 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Visual Studio 2010&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 19:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-whether-a-sub-layer-in-an/m-p/268122#M7003</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2011-04-20T19:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Check whether a sub-layer in an ArcGISDynamicMapServiceLayer is a FeatureLayer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-whether-a-sub-layer-in-an/m-p/268123#M7004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The type of sublayer is returned by the REST API when you request the REST point corresponding to 'All Layers' or to a specific layer : &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer/layers?f=pjson"&gt;sample&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/"&gt;documentation&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But AFAIK there is no support for that in the SL API so you will have to deserialize by yourself the result of the query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 13:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/check-whether-a-sub-layer-in-an/m-p/268123#M7004</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-04-26T13:32:35Z</dc:date>
    </item>
  </channel>
</rss>

