<?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: Printing with Legend in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700403#M65236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so your adapted app works with the SampleServer6 layout templates with legends, but when pointing at your own custom template, not even the title displays, correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i don't recall doing anything special when i created and published my own custom templates, but i think i started by modifying the ones that come preinstalled.&amp;nbsp; here's a screenshot of the property page for mine for you to compare and contrast.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the cool thing is you can make changes to the MXD on the fly and see them in print output without touching your service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19636[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2012 18:20:59 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2012-11-30T18:20:59Z</dc:date>
    <item>
      <title>Printing with Legend</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700400#M65233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can someone post a sample or at least a chunk of code on how to use 10.1's Web Printing capabilities with a legend?&amp;nbsp; The Print Service works for me, even when publishing my own, but the legend seems to be ignored.&amp;nbsp; I have a legend in my map document and have tried the following bit of code, per the API reference, with no luck:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; var legendLayer = new esri.tasks.LegendLayer(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legendLayer.layerId = '_cADMLocations'; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legendLayer.subLayerIds = [0]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.layoutOptions = { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; titleText: 'My First Map', &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; authorText: 'Mark Hoover', &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scalebarUnit: 'Miles', &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legendLayers: [legendLayer] &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 12:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700400#M65233</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2012-11-30T12:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Printing with Legend</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700401#M65234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;check out the jsfiddle link i posted in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/66734-Print-Dijit-Template-Question?p=232054#post232054"&gt;this thread&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;you should be able to copy the code onto your own web server and view legend swatches (after updating the proxy reference)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 15:56:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700401#M65234</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-11-30T15:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Printing with Legend</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700402#M65235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No luck.&amp;nbsp; Actually, the legend I have on my Map Document isn't showing up at all (it should show its title "Legend" no matter what, right?)&amp;nbsp; When you add the legend to the Map Document that is the Template base, all you have to do is go to Insert &amp;gt; Legend, right?&amp;nbsp; Are there any special settings to let the print service know it can adjust its contents?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 17:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700402#M65235</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2012-11-30T17:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Printing with Legend</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700403#M65236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so your adapted app works with the SampleServer6 layout templates with legends, but when pointing at your own custom template, not even the title displays, correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i don't recall doing anything special when i created and published my own custom templates, but i think i started by modifying the ones that come preinstalled.&amp;nbsp; here's a screenshot of the property page for mine for you to compare and contrast.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the cool thing is you can make changes to the MXD on the fly and see them in print output without touching your service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19636[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 18:20:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700403#M65236</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-11-30T18:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Printing with Legend</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700404#M65237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bingo, that was it.&amp;nbsp; Those two checkboxes weren't turned on in my Legend.&amp;nbsp; Now it works.&amp;nbsp; Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 18:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700404#M65237</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2012-11-30T18:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Printing with Legend</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700405#M65238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;excellent &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 18:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700405#M65238</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-11-30T18:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Printing with Legend</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700406#M65239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great information!!&amp;nbsp; solved one of my problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;open question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if i want to print my legend on a separate page?&amp;nbsp; My app has over 50 layers. and i don't want to compromise my current map template. how could we print the legend on a separate page? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advanced!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 16:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700406#M65239</guid>
      <dc:creator>CesarPiovanetti</dc:creator>
      <dc:date>2013-05-15T16:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Printing with Legend</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700407#M65240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you find a way to print the legend seperatly? I face the same Problem right now and haven't find any solutions yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Tiki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 11:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-with-legend/m-p/700407#M65240</guid>
      <dc:creator>MiriamBrockmann</dc:creator>
      <dc:date>2015-11-17T11:02:05Z</dc:date>
    </item>
  </channel>
</rss>

