laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000130105
EingereichtApril 13, 2020
Zuletzt geändertFebruary 14, 2025
Gilt fürArcGIS Maps SDK for JavaScript
Gefunden in Version4.14
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusUnder Consideration

Workaround

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).

Schritte zur Reproduzierung

Bug-ID: BUG-000130105

Software:

  • ArcGIS Maps SDK for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln