rememberOfflinePacksSource

@Composable
fun rememberOfflinePacksSource(offlinePacks: Set<OfflinePack>, options: GeoJsonOptions = GeoJsonOptions(), putExtraProperties: PropertiesBuilder.(OfflinePack) -> Unit = {}): Source(source)

Specialization of rememberGeoJsonSource that contains the list of OfflinePack as features. This allows you to implement a UI to manage offline packs directly on the map.

By default, each feature has properties corresponding to the OfflinePack.downloadProgress.

Parameters

offlinePacks

The collection of offline packs to represent in the source.

putExtraProperties

A function that will be called with each OfflinePack to allow you to add additional properties to the feature. For example, you can use this to add properties based on the OfflinePack.metadata.