laptop and a wrench

不具合

The Sketch widget graphics are drawn behind layers brought in through an ArcGIS Online web map.

最後に公開された状態: August 7, 2019 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000123451
送信されましたJuly 1, 2019
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン4.12
ステータスNon-Reproducible

参考情報

GraphicsLayer is added before the view is ready. Update the code to the following and it works correctly: var layer = new GraphicsLayer(); const map = new WebMap({ portalItem: { id: '3acfce904368451f82b60d5c8a120f82' }}); const view = new MapView({ container: "viewDiv", map: map, zoom: 5, center: [-74, 45] }); view.when(function(evt) { map.add(layer); var sketch = new Sketch({ layer: layer, view: view }); view.ui.add(sketch, "top-right"); })

対処法

Repeat the above steps with this jsbin: https://jsbin.com/tatatedece/edit?html,output

The workaround is to add the image service directly to the map versus adding in the web map and consuming it via ArcGIS API for JavaScript.

再現の手順

不具合 ID: BUG-000123451

ソフトウェア:

  • ArcGIS API for JavaScript

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

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

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

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

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

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

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