mhoover12

Order of Legend Layers in Printed Map

Discussion created by mhoover12 on Dec 5, 2012
Latest reply on Dec 11, 2012 by mhoover12
I have an app that uses a Print Service task to print out maps.  Everything works as intended, except for one thing.  The order the layers show up in the legend is determined solely based on the draw order of the layers on the map.  This is not desirable.  I have a UI intended to give the user control over which order the layers appear in the legend.

Using PrintTemplate's layoutOption's layerLegends, I had assumed the order of the layers in this array would determine the order they appear in the legend, but this is not the case.  Is this a bug, or as intended?  Is there some other way I can change the order of the layers in the legend?

Thanks!

Outcomes