<?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 How do I add a legend to my ArcGIS Server Print Service? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63350#M2319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created my own custom print service and I am successfully using with ArcGIS Online and Portal for ArcGIS, but I'm having an issue getting the legend to display or display properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to do in the map document / print template to make my legend show up? How can I modify the style of the legend that gets displayed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 22:59:37 GMT</pubDate>
    <dc:creator>BrianHiller</dc:creator>
    <dc:date>2015-08-05T22:59:37Z</dc:date>
    <item>
      <title>How do I add a legend to my ArcGIS Server Print Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63350#M2319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created my own custom print service and I am successfully using with ArcGIS Online and Portal for ArcGIS, but I'm having an issue getting the legend to display or display properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to do in the map document / print template to make my legend show up? How can I modify the style of the legend that gets displayed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 22:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63350#M2319</guid>
      <dc:creator>BrianHiller</dc:creator>
      <dc:date>2015-08-05T22:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a legend to my ArcGIS Server Print Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63351#M2320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll be curious to see how others have handled this.&amp;nbsp; I was never able to get the legend to behave. If I remember correctly, the first few symbols for polygons would show up nice, and the others symbols would never render correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I just created a graphic and added to my custom template for that class of maps I wanted to produce.&amp;nbsp; I know this is not the answer that you want, and hopefully someone has a good solution for us both to try, but thought I'd mention this so you know "you are not alone".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 23:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63351#M2320</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-08-05T23:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a legend to my ArcGIS Server Print Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63352#M2321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;Try configuring your legend with 2 or 3 columns, you will then be able to adjust its size in your layout.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 01:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63352#M2321</guid>
      <dc:creator>JayJohnson3</dc:creator>
      <dc:date>2015-08-06T01:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a legend to my ArcGIS Server Print Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63353#M2322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create your own printing service using a python script. &lt;/P&gt;&lt;P&gt;&lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/gp-service-example-advanced-high-quality-webmap-printing.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/gp-service-example-advanced-high-quality-webmap-printing.htm"&gt;Tutorial: Advanced web map printing/exporting using arcpy.mapping—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In these script you can change legend items or even change a style using a stylefile that you need to create first based on a regular style file. Use &lt;STRONG style="mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes; mso-ansi-language: DE-CH; mso-fareast-language: DE-CH; font-size: 10pt; font-family: 'Arial','sans-serif'; mso-bidi-language: AR-SA;"&gt;C:\Program Files&lt;BR /&gt;(x86)\ArcGIS\Desktop10.3\bin\MakeServerStyleSet.exe&lt;/STRONG&gt; for the export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll probably find problems with legend items not shown or cut off at the layouts border. The solution is to install a printer driver for the arcgis server service account, set it as default printer and set the standard page size to a really large size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pythonsample to change the legend:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Change Legend Style so that Layernames are displayed&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; legends=arcpy.mapping.ListLayoutElements(mxd, "LEGEND_ELEMENT", "Legend")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if len(legends)&amp;gt;0:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legend = legends[0]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; styleItem = arcpy.mapping.ListStyleItems(pathStyleItem, "Legend Items", "styleitemname")[0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for lyr in legend.listLegendItemLayers():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "update legend of layer " + str(lyr.name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legend.updateItem(lyr, styleItem)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 05:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63353#M2322</guid>
      <dc:creator>MarkusSchenardi</dc:creator>
      <dc:date>2015-08-10T05:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a legend to my ArcGIS Server Print Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63354#M2323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Markus, I appreciate you taking the time to answer this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Too bad you have to write code to do this, for certain maps I also like Rebecca's solution of using a graphic that way i know what the end user is going to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 10:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63354#M2323</guid>
      <dc:creator>BrianHiller</dc:creator>
      <dc:date>2015-08-10T10:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a legend to my ArcGIS Server Print Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63355#M2324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So does this mean I have to create a custom template for every single web map I develop with WAB if I want a Legend to show up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 18:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63355#M2324</guid>
      <dc:creator>BrianO_keefe</dc:creator>
      <dc:date>2016-02-17T18:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a legend to my ArcGIS Server Print Service?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63356#M2325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I've had luck using the Fixed Frame option under the legend properties within the template:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="326" src="https://community.esri.com/legacyfs/online/184980_pastedImage_1.png" style="width: 391px; height: 326.007px;" width="391" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kinds of issues are you seeing with the legend items?&amp;nbsp; Are they not fitting, or the legend items not printing correctly?&amp;nbsp; If you're printing a map with a lot of distinct features using a paper size small enough so that the features have problems fitting, you could see if larger paper sizes would help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 19:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-add-a-legend-to-my-arcgis-server-print/m-p/63356#M2325</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-02-18T19:57:24Z</dc:date>
    </item>
  </channel>
</rss>

