FollowingCameraOptions
public struct FollowingCameraOptions : Equatable
Options, which are used to control what CameraOptions
parameters will be modified by
NavigationViewportDataSource
in NavigationCameraState.following
state.
-
Pitch, which will be taken into account when preparing
CameraOptions
during active guidance navigation.Defaults to
45.0
degrees.Invariant
Acceptable range of values is0...85
.Declaration
Swift
public var defaultPitch: Double { get set }
-
Zoom levels range, which will be used when producing camera frame in
NavigationCameraState.following
state.Upper bound of the range will be also used as initial zoom level when active guidance navigation starts.
Lower bound defaults to
10.50
, upper bound defaults to16.35
.Invariant
Acceptable range of values is0...22
.Declaration
Swift
public var zoomRange: ClosedRange<Double> { get set }
-
If
true
,NavigationViewportDataSource
will continuously modifyCameraOptions.center
property when producing camera frame inNavigationCameraState.following
state.If
false
,NavigationViewportDataSource
will not modifyCameraOptions.center
property.Defaults to
true
.Declaration
Swift
public var centerUpdatesAllowed: Bool
-
If
true
,NavigationViewportDataSource
will continuously modifyCameraOptions.zoom
property when producing camera frame inNavigationCameraState.following
state.If
false
,NavigationViewportDataSource
will not modifyCameraOptions.zoom
property.Defaults to
true
.Declaration
Swift
public var zoomUpdatesAllowed: Bool
-
If
true
,NavigationViewportDataSource
will continuously modifyCameraOptions.bearing
property when producing camera frame inNavigationCameraState.following
state.If
false
,NavigationViewportDataSource
will not modifyCameraOptions.bearing
property.Defaults to
true
.Declaration
Swift
public var bearingUpdatesAllowed: Bool
-
If
true
,NavigationViewportDataSource
will continuously modifyCameraOptions.pitch
property when producing camera frame inNavigationCameraState.following
state.If
false
,NavigationViewportDataSource
will not modifyCameraOptions.pitch
property.Defaults to
true
.Declaration
Swift
public var pitchUpdatesAllowed: Bool
-
If
true
,NavigationViewportDataSource
will continuously modifyCameraOptions.padding
property when producing camera frame inNavigationCameraState.following
state.If
false
,NavigationViewportDataSource
will not modifyCameraOptions.padding
property.Defaults to
true
.Declaration
Swift
public var paddingUpdatesAllowed: Bool
-
Options, which allow to modify the framed route geometries based on the intersection density.
By default the whole remainder of the step is framed, while
IntersectionDensity
options shrink that geometry to increase the zoom level.Declaration
Swift
public var intersectionDensity: IntersectionDensity
-
Options, which allow to modify
CameraOptions.bearing
property based on information about bearing of an upcoming maneuver.Declaration
Swift
public var bearingSmoothing: BearingSmoothing
-
Options, which allow to modify framed route geometries by appending additional coordinates after maneuver to extend the view.
Declaration
Swift
public var geometryFramingAfterManeuver: GeometryFramingAfterManeuver
-
Options, which allow to modify the framed route geometries when approaching a maneuver.
Declaration
Swift
public var pitchNearManeuver: PitchNearManeuver
-
Initializes
FollowingCameraOptions
instance.Declaration
Swift
public init()
-
Declaration
Swift
public static func == (lhs: FollowingCameraOptions, rhs: FollowingCameraOptions) -> Bool