OverviewViewportStateOptions
public struct OverviewViewportStateOptions : Equatable
Configuration options for OverviewViewportState.
-
The geometry that the
OverviewViewportStateshould use when calculating its camera.Declaration
Swift
public var geometry: Geometry -
The padding that
OverviewViewportStateshould use when calculating its camera.Declaration
Swift
public var padding: UIEdgeInsets -
The bearing that
OverviewViewportStateshould use when calcualting its camera.Declaration
Swift
public var bearing: CLLocationDirection? -
The pitch that
OverviewViewportStateshould use when calculating its camera.Declaration
Swift
public var pitch: CGFloat? -
The length of the animation performed by
OverviewViewportStatewhen it starts updating the camera and any timeoptionsis set. Seeoptionsfor details.Declaration
Swift
public var animationDuration: TimeInterval -
Memberwise initializer for
OverviewViewportStateOptions.geometryis required, but all other parameters have default values.Declaration
Swift
public init(geometry: GeometryConvertible, padding: UIEdgeInsets = .zero, bearing: CLLocationDirection? = 0, pitch: CGFloat? = 0, animationDuration: TimeInterval = 1)Parameters
geometrythe geometry for which an overview should be shown.
paddingDefaults to
UIEdgeInsets.zero.bearingDefaults to 0.
pitchDefaults to 0.
animationDurationDefaults to 1.
OverviewViewportStateOptions Structure Reference