When using the Time Slider in WABDE 2.5 I am finding two issues that I had not seen in 2.3. First, when the Time Slider widget is enabled, either manually or automatically when app is loaded, the slider Play function is enabled and advances through the slider without any user input. I need this to not auto play when opened.
Also, after pausing the play function, when manually advancing by 1 day, the correct dates do not remain on the widget display, it resets to the first date that is set in the web map. This happens when the Time Slider is no longer in focus and also as it collapses to the display without the bar.
Any suggestions on these issues?
Thanks
Solved! Go to Solution.
I was able to stop the autoplay by changing this line in the TimeSlider widget:
188 if (true === html.hasClass(this.playBtn, "pause")) { // changed from false to true
and stopped the time stamp label from resetting to the first timestamp by commenting out this line in the TimeSlider widget:
413 this._updateTimeSliderUI();
I haven't tested it thoroughly to see how the changes impact other functions but it seems to have solved the problem for my purposes.
I was able to stop the autoplay by changing this line in the TimeSlider widget:
188 if (true === html.hasClass(this.playBtn, "pause")) { // changed from false to true
and stopped the time stamp label from resetting to the first timestamp by commenting out this line in the TimeSlider widget:
413 this._updateTimeSliderUI();
I haven't tested it thoroughly to see how the changes impact other functions but it seems to have solved the problem for my purposes.
Not sure if it broke anything else... but it definitely corrected the issues I reported.
Thanks Matthew!