Select to view content in your preferred language

Printing a legend for a dynamically rendered dynamic layer

7679
10
01-26-2014 05:40 PM
MalcolmWilliamson
Emerging Contributor
I'm afraid I'm attempting another impossible task. I'm using class break and unique value renderers to allow the user to choose which attribute of a dynamic layer is used as the basis for their map. This works great in the browser, and also makes nice print maps, but I can't get the legend info into the resulting PDF map. Is there any way to pass the resulting legend to the Print dijit when using the esri.request approach? Any other options?

Thanks very much.
0 Kudos
10 Replies
FC_Basson
MVP Regular Contributor

I've experienced a similar issue and found the problem to be that the "layoutOptions" property of the print template MUST be specified for the legend to be definitely included in the printout.  Maybe it was just an isolated instance of the issue, but it sure worked for me.  I also tested it with Esri's latest version of the print service (http://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%2...)

Regards

Frederick

0 Kudos