laptop and a wrench

Erro

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.

Última Publicação: September 22, 2021 ArcGIS API for JavaScript
Número de ID do Erro BUG-000141819
EnviadoJuly 29, 2021
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada4.20
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

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(); });

Solução Provisória

  • 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.

Etapas para Reproduzir

ID do Erro: BUG-000141819

Software:

  • ArcGIS API for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download