RangeVisualizationFactory
public enum RangeVisualizationFactory
Responsible for creating instances of RangeVisualization
.
Important
This is a Public Preview API. It may be changed or removed at any time.Creates an instance of the default implementation of RangeVisualization
.
Multiple instances of RangeVisualization
may coexist, each associated with its own TomTomSDKMapDisplay/TomTomMap
.
This is useful, for example, when creating a multiple-screen setup.
Important
If the system was created by this method, it’s not allowed to calldisplay(range:)
with RangePolygon
s.
Important
For now, only Polygons are able to be stylized with GeoJSON capabilities.Declaration
Swift
public static func create(
map: TomTomMap,
style: RangeVisualizationStyle
)
-> RangeVisualization
Parameters
map
|
The entry point for the map on which the routes will be drawn. |
style
|
The |
Return Value
An instance of the default implementation of RangeVisualization
.