SearchVisualization
public protocol SearchVisualization
The SearchVisualization
protocol can be used to display and clear POIs from SearchResult
s using default
and specialized icons for EVs, gas stations, parking facilities, and restaurants.
An instance can be created using SearchVisualizationFactory.createSearchVisualization(map:)
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates and shows POIs on the map based on a list of search results. To clear the POIs use
clearAllPOIs()
.Declaration
Swift
func displayPOIs(from searchResults: [SearchResult])
Parameters
searchResults
List of
SearchResult
s from which POIs are shown. IfSearchResult.poi
is empty,SearchResult
is ignored. -
Hides and destroys all POIs on the map that have been displayed with
displayPOIs(from:)
Declaration
Swift
func clearAllPOIs()