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,
GlyphsRasterizationOptionswill use.ideographsRasterizedLocallyDeclaration
Swift
public let glyphsRasterizationOptions: GlyphsRasterizationOptions -
Resource fetching options to be used by the snapshotter.
Declaration
Swift
public let resourceOptions: ResourceOptions -
Initializes a
MapSnapshotOptionsDeclaration
Swift
public init(size: CGSize, pixelRatio: CGFloat, glyphsRasterizationOptions: GlyphsRasterizationOptions = GlyphsRasterizationOptions(), resourceOptions: ResourceOptions = ResourceOptionsManager.default.resourceOptions)Parameters
sizeDimensions of the snapshot in points
pixelRatioRatio of device-independent and screen pixels.
glyphsRasterizationOptionsGlyphs rasterization options to use for client-side text rendering. Default mode is
.ideographsRasterizedLocallyresourceOptionsResource fetching options to be used by the snapshotter. Default uses the access token provided by
ResourceOptionsManager.default
MapSnapshotOptions Structure Reference