RoutesPresentationStyle
public enum RoutesPresentationStyle
A style that will be used when presenting routes on top of a map view by calling
NavigationMapView.showcase(_:routesPresentationStyle:animated:)
.
-
Only first route will be presented on a map view.
Declaration
Swift
case single(cameraOptions: CameraOptions? = nil)
Parameters
cameraOptions
The custom
CameraOptions
that the map view will use while presenting a single route. If no value was provided, the map view will use defaultCameraOptions
value, which is based on current safe area. -
All routes will be presented on a map view.
Declaration
Swift
case all(shouldFit: Bool = true, cameraOptions: CameraOptions? = nil)
Parameters
shouldFit
If
true
geometry of all routes will be used for camera transition. Iffalse
geometry of only first route will be used. Defaults totrue
.cameraOptions
The custom
CameraOptions
that the map view will use while presenting all routes. If no value was provided, the map view will use defaultCameraOptions
value, which is based on current safe area.