laptop and a wrench

漏洞

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
漏洞 ID 编号 BUG-000130105
已提交April 13, 2020
上次修改时间February 14, 2025
适用范围ArcGIS Maps SDK for JavaScript
找到的版本4.14
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Under Consideration

解决办法

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

重现步骤

漏洞 ID: BUG-000130105

软件:

  • ArcGIS Maps SDK for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项