<?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: Add graphicsLayer to legend widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199326#M18460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have never had the need to do that but you can basically do anything using DOM manipulation. You would juts dojo query for the #&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;legendDiv and add you new dom element to that.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2017 20:01:04 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-10-16T20:01:04Z</dc:date>
    <item>
      <title>Add graphicsLayer to legend widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199323#M18457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings, I'd like to be able to add graphicsLayers into my legend instance. Has anyone added a graphicsLayer to the legend widget?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Tyler&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 16:13:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199323#M18457</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2017-10-16T16:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add graphicsLayer to legend widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199324#M18458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The Legend dijit has a layerInfo property for manually specifying layers but it has this:&lt;/P&gt;&lt;TABLE height="57" style="color: #4d4d4d; background-color: #fafafa; border-width: 1px 1px 0px; border-style: solid; border-color: #d9d9d9; font-size: 14px; margin: 0.1em 0px 0.3em;" width="814"&gt;&lt;TBODY&gt;&lt;TR style="border-bottom: 1px solid #ededed;"&gt;&lt;TD class="" style="background-color: #ffffff; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; padding: 4px 1px 4px 5px; width: 82px;"&gt;&amp;lt;&lt;CODE style="background: transparent;"&gt;&lt;SPAN class=""&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/layer-amd.html" style="color: #00629b; text-decoration: none;"&gt;Layer&lt;/A&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&amp;gt; layer&lt;/TD&gt;&lt;TD class="" style="background-color: #ffffff; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; padding: 4px 1px 4px 5px; width: 57.2px;"&gt;Required&lt;/TD&gt;&lt;TD class="" style="background-color: #ffffff; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; padding: 4px 1px 4px 5px; width: 654.8px;"&gt;A layer to add to the legend. &lt;STRONG&gt;Valid layer types are: ArcGISTiledMapServiceLayer,ArcGISDynamicMapServiceLayer.&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 16:53:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199324#M18458</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T16:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add graphicsLayer to legend widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199325#M18459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw that graphicsLayer is not a valid type.&amp;nbsp; I'm wondering if there is a way to hack into the legend's DOM get the graphics layer's symbology and dynamically create some HTML to push into the legend wrapper. Has anyone doen anything like that?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:56:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199325#M18459</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2017-10-16T19:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add graphicsLayer to legend widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199326#M18460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have never had the need to do that but you can basically do anything using DOM manipulation. You would juts dojo query for the #&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;legendDiv and add you new dom element to that.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:01:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-graphicslayer-to-legend-widget/m-p/199326#M18460</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T20:01:04Z</dc:date>
    </item>
  </channel>
</rss>

