forked from mapfish/mapfish-print
-
Notifications
You must be signed in to change notification settings - Fork 9
Reorder legends block in columns
mbarto edited this page Nov 14, 2013
·
2 revisions
When the option reorderColumns inside legends block it set to true and more than one column is necessary for the legends block, a new algorithm computes the best distribution of the legend items inside the columns. Currently a first fit with items sorted in height descending order is used. This is not sub-optimal, but it's fast.
When a legend item is rendered to another column, by default name and legend icon could finish on different columns. To fix it, please enable the dontBreakItems option.