How to rotate street name labels?

661
1
11-29-2017 02:50 PM
CarlTownsend2
New Contributor III

Does anyone know how to rotate street labels for AGOL, using arcade? I have a field called angle which can be used to rotate the label. The feature is a series of short line features, I've turned off symbology so they don't display and have the street name label turned on.

0 Kudos
1 Reply
XanderBakker
Esri Esteemed Contributor

If you have lines, the labels defined for the lines will follow the rotation of the lines:

Currently it would require quite some coding to determine the angle of the line. Although with the AGOL update of December 6th geometry functions where added to Arcade, these do not include functions to extract the angle of a portion of the line. See: Geometry Functions | ArcGIS for Developers 

Which part of the line would you use to determine the angle anyway? The default labeling applied by ArcGIS Online, implement complex things like conflict handling. You will not be able to determine which part of the line will be used to place the label and calculate the angle. 

Can you explain a little more why the default labeling of ArcGIS Online does not yield to required result?