MapConfig

data class MapConfig(val isNightModeEnabled: Boolean? = null, val poiLimit: Int? = null, val isFastTapEnabled: Boolean? = null, val isRotateGesturesEnabled: Boolean? = null, val isTiltGesturesEnabled: Boolean? = null, val isScrollGesturesEnabled: Boolean? = null, val isZoomGesturesEnabled: Boolean? = null, val mapType: MapType? = null, val use2dMode: Boolean? = null, val logo: MapLogoConfig = MapLogoConfig(), val fps: Float? = null)

Config for Map and MapWindow that uses default configuration

Constructors

Link copied to clipboard
constructor(isNightModeEnabled: Boolean? = null, poiLimit: Int? = null, isFastTapEnabled: Boolean? = null, isRotateGesturesEnabled: Boolean? = null, isTiltGesturesEnabled: Boolean? = null, isScrollGesturesEnabled: Boolean? = null, isZoomGesturesEnabled: Boolean? = null, mapType: MapType? = null, use2dMode: Boolean? = null, logo: MapLogoConfig = MapLogoConfig(), fps: Float? = null)

Properties

Link copied to clipboard
val fps: Float?

The base map type with MapWindow.setMapFps.

Link copied to clipboard

Removes the 300 ms delay in emitting a tap gesture with Map.isFastTapEnabled

Link copied to clipboard

If enabled, night mode will reduce map brightness and improve contrast.

Link copied to clipboard

Enable/disable rotation gestures, such as rotation with two fingers with Map.isRotateGesturesEnabled]

Link copied to clipboard

Enable/disable scroll gestures with Map.isScrollGesturesEnabled

Link copied to clipboard

Enable/disable tilt gestures, such as parallel pan with two fingers with Map.isTiltGesturesEnabled

Link copied to clipboard

Enable/disable zoom gestures with Map.isZoomGesturesEnabled

Link copied to clipboard

Config to control Yandex logo object with Map.getLogo

Link copied to clipboard

The base map type with Map.mapType

Link copied to clipboard

Limits the number of visible basemap POIs with Map.poiLimit

Link copied to clipboard

Forces the map to be flat with Map.set2DMode