Skip to content

worldwind-ui API / worldwind-kit / setLayerTime

Function: setLayerTime() ​

setLayerTime(layer, time, options?): string | null

Defined in: kit/src/time.ts:351

Changes the TIME a WMS or WMTS layer requests. WorldWind only takes the time at construction, so this updates the layer's URL builder and gives the layer a tile set of its own per instant: the imagery already fetched for an instant stays in WorldWind's texture cache, so stepping back to it is immediate. Layers without tiles are simply refreshed.

Parameters ​

layer ​

WWLayer

time ​

string | Date | null

options? ​

format? ​

TimeFormat

Returns ​

string | null

The request value that was applied.

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.