open
suspend fun <T : Any> ContentManager.open(category: CacheCategory<T>, cachePolicy: CachePolicy = CachePolicy.UNBOUNDED): List<T>
Bulk-open every cached entry whose CacheEntry.dataType matches category. Return type follows the category's phantom witness:
val tiles: List<TiledImageLayer> = cm.open(CacheCategory.Tiles)
val mvt: List<VectorLayer> = cm.open(CacheCategory.VectorTiles)
val features: List<VectorLayer> = cm.open(CacheCategory.Features)
val coverages: List<TiledElevationCoverage> = cm.open(CacheCategory.Coverage)Content copied to clipboard
Entries the dispatcher can't materialize (missing service info, no registered opener, type cast mismatch) are silently dropped — the return list contains only successfully reconstructed objects.
For per-key opens use openLayer / openElevationCoverage; for narrower-than-category filtering (e.g. WMS only) chain .filterIsInstance<WmsImageLayer>() on the result.