rememberNavigationVisualizationState
fun rememberNavigationVisualizationState(styleConfig: NavigationVisualizationStyleConfig = NavigationVisualizationStyleConfig(), zoomToRoutesEnabled: Boolean = true): NavigationVisualizationState
Remembers and returns the NavigationVisualizationState. The same state is returned as long as all parameter values are the same. If any parameter value changes, a new state instance is returned.
Important: Use named parameters to avoid ambiguous method calls due to API changes.
Parameters
styleConfig
The style configuration. The style configuration can not be changed at runtime.
zoomToRoutesEnabled
fun rememberNavigationVisualizationState(styleConfig: NavigationVisualizationStyleConfig, zoomToRoutesEnabled: Boolean = true, routeInstructionsVisible: Boolean = true, unitSystem: UnitSystem = UnitSystem.Metric): NavigationVisualizationState
Remembers and returns the NavigationVisualizationState. The same state is returned as long as all arguments are the same. If any argument changes, a new state instance is returned.
Important: Use named parameters to avoid ambiguous method calls due to API changes.
Parameters
styleConfig
The style configuration. The style configuration can not be changed at runtime.
zoomToRoutesEnabled
routeInstructionsVisible
unitSystem