laptop and a wrench

不具合

Subsequent clicks on sketches in ArcGIS JavaScript API 4.x do not register the clicks using the MapView click event.

最後に公開された状態: December 3, 2021 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000144549
送信されましたNovember 16, 2021
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン4.21
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスAs Designed

参考情報

The Sketch widget is updated and calls to stop propagation internally. This prevents subsequent click events from firing, which results in the view click events not registering after clicking on a graphic. It is recommended to use the immediate-click event to access the view click event information while actively using Sketch.

対処法

Use 'immediate-click' instead of 'click' on the view. For example: view.on("immediate-click", () => { view.hitTest(event).then((response) => { console.log(response); }); })

再現の手順

不具合 ID: BUG-000144549

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

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

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

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

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

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

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