Select to view content in your preferred language

Customize a dynamic legend with ExportWebMap

760
4
06-16-2013 10:44 PM
BartBajek
Emerging Contributor
Hi,

does anyone have a clue if it is possible to create a dynamic legend (in terms of size of symbols and font of Layers) when exporting a web with the ExportWebMap tool to a custom template? Ideally it would be that I have a fixed frame for the legend in the custom template and when I export the WebMap it will populate the legend in this fixed frame. this means that if I have only two layers showing the Legend symbols and Text in the legend is if bigger size. The more layers I include into the WebMap the smaller the symbols and text in the exported map.

Please anyone has any idea?

Cheers

Bart
Tags (2)
0 Kudos
4 Replies
GISDev1
Deactivated User
Hi,

does anyone have a clue if it is possible to create a dynamic legend (in terms of size of symbols and font of Layers) when exporting a web with the ExportWebMap tool to a custom template? Ideally it would be that I have a fixed frame for the legend in the custom template and when I export the WebMap it will populate the legend in this fixed frame. this means that if I have only two layers showing the Legend symbols and Text in the legend is if bigger size. The more layers I include into the WebMap the smaller the symbols and text in the exported map.

Please anyone has any idea?

Cheers

Bart



Of course Bart. Just add your legend element to your template mxd and make the settings in ArcMap for fixed size.
0 Kudos
BartBajek
Emerging Contributor
That's what I am doing and but it has no effect on the exported web map. Is there anything I have to change in the widget code or anything else. I am confused as I thought it should work like you said but it isn't.
0 Kudos
GISDev1
Deactivated User
That's what I am doing and but it has no effect on the exported web map. Is there anything I have to change in the widget code or anything else. I am confused as I thought it should work like you said but it isn't.


Ok, I'm not sure about that then. If you have the Legend set as a fixed size in the template mxd, and you are sure that is the template being used in the ExportWebMap task then you might want to give Esri Tech. Support a call. Mine works just fine with a very customized layout.

No need for any Flex stuff at all.
0 Kudos
MatthewMalone
Frequent Contributor
I wanted to pass along info to this thread based on my ESRI Tech Support call on 11/26/13.  My call was to solve why my template MXDs were not showing up in the ExportWebMap task.  During the call I was shown how to set and resize the legend for my map and set it to fixed frame.  Upon experimenting with the resulting PDFs, the legend worked fine and displayed the full legend of any items currently visible on the map.  Please feel free to follow up in this thread if you need any assistance with setting up any parameters.

My current dilemma is trying to figure out how the ordering of items in the published service impact the legend display.  I've read via Help documents that if an items is to large to display in the fixed frame box, then that layer's legend items will not be shown.  However, based on my tests, if I have our Zoning layer active (25+ categories) then the fixed frame box displays nothing in the legend, almost as if it overwhelms the template.  Still experimenting.....

Best regards,
-Matt
0 Kudos