Select to view content in your preferred language

Custom Print Service Legend Border and Background are Displayed When "Include Legend" is un-checked

654
7
04-01-2025 07:55 AM
Jamie_Leitch_CNF
Frequent Contributor

I have a custom print service published from ArcGIS Pro 3.4.2 to Enterprise 11.2.  The print service is working as expected except for the Legend.  When I use this service in a Print Widget tool in Experience Builder, I see the option to "Include Legend".  If I leave this un-checked and run the tool, the legend is not included but the border and background of the legend are.  So there is a white box with a black border with nothing inside.  When the box is checked to include the legend, the legend appears properly as expected.  I see the same behaviour in Map Viewer if I set the custom print service as the default in Organization > Settings > Utility services.

ColForbin_0-1743518856938.png

ColForbin_1-1743518882132.png

 

Is there any way to have the "Include Legend" option not show the border and background of the legend element when it is un-checked?

 

Tags (3)
0 Kudos
7 Replies
MikeVolz
Frequent Contributor

Is this border and background truly part of the legend or are they separate items from the legend used to make the legend more presentable?

Was the layout imported from an previous ArcMap incarnation?

0 Kudos
Jamie_Leitch_CNF
Frequent Contributor

@MikeVolz  the border and background are configured in the Legend element Display settings in the Properties of the legend on the layout, so I'm assuming they are part of the legend.  The layout was not imported from ArcMap.

0 Kudos
MikeVolz
Frequent Contributor

Have you created more than Experience with the custom Print Widget tool to see if this issue can be repeated?

0 Kudos
Jamie_Leitch_CNF
Frequent Contributor

@MikeVolz , yes both the default Map Viewer, and Web AppBuilder Print Widget produce same result when Include Legend is not selected.

0 Kudos
Jamie_Leitch_CNF
Frequent Contributor

I have engaged with Esri support and will report back the results. 

0 Kudos
AlexisHandelman
Occasional Contributor

Have you heard back from Esri? Was there a solution?

0 Kudos
Jamie_Leitch_CNF
Frequent Contributor

Yes, Esri tech support reported the following:

This seems to have been resolved in Map Viewer in Enterprise 11.4, but in ExB built-in to Enterprise 11.4 the issue persists.

In ExB Developer Edition (1.17 and higher) with Enterprise, the issue is resolved.

In ExB built into Enterprise 11.5 the issue is resolved.

My workaround was to move the legend to an area of white space in the layout and remove the legend border so that when the legend is not included, nothing is displayed.  Not ideal, but it works for now until we upgrade our Enterprise.

0 Kudos