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
cameraOptionsThe custom
CameraOptionsthat the map view will use while presenting a single route. If no value was provided, the map view will use defaultCameraOptionsvalue, 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
shouldFitIf
truegeometry of all routes will be used for camera transition. Iffalsegeometry of only first route will be used. Defaults totrue.cameraOptionsThe custom
CameraOptionsthat the map view will use while presenting all routes. If no value was provided, the map view will use defaultCameraOptionsvalue, which is based on current safe area.
Install in Dash
RoutesPresentationStyle Enumeration Reference