| Bug-ID-Nummer |
BUG-000135688 |
| Eingereicht | November 24, 2020 |
| Zuletzt geändert | June 5, 2024 |
| Gilt für | ArcGIS API for JavaScript |
| Gefunden in Version | 4.17 |
| Betriebssystem | Windows OS |
| Betriebssystemversion | 10.0 |
| Status | Non-Reproducible
Dieses Problem konnte bei Tests durch das Entwicklungsteam nicht reproduziert werden. Problemen wird u. U. dieser Status zugewiesen, wenn sie nicht reproduziert werden können oder in einer Entwicklungsversion der Software nicht mehr relevant sind. Es wurde jedoch kein Fix zur Problembehebung installiert. Weitere Erläuterungen finden Sie ggf. im Abschnitt "Zusätzliche Informationen" des jeweiligen Problems.
|
Zusätzliche Informationen
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
Workaround
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
Schritte zur Reproduzierung