nasa-gibs/worldview

Refresh "current" imagery when updated in GIBS

jasontk19 opened this issue · 2 comments

What existing feature could be improved?
If you load some layer tiles for the current day/time before that day/time is fully processed in GIBS, you may see incomplete imagery. The simplest example of this is all the black area you see when you load the app during the day with all the default settings (see screenshot).

Describe the improvement you'd like
It would be nice if Worldview and GIBS could communicate in such a way that Worldview could know when to re-request layer tiles for a given layer when additional processing has been completed on the GIBS side. This way, a user could leave Worldview open in their browser the the current day/time selected and the imagery would auto-magically update over time without the user having to refresh the page.

Additional context
Depends on currently non-existent GIBS features.

Screenshots
Screen Shot 2021-07-23 at 9 46 53 AM

Thoughts:

This could possibly be implemented without GIBS changes by just setting a short cache expiration on OpenLayers layer objects we create for datetimes that fall within a given window (e.g. last 36hours) and triggering a re-request of tiles based on the same interval.

So, for example: every 30 minutes remove any layers from the cache that represent date/times within the last 36 hours and re-request those tiles.

Moved to WV-1987