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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動