Initializes map options with center, zoom, bearing, and pitch.
Initializes map options with center and zoom.
Initializes map options with center, zoom and language.
Initializes map options with center, zoom and terrain.
Initializes map options with center, zoom and projection.
constructor()
Full constructor with optional parameters for all properties.
Initializes map options with projection and space option.
Convenience: configuration-only space.
Convenience: enable space with default preset.
Convenience: configuration-only halo.
Convenience: pass halo option directly (enabled or config).
Convenience: projection + halo option (enabled or config).
constructor(language: MTLanguage? = null, center: LngLat? = null, projection: MTProjectionType? = null, zoom: Double? = null, maxZoom: Double? = null, minZoom: Double? = null, bearing: Double? = null, bearingSnap: Double? = null, pitch: Double? = null, maxPitch: Double? = null, minPitch: Double? = null, roll: Double? = null, rollIsEnabled: Boolean? = null, elevation: Double? = null, terrainIsEnabled: Boolean? = null, terrainExaggeration: Double? = null, cancelPendingTileRequestsWhileZooming: Boolean? = null, isCenterClampedToGround: Boolean? = null, shouldCollectResourceTiming: Boolean? = null, crossSourceCollisionsAreEnabled: Boolean? = null, fadeDuration: Double? = null, isInteractionEnabled: Boolean? = null, logoPosition: MTMapCorner? = MTMapCorner.TOP_LEFT, maptilerLogoIsVisible: Boolean? = null, maxTileCacheSize: Double? = null, maxTileCacheZoomLevels: Double? = null, shouldPitchWithRotate: Boolean? = null, shouldRefreshExpiredTiles: Boolean? = null, shouldRenderWorldCopies: Boolean? = null, shouldDragToPitch: Boolean? = null, shouldPinchToRotateAndZoom: Boolean? = null, doubleTapShouldZoom: Boolean? = null, dragPanIsEnabled: Boolean? = null, dragRotateIsEnabled: Boolean? = null, shouldValidateStyle: Boolean? = null, minimapIsVisible: Boolean? = false, attributionControlIsVisible: Boolean? = null, geolocateControlIsVisible: Boolean? = false, navigationControlIsVisible: Boolean? = false, projectionControlIsVisible: Boolean? = false, scaleControlIsVisible: Boolean? = false, terrainControlIsVisible: Boolean? = false, space: MTSpaceOption? = null, halo: MTHaloOption? = null, isSessionLogicEnabled: Boolean = true) 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)