laptop and a wrench

Bogue

The 'TextFormatting.NewLine' function of the Arcade expression does not work in Map Viewer Classic while configuring labels.

Portal for ArcGIS
Numéro d’ID de bogue BUG-000161285
EnvoiSeptember 8, 2023
Dernière modificationSeptember 29, 2025
S’applique àPortal for ArcGIS
Version trouvée11.1
Système d’exploitationWindows Server
Version du système d’exploitation2019 64 Bit
StatutKnown Limit

Informations supplémentaires

This is a known limitation in ArcGIS Enterprise and ArcGIS Online when using ArcGIS Maps SDK for JavaScript 3.x and Map Viewer Classic. Refer to this documentation, https://developers.arcgis.com/arcade/function-reference/constants/#textformattingnewline where it states, 'Multi-line labels are NOT supported in the ArcGIS API 3.x for JavaScript nor in the ArcGIS Online map viewer'.

Solution de contournement

  1. Remove this function so the label is on one line only.
  2. Keep new line function and change the label styles placement to center along since above and below placement do not work.

Utilize Map Viewer. Map Viewer use ArcGIS Maps SDK for JavaScript. 4.x, the latest version.

Étapes pour reproduire

ID de bogue: BUG-000161285

Logiciel:

  • Portal for ArcGIS

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement