Builder
class Builder
Content copied to clipboard
Constructors
Functions
build
Link copied to clipboard
constrainMode
Link copied to clipboard
open fun constrainMode(@Nullable constrainMode: ConstrainMode): MapOptions.Builder
Content copied to clipboard
The map constrain mode.
contextMode
Link copied to clipboard
open fun contextMode(@Nullable contextMode: ContextMode): MapOptions.Builder
Content copied to clipboard
The map context mode.
crossSourceCollisions
Link copied to clipboard
open fun crossSourceCollisions(@Nullable crossSourceCollisions: Boolean): MapOptions.Builder
Content copied to clipboard
Specify whether to enable cross-source symbol collision detection or not.
glyphsRasterizationOptions
Link copied to clipboard
open fun glyphsRasterizationOptions(@Nullable glyphsRasterizationOptions: GlyphsRasterizationOptions): MapOptions.Builder
Content copied to clipboard
Glyphs rasterization options to use for client-side text rendering.
optimizeForTerrain
Link copied to clipboard
open fun optimizeForTerrain(@Nullable optimizeForTerrain: Boolean): MapOptions.Builder
Content copied to clipboard
With terrain on, if `true`, the map will render for performance priority, which may lead to layer reordering allowing to maximize performance (layers that are draped over terrain will be drawn first, including fill, line, background, hillshade and raster).
orientation
Link copied to clipboard
open fun orientation(@Nullable orientation: NorthOrientation): MapOptions.Builder
Content copied to clipboard
The orientation of the Map.
pixelRatio
Link copied to clipboard
The custom pixel ratio.
size
Link copied to clipboard
The size to resize the map object and renderer backend.
viewportMode
Link copied to clipboard
open fun viewportMode(@Nullable viewportMode: ViewportMode): MapOptions.Builder
Content copied to clipboard
The viewport mode.
Extensions
applyDefaultParams
Link copied to clipboard
fun MapOptions.Builder.applyDefaultParams(context: Context): MapOptions.Builder
Content copied to clipboard
Get a default MapOptions.Builder with reasterization mode GlyphsRasterizationMode#ALL_GLYPHS_RASTERIZED_LOCALLY