NavigationVisualizationStyleConfig

@Immutable
abstract class NavigationVisualizationStyleConfig

The style configuration of NavigationVisualization composable.

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

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

See StandardStyles for the built-in style options.

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

Types

Link copied to clipboard

Properties

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

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 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.

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

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 NavigationVisualizationStyleConfig and applies the changes by configure to the copied instance.