tileExpirationTime

tileExpirationTime: number | undefined

The minimum number of seconds to keep a Tile in memory after it has become unused. Each tile has an expiration timer. Each time tiles are selected for drawing in a view, if we decide to draw a tile we reset its expiration timer. Otherwise, if its expiration timer has exceeded this minimum, we discard it along with all of its children. This allows us to free up memory for other tiles. If we later want to draw the same tile, we must re-request it (typically from some cache). Setting this value too small will cause excessive tile requests. Setting it too high will cause excessive memory consumption.

Default value: 20 seconds. Minimum value: 5 seconds. Maximum value: 60 seconds.

Defined in

Last Updated: 14 November, 2024