laptop and a wrench

不具合

Using the ‘viewModel’ property to configure the Time Slider widget, and then using the ‘play()‘ method, causes the first date value defined in the ‘stops’ property to be skipped.

最後に公開された状態: September 22, 2021 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000141819
送信されましたJuly 29, 2021
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン4.20
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスWill Not Be Addressed

参考情報

This is not known limitation. When a timeSlider.play() function is called, the thumbs immediately jump to the next 'stop' and then pause for the playRate time period. The observed behavior when explicitly defining a ViewModel is by design. When properties are defined at the widget level there is a perceived pause. This is because the widget is still hydrating the view model and is unable to perform the first movement. This is the reason with the 5 seconds delay. To remove the delay, the user should wait for the widget to fully initialize as shown below. timeSlider.when(() => { timeSlider.play(); }); If the user would like to pause the playing for a prescripted about of time then I would suggest something like as follows. // Wait three seconds after TimeSlider has fully loaded to play. timeSlider.when(async () => { const pause = new Promise((resolve) => { setTimeout(() => { resolve(); }, 3000); }); await pause; timeSlider.play(); });

対処法

  • Define all property values for the Time Slider widget directly, without using ‘viewModel’ property.
  • Do not use the ‘play()’ method to start the slider animation automatically.

再現の手順

不具合 ID: BUG-000141819

ソフトウェア:

  • ArcGIS API for JavaScript

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

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

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

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

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

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

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