<?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: Getting custom legend info. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223718#M5625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If, for any reason, you need to get the list of legend infos out of the legend control, you can use the &lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~QueryLegendInfos.html"&gt;QueryLegendInfos &lt;/A&gt;method that exist on all layer supporting the legend.&lt;BR /&gt;That being said, for your sample, you should be able to use the legend control and to retemplate it to get the expected result (for example with a WrapPanel, there is a sample here : &lt;A href="http://www.arcgis.com/home/item.html?id=c673bf3e983b418495eeb0f45bb44c68"&gt;http://www.arcgis.com/home/item.html?id=c673bf3e983b418495eeb0f45bb44c68&lt;/A&gt;)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The QueryLegendInfos method do work, but it brings every legend, without the scale filter. This problem i'm already working on, but even with my code to control it, different layers may have, in my case, the same the same info, like Ocean and state limits, and that info is been shown many times in the wrappanel. Is there any way to work that around?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Dec 2011 09:25:31 GMT</pubDate>
    <dc:creator>jonataspovoas</dc:creator>
    <dc:date>2011-12-26T09:25:31Z</dc:date>
    <item>
      <title>Getting custom legend info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223714#M5621</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'm doing a Silvelight application, and in it I need to get the info about the legend of the map, so I can add it on a printing funtionality. I know that the esri legend class gets it from the rest service (something like &lt;/SPAN&gt;&lt;A href="http://server/ArcGIS/rest/services/Folder/Service/MapServer/legend"&gt;http://server/ArcGIS/rest/services/Folder/Service/MapServer/legend&lt;/A&gt;&lt;SPAN&gt;) but i don't know how to get this list myself, and i need to get a specific list of items from it (the ones been used - the info about what's shown on the map - at the moment the user clicks the print button).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to do it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 14:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223714#M5621</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2011-12-14T14:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting custom legend info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223715#M5622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you talking about this Print sample? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap"&gt;http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample use our Legend control &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#LegendWithTemplates"&gt;http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#LegendWithTemplates&lt;/A&gt;&lt;SPAN&gt;. The legend displays symbols from layer renderer. If you modify this sample to apply a different renderer to the FeatureLayer, this will be used by Legend control. If you want to get to the service-defined renderer, when the layer is initialized, you can check LayerInfo.Renderer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 16:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223715#M5622</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-12-14T16:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting custom legend info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223716#M5623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you talking about this Print sample? &lt;A href="http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap"&gt;http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hadn't seen this sample. Also, I couldn't make it work, when i click at the button nothing happens...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This sample use our Legend control &lt;A href="http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#LegendWithTemplates"&gt;http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#LegendWithTemplates&lt;/A&gt;. The legend displays symbols from layer renderer. If you modify this sample to apply a different renderer to the FeatureLayer, this will be used by Legend control. If you want to get to the service-defined renderer, when the layer is initialized, you can check LayerInfo.Renderer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;About the Legend, I need this information, to show on the page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;IMG src="https://lh6.googleusercontent.com/-uMpDbxgzgy4/TujuBKr59UI/AAAAAAAAAV4/4V-t6stROfg/s634/Legend.jpg" /&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 16:44:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223716#M5623</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2011-12-14T16:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting custom legend info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223717#M5624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If, for any reason, you need to get the list of legend infos out of the legend control, you can use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~QueryLegendInfos.html"&gt;QueryLegendInfos &lt;/A&gt;&lt;SPAN&gt;method that exist on all layer supporting the legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That being said, for your sample, you should be able to use the legend control and to retemplate it to get the expected result (for example with a WrapPanel, there is a sample here : &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=c673bf3e983b418495eeb0f45bb44c68"&gt;http://www.arcgis.com/home/item.html?id=c673bf3e983b418495eeb0f45bb44c68&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 11:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223717#M5624</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-12-15T11:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting custom legend info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223718#M5625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If, for any reason, you need to get the list of legend infos out of the legend control, you can use the &lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~QueryLegendInfos.html"&gt;QueryLegendInfos &lt;/A&gt;method that exist on all layer supporting the legend.&lt;BR /&gt;That being said, for your sample, you should be able to use the legend control and to retemplate it to get the expected result (for example with a WrapPanel, there is a sample here : &lt;A href="http://www.arcgis.com/home/item.html?id=c673bf3e983b418495eeb0f45bb44c68"&gt;http://www.arcgis.com/home/item.html?id=c673bf3e983b418495eeb0f45bb44c68&lt;/A&gt;)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The QueryLegendInfos method do work, but it brings every legend, without the scale filter. This problem i'm already working on, but even with my code to control it, different layers may have, in my case, the same the same info, like Ocean and state limits, and that info is been shown many times in the wrappanel. Is there any way to work that around?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2011 09:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223718#M5625</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2011-12-26T09:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting custom legend info.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223719#M5626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am still thinking that you should use the legend control that will manage the scale visibility for you, else you have to do it by yourself : each LayerLegendInfo has a MaximumScale and a MinimumScale that you can use to get a visibility depending on the map scale.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2011 10:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/getting-custom-legend-info/m-p/223719#M5626</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-12-26T10:33:25Z</dc:date>
    </item>
  </channel>
</rss>

