laptop and a wrench

不具合

Graphic with TextSymbol does not draw when Polygon Graphic is added to the view twice.

最後に公開された状態: December 31, 2020 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000135688
送信されましたNovember 24, 2020
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン4.17
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスNon-Reproducible

参考情報

The code appears to be the issue. If the user zooms in or out after the original test app loads, the text appears to be fine. https://codepen.io/lxie/pen/QWEeroL?editors=1000 If the user adds a delay before adding the second polygon graphic, the text appears fine. https://codepen.io/noash/pen/wvzzByO

対処法

To add a graphic to the view for the second time, use Graphic.clone() to create a deep clone of the graphic object, and add the clone to the view instead. 

  • Graphic.clone(): https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#clone

再現の手順

不具合 ID: BUG-000135688

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

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

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

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

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

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

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