laptop and a wrench

Erro

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

Portal for ArcGIS
Número de ID do Erro BUG-000161285
EnviadoSeptember 8, 2023
Última ModificaçãoSeptember 29, 2025
Aplica-se àPortal for ArcGIS
Versão encontrada11.1
Sistema OperacionalWindows Server
Versão do Sistema Operacional2019 64 Bit
StatusKnown Limit

Informações Adicionais

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'.

Solução Provisória

  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.

Etapas para Reproduzir

ID do Erro: BUG-000161285

Software:

  • Portal for ArcGIS

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download