RoutingVisualizationStyleConfig

The style configuration of RoutingVisualization composable.

Code-based styling via this class is no longer applied. To customize the appearance of routing visualization, pass a MapLibre style file to rememberMapViewState:

val mapViewState = rememberMapViewState(
initialStyle = StyleDescriptor(uri = "asset://custom-routing-style.json")
)

See StandardStyles for the built-in style options.

An instance of this class can be constructed with the RoutingVisualizationStyleConfig fake constructor function.

Types

Link copied to clipboard
class Mutable

Properties

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
val route: RouteStyle

Deprecated. Code-based styling is no longer applied. Use the MapLibre style file passed to rememberMapViewState(initialStyle = ...) instead. See StandardStyles.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
val routeTrafficIncident: RouteTrafficIncidentStyle

Deprecated. Code-based styling is no longer applied. Use the MapLibre style file passed to rememberMapViewState(initialStyle = ...) instead. See StandardStyles.

Functions

Link copied to clipboard

Copies the RoutingVisualizationStyleConfig and applies the changes by configure to the copied instance.