laptop and a wrench

Bogue

Adding a function with graphicsLayer clone and modifying one of its properties would only change in a single-click HTML button if it was clicked twice.

ArcGIS Maps SDK for JavaScript
Numéro d’ID de bogue BUG-000130105
EnvoiApril 13, 2020
Dernière modificationFebruary 14, 2025
S’applique àArcGIS Maps SDK for JavaScript
Version trouvée4.14
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutUnder Consideration

Solution de contournement

Link workaroundhttps://codepen.io/AuraipornA/pen/QWQoezq

  • Instead of making a clone of the graphicsLayer and having the Polygon and Graphic made outside the function, make a function with the Polygon and Graphic within it.
  • Add in graphicsLayer.removeAll() to reset the old graphic.
  • Add in graphicsLayer.add(Graphic) to make the newly defined Polygon that were made using the HTML buttons using a single click as seen in BUG-000130105_workaround (Line number 75 - 92).

Étapes pour reproduire

ID de bogue: BUG-000130105

Logiciel:

  • ArcGIS Maps SDK for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement