LocationMessageSnapshotOptions
public struct LocationMessageSnapshotOptions
An object grouping the settings used by the MKMapSnapshotter through the LocationMessageDisplayDelegate.
-
Initialize LocationMessageSnapshotOptions with given parameters
Declaration
Swift
public init(showsBuildings: Bool = false, showsPointsOfInterest: Bool = false, span: MKCoordinateSpan = MKCoordinateSpan(latitudeDelta: 0, longitudeDelta: 0), scale: CGFloat = UIScreen.main.scale)Parameters
showsBuildingsA Boolean value indicating whether the snapshot image should display buildings.
showsPointsOfInterestA Boolean value indicating whether the snapshot image should display points of interest.
spanThe span of the snapshot.
scaleThe scale of the snapshot.
-
A Boolean value indicating whether the snapshot image should display buildings.
The default value of this property is
false.Declaration
Swift
public var showsBuildings: Bool -
A Boolean value indicating whether the snapshot image should display points of interest.
The default value of this property is
false.Declaration
Swift
public var showsPointsOfInterest: Bool -
The span of the snapshot.
The default value of this property uses a width of
0and height of0.Declaration
Swift
public var span: MKCoordinateSpan -
The scale of the snapshot.
The default value of this property uses the
UIScreen.main.scale.Declaration
Swift
public var scale: CGFloat
LocationMessageSnapshotOptions Structure Reference