<?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: PrintTemplate for Print-widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-for-print-widget/m-p/1243644#M79725</link>
    <description>&lt;P&gt;Hi Richard, thanks for the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This is what I was looking for, it would indeed be good to have this property on the Print widget itself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good Christmas!&lt;/P&gt;</description>
    <pubDate>Sat, 24 Dec 2022 09:53:54 GMT</pubDate>
    <dc:creator>wolfvincent</dc:creator>
    <dc:date>2022-12-24T09:53:54Z</dc:date>
    <item>
      <title>PrintTemplate for Print-widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-for-print-widget/m-p/1242815#M79689</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm looking for a way to set the scale-unit to "Meters" for the Print-widget. Any help in the right direction appreaciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 21:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-for-print-widget/m-p/1242815#M79689</guid>
      <dc:creator>wolfvincent</dc:creator>
      <dc:date>2022-12-20T21:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate for Print-widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-for-print-widget/m-p/1243166#M79701</link>
      <description>&lt;P&gt;Hi Vincent,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I came across this issue as well. I wish the ESRI Dev team will add this as a property to the widget: "scaleBarOptions". My work around was to use interceptors in esriConfig and add the print service URL you are using for printing. here is the code snippet&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const addInterceptor = () =&amp;gt; { // call this function before initializing the Print widget
        esriConfig.request.interceptors.push({
          urls: printServiceUrl, // the URL of the print service and make sure it is the same url as the one used in the Print widget
          before: (params: any) =&amp;gt; {
            if (params.requestOptions.query.Web_Map_as_JSON) {
              const jsonRequest = JSON.parse(params.requestOptions.query.Web_Map_as_JSON);
              jsonRequest.layoutOptions.scaleBarOptions = {
                metricLabel: 'm',
                metricUnit: 'esriMeters',
                nonMetricLabel: 'ft',
                nonMetricUnit: 'esriFeet',
              };

              params.requestOptions.query.Web_Map_as_JSON = JSON.stringify(jsonRequest);
            }
          },
        });
      };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 01:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-for-print-widget/m-p/1243166#M79701</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2022-12-22T01:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTemplate for Print-widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-for-print-widget/m-p/1243644#M79725</link>
      <description>&lt;P&gt;Hi Richard, thanks for the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This is what I was looking for, it would indeed be good to have this property on the Print widget itself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good Christmas!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2022 09:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtemplate-for-print-widget/m-p/1243644#M79725</guid>
      <dc:creator>wolfvincent</dc:creator>
      <dc:date>2022-12-24T09:53:54Z</dc:date>
    </item>
  </channel>
</rss>

