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

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

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

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

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

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