Select to view content in your preferred language

Labels in local graphicslayer not visible in output generated by webmap export task

328
1
11-01-2023 05:54 AM
ae
by
Frequent Contributor

Hi, 

I have a featurelayer with local graphics (polygons) and labels set up to show on these graphics. When I try to print out the featurelayer using the print widget (which again uses webmap export task/service) the labels are not visible in the print output (pdf, jpg, etc..). Is this a bug or am I doing something wrong? 

Here is a codepen where you can see the issue yourself (here with polylines): Create a FeatureLayer from a shapefile | Sample | ArcGIS Maps SDK for JavaScript 4.28 (codepen.io)

Do the following to see the problem: 

1. Click button up in right corner to download shape file (this is an official shape file from esri)

2. Then upload the same file (also in the same menu)

3. See now that the map contains the polylines with labels

4. Print out the map using the print widget and see that the result does not include labels

0 Kudos
1 Reply
Lerman
by
Frequent Contributor

Hi, I don't think there's a problem as long as you don't use the field with the FID name for the labeling.

0 Kudos