It would be great to have the functionality of being able to place labels from two different fields for a Polygon Feature layer in the new map Viewer when exporting to PDF format. Currently, when labeling, even if the X and Y offsets are configured to not overlap, the labels from two different fields in a polygon feature layer is not showing up on the map when exporting to PDF format. This works for a point feature class but does not work for a polygon feature class. Both of the labels for a polygon feature layer appear in the map viewer map display but not in the export PDF file.
Would it be possible to use an Arcade expression to create a single label class with both field values in it instead?
Thanks Josh. It is possible to use an Arcade expression to create a single label class with both field values in it as both you and Rhett suggested. Thanks!
How are you labeling the feature? You say on polygons, but the images both appear to be points.
In either case, if I set up the label(s) in the new map viewer:
$feature["Lat"] + " - " + $feature["Long"]
Then I get both showing in the map viewer as well as exported PDF (using Print in Map Viewer) on points and polygons.
R_
Rhett,
For starters, I attached the wrong images. I have correctly attached the polygon feature layer labels. Thanks for your advice. It does work using the Arcade custom label expression to display the Latitude and Longitude field. I was using the "Enable Labels" and creating a label for the Latitude field and a label for the Longitude field. There is still an error when creating a label for each field (not using the Arcade custom expression) in a polygon feature layer when creating a PDF export (using Print in Map Viewer).
Ahh, two label classes. Didn't think of that. Automatically went to Arcade when I wanted label with more than one field.
Using two label classes, I see the same thing you are seeing. Second label disappears when export to PDF.
R_
Thanks for testing on your end. I appreciate that. But, until the two label classes gets added as an enhancement, the Arcade expression works great. Thanks again.
Greg