<?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: How to get Layer Description in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444133#M11513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can include a LegendExtension from this thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18999-How-do-I-get-the-selected-LegendItem" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/18999-How-do-I-get-the-selected-LegendItem&lt;/A&gt;&lt;SPAN&gt; and access the selected LegendItemViewModel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
 var result = this.MyLegend.SelectedItems();
 foreach (var item in result)
&amp;nbsp; MessageBox.Show(item.Description);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another way is to parse the json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void ArcGISDynamicMapServiceLayer_Initialized(object sender, System.EventArgs e)
{
 ArcGISDynamicMapServiceLayer layer = sender as ArcGISDynamicMapServiceLayer;
 foreach (var l in layer.Layers)
 {
&amp;nbsp; //TODO use this sub layer url 
&amp;nbsp; //string.Format("{0}/{1}/f=json", layer.Url, l.ID));
 }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;A href="http://forums.silverlight.net/forums/p/169016/385411.aspx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.silverlight.net/forums/p/169016/385411.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:51:36 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-11T19:51:36Z</dc:date>
    <item>
      <title>How to get Layer Description</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444132#M11512</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 have a dynamic map service with 60+ layers. For each layer I have added specific description. I want to get the description for each layer using Sliver light API. How to get the description.?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see the description text in my rest services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer description is always null &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;API help says LayerLegendInfo has LayerDescription property which provides description of the layer. But&amp;nbsp; I do not know how to access layer Legend info class and get the layer description property&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pl help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SR&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 05:42:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444132#M11512</guid>
      <dc:creator>LakshmananVenkatesan</dc:creator>
      <dc:date>2011-03-16T05:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Layer Description</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444133#M11513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can include a LegendExtension from this thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18999-How-do-I-get-the-selected-LegendItem" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/18999-How-do-I-get-the-selected-LegendItem&lt;/A&gt;&lt;SPAN&gt; and access the selected LegendItemViewModel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
 var result = this.MyLegend.SelectedItems();
 foreach (var item in result)
&amp;nbsp; MessageBox.Show(item.Description);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another way is to parse the json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void ArcGISDynamicMapServiceLayer_Initialized(object sender, System.EventArgs e)
{
 ArcGISDynamicMapServiceLayer layer = sender as ArcGISDynamicMapServiceLayer;
 foreach (var l in layer.Layers)
 {
&amp;nbsp; //TODO use this sub layer url 
&amp;nbsp; //string.Format("{0}/{1}/f=json", layer.Url, l.ID));
 }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;A href="http://forums.silverlight.net/forums/p/169016/385411.aspx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.silverlight.net/forums/p/169016/385411.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444133#M11513</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T19:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Layer Description</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444134#M11514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just needed to read Description from my 188 layers in the MXD. Used soap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.ServiceModel.EndpointAddress endPointAddress = new System.ServiceModel.EndpointAddress(pURL);&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;&amp;nbsp; System.ServiceModel.BasicHttpBinding basicHttpBinding = new System.ServiceModel.BasicHttpBinding() { MaxReceivedMessageSize = 2147483647 };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_client = new MapServerPortClient(basicHttpBinding, endPointAddress);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_client.GetServerInfoCompleted += new EventHandler&amp;lt;GetServerInfoCompletedEventArgs&amp;gt;(_client_GetServerInfoCompleted);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_client.GetServerInfoAsync("Layers");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void _client_GetServerInfoCompleted(object sender, GetServerInfoCompletedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Result.MapLayerInfos....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oren.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.gal-systems.com"&gt;http://www.gal-systems.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 09:15:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444134#M11514</guid>
      <dc:creator>OrenGal</dc:creator>
      <dc:date>2011-11-15T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Layer Description</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444135#M11515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for sharing your code. We have also included GetDetails() and GetAllDetails() in v2.3 to give you metadata information about a specific layer or all sub layers of ArcGISDynamicMapServiceLayer or ArcGISTiledMapServiceLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 13:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444135#M11515</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-11-15T13:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Layer Description</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444136#M11516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thank you for sharing your code. We have also included GetDetails() and GetAllDetails() in v2.3 to give you metadata information about a specific layer or all sub layers of ArcGISDynamicMapServiceLayer or ArcGISTiledMapServiceLayer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(What is v2.3? I'm using 3.0 beta1)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 13:36:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-layer-description/m-p/444136#M11516</guid>
      <dc:creator>OrenGal</dc:creator>
      <dc:date>2011-11-15T13:36:40Z</dc:date>
    </item>
  </channel>
</rss>

