<?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 Display UniqueValueRenderer symbols in custom legend? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-uniquevaluerenderer-symbols-in-custom/m-p/749297#M69320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;I recently figured out how to use esri/request to retrieve legend images from our server to make a custom legend div. However, now I am moving onto using the UniqueValueRenderer for layers after they load....so all the symbols are changing. In the JavaScript API documentation it mentions that .&lt;A href="https://developers.arcgis.com/javascript/jsapi/uniquevaluerenderer-amd.html"&gt;getUniqueValueInfo&lt;/A&gt;(graphic) "&lt;SPAN style="color: #4d4d4d;"&gt;Returns rendering and legend information (as defined by the renderer) associated with the given graphic." I'm not sure what graphic to feed it though. It doesn't work if I offer it the layer with the renderer assigned to it or its graphics or a single graphic (e.g. renderer.getUniqueValueInfo(layer.graphics[0])).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Does anyone have tips on getting images from a layer with a renderer to use in the legend?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2014 19:34:35 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2014-07-10T19:34:35Z</dc:date>
    <item>
      <title>Display UniqueValueRenderer symbols in custom legend?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-uniquevaluerenderer-symbols-in-custom/m-p/749297#M69320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;I recently figured out how to use esri/request to retrieve legend images from our server to make a custom legend div. However, now I am moving onto using the UniqueValueRenderer for layers after they load....so all the symbols are changing. In the JavaScript API documentation it mentions that .&lt;A href="https://developers.arcgis.com/javascript/jsapi/uniquevaluerenderer-amd.html"&gt;getUniqueValueInfo&lt;/A&gt;(graphic) "&lt;SPAN style="color: #4d4d4d;"&gt;Returns rendering and legend information (as defined by the renderer) associated with the given graphic." I'm not sure what graphic to feed it though. It doesn't work if I offer it the layer with the renderer assigned to it or its graphics or a single graphic (e.g. renderer.getUniqueValueInfo(layer.graphics[0])).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Does anyone have tips on getting images from a layer with a renderer to use in the legend?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 19:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-uniquevaluerenderer-symbols-in-custom/m-p/749297#M69320</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-07-10T19:34:35Z</dc:date>
    </item>
  </channel>
</rss>

