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 mode: MapMode? = null, val mapStyle: String? = null, val isHdModeEnabled: Boolean? = null, val isIndoorEnabled: Boolean? = null, val isAwesomeModelsEnabled: Boolean? = null, val isTransparentBackgroundEnabled: Boolean? = null, val isBuildingsAboveIndoorEnabled: Boolean? = null, val cameraBounds: MapCameraBoundsConfig = MapCameraBoundsConfig(), val focusRect: ScreenRect? = null, val focusPoint: ScreenPoint? = null, val gestureFocusPoint: ScreenPoint? = null, val gestureFocusPointMode: GestureFocusPointMode? = null, val pointOfView: PointOfView? = null, val scaleFactor: Float? = null, val use2dMode: Boolean? = null, val logo: MapLogoConfig = MapLogoConfig(), val fps: Int? = 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, mode: MapMode? = null, mapStyle: String? = null, isHdModeEnabled: Boolean? = null, isIndoorEnabled: Boolean? = null, isAwesomeModelsEnabled: Boolean? = null, isTransparentBackgroundEnabled: Boolean? = null, isBuildingsAboveIndoorEnabled: Boolean? = null, cameraBounds: MapCameraBoundsConfig = MapCameraBoundsConfig(), focusRect: ScreenRect? = null, focusPoint: ScreenPoint? = null, gestureFocusPoint: ScreenPoint? = null, gestureFocusPointMode: GestureFocusPointMode? = null, pointOfView: PointOfView? = null, scaleFactor: Float? = null, use2dMode: Boolean? = null, logo: MapLogoConfig = MapLogoConfig(), fps: Int? = null)

Properties

Link copied to clipboard

Config to control zoom limits and the world bounding box with Map.cameraBounds

Link copied to clipboard

The point on the screen that corresponds to camera position with MapWindow.focusPoint

Link copied to clipboard

The area of interest inside the view with MapWindow.focusRect

Link copied to clipboard
val fps: Int?

The base map type with MapWindow.setMaxFps.

Link copied to clipboard

The focus point of gestures with MapWindow.gestureFocusPoint

Link copied to clipboard

The way provided gesture focus point affects gestures with MapWindow.gestureFocusPointMode

Link copied to clipboard

Enables rich textured 3d content on basemap with Map.isAwesomeModelsEnabled

Link copied to clipboard

Hides the indoor plans and shows the buildings without resetting the current indoor plan with Map.isBuildingsAboveIndoorEnabled

Link copied to clipboard

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

Link copied to clipboard

Enables hd mode of displayed content with Map.isHdModeEnabled

Link copied to clipboard

Enables/disables indoor plans on the map with Map.isIndoorEnabled

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

Makes the map background fully transparent with Map.isTransparentBackgroundEnabled

Link copied to clipboard

Enable/disable zoom gestures with Map.isZoomGesturesEnabled

Link copied to clipboard

Config to control Yandex logo object with Map.logo

Link copied to clipboard

JSON style transformation applied to the map with Map.setMapStyle

Link copied to clipboard

The base map type with Map.mapType

Link copied to clipboard

One of predefined map style modes optimized for particular use case with Map.mode

Link copied to clipboard

Limits the number of visible basemap POIs with Map.poiLimit

Link copied to clipboard

The position of the point of view with MapWindow.pointOfView

Link copied to clipboard

Scale factor of the map with MapWindow.scaleFactor

Link copied to clipboard

Forces the map to be flat with Map.set2DMode