<?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 Turn off sublayer legend in Print in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turn-off-sublayer-legend-in-print/m-p/1429119#M84541</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing an issue when trying to modify the legend, which is created by Print-Widget + ExportWebMap GPTool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can turn legend entries (property legendEnabled) on and off for FeatureLayer, WMSLayer, WMSSublayer and for a whole MapImagelayer. But the property legendEnabled in sublayer seems to be ignored by Print Widget, when building the ExportWebMap json.&lt;/P&gt;&lt;P&gt;I've made a pen for this issue. Unfortunately the AGOL PrintService is blocked by codepen, but you can see the WebMapJSON payload in DevTools' Network tab.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[...]
"legendOptions":{"operationalLayers":[{"id":"18f6154546c-layer-0","subLayerIds":[3,2,1,0]}]}}}&lt;/LI-CODE&gt;&lt;P&gt;As you can see all sublayers are included, though I turned one off in the sample.&lt;/P&gt;&lt;P&gt;Here's the link to the pen:&amp;nbsp;&amp;nbsp;&lt;A title="Pen" href="https://codepen.io/gdi-hokis/pen/VwOZVJm" target="_blank" rel="noopener"&gt;https://codepen.io/gdi-hokis/pen/VwOZVJm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 07:21:26 GMT</pubDate>
    <dc:creator>AndreV</dc:creator>
    <dc:date>2024-05-10T07:21:26Z</dc:date>
    <item>
      <title>Turn off sublayer legend in Print</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turn-off-sublayer-legend-in-print/m-p/1429119#M84541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing an issue when trying to modify the legend, which is created by Print-Widget + ExportWebMap GPTool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can turn legend entries (property legendEnabled) on and off for FeatureLayer, WMSLayer, WMSSublayer and for a whole MapImagelayer. But the property legendEnabled in sublayer seems to be ignored by Print Widget, when building the ExportWebMap json.&lt;/P&gt;&lt;P&gt;I've made a pen for this issue. Unfortunately the AGOL PrintService is blocked by codepen, but you can see the WebMapJSON payload in DevTools' Network tab.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[...]
"legendOptions":{"operationalLayers":[{"id":"18f6154546c-layer-0","subLayerIds":[3,2,1,0]}]}}}&lt;/LI-CODE&gt;&lt;P&gt;As you can see all sublayers are included, though I turned one off in the sample.&lt;/P&gt;&lt;P&gt;Here's the link to the pen:&amp;nbsp;&amp;nbsp;&lt;A title="Pen" href="https://codepen.io/gdi-hokis/pen/VwOZVJm" target="_blank" rel="noopener"&gt;https://codepen.io/gdi-hokis/pen/VwOZVJm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 07:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turn-off-sublayer-legend-in-print/m-p/1429119#M84541</guid>
      <dc:creator>AndreV</dc:creator>
      <dc:date>2024-05-10T07:21:26Z</dc:date>
    </item>
  </channel>
</rss>

