<?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 legend information using a REST endpoint and what to do with it in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488194#M12545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops, you are right the legend infos are cached at the client side once the first query has been done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess it's a bug we need to fix in a future version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to find a workaround and let you know:confused: (at least the creation of a new layer should work. OK it's awful, I agree)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 23:18:33 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2011-06-07T23:18:33Z</dc:date>
    <item>
      <title>How to get legend information using a REST endpoint and what to do with it</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488191#M12542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an issue where I am adding layers to a map service dynamically and I need to keep the legend information in sync; however, after I add the layer to the map service/refresh the REST cache/then set the visible layers on the service on the client side the legend information (i.e. the images) are not refreshed. I tried simply calling the Legend.Refresh method, but that does not force the server to send a new image. Once the ArcGISDynamicMapServiceLayer has been initialized (and any subsequent initialize call) does not return a new legend information. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to set the Image source for a legend item using a REST endpoint (ex. &lt;/SPAN&gt;&lt;A href="http://localhost/ArcGIS/rest/services/UserLayers/MapServer/Legend/0?f=json&amp;amp;pretty=true)?"&gt;http://localhost/ArcGIS/rest/services/UserLayers/MapServer/Legend/0?f=json&amp;amp;pretty=true)?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I stuck building a custom legend control for this seemingly straight forward issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 21:48:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488191#M12542</guid>
      <dc:creator>BranonBarrett</dc:creator>
      <dc:date>2011-06-06T21:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get legend information using a REST endpoint and what to do with it</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488192#M12543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try to set DisableClientCaching to true for your ArcGISDynamicMapServiceLayer ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 12:48:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488192#M12543</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-06-07T12:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get legend information using a REST endpoint and what to do with it</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488193#M12544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did, and that did not work. It appears that property only refers to caching the map images? Any other ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 19:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488193#M12544</guid>
      <dc:creator>BranonBarrett</dc:creator>
      <dc:date>2011-06-07T19:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get legend information using a REST endpoint and what to do with it</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488194#M12545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops, you are right the legend infos are cached at the client side once the first query has been done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess it's a bug we need to fix in a future version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to find a workaround and let you know:confused: (at least the creation of a new layer should work. OK it's awful, I agree)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 23:18:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-legend-information-using-a-rest/m-p/488194#M12545</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-06-07T23:18:33Z</dc:date>
    </item>
  </channel>
</rss>

