Select to view content in your preferred language

Updating a layer's timeInfo at runtime

418
0
11-28-2022 08:46 AM
ChristophK
Occasional Contributor

I'm building an application with ArcGIS JS 4.22 that displays two time-aware services: An ArcGIS Feature Service and a WMS.

On both services the available time extent changes every 5 to 15 minutes as data is updated regularly on these services (and the service metadata and capabilities reflect that), but I cannot find a way to get this in my application and update these layer's timeInfo properties accordingly. I would need this information to trigger some updates and rebuild the timeslider.

Is there a built-in way to refetch the metadata and update time extents/time info in some way?

The only info I could find was this sentence from the WMSLayer documentation (and similarly on other Layer's docs), which makes me believe it's currently not possible:

The fullTimeExtent for timeInfo is automatically set to the union of all time dimension extents. The timeInfo parameters cannot be changed after the layer is loaded.

0 Kudos
0 Replies