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.
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?
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?
@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.
Have you created more than Experience with the custom Print Widget tool to see if this issue can be repeated?
@MikeVolz , yes both the default Map Viewer, and Web AppBuilder Print Widget produce same result when Include Legend is not selected.
I have engaged with Esri support and will report back the results.
Have you heard back from Esri? Was there a solution?
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.