Print Widget not showing legend using custom print service, has issues rendering layer effects

8652
31
07-03-2022 02:41 PM
andrewdc_tt
Frequent Contributor

I love that the print tool is finally available in Experience Builder, but there are some issues when printing using custom templates. We are using a print service hosted on a server with ArcGIS 10.9.1 and published with ArcGIS Pro.

1 - The legend does not populate at all, even with the 'Show legend' option ticked.

When using the exact same print service and map using the WebAppBuilder print widget, the legend displays with no issues in the print (left is Experience Builder, right is WebAppBuilder).

andrewdc_tt_3-1656883795964.png

2 - Layer effects created in the new Map Viewer (such as drop shadow) do not render properly.

I've found it introduces weird graphical glitches, and labels/symbology seem to be blurry/distorted. The black lines introduced below go away after the drop shadow effect was removed from the map. This problem doesn't seem to be limited to just custom templates however, the default print does this too.

andrewdc_tt_0-1656882953801.png

The default print service won't cut it for us unfortunately because of the map template layouts we need. Are these bugs able to be fixed?

31 Replies
ShengdiZhang
Esri Regular Contributor

Hi, this is a known limitation of the print API https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html 

ShengdiZhang_0-1689231582084.png

 

0 Kudos
Thomas_Fuhrmann
Regular Contributor

@ShengdiZhang Thank you for your answer! I don't use any effects for my group layer and the blending mode is set to normal. So, basically the group layer is just used for grouping. Are there any plans to work on this limitation?

I checked that the print tool in ArcGIS Enterprise Map Viewer is able to deal with the same group layers I use for Experience Builder. So this issue seems to be related to the Experience Builder print widget.

0 Kudos
ShengdiZhang
Esri Regular Contributor

Sorry for the late reply. It looks like the BUG-000151022 , but that bug should be fixed now. If you can still reproduce this issue, can you contact the ESRI Technical Support to create a ticket, so that we can further investigate it?

0 Kudos
EllieLinden
Occasional Contributor

@ShengdiZhang thanks for all the progress on the Print widget! I'm having an issue where layers within the Web Map that are directly pulled from the Living Atlas aren't being displayed in the Legend (even though all other layers in the map are correctly being included in the legend). Is this a known issue of the widget? As an example, this is one of the layers that is not being included in the legend: https://natureserve.maps.arcgis.com/home/item.html?id=ba0f32624e1d42caa907c6d6eb0414fb

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi, I added the layer to my own map but could not reproduce the issue with the ExB Print widget. Could you provide a sample app so I can take a look? My username is she10946.

0 Kudos
DanielRoot
Occasional Contributor

@ShengdiZhang

Having similar issue as others.  Legend will not display group layers?  Not sure, behaves differently depending on layers chosen.  Running ExpBldr Dev 1.16.  Feel like I've checked all the boxes for "Legend" for templates that have it.

Webmap: https://gis.sanjuancountywa.gov/Polaris/

Print Service: https://gis.sanjuancountywa.gov/arcgis/rest/services/Tools/ExportWebMap/GPServer

Hoping I'm just missing something simple.

-Dan

0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi @DanielRoot ,

I tested your sample app and found that the printout includes the legend. My guess is that the legend area is too small to display all the layers.

Can you try using the default print service (https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%...) to see if all layers are included in the print legend?

Thanks,

Shengdi

0 Kudos
DanielRoot
Occasional Contributor

Hi @ShengdiZhang 

Yes, it is known the legend functions correctly with the default print service.  The issue here is using custom print templates.  These templates work in Webappbuilder, Webappbuilder Developer and Experience Builder.  The legend would automatically adjust in size based on layers being used.  This worked when templates where published from ArcPRO 2.9.0.  I updated some small items (image and disclaimer text) and re-published using ArcPRO 3.4.0.  This is when the legend stopped dynamically sizing itself.  I'm hoping it's a setting within ArcPRO I can adjust to resolve this.  The custom print templates really are nice to put our County stamp on printed products.

Thank you for your assistance.

Best,

Dan

0 Kudos
DanielRoot
Occasional Contributor

Almost forgot, I did see this:

https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/print-from-layout-items

Don't want to use it if it's going to cost credits.  Especially when templates from ArcPRO worked just fine.

 

Best,

Dan

0 Kudos
DanielRoot
Occasional Contributor

Hi @ShengdiZhang ,

Decided to try something and it worked!  Instead of the legend starting at the bottom, I placed at the top and made it 6.5 inches long.  For whatever reason, this works.  The legend will now shrink instead of grow to the size it needs to be.  So it's exactly opposite what it was.  Don't know what version of ArcPRO it flipped like that, but this is how it works in 3.4.

Best,

Dan

 

0 Kudos