MapSnapshotOptions
public struct MapSnapshotOptions
Set of options for taking map snapshot with Snapshotter.
-
Dimensions of the snapshot in points.
Declaration
Swift
public let size: CGSize
-
Ratio between the number device-independent and screen pixels.
Declaration
Swift
public let pixelRatio: CGFloat
-
Glyphs rasterization options to use for client-side text rendering. By default,
GlyphsRasterizationOptions
will use.ideographsRasterizedLocally
Declaration
Swift
public let glyphsRasterizationOptions: GlyphsRasterizationOptions
-
Resource fetching options to be used by the snapshotter.
Declaration
Swift
public let resourceOptions: ResourceOptions
-
Initializes a
MapSnapshotOptions
Declaration
Swift
public init(size: CGSize, pixelRatio: CGFloat, glyphsRasterizationOptions: GlyphsRasterizationOptions = GlyphsRasterizationOptions(), resourceOptions: ResourceOptions = ResourceOptionsManager.default.resourceOptions)
Parameters
size
Dimensions of the snapshot in points
pixelRatio
Ratio of device-independent and screen pixels.
glyphsRasterizationOptions
Glyphs rasterization options to use for client-side text rendering. Default mode is
.ideographsRasterizedLocally
resourceOptions
Resource fetching options to be used by the snapshotter. Default uses the access token provided by
ResourceOptionsManager.default