<?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: Custom Print Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123807#M75515</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;,&amp;nbsp;are you talking about hidden layers displaying in the printed legend? If so, this is a known issue that was recently fixed. You can see the fix now using &lt;STRONG&gt;next&lt;/STRONG&gt;, or wait for 4.22 to release (which should be later this week).&lt;/P&gt;&lt;P&gt;next:&amp;nbsp;&lt;A href="https://github.com/Esri/feedback-js-api-next" target="_blank"&gt;https://github.com/Esri/feedback-js-api-next&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 14:43:22 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2021-12-08T14:43:22Z</dc:date>
    <item>
      <title>Custom Print Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123690#M75511</link>
      <description>&lt;P&gt;This example&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-print/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/widgets-print/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the layer, some layers are hidden in the list,&lt;/P&gt;&lt;P&gt;When Output PDF still display,&lt;/P&gt;&lt;P&gt;Can control the legend&amp;nbsp;Individual&amp;nbsp;display?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 02:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123690#M75511</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2021-12-08T02:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Print Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123699#M75512</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;&amp;nbsp; By default Print widget in JS API honors only the visible layers.&amp;nbsp; I tested the sample and it is working fine. please check the screenshots Sandbox app with displaying he legends:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="printmap.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29085i5D88F65C45517674/image-size/medium?v=v2&amp;amp;px=400" role="button" title="printmap.PNG" alt="printmap.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and the print generated from the app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="print.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29086i67C66B6A949CC0E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="print.PNG" alt="print.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you can provide more details on the requirements we can check.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 05:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123699#M75512</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2021-12-08T05:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Print Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123707#M75513</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/419647"&gt;@Kishore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;question is, There are two layer inside,&amp;nbsp;One does not &lt;SPAN&gt;display&amp;nbsp;&lt;/SPAN&gt;in the list,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When Output PDF still display,&amp;nbsp;Can control the legend&amp;nbsp;Individual&amp;nbsp;display?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;Print widget | Sample | ArcGIS API for JavaScript 4.21&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.21/esri/themes/light/main.css" /&amp;gt;

    &amp;lt;style&amp;gt;
        html,
        body,
        #viewDiv {
            padding: 0;
            margin: 0;
            height: 100%;
            width: 100%;
            overflow: hidden;
        }

        .esri-zoom {
            display: none;
        }
    &amp;lt;/style&amp;gt;

    &amp;lt;script src="https://js.arcgis.com/4.21/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
        require([
            "esri/views/MapView",
            "esri/Map",
            "esri/layers/FeatureLayer",
            "esri/layers/MapImageLayer",
            "esri/widgets/LayerList",
            "esri/widgets/Print",
        ], (
            MapView,
            Map,
            FeatureLayer,
            MapImageLayer,
            LayerList,
            Print
        ) =&amp;gt; {

            const map = new Map({
                basemap: "topo-vector"
            });

            const view = new MapView({
                container: "viewDiv",
                map: map,
                extent: {
                    xmin: -9177811,
                    ymin: 4247000,
                    xmax: -9176791,
                    ymax: 4247784,
                    spatialReference: 102100
                }
            });

            const featureLayer = new FeatureLayer({
                url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0",
                listMode: "hide"
            });

            const mapImageLayer = new MapImageLayer({
                url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"
            });

            map.add(featureLayer);
            map.add(mapImageLayer);

            view.when(() =&amp;gt; {
                const print = new Print({
                    view: view,
                    printServiceUrl:
                        "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
                });

                const layerList = new LayerList({
                    view: view
                });

                view.ui.add(print, "top-right");
                view.ui.add(layerList, "top-left");
            });
        });
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body class="calcite"&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 02:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123707#M75513</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2021-12-09T02:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Print Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123807#M75515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;,&amp;nbsp;are you talking about hidden layers displaying in the printed legend? If so, this is a known issue that was recently fixed. You can see the fix now using &lt;STRONG&gt;next&lt;/STRONG&gt;, or wait for 4.22 to release (which should be later this week).&lt;/P&gt;&lt;P&gt;next:&amp;nbsp;&lt;A href="https://github.com/Esri/feedback-js-api-next" target="_blank"&gt;https://github.com/Esri/feedback-js-api-next&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 14:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1123807#M75515</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-12-08T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Print Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1124143#M75526</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for providing information.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 02:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1124143#M75526</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2021-12-09T02:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Print Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1124318#M75535</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527995"&gt;@Wade&lt;/a&gt;,&amp;nbsp;quite welcome. Feel free to mark my post as the solution if you feel it answered your question.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 14:29:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-print-widget/m-p/1124318#M75535</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-12-09T14:29:25Z</dc:date>
    </item>
  </channel>
</rss>

