create

fun create(tomtomMap: TomTomMap, tomtomNavigation: TomTomNavigation, styleConfiguration: StyleConfiguration = StyleConfiguration(), navigationTileStore: NavigationTileStore? = null): NavigationVisualization

Creates an instance of the default implementation of NavigationVisualization.

Multiple instances of NavigationVisualization may coexist, each associated with its own TomTomMap and TomTomNavigation instances. This is useful, for example, when creating a multiple-screen setup.

Parameters

tomtomMap

The entry point for the map on which the routes are drawn.

tomtomNavigation

The entry point for interacting with and customizing navigation.

styleConfiguration

The style configuration for the elements of the navigation visualization.

navigationTileStore

The data store object used to retrieve lane geometry.


fun create(tomtomMap: TomTomMap, navigationEventDispatcher: NavigationEventDispatcher, styleConfiguration: StyleConfiguration = StyleConfiguration(), navigationTileStore: NavigationTileStore? = null): NavigationVisualization

Creates an instance of the default implementation of NavigationVisualization.

Multiple instances of NavigationVisualization may coexist, each associated with its own TomTomMap and TomTomNavigation instances. This is useful, for example, when creating a multiple-screen setup.

Parameters

tomtomMap

The entry point for the map on which the routes are drawn.

navigationEventDispatcher

The entry point for dispatching navigation events to the navigation visualization.

styleConfiguration

The style configuration for the elements of the navigation visualization.

navigationTileStore

The data store object used to retrieve lane geometry.