<?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: Can legends be printed using AGOL javascript templates 'print' task? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708942#M35136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have similar question. I know it's possible to make changes by downloading the code, but my main Q is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Is this possible (to make the changes and keep in AGOL), or should we consider moving the application in-house (rather than hosted on our AGOL organization account)?"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2013 22:30:34 GMT</pubDate>
    <dc:creator>DianaUmpierre</dc:creator>
    <dc:date>2013-05-20T22:30:34Z</dc:date>
    <item>
      <title>Can legends be printed using AGOL javascript templates 'print' task?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708939#M35133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've got an application up and running where users are able to trace grass areas around schools in the district and rank them according to the priority of irrigation (low, medium, high) in order to prioritize which areas should be watered, etc. This is part of&amp;nbsp; mandated water conservation measures being implemented by the City of Denver. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The application is working great but we'd like to have a legend in the printed PDF generated by the default print task. The maps will be put in the hands of those doing the irrigation...legends would be quite handy for this application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible, or should we consider moving the application in-house (rather than hosted on our AGOL organization account)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-mb&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 15:23:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708939#M35133</guid>
      <dc:creator>MatthewBaker2</dc:creator>
      <dc:date>2013-05-09T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can legends be printed using AGOL javascript templates 'print' task?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708940#M35134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Matthew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The templates are not currently setup to handle printing legends. However you could download the template code and modify the code to include a legend.&amp;nbsp; For example, in the Basic Viewer template there's some code that defines the layout template in layout.js at approximately line 818. Currently this line sets the legend layers to an empty array which means that no legend will be printed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; var layoutOptions = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'authorText': configOptions.owner,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'titleText': configOptions.title,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'scalebarUnit': (configOptions.i18n.viewer.main.scaleBarUnits === 'english') ? 'Miles' : 'Kilometers',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'legendLayers': []
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To include the legend you'll want to replace this with an array that defines the legend layers. I've attached an updated layout.js file that shows how this would work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708940#M35134</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-12T05:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can legends be printed using AGOL javascript templates 'print' task?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708941#M35135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Kelly! I'll give this a try and let you know what i come up with!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-mb&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 21:17:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708941#M35135</guid>
      <dc:creator>MatthewBaker2</dc:creator>
      <dc:date>2013-05-15T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can legends be printed using AGOL javascript templates 'print' task?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708942#M35136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have similar question. I know it's possible to make changes by downloading the code, but my main Q is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Is this possible (to make the changes and keep in AGOL), or should we consider moving the application in-house (rather than hosted on our AGOL organization account)?"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 22:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708942#M35136</guid>
      <dc:creator>DianaUmpierre</dc:creator>
      <dc:date>2013-05-20T22:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can legends be printed using AGOL javascript templates 'print' task?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708943#M35137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The template support limited configuration. If you want to do something you don't see in the settings to configure the template, then it's not available. The only option is to download the code, modify it, and host it on your own web server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 18:38:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-legends-be-printed-using-agol-javascript/m-p/708943#M35137</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2013-05-21T18:38:26Z</dc:date>
    </item>
  </channel>
</rss>

