Builder

class Builder

Constructors

Link copied to clipboard
open fun Builder()

Functions

Link copied to clipboard
open fun build(): MapOptions
Link copied to clipboard
open fun constrainMode(@Nullable constrainMode: ConstrainMode): MapOptions.Builder
The map constrain mode.
Link copied to clipboard
open fun contextMode(@Nullable contextMode: ContextMode): MapOptions.Builder
The map context mode.
Link copied to clipboard
open fun crossSourceCollisions(@Nullable crossSourceCollisions: Boolean): MapOptions.Builder
Specify whether to enable cross-source symbol collision detection or not.
Link copied to clipboard
open fun glyphsRasterizationOptions(@Nullable glyphsRasterizationOptions: GlyphsRasterizationOptions): MapOptions.Builder
Glyphs rasterization options to use for client-side text rendering.
Link copied to clipboard
open fun orientation(@Nullable orientation: NorthOrientation): MapOptions.Builder
The orientation of the Map.
Link copied to clipboard
open fun pixelRatio(pixelRatio: Float): MapOptions.Builder
The custom pixel ratio.
Link copied to clipboard
@MapboxExperimental
open fun scaleFactor(scaleFactor: Float): MapOptions.Builder
Custom scale factor for the Map symbols: icons and texts.
Link copied to clipboard
open fun size(@Nullable size: Size): MapOptions.Builder
The size to resize the map object and renderer backend.
Link copied to clipboard
open fun viewportMode(@Nullable viewportMode: ViewportMode): MapOptions.Builder
The viewport mode.

Extensions

Link copied to clipboard

Get a default MapOptions.Builder with reasterization mode GlyphsRasterizationMode#ALL_GLYPHS_RASTERIZED_LOCALLY