laptop and a wrench

漏洞

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

Portal for ArcGIS
漏洞 ID 编号 BUG-000161285
已提交September 8, 2023
上次修改时间September 29, 2025
适用范围Portal for ArcGIS
找到的版本11.1
操作系统Windows Server
操作系统版本2019 64 Bit
状态Known Limit

附加信息

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

解决办法

  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.

重现步骤

漏洞 ID: BUG-000161285

软件:

  • Portal for ArcGIS

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项