Quelqu’un sait-il comment faire pivoter les étiquettes de rue dans AGOL à l’aide d’Arcade ? J’ai un champ appelé « angle » qui peut servir à faire pivoter l’étiquette. L’entité est constituée d’une série de segments de ligne courts. J’ai désactivé la symbologie pour qu’ils ne s’affichent pas et activé l’étiquette du nom de rue.
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?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.