| 漏洞 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
重现步骤