SearchVisualization

Entry point for all methods related to the Poi visualization.

Instances of SearchVisualization are created using SearchVisualizationFactory.create. You should call methods on these instances from the main thread only, otherwise an exception can occur.

To use a SearchVisualization instance, first provide a route defined by a list of GeoPoint and a SearchConfiguration to the SearchVisualization.displayPois method.

To support Android configuration changes, create a SearchVisualization instance on the ViewModel and use replaceMap once the Activity/Fragment is recreated.

Inheritors

Functions

Link copied to clipboard
abstract fun clear()

Remove the previous added Pois from the map.

Link copied to clipboard
abstract fun displayPois(geometry: List<GeoPoint>, configuration: SearchConfiguration, callback: SearchVisualizationCallback): Cancellable

Display Points of Interest(POIs) along a route represented by the specified geometry with the given configuration.

Link copied to clipboard
abstract fun replaceMap(tomtomMap: TomTomMap)

Replaces the current TomTomMap with a new one.