<?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 Customize the PrintTemplate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657168#M61288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I have 2 Graphic Layers that I add to my map.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var colorOverlayLyr = new GraphicsLayer({ opacity: 0.5 });&lt;BR /&gt;var locationOverlayLyr = new GraphicsLayer({ opacity: 0.5 });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map = new Map({&lt;BR /&gt; basemap: basemapDefault,&lt;BR /&gt; layers: [colorOverlayLyr, locationOverlayLyr]&amp;nbsp;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I add graphics to the colorOverlayLyr using the QueryTask, I do this for 5 colors, only the Blue code is included but the other colors are the same. They all are added to the colorOverlayLyr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;params.where = "ID_ IN (" + blue.value + ")";&lt;BR /&gt;qTask.execute(params)&lt;BR /&gt; .then(getBlueResults)&lt;BR /&gt; .catch(promiseRejected);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getBlueResults(response) {&lt;BR /&gt;var peakResults = arrayUtils.map(response.features, function (&lt;BR /&gt; feature) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; feature.symbol = {&lt;BR /&gt; type: "simple-fill", // autocasts as new PointSymbol3D()&lt;BR /&gt; color: {&lt;BR /&gt; r: 0,&lt;BR /&gt; g: 0,&lt;BR /&gt; b: 255,&lt;BR /&gt; a: 0.5&lt;BR /&gt; },&lt;BR /&gt; style: "solid",&lt;BR /&gt; opacity: 0.2,&lt;BR /&gt; outline: { color: "black", width: 1 }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;return feature;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; colorOverlayLyr.addMany(peakResults);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I add Graphics to the&amp;nbsp;locationOverlayLyr. The user has the option to add up to 5 different locations on the map. This code is used passing in the different styles.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var symbolBlack = {&lt;BR /&gt; type: "simple-marker", // autocasts as new SimpleMarkerSymbol()&lt;BR /&gt; style: values[0],&lt;BR /&gt; color: values[1],&lt;BR /&gt; size: "8px",&lt;BR /&gt; outline: {&lt;BR /&gt; color: values[1]&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var point = {&lt;BR /&gt; type: "point",&amp;nbsp;&lt;BR /&gt; longitude: values[9],&lt;BR /&gt; latitude: values[8]&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;var lineAtt = {&lt;BR /&gt; Name: values[2],&lt;BR /&gt; Number: values[3],&lt;BR /&gt; Display: values[4]&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;var pointGraphic = new Graphic({&lt;BR /&gt; geometry: point,&lt;BR /&gt; symbol: symbolBlack,&lt;BR /&gt; attributes: lineAtt&lt;BR /&gt; });&lt;BR /&gt; locationOverlayLyr.add(pointGraphic);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The layers come out on the map. I then use the PrintTask to allow a user to print the map. I want to customize the Legend so the user knows exactly what is on the map. I use the LegendLayer to tell what layers to show but I do know know how to customize the description that comes out for the Graphics/Features that are displayed. I can customize the title of the actual layer but the individual graphics I don't know how to. They system shows some default values. How can I change those descriptions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var printTask = new PrintTask({&lt;BR /&gt;&lt;SPAN&gt; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fesridev.nsamedia.com%2Farcgis%2Frest%2Fservices%2FUtilities%2FPrintingTools%2FGPServer%2FExport%2520Web%2520Map%2520Task" rel="nofollow" target="_blank"&gt;https://esridev.nsamedia.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var colorlegendLayer = new LegendLayer();&lt;BR /&gt;colorlegendLayer.layerId = colorOverlayLyr.id;&lt;BR /&gt; colorlegendLayer.title = "Color: This is the color";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var locationlegendLayer = new LegendLayer();&lt;BR /&gt;locationlegendLayer.layerId = locationOverlayLyr.id;&lt;BR /&gt; locationlegendLayer.title = "Location: This is the location";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var template = new PrintTemplate({&lt;BR /&gt; format: "pdf",&lt;BR /&gt; exportOptions: {&lt;BR /&gt; dpi: 300&lt;BR /&gt; },&lt;BR /&gt; layout: "tabloid-ansi-b-landscape",&lt;BR /&gt; layoutOptions: {&lt;BR /&gt; titleText: "Test Map",&lt;BR /&gt; authorText: "Ben Loewe",&lt;BR /&gt; copyrightText: "My Company",&lt;BR /&gt; scalebarUnit: "Miles",&lt;BR /&gt;&lt;STRONG&gt;legendLayers: [colorlegendLayer, locationlegendLayer]&lt;/STRONG&gt;&lt;BR /&gt; },&lt;BR /&gt; preserveScale: true&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var params = new PrintParameters({&lt;BR /&gt; view: view,&lt;BR /&gt; template: template&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;printTask.execute(params).then(printResult, promiseRejected);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/421587_pastedImage_8.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 12:59:36 GMT</pubDate>
    <dc:creator>DavidKucharski</dc:creator>
    <dc:date>2018-09-11T12:59:36Z</dc:date>
    <item>
      <title>Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657168#M61288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I have 2 Graphic Layers that I add to my map.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var colorOverlayLyr = new GraphicsLayer({ opacity: 0.5 });&lt;BR /&gt;var locationOverlayLyr = new GraphicsLayer({ opacity: 0.5 });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map = new Map({&lt;BR /&gt; basemap: basemapDefault,&lt;BR /&gt; layers: [colorOverlayLyr, locationOverlayLyr]&amp;nbsp;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I add graphics to the colorOverlayLyr using the QueryTask, I do this for 5 colors, only the Blue code is included but the other colors are the same. They all are added to the colorOverlayLyr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;params.where = "ID_ IN (" + blue.value + ")";&lt;BR /&gt;qTask.execute(params)&lt;BR /&gt; .then(getBlueResults)&lt;BR /&gt; .catch(promiseRejected);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getBlueResults(response) {&lt;BR /&gt;var peakResults = arrayUtils.map(response.features, function (&lt;BR /&gt; feature) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; feature.symbol = {&lt;BR /&gt; type: "simple-fill", // autocasts as new PointSymbol3D()&lt;BR /&gt; color: {&lt;BR /&gt; r: 0,&lt;BR /&gt; g: 0,&lt;BR /&gt; b: 255,&lt;BR /&gt; a: 0.5&lt;BR /&gt; },&lt;BR /&gt; style: "solid",&lt;BR /&gt; opacity: 0.2,&lt;BR /&gt; outline: { color: "black", width: 1 }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;return feature;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; colorOverlayLyr.addMany(peakResults);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I add Graphics to the&amp;nbsp;locationOverlayLyr. The user has the option to add up to 5 different locations on the map. This code is used passing in the different styles.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var symbolBlack = {&lt;BR /&gt; type: "simple-marker", // autocasts as new SimpleMarkerSymbol()&lt;BR /&gt; style: values[0],&lt;BR /&gt; color: values[1],&lt;BR /&gt; size: "8px",&lt;BR /&gt; outline: {&lt;BR /&gt; color: values[1]&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var point = {&lt;BR /&gt; type: "point",&amp;nbsp;&lt;BR /&gt; longitude: values[9],&lt;BR /&gt; latitude: values[8]&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;var lineAtt = {&lt;BR /&gt; Name: values[2],&lt;BR /&gt; Number: values[3],&lt;BR /&gt; Display: values[4]&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;var pointGraphic = new Graphic({&lt;BR /&gt; geometry: point,&lt;BR /&gt; symbol: symbolBlack,&lt;BR /&gt; attributes: lineAtt&lt;BR /&gt; });&lt;BR /&gt; locationOverlayLyr.add(pointGraphic);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The layers come out on the map. I then use the PrintTask to allow a user to print the map. I want to customize the Legend so the user knows exactly what is on the map. I use the LegendLayer to tell what layers to show but I do know know how to customize the description that comes out for the Graphics/Features that are displayed. I can customize the title of the actual layer but the individual graphics I don't know how to. They system shows some default values. How can I change those descriptions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var printTask = new PrintTask({&lt;BR /&gt;&lt;SPAN&gt; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fesridev.nsamedia.com%2Farcgis%2Frest%2Fservices%2FUtilities%2FPrintingTools%2FGPServer%2FExport%2520Web%2520Map%2520Task" rel="nofollow" target="_blank"&gt;https://esridev.nsamedia.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var colorlegendLayer = new LegendLayer();&lt;BR /&gt;colorlegendLayer.layerId = colorOverlayLyr.id;&lt;BR /&gt; colorlegendLayer.title = "Color: This is the color";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var locationlegendLayer = new LegendLayer();&lt;BR /&gt;locationlegendLayer.layerId = locationOverlayLyr.id;&lt;BR /&gt; locationlegendLayer.title = "Location: This is the location";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var template = new PrintTemplate({&lt;BR /&gt; format: "pdf",&lt;BR /&gt; exportOptions: {&lt;BR /&gt; dpi: 300&lt;BR /&gt; },&lt;BR /&gt; layout: "tabloid-ansi-b-landscape",&lt;BR /&gt; layoutOptions: {&lt;BR /&gt; titleText: "Test Map",&lt;BR /&gt; authorText: "Ben Loewe",&lt;BR /&gt; copyrightText: "My Company",&lt;BR /&gt; scalebarUnit: "Miles",&lt;BR /&gt;&lt;STRONG&gt;legendLayers: [colorlegendLayer, locationlegendLayer]&lt;/STRONG&gt;&lt;BR /&gt; },&lt;BR /&gt; preserveScale: true&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var params = new PrintParameters({&lt;BR /&gt; view: view,&lt;BR /&gt; template: template&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;printTask.execute(params).then(printResult, promiseRejected);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/421587_pastedImage_8.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 12:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657168#M61288</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-09-11T12:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657169#M61289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you applying a UniqueValueRenderer to those layers?&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #595959;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; renderer &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;UniqueValueRenderer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;...&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; renderer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;addValue&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"KS"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; symbol&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;

&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #999988;"&gt;//Specify the symbol and value using the info object.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; renderer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;addValue&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;({&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; value&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"KS"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; symbol&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;SimpleFillSymbol&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;(),&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; label&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"Kansas"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; description&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"The Sunflower State"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;That way you can specify the label and description for the feature&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657169#M61289</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T03:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657170#M61290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the documentation for the UniqueValueRenderer, that object can only be used on certain Layer Types. Graphic Layers are not one of the layer types in the list to use.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657170#M61290</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-09-11T13:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657171#M61291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely it can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657171#M61291</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-11T13:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657172#M61292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my example above where I am getting a list of geographies to show in a blue color based on a demographic they chose,&amp;nbsp;I get the results back from the QueryTask and loop through the array of results assigning a simple-fill symbol to it. Is it at this point that I apply a renderer to the feature? I am not quite sure of when to apply the renderer. The value, label, and description will change everytime this QueryTask is ran. Especially for the other 4 QueryTasks that I run to also fill this colorOverlayLyr.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 14:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657172#M61292</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-09-11T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657173#M61293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So after the values have changed (post query) you can reset the layer renderer to the new values added to the UniqueValueRenderer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 14:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657173#M61293</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-11T14:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657174#M61294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the following additions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var blueColoreOverlay = {&lt;BR /&gt; type: "simple-fill",&amp;nbsp;&lt;BR /&gt; color: {&lt;BR /&gt; r: 0,&lt;BR /&gt; g: 0,&lt;BR /&gt; b: 255,&lt;BR /&gt; a: 0.5&lt;BR /&gt; },&lt;BR /&gt; style: "solid",&lt;BR /&gt; opacity: 0.2,&lt;BR /&gt; outline: { color: "black", width: 1 }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var colorRenderer = {&lt;BR /&gt; type: "unique-value",&amp;nbsp;&lt;BR /&gt; uniqueValueInfos: [{&lt;BR /&gt; symbol: blueColoreOverlay,&lt;BR /&gt; label: "Residential"&lt;BR /&gt; }]&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Create graphics layer and symbol to use for displaying the results of query&lt;BR /&gt; var highlightGeographyLyr = new GraphicsLayer({ &lt;STRONG&gt;renderer: colorRenderer&lt;/STRONG&gt;, id: 1, opacity: 0.1 });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used the blueColoreOverlay in the QueryTask:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getBlueResults(response) {&lt;BR /&gt; var peakResults = arrayUtils.map(response.features, function (&lt;BR /&gt; feature) {&lt;/P&gt;&lt;P&gt;feature.symbol = &lt;STRONG&gt;blueColoreOverlay&lt;/STRONG&gt;;&lt;BR /&gt; return feature;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;colorOverlayLyr.addMany(peakResults);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems as my overlays are still coming up correctly. When I try to print I am getting the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;a.renderer.toJSON is not a function&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 14:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657174#M61294</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-09-11T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657175#M61295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I missed the fact that you are using 4.x API. I don't think my UniqueValueRendere suggestion will work in your case using 4.x.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 15:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657175#M61295</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-11T15:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657176#M61296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any other way to manipulate the PrintTemplate to show customized text?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657176#M61296</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-09-12T20:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657177#M61297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only if you are using your own print service on your ArcGIS Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657177#M61297</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-12T20:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657178#M61298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my print code, I am using my own print service on my server. How can I customize the Legend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document.body.style.cursor = "wait";&lt;/P&gt;&lt;P&gt;var printTask = new PrintTask({&lt;BR /&gt; url: "&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fesridev.nsamedia.com%2Farcgis%2Frest%2Fservices%2FUtilities%2FPrintingTools%2FGPServer%2FExport%2520Web%2520Map%2520Task" rel="nofollow" target="_blank"&gt;https://esridev.nsamedia.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;/STRONG&gt;"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var colorlegendLayer = new LegendLayer();&lt;BR /&gt; //RJS not fireLayer.layerId. Its fireLayer.id&lt;BR /&gt; colorlegendLayer.layerId = colorOverlayLyr.id;&lt;BR /&gt; colorlegendLayer.title = "Color: This is the color";&lt;/P&gt;&lt;P&gt;var locationlegendLayer = new LegendLayer();&lt;BR /&gt; //RJS not fireLayer.layerId. Its fireLayer.id&lt;BR /&gt; locationlegendLayer.layerId = locationOverlayLyr.id;&lt;BR /&gt; locationlegendLayer.title = "Location: This is the location";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var template = new PrintTemplate({&lt;BR /&gt; format: "pdf",&lt;BR /&gt; exportOptions: {&lt;BR /&gt; dpi: 300&lt;BR /&gt; },&lt;BR /&gt; layout: "tabloid-ansi-b-landscape",&lt;BR /&gt; layoutOptions: {&lt;BR /&gt; titleText: "Test Map",&lt;BR /&gt; authorText: "Ben Loewe",&lt;BR /&gt; copyrightText: "My Company",&lt;BR /&gt; scalebarUnit: "Miles",&lt;BR /&gt; legendLayers: [colorlegendLayer, locationlegendLayer]&lt;BR /&gt; },&lt;BR /&gt; preserveScale: true&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var params = new PrintParameters({&lt;BR /&gt; view: view,&lt;BR /&gt; template: template&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;printTask.execute(params).then(printResult, promiseRejected);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657178#M61298</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-09-12T22:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Customize the PrintTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657179#M61299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry when you said&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there any other way to manipulate the PrintTemplate to show customized text?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I thought you were just talking about adding so custom text element to the layout, not trying to control the text inside the legend element.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Creating a custom text element in the layout is absolutely possible with the use of your own print service that has a custom print layout defined. Like here (image attached) in my custom layout I add the Owner Name, PPIN, Parcel Number, Address to the layout based on the selected parcel Polygon:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/421804__ags_06ab3b8aded54360b76e4675dfd4c715.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 13:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-the-printtemplate/m-p/657179#M61299</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-13T13:57:58Z</dc:date>
    </item>
  </channel>
</rss>

