---
title: "MTMapOptions.MTMapOptions | Mobile sdk | Mobile sdk android | Android"
description: "MTMapOptions"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTMapOptions.MTMapOptions

constructor(center: [LngLat](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-lng-lat/)?, zoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?, bearing: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?, pitch: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?)

Initializes map options with center, zoom, bearing, and pitch.

* * *

constructor(center: [LngLat](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-lng-lat/)?, zoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?)

Initializes map options with center and zoom.

* * *

constructor(center: [LngLat](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-lng-lat/)?, zoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?, language: [MTLanguage](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-language/))

Initializes map options with center, zoom and language.

* * *

constructor(center: [LngLat](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-lng-lat/)?, zoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?, terrainIsEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)?, terrainExaggeration: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?)

Initializes map options with center, zoom and terrain.

* * *

constructor(center: [LngLat](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-lng-lat/)?, zoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?, projection: [MTProjectionType](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-projection-type/)?)

Initializes map options with center, zoom and projection.

* * *

constructor()

Full constructor with optional parameters for all properties.

* * *

constructor(projection: [MTProjectionType](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-projection-type/)?, space: [MTSpaceOption](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-space-option/)?)

Initializes map options with projection and space option.

* * *

constructor(space: [MTSpace](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-space/))

Convenience: configuration-only space.

* * *

constructor(spaceEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html))

Convenience: enable space with default preset.

* * *

constructor(halo: [MTHalo](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-halo/))

Convenience: configuration-only halo.

* * *

constructor(halo: [MTHaloOption](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-halo-option/)?)

Convenience: pass halo option directly (enabled or config).

* * *

constructor(projection: [MTProjectionType](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-projection-type/)?, halo: [MTHaloOption](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-halo-option/)?)

Convenience: projection + halo option (enabled or config).

* * *

constructor(language: [MTLanguage](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-language/)? = null, center: [LngLat](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-lng-lat/)? = null, bounds: [MTBounds](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-bounds/)? = null, projection: [MTProjectionType](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-projection-type/)? = null, zoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, maxZoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, maxBounds: [MTBounds](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-bounds/)? = null, minZoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, bearing: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, bearingSnap: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, pitch: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, maxPitch: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, minPitch: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, roll: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, rollIsEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, elevation: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, terrainIsEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, terrainExaggeration: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, cancelPendingTileRequestsWhileZooming: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, isCenterClampedToGround: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, shouldCollectResourceTiming: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, crossSourceCollisionsAreEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, fadeDuration: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, isInteractionEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, logoPosition: [MTMapCorner](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.types/-m-t-map-corner/)? = MTMapCorner.TOP\_LEFT, maptilerLogoIsVisible: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, maxTileCacheSize: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, maxTileCacheZoomLevels: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, pixelRatio: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, shouldPitchWithRotate: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, shouldRefreshExpiredTiles: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, shouldRenderWorldCopies: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, shouldDragToPitch: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, shouldPinchToRotateAndZoom: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, doubleTapShouldZoom: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, dragPanIsEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, dragRotateIsEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, shouldValidateStyle: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, minimapIsVisible: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = false, attributionControlIsVisible: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null, geolocateControlIsVisible: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = false, navigationControlIsVisible: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = false, projectionControlIsVisible: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = false, scaleControlIsVisible: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = false, terrainControlIsVisible: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = false, space: [MTSpaceOption](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-space-option/)? = null, halo: [MTHaloOption](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-halo-option/)? = null, isSessionLogicEnabled: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = true, eventLevel: [MTEventLevel](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map.options/-m-t-event-level/) = MTEventLevel.CAMERA\_ONLY, highFrequencyEventThrottleMs: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)? = 20, prewarm: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)? = null)

Flexible constructor: all options optional so you can mix and match with named args.

Example usages:

-   MTMapOptions(projection = MTProjectionType.GLOBE, space = MTSpaceOption.Enabled, halo = MTHaloOption.Enabled)
    
-   MTMapOptions(projection = MTProjectionType.GLOBE, halo = MTHaloOption.Config(MTHalo(scale = 1.2)))
    
-   MTMapOptions(center = LngLat(14.4, 50.1), zoom = 6.0, pitch = 45.0)
