PoiVisualization
An interface that provides methods to visualize Points of Interest (PoiLocations) on a map interface using the TomTomMap instance. Instances of PoiVisualization are created using PoiVisualizationFactory.create. You should call methods on these instances from the main thread only, otherwise an exception can occur. To use a PoiVisualization instance, first provide a list of PoiLocation with the display method. You can then call display or clear to remove the PoiLocations that have been added to the map by PoiVisualization.
To support Android configuration changes, create a PoiVisualization instance on the ViewModel and use replaceMap once the Activity/Fragment is recreated.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Adds a listener to the list of click listeners.
Removes all displayed Points of Interest (PoiLocations) from the map.
Displays or updates the provided Points of Interest (PoiLocations) on the map.
Remove PoiLocations from the map if they were added before with PoiVisualization.display.
Removes an observer from the list of click listeners.
Replaces the current TomTomMap with a new one.