Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

build
Link copied to clipboard
open fun build(): MapSnapshotOptions
glyphsRasterizationOptions
Link copied to clipboard

Glyphs rasterization options to use for client-side text rendering. By default, `GlyphsRasterizationOptions` will use `NoGlyphsRasterizedLocally` mode.

open fun glyphsRasterizationOptions(glyphsRasterizationOptions: GlyphsRasterizationOptions): MapSnapshotOptions.Builder
pixelRatio
Link copied to clipboard

Ratio between the number device-independent and screen pixels.

open fun pixelRatio(pixelRatio: Float): MapSnapshotOptions.Builder
resourceOptions
Link copied to clipboard

The `resource options` to be used by the snapshotter.

open fun resourceOptions(resourceOptions: ResourceOptions): MapSnapshotOptions.Builder
size
Link copied to clipboard

Dimensions of the snapshot in `platform pixel` units.

open fun size(size: Size): MapSnapshotOptions.Builder