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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動