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 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项