Two questions about setting the time extent in an ExB app using the Timeline widget.
1. I am using the "Customize time settings" in the Timeline widget as it allows nice control over setting the min/max date range based off today (+/- 3 months). But from what I can tell there is no way to initialize the time to today. It always starts at the start time. Am I missing something to set the initial slider time?
2. How I handled this in WAB was in a custom background widget I would just set the initial time to today. Trying the same in ExB while it does set the initial map time, the Timeline widget does not update. Is there a way to get it to refresh to the time extent? Some event I can fire to tell it to update? Is it even using the maps time extent?
//Set initial map date to today
var currentDate = new Date(Date.now());
currentDate.setHours(0,0,0,0);
map.view.timeExtent = {
start: currentDate,
end: currentDate
}
//Timeline does not refresh to show this time and upon opening resets the map's time to it's own.
Thanks for any thoughts!