Select to view content in your preferred language

Dynamic legend in layout in print service

506
1
11-25-2024 07:59 AM
LarsElmkær_Chwastek
Frequent Contributor

Hi all,

I have an issue with how my legend behaves in our custom print serivce. We have built a lot of layouts that we are making available through a print service on our Portal. We have named the map frame: WEBMAP_MAP_FRAME and left the map frame blank, so that our print service should read only the data in the web map - see image 1.

We have set the Fitting strategy to "Adjust column and font size" and size 6.

We have set the patch size a bit smaller than standard and checked "Only show features visible..." See image 2.

But when we try to print from the map viewer we get a legend that do not adjust the size, nor show everything it is supposed to. 

We have tried al kinds of combination, but can't quite get a handle on it. If we actually choose a map in the Map frame with data, change the setting for the individual layer, where we can choose "Scale to fit patch size", then the symbols scale and everything shows. But our layouts are supposed to be dynamic, since our users don't necessarily know hich layers to include in their prints..

Does it make sense?

I have also attached one Layout template (DE_A4...) for reference 🙂

Any input is greatly appreciated.

0 Kudos
1 Reply
AubriKinghorn
Esri Regular Contributor

It looks like the settings are right, did you save the legend item settings as the default? Once you have the settings you like for the legend item, right click on it in the Contents Pane and choose Save as Default. Then all newly added legend items (which is all items in a print service) will get those settings. Because each legend item can have it's own settings, you need to tell the legend which settings you would like as the default. 

Cheers,
Aubri