<?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 Manually retrieve legendResponse object on layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/manually-retrieve-legendresponse-object-on-layer/m-p/373978#M34690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to roll my own overlay toggle tree with embedded legend graphics, and I'm finding that if I generate an esri/dijit/Legend, after startup() I then have access to a legendResponse object on the layer (right below layerInfos) which has all the legend images and label info.&amp;nbsp; Without generating a legend it's not present.&amp;nbsp; Is there a way to retrieve the content of legendResponse without actually generating a legend?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only alternative I see is to hit each sublayer by &amp;lt;service url&amp;gt;/&amp;lt;id&amp;gt;/legend and save the drawingInfo.symbol piece, but this is not a lightweight task if the dynamic service has a ton of layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My buddy working on an iOS implementation has AGSMapServiceInfo.retrieveLegendInfo which does this.&amp;nbsp; Digging into the TOC code, it looks like it's using &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/sharing/tools/legend/rest/"&gt;http://www.arcgis.com/sharing/tools/legend/rest/&lt;/A&gt;&lt;SPAN&gt; service to return this.&amp;nbsp; Is this something we can install on our own arcgis server?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2013 19:47:07 GMT</pubDate>
    <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
    <dc:date>2013-03-19T19:47:07Z</dc:date>
    <item>
      <title>Manually retrieve legendResponse object on layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/manually-retrieve-legendresponse-object-on-layer/m-p/373978#M34690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to roll my own overlay toggle tree with embedded legend graphics, and I'm finding that if I generate an esri/dijit/Legend, after startup() I then have access to a legendResponse object on the layer (right below layerInfos) which has all the legend images and label info.&amp;nbsp; Without generating a legend it's not present.&amp;nbsp; Is there a way to retrieve the content of legendResponse without actually generating a legend?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only alternative I see is to hit each sublayer by &amp;lt;service url&amp;gt;/&amp;lt;id&amp;gt;/legend and save the drawingInfo.symbol piece, but this is not a lightweight task if the dynamic service has a ton of layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My buddy working on an iOS implementation has AGSMapServiceInfo.retrieveLegendInfo which does this.&amp;nbsp; Digging into the TOC code, it looks like it's using &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/sharing/tools/legend/rest/"&gt;http://www.arcgis.com/sharing/tools/legend/rest/&lt;/A&gt;&lt;SPAN&gt; service to return this.&amp;nbsp; Is this something we can install on our own arcgis server?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 19:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/manually-retrieve-legendresponse-object-on-layer/m-p/373978#M34690</guid>
      <dc:creator>deleted-user-RAnWn8DDSd1P</dc:creator>
      <dc:date>2013-03-19T19:47:07Z</dc:date>
    </item>
  </channel>
</rss>

