<?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: Print Widget - Include legend set to false - Ignored in Print Template in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-include-legend-set-to-false-ignored/m-p/1064184#M73368</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/125268"&gt;@GertConradie&lt;/a&gt;,&amp;nbsp;thanks for the question. With the default service, the print widget can include or not include the legend:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-print" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-print&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My hunch is that this issue is related to how the custom print service was configured prior to publishing. Here is some information about sharing a custom print service from Pro:&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/publish-services/windows/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 17:33:28 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2021-06-02T17:33:28Z</dc:date>
    <item>
      <title>Print Widget - Include legend set to false - Ignored in Print Template</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-include-legend-set-to-false-ignored/m-p/1063550#M73351</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the standard print widget&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html )&amp;nbsp;&lt;/A&gt;&amp;nbsp;In combination with a custom print service and a custom MXD print template.&lt;/P&gt;&lt;P&gt;When I un-tick the "Include legend" option to false/unselected, I still get legend items for all operational layers submitted as part of the JSON Export Web Map request.&lt;/P&gt;&lt;P&gt;I can see that the list of legend options array is empty when unticked:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"legendOptions": { "operationalLayers": [] }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Compared to when selected/true:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"legendOptions": {
			"operationalLayers": [{
				"id": "customLayers",
				"subLayerIds": [8]
			}, {
				"id": "colorsLayer",
				"subLayerIds": [0]
			}, {
				"id": "labelLayers",
				"subLayerIds": [1]
			}]
		}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PDF generated from my custom template make no difference though - all the operational layers appear in the legend when that setting is ticked or not.&lt;/P&gt;&lt;P&gt;If I unselect the "Add a new item to the legend when a new layer is added to the map", then nothing appear on the legend. - It seems like that setting is used for all layers added, but only when no specific legend information are summited to the print services.&amp;nbsp; (When I experiment by submitting JSON manually and ask for legend content for a subset of the operational layers, then only those layers appear in the legend.)&lt;/P&gt;&lt;P&gt;Is it possible to NOT have a legend from the standard print widget?&lt;/P&gt;&lt;P&gt;I attached some screenshots for context&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 13:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-include-legend-set-to-false-ignored/m-p/1063550#M73351</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2021-06-01T13:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget - Include legend set to false - Ignored in Print Template</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-include-legend-set-to-false-ignored/m-p/1064184#M73368</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/125268"&gt;@GertConradie&lt;/a&gt;,&amp;nbsp;thanks for the question. With the default service, the print widget can include or not include the legend:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-print" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-print&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My hunch is that this issue is related to how the custom print service was configured prior to publishing. Here is some information about sharing a custom print service from Pro:&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/publish-services/windows/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 17:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-include-legend-set-to-false-ignored/m-p/1064184#M73368</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-06-02T17:33:28Z</dc:date>
    </item>
  </channel>
</rss>

