<?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: layerLegendInfo.LayerDescription is always null in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389264#M10103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3928"&gt;Dominique Broux&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Basically, I need to execute a &lt;A href="https://developers.arcgis.com/silverlight/api-reference/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~GetAllDetails.html"&gt;ArcGISDynamicMapServiceLayer.GetAllDetails&lt;/A&gt;() so that I can populate the sub layers with the returned &lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo.html"&gt;FeatureLayerInfo &lt;/A&gt;objects, specifically the layer descriptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless I've completely missed something about the ArcGISDynamicMapServiceLayer to tell it to return the FeatureLayerInfos on its own, which it doesn't seem to currently do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 17:09:38 GMT</pubDate>
    <dc:creator>Matrix_Solutions_Inc_Geomatics</dc:creator>
    <dc:date>2015-05-06T17:09:38Z</dc:date>
    <item>
      <title>layerLegendInfo.LayerDescription is always null</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389261#M10100</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 trying to bind to the &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;LegendItemViewModel.Description&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; property but the value never shows up or defaults to the Map Services description. Yet all the other property values exists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;DataTemplate x:Key="LayerTemplate"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel&amp;nbsp; Margin="0,-1" Orientation="Horizontal" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ToolTipService.ToolTip&amp;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; &amp;lt;StackPanel MaxWidth="400"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock FontWeight="Bold" Text="{Binding Path=Layer.ID }" TextWrapping="Wrap" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock FontWeight="Bold" Text="{Binding Path=Label}" TextWrapping="Wrap" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding Path=Description}" /&amp;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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding Path=SubLayerID, StringFormat='SubLayer ID : {0}'}" /&amp;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; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ToolTipService.ToolTip&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I debugged where the value gets set in LayerItemViewModel...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; internal LayerItemViewModel(Layer layer, LayerLegendInfo layerLegendInfo, string defaultLayerDescription, Map map)
&amp;nbsp;&amp;nbsp; : this(layer)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; Debug.Assert(layerLegendInfo != null);
&amp;nbsp;&amp;nbsp; Debug.Assert(map != null); // Needed to convert scale to resolution

&amp;nbsp;&amp;nbsp; SubLayerID = layerLegendInfo.SubLayerID;
&amp;nbsp;&amp;nbsp; Label = layerLegendInfo.LayerName;
&amp;nbsp;&amp;nbsp; ParentLabel = layer.DisplayName ?? layer.ID;
&amp;nbsp;&amp;nbsp; LayerType = layerLegendInfo.LayerType;
&amp;nbsp;&amp;nbsp; IsHidden = layerLegendInfo.IsHidden;
&amp;nbsp;&amp;nbsp; if (string.IsNullOrEmpty(layerLegendInfo.LayerDescription))
&amp;nbsp;&amp;nbsp;&amp;nbsp; Description = defaultLayerDescription;
&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp; Description = layerLegendInfo.LayerDescription;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; and it seems that layerLegendInfo.LayerDescription is always null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should add that this is a 10.0 service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 15:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389261#M10100</guid>
      <dc:creator>Matrix_Solutions_Inc_Geomatics</dc:creator>
      <dc:date>2014-01-06T15:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: layerLegendInfo.LayerDescription is always null</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389262#M10101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;LayerItemViewModel.LayerDescription is populated from the description coming from the layer metadata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you check that your service has a description?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From this &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/InteractiveSDK/Default.htm#LegendTOC"&gt;sample&lt;/A&gt;&lt;SPAN&gt;, it looks like the description is correctly set (you can see the layer description in the legend layer item tooltip).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 08:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389262#M10101</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-01-09T08:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: layerLegendInfo.LayerDescription is always null</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389263#M10102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reply, but &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;LayerDescription returns the service description as it does in the example you have provided, not the description given to that particular feature layer.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Also, after scouring the LayerInfo for sub-layers during run time the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;LayerDescription object is always null. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rest api doesn't seem to return the descriptions for the layers when doing a call to the map service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 20:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389263#M10102</guid>
      <dc:creator>Matrix_Solutions_Inc_Geomatics</dc:creator>
      <dc:date>2015-05-05T20:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: layerLegendInfo.LayerDescription is always null</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389264#M10103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3928"&gt;Dominique Broux&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Basically, I need to execute a &lt;A href="https://developers.arcgis.com/silverlight/api-reference/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~GetAllDetails.html"&gt;ArcGISDynamicMapServiceLayer.GetAllDetails&lt;/A&gt;() so that I can populate the sub layers with the returned &lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo.html"&gt;FeatureLayerInfo &lt;/A&gt;objects, specifically the layer descriptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless I've completely missed something about the ArcGISDynamicMapServiceLayer to tell it to return the FeatureLayerInfos on its own, which it doesn't seem to currently do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 17:09:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerlegendinfo-layerdescription-is-always-null/m-p/389264#M10103</guid>
      <dc:creator>Matrix_Solutions_Inc_Geomatics</dc:creator>
      <dc:date>2015-05-06T17:09:38Z</dc:date>
    </item>
  </channel>
</rss>

