<?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: JS API: Printing Legend with map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-printing-legend-with-map/m-p/367049#M34045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to this page, you want to use the layerId for the layers you want to add: &lt;A href="https://developers.arcgis.com/javascript/jsapi/printtemplate-amd.html" title="https://developers.arcgis.com/javascript/jsapi/printtemplate-amd.html"&gt;PrintTemplate | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2015 14:46:03 GMT</pubDate>
    <dc:creator>ChrisSergent</dc:creator>
    <dc:date>2015-02-03T14:46:03Z</dc:date>
    <item>
      <title>JS API: Printing Legend with map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-printing-legend-with-map/m-p/367048#M34044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the Print Webmap sample (&lt;A _jive_internal="true" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fjssamples%2Fwidget_print_webmap.html" rel="nofollow" target="_blank"&gt;Print webmap | ArcGIS API for JavaScript&lt;/A&gt; ) there is this code and comment...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="javascript" name="code"&gt;legendLayers: [], // empty array means no legend&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;What is supposed to be passed into here? The legend dijit has layers and layerInfos. I have tried both but I am not seeing any legend or symbology on the output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="pln"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 16:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-printing-legend-with-map/m-p/367048#M34044</guid>
      <dc:creator>JamesSampica</dc:creator>
      <dc:date>2014-11-10T16:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: JS API: Printing Legend with map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-printing-legend-with-map/m-p/367049#M34045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to this page, you want to use the layerId for the layers you want to add: &lt;A href="https://developers.arcgis.com/javascript/jsapi/printtemplate-amd.html" title="https://developers.arcgis.com/javascript/jsapi/printtemplate-amd.html"&gt;PrintTemplate | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-printing-legend-with-map/m-p/367049#M34045</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-02-03T14:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: JS API: Printing Legend with map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-printing-legend-with-map/m-p/367050#M34046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to pass it a LegendLayer (notice no "s" on the end) object.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably the best discussion of how it works that I've been able to find.&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/116865/no-legend-showing-at-all-in-arcgis-server-print-task-mapexport" style="line-height: 1.5;" title="http://gis.stackexchange.com/questions/116865/no-legend-showing-at-all-in-arcgis-server-print-task-mapexport"&gt;No legend showing at all in ArcGIS Server print task (MapExport) - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt;‌ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, note that if you delete that line you'll get a legend in your printed map.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jarrod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 18:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-printing-legend-with-map/m-p/367050#M34046</guid>
      <dc:creator>JarrodDoucette</dc:creator>
      <dc:date>2015-02-20T18:41:14Z</dc:date>
    </item>
  </channel>
</rss>

