Select to view content in your preferred language

Point Symbols Not Rotated When Printing

137
1
05-14-2024 12:28 PM
NathanHeickLACSD
Regular Contributor

I'm migrating a Web AppBuilder application from a custom print service hosted in ArcGIS Enterprise 10.6.1 to ArcGIS Enterprise 10.9.1.  The 10.6.1 service was published from ArcMap.  The process was simply to run the Export Web Map tool with a folder of custom templates and share as a service.  The 10.9.1 service was published from ArcGIS Pro.

When you observe the web traffic, the web map for 10.6.1 includes feature collections with a symbol for each feature that includes the point rotation.  When you look at the web map for 10.9.1, the layers are much simpler.  They are mostly just a URL and a renderer.  The renderer has a rotation angle of 0, which is how all points are drawn in the PDF export.

I'm wondering if anyone else has had similar issues before.  This may just be a Web AppBuilder issue.  It is the client submitting the request.  I am able to get the print job to work properly if I pass the web map JSON created for the 10.6.1 service.

Any help is appreciated.

Thanks, Nathan

0 Kudos
1 Reply
NathanHeickLACSD
Regular Contributor

I narrowed it down a little bit more.  Yes, the angle in the renderer was zero, but it is also that way on the service.  What was missing is the visual variable for the rotation angle.  The visual variables were an empty array somehow.  I think the issue is in the _createOperationalLayers method of the printTask.  I created a workaround by adding another function in Print.js of the Print widget to put back the visual variables that were missing.  This function is like _fixInvalidSymbol and _excludeInvalidLegend.

0 Kudos