<?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: Printask printtemplate legend issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590650#M55186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in order to check the layer before printing I found this URL it has the answer:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://gis.stackexchange.com/questions/130362/how-to-customize-the-arcgis-print-legend-text-using-javascript" title="http://gis.stackexchange.com/questions/130362/how-to-customize-the-arcgis-print-legend-text-using-javascript"&gt;How to customize the ArcGIS print legend text using javascript - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 09:47:26 GMT</pubDate>
    <dc:creator>ThaboGilbert</dc:creator>
    <dc:date>2016-10-12T09:47:26Z</dc:date>
    <item>
      <title>Printask printtemplate legend issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590646#M55182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to ask , how to check the passed legend layer&amp;nbsp;info( json)&amp;nbsp;into the printtemplate before printing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please geo programmers i need your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 07:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590646#M55182</guid>
      <dc:creator>ThaboGilbert</dc:creator>
      <dc:date>2016-10-10T07:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Printask printtemplate legend issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590647#M55183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thabo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you using the Print Dijit or just some custom code that uses the PrintTask?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 14:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590647#M55183</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-10T14:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Printask printtemplate legend issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590648#M55184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Print task but not single function which runs on the click &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached is the code :&lt;/P&gt;&lt;P&gt;function printMap() {					  &lt;/P&gt;&lt;P&gt;					    console.log('Global Render&lt;/P&gt;&lt;P&gt;info')&lt;/P&gt;&lt;P&gt;					   &lt;/P&gt;&lt;P&gt;console.log(global_renderer);&lt;/P&gt;&lt;P&gt;					   &lt;/P&gt;&lt;P&gt;layer.setRenderer(global_renderer);&lt;/P&gt;&lt;P&gt;					    layer.redraw();&lt;/P&gt;&lt;P&gt;					   &lt;/P&gt;&lt;P&gt;//createLegend(rendering.featureMap.fields[0]);&lt;/P&gt;&lt;P&gt;					    var legendLayer = new&lt;/P&gt;&lt;P&gt;LegendLayer();// Get the legend Layers 					&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;					    legendLayer.layerId =&lt;/P&gt;&lt;P&gt;layer.id;&lt;/P&gt;&lt;P&gt;					    console.log('legend Layer&lt;/P&gt;&lt;P&gt;for Print');&lt;/P&gt;&lt;P&gt;					    console.log(layer);&lt;/P&gt;&lt;P&gt;					    var printMap = new&lt;/P&gt;&lt;P&gt;esri.tasks.PrintTask("http://statscenprod:6080/arcgis/rest/services/ExportWebMap9/GPServer/Export%20Web%20Map");&lt;/P&gt;&lt;P&gt;					    var params = new&lt;/P&gt;&lt;P&gt;esri.tasks.PrintParameters();&lt;/P&gt;&lt;P&gt;					    var template = new&lt;/P&gt;&lt;P&gt;esri.tasks.PrintTemplate();&lt;/P&gt;&lt;P&gt;					    var txtmetadata =&lt;/P&gt;&lt;P&gt;document.getElementById("metadata").innerHTML; 					&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;					    var len = 35;&lt;/P&gt;&lt;P&gt;					    var curr = len;&lt;/P&gt;&lt;P&gt;					    var prev = 0;&lt;/P&gt;&lt;P&gt;					    alert(txtmetadata);&lt;/P&gt;&lt;P&gt;					    output = [];&lt;/P&gt;&lt;P&gt;					    var textmetaadat;&lt;/P&gt;&lt;P&gt;					    if (txtmetadata.length &amp;gt; &lt;/P&gt;&lt;P&gt;35)&lt;/P&gt;&lt;P&gt;					    {&lt;/P&gt;&lt;P&gt;						    while&lt;/P&gt;&lt;P&gt;(txtmetadata[curr]) {&lt;/P&gt;&lt;P&gt;							    if (&lt;/P&gt;&lt;P&gt;txtmetadata[curr++] == ' ') {&lt;/P&gt;&lt;P&gt;								   &lt;/P&gt;&lt;P&gt;output.push(txtmetadata.substring(prev, curr).trim());&lt;/P&gt;&lt;P&gt;								    prev&lt;/P&gt;&lt;P&gt;= curr;&lt;/P&gt;&lt;P&gt;								    curr&lt;/P&gt;&lt;P&gt;+= len;&lt;/P&gt;&lt;P&gt;							    }							&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;						    }&lt;/P&gt;&lt;P&gt;						   &lt;/P&gt;&lt;P&gt;output.push(txtmetadata.substr(prev).trim());&lt;/P&gt;&lt;P&gt;						    var joinedtxt =&lt;/P&gt;&lt;P&gt;output.join('\n')&lt;/P&gt;&lt;P&gt;						    alert(joinedtxt);&lt;/P&gt;&lt;P&gt;						    textmetaadat =&lt;/P&gt;&lt;P&gt;"Metadata : " + "\n" + joinedtxt;&lt;/P&gt;&lt;P&gt;					    }&lt;/P&gt;&lt;P&gt;					    else&lt;/P&gt;&lt;P&gt;					    {					&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;						    textmetaadat =&lt;/P&gt;&lt;P&gt;"Metadata : " + "\n" + document.getElementById("metadata").innerHTML;&lt;/P&gt;&lt;P&gt;					    }					&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;					    template.exportOptions = &lt;SPAN __default_attr="96 " __jive_macro_name="dpi"&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;					    template.format = "pdf";&lt;/P&gt;&lt;P&gt;					    template.layout = "Letter&lt;/P&gt;&lt;P&gt;ANSI A Landscape6";&lt;/P&gt;&lt;P&gt;					    console.log(legendLayer);&lt;/P&gt;&lt;P&gt;					    template.preserveScale =&lt;/P&gt;&lt;P&gt;true;&lt;/P&gt;&lt;P&gt;					    template.showAttribution =&lt;/P&gt;&lt;P&gt;false;&lt;/P&gt;&lt;P&gt;					    template.layoutOptions =&lt;SPAN __jive_macro_name="legendLayers"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;					    ]&lt;/P&gt;&lt;P&gt;					    };&lt;/P&gt;&lt;P&gt;					    params.map = map;&lt;/P&gt;&lt;P&gt;					    params.template = template;&lt;/P&gt;&lt;P&gt;					    printMap.execute(params,&lt;/P&gt;&lt;P&gt;printResult).then(function(resolvedVal){&lt;/P&gt;&lt;P&gt;					    console.log(resolvedVal); &lt;/P&gt;&lt;P&gt;// Logs the value the promise resolves to&lt;/P&gt;&lt;P&gt;					    });&lt;/P&gt;&lt;P&gt;					    &lt;/P&gt;&lt;P&gt;					   &lt;/P&gt;&lt;P&gt;				    };&lt;/P&gt;&lt;P&gt;				    function printResult(result) {&lt;/P&gt;&lt;P&gt;					    var time = new Date();&lt;/P&gt;&lt;P&gt;					    console.log(time.getTime())&lt;/P&gt;&lt;P&gt;					    window.open(result.url +=&lt;/P&gt;&lt;P&gt;"?Atlastimets=" + time.getTime());&lt;/P&gt;&lt;P&gt;					    console.log('check the layer&lt;/P&gt;&lt;P&gt;after printing')&lt;/P&gt;&lt;P&gt;					    console.log(layer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;				    };&lt;/P&gt;&lt;P&gt;				    $('#btn').click(function () {&lt;/P&gt;&lt;P&gt;					    printMap();&lt;/P&gt;&lt;P&gt;				    });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Thabo Gilbert Mojahi&lt;/P&gt;&lt;P&gt;Cell : 0713208732 &lt;/P&gt;&lt;P&gt;Fax : 086 601 8766&lt;/P&gt;&lt;P&gt;Tel(office) : 012 310 6397&lt;/P&gt;&lt;P&gt;If people do not believe that mathematics is simple, it is only because&lt;/P&gt;&lt;P&gt;they do not realize how complicated life is.  ~John Louis von Neumann&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; "Robert Scheitlin, GISP" &amp;lt;geonet@esri.com&amp;gt; 10/10/2016 16:38 &amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; GeoNet &lt;/P&gt;&lt;P&gt;( https://community.esri.com/?et=watches.email.thread)  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Printask printtemplate legend issuereply from Robert Scheitlin,&lt;/P&gt;&lt;P&gt;GISP&lt;/P&gt;&lt;P&gt;( https://community.esri.com/people/rscheitlin?et=watches.email.thread) &lt;/P&gt;&lt;P&gt;in ArcGIS API for JavaScript - View the full discussion&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;https://community.esri.com/message/639938-re-printask-printtemplate-legend-issue?commentID=639938&amp;amp;et=watches.email.thread#comment-639938)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thabo,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   Are you using the Print Dijit or just some custom code that uses the&lt;/P&gt;&lt;P&gt;PrintTask?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply to this message by replying to this email, or go to the message&lt;/P&gt;&lt;P&gt;on GeoNet&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;https://community.esri.com/message/639938-re-printask-printtemplate-legend-issue?commentID=639938&amp;amp;et=watches.email.thread#comment-639938)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Start a new discussion in ArcGIS API for JavaScript by email&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;mailto:discussions-community-developers-web&lt;DEL&gt;developers-arcgis&lt;/DEL&gt;api&lt;DEL&gt;for&lt;/DEL&gt;javascript@mail.geonet.esri.com)&lt;/P&gt;&lt;P&gt; or at GeoNet&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;https://community.esri.com/choose-container.jspa?contentType=1&amp;amp;containerType=14&amp;amp;container=2128&amp;amp;et=watches.email.thread)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Following Re: Printask printtemplate legend issue&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;https://community.esri.com/message/639938-re-printask-printtemplate-legend-issue?commentID=639938&amp;amp;et=watches.email.thread#comment-639938)&lt;/P&gt;&lt;P&gt; in these streams: Inbox &lt;/P&gt;&lt;P&gt;This email was sent by GeoNet because you are a registered user.&lt;/P&gt;&lt;P&gt;You may unsubscribe&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;https://community.esri.com/unsubscribe.jspa?email=thabomoj%40statssa.gov.za&amp;amp;token=8cc2f7c722630dbf4d0b040099a8f18de596fb44255fed8a1746a394189b9352)&lt;/P&gt;&lt;P&gt; instantly from GeoNet, or adjust email frequency in your email&lt;/P&gt;&lt;P&gt;preferences&lt;/P&gt;&lt;P&gt;( https://community.esri.com/user-preferences!input.jspa)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 14:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590648#M55184</guid>
      <dc:creator>ThaboGilbert</dc:creator>
      <dc:date>2016-10-10T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Printask printtemplate legend issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590649#M55185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I &amp;nbsp;needed to check the layer which the printtemplate receives so as to see if I am sending the right Layer.&lt;/P&gt;&lt;P&gt;However there is a problem with printing when I am rendering a field with ClassBreaksRenderer the legend renders perfectly with print legend , however when I am rendering I am rendering another field the sample attached&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 14:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590649#M55185</guid>
      <dc:creator>ThaboGilbert</dc:creator>
      <dc:date>2016-10-11T14:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Printask printtemplate legend issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590650#M55186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in order to check the layer before printing I found this URL it has the answer:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://gis.stackexchange.com/questions/130362/how-to-customize-the-arcgis-print-legend-text-using-javascript" title="http://gis.stackexchange.com/questions/130362/how-to-customize-the-arcgis-print-legend-text-using-javascript"&gt;How to customize the ArcGIS print legend text using javascript - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 09:47:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printask-printtemplate-legend-issue/m-p/590650#M55186</guid>
      <dc:creator>ThaboGilbert</dc:creator>
      <dc:date>2016-10-12T09:47:26Z</dc:date>
    </item>
  </channel>
</rss>

