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
showsBuildings
A Boolean value indicating whether the snapshot image should display buildings.
showsPointsOfInterest
A Boolean value indicating whether the snapshot image should display points of interest.
span
The span of the snapshot.
scale
The 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
0
and 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