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 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项