laptop and a wrench

漏洞

The watch method on the connectionStatus property of a StreamLayerView does not execute in a SceneView.

上次发布: August 6, 2018 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000115331
已提交July 13, 2018
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.8
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Will Not Be Addressed

附加信息

This appears to be app specific. 2D and 3D handle resolving the layerView slightly differently. The app appears to work for 2D because the layerView is resolved before the StreamLayer is connected. In the `whenLayerView` block, the `connectionStatus` is initially disconnected. The watcher later fires when the status changes to `connected`. For 3D, this isn't the case so the watcher never fires. This means that the `processConnect` function is never invoked. The application shouldn't assume that the initial state of the `connectionStatus` is `disconnected`. In the `mapView.whenLayerView(layerView)` block you first need to check what the `connectionStatus` is currently set to, e.g.: mapView.whenLayerView(streamLayer).then(function(layerView) { streamLayerView = layerView; if (layerView.connectionStatus === "connected") { processConnect(); } layerView.watch("connectionStatus", function(value) { ... } If you call `streamLayerView.disconnect()`, the watcher event does get fired.

重现步骤

漏洞 ID: BUG-000115331

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项