<?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: Determine queryable/selectable layers in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87846#M2142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dominique&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the Reply. This could be very usefull. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While debugging this morning I found this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my Legend_Refreshed the LayerItems is of Type LayerItemViewModel. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Foreach LayerItemViewModel it has a Property "LayerType" that specifies what layer it is. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like LayerType = "Feature Layer" or LayerType = "Group Layer". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a Legend so in this case this will work but in a case where you are not using a legend and need Layer Information the solution you provided will work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks A Lot. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;De Wet&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2011 05:55:49 GMT</pubDate>
    <dc:creator>De_WetEllis</dc:creator>
    <dc:date>2011-09-13T05:55:49Z</dc:date>
    <item>
      <title>Determine queryable/selectable layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87843#M2139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having problems with my viewer I created. The Viewer allows a user to select a layer from a dropdown and from that layer use the Query tools to query that specific layer. To populate the Dropdown I just looped through all visibles layers. But the problem is that the Service/MXD contains another service ( Almost like a BASEMAP ) . But that layer is an Image Service. And also Unselectable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that the client designed this MXD and I cant change anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the query task fails on that layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I determine all the layers that are queryable/selectable. I cannot find a property on LayerInfo. Only if its visible. The viewer is not specific to a Service. Its a plug in viewer and should work on any Service I specify. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Solutions or Suggestions on how to get this list of layers. I am using an ArcGISDynamicMapServiceLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specs:&amp;nbsp; ARCGIS 10 , API 2.2 , Silverlight 4 , C#&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;De Wet&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 04:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87843#M2139</guid>
      <dc:creator>De_WetEllis</dc:creator>
      <dc:date>2011-09-09T04:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Determine queryable/selectable layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87844#M2140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay , I was thinking about this issue. And maybe there is a different Solution. But I still need help on doing this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Background layer doesnt have a featureclass. So how can I determine if the Layer has a feature class. Then if the Feature Class is Null then I know its a background layer. ( Something like that ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Layerinfo for each layer within a ArcGISDynamicMapServiceLayer doesnt show me anything regarding the Capabilities of the Layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions Please. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;De Wet&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 06:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87844#M2140</guid>
      <dc:creator>De_WetEllis</dc:creator>
      <dc:date>2011-09-12T06:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Determine queryable/selectable layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87845#M2141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One way is you to query the layers resource of the map service and deserialize the response by yourself:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - documentation : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/layers.html"&gt;http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/layers.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - sample : &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Percent_Over_64/MapServer/layers?f=pjson"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Percent_Over_64/MapServer/layers?f=pjson&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The type field is giving you the type of layer (Feature Layer, Raster, Group Layer, ....)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 10:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87845#M2141</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-09-12T10:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Determine queryable/selectable layers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87846#M2142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dominique&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the Reply. This could be very usefull. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While debugging this morning I found this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my Legend_Refreshed the LayerItems is of Type LayerItemViewModel. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Foreach LayerItemViewModel it has a Property "LayerType" that specifies what layer it is. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like LayerType = "Feature Layer" or LayerType = "Group Layer". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a Legend so in this case this will work but in a case where you are not using a legend and need Layer Information the solution you provided will work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks A Lot. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;De Wet&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 05:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/determine-queryable-selectable-layers/m-p/87846#M2142</guid>
      <dc:creator>De_WetEllis</dc:creator>
      <dc:date>2011-09-13T05:55:49Z</dc:date>
    </item>
  </channel>
</rss>

