MapSnapshotOptions
extension MapSnapshotOptions
-
Initializes a
MapSnapshotOptions
Declaration
Swift
public convenience init(size: CGSize, pixelRatio: Float = 1.0, glyphsRasterizationOptions: GlyphsRasterizationOptions? = GlyphsRasterizationOptions(fontFamilies: []), resourceOptions: ResourceOptions = ResourceOptions(accessToken: CredentialsManager.default.accessToken ?? ""))
Parameters
size
Dimensions of the snapshot in points
pixelRatio
Ratio of device-independent and screen pixels. Default is 1.0.
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
CredentialsManager.default
-
Dimensions of the snapshot in points
Declaration
Swift
public var size: CGSize { get }