MapStyleTransformer

An interface representing a transformer for map styles.

This interface defines methods for transforming a MapStylePreference into a Flow of StyleContract.StyleExtension objects. The transform method performs the actual transformation, using the provided preference to generate a flow of style extensions. The getAllStyles method returns a list of all available map styles that this transformer can generate.

See also

StyleContract.StyleExtension

Functions

Link copied to clipboard
abstract fun getAllStyles(withSatellites: Boolean): List<String>

Returns a list of all available map styles that this transformer can generate.

Link copied to clipboard
abstract fun getSatelliteStyles(): List<String>

Returns a list of all available satellite map styles that this transformer can generate.

Link copied to clipboard
abstract suspend fun transform(preference: MapStylePreference): Flow<TransformedMapStyle>

Transforms the given MapStylePreference into a Flow of TransformedMapStyle objects.