ESRI JS API 2.24.7
ES Modules & React
We are trying to use 2 different time aware layers and each has a different timeExtent. One of the timeExtents we can get directly from the layer and the other we have to manually set the timeExtent. Individually we can do either one no issue, switching between them is the issue.
One layer is Future Wind Forecast for the next 72 hours, the other layer is Weather Radar, from 4 hours in the past to the current time. So we have to change the slider to use the new extents when we switch layers.
Question is: I'm not sure how to update the view or use the other layers extent when we switch. What is the process to switch between layers with different TimeExtents, how to do we get the map/view to be aware we are using a different extent?
Do we connect the slider to the View and change the extent on the slide and it updates the view or is there another way we should be doing this?
Thanks