Builder
class Builder
Content copied to clipboard
Constructors
Functions
build
Link copied to clipboard
constrain Mode
Link copied to clipboard
open fun constrainMode(@Nullable constrainMode: ConstrainMode): MapOptions.Builder
Content copied to clipboard
The map constrain mode.
context Mode
Link copied to clipboard
open fun contextMode(@Nullable contextMode: ContextMode): MapOptions.Builder
Content copied to clipboard
The map context mode.
cross Source Collisions
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.
glyphs Rasterization Options
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.
optimize For Terrain
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.
pixel Ratio
Link copied to clipboard
The custom pixel ratio.
size
Link copied to clipboard
The size to resize the map object and renderer backend.
viewport Mode
Link copied to clipboard
open fun viewportMode(@Nullable viewportMode: ViewportMode): MapOptions.Builder
Content copied to clipboard
The viewport mode.
Extensions
apply Default Params
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