CacheConfig

@Serializable
data class CacheConfig(val useOsmColors: Boolean = true, val useBatchedRendering: Boolean = true, val tileZoom: Int = 15, val tileRadius: Int = 4, val maxLoadedTiles: Int = 256)

The render-config subset persisted into WebServiceInfo.metadata on cache attach and replayed on reopen, so a cached layer comes back with its original flags instead of bare constructor defaults (the white-buildings-on-reopen bug when useOsmColors was set). Only the val constructor params are carried; attributes / shadowMode are not. Defaults mirror the constructor so an absent field decodes to the same value.

Constructors

Link copied to clipboard
constructor(useOsmColors: Boolean = true, useBatchedRendering: Boolean = true, tileZoom: Int = 15, tileRadius: Int = 4, maxLoadedTiles: Int = 256)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard