Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

acceptExpired
Link copied to clipboard

Accepts expired data when loading style resources. This flag should be set to true to accept expired responses. When a style resource is already loaded but expired, no attempt will be made to refresh the data. This may lead to outdated data. Set to false to ensure that data for a style is up-to-date.

open fun acceptExpired(acceptExpired: Boolean): StylePackLoadOptions.Builder
build
Link copied to clipboard
open fun build(): StylePackLoadOptions
glyphsRasterizationMode
Link copied to clipboard

Specifies glyphs rasterization mode. If provided, updates the style package's glyphs rasterization mode, which defines which glyphs will be loaded from the server. By default, ideographs are rasterized locally and other glyphs are loaded from network (i.e. `IdeographsRasterizedLocally` value is used).

open fun glyphsRasterizationMode(glyphsRasterizationMode: GlyphsRasterizationMode): StylePackLoadOptions.Builder
metadata
Link copied to clipboard

A custom Mapbox value associated with this style package for storing metadata. If provided, the custom value value will be stored alongside the style package. Previous values will be replaced with the new value. Developers can use this field to store custom metadata associated with a style package.

open fun metadata(metadata: Value): StylePackLoadOptions.Builder