MapColorScheme

Color scheme constants for OpenMapView.setMapColorScheme, with the same values as in the Maps SDK.

The dark scheme is drawn from the light tiles with TileColorFilters.invertedDark, an approximation that needs no API key. Map types that are dark already, such as MapType.CARTO_DARK, are drawn unchanged.

Properties

Link copied to clipboard
const val DARK: Int = 1

Dark map, whatever the device settings.

Link copied to clipboard
const val FOLLOW_SYSTEM: Int = 2

Light or dark map, following the night mode of the device.

Link copied to clipboard
const val LIGHT: Int = 0

Light map, whatever the device settings. The default of OpenMapView.

Link copied to clipboard
const val UNKNOWN: Int

An unknown color scheme, not accepted by OpenMapView.setMapColorScheme.