attach Cache
suspend fun ContentManager.attachCache(layer: TiledImageLayer, contentKey: String, cachePolicy: CachePolicy = CachePolicy.UNBOUNDED)
Register a tiled image layer (WMS / WMTS / WebMercator).
suspend fun ContentManager.attachCache(layer: VectorLayer, contentKey: String, cachePolicy: CachePolicy = CachePolicy.UNBOUNDED)
Register a vector layer. Dispatches by concrete subtype to record the right service-identity row:
MvtVectorLayer — source must be a fresh UrlTemplateMvtTileSource.
BulkFeatureLayer — wrapped
BulkFeatureSourcedetermines whether the service-identity row is"WFS"or"Shapefile".OsmBuildingsLayer — source must be a fresh OverpassBuildingsSource.
suspend fun ContentManager.attachCache(coverage: TiledElevationCoverage, contentKey: String, cachePolicy: CachePolicy = CachePolicy.UNBOUNDED, isFloat: Boolean = false)
Register a tiled elevation coverage.
Parameters
is Float
First-creation hint for the gpkg dataType column (Int16 vs Float32). Defaults to false (Int16). On reopen of an existing cache row the stored value always wins; this hint is silently ignored. Cf. CacheEntry.isFloat.