RangeVisualizationServiceProtocol
public protocol RangeVisualizationServiceProtocol
Entry point for all methods related to the reachable range visualisation addon.
A typical usage of this object is by creating an instance through RangeVisualizationServiceBuilder().build(:_)
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
The reachable range currently active and displayed on map.
Declaration
Swift
var range: Range? { get }
-
Displays reachable range on
TomTomMap
. Previous range is removed from the map.Declaration
Swift
func display(range: Range)
Parameters
range
Reachable range to be displayed.
-
Removes reachable range that has been added with
display(:_)
from the map.Declaration
Swift
func clear()
-
Designated initialiser.
Declaration
Swift
init(map: TomTomMap, style: RangeVisualizationStyle)
Parameters
map
TomTomMap
to be injected.style
RangeVisualizationStyle
to be used for styling.