Setting the map day driving theme
You can set the day driving theme using the driveDay function of the KNMapTheme (KO) class. This theme uses bright colors adjusted to the screen brightness so that the elements needed for driving are clearly visible.
private fun driveDayTheme() {
mapView.mapTheme = KNMapTheme.driveDay()
}Setting the map night driving theme
You can set the night driving theme using the driveNight function of the KNMapTheme (KO) class. This theme uses dark colors adjusted to the screen brightness so that the elements needed for driving (such as roads) are clearly visible.
private fun driveNightTheme() {
mapView.mapTheme = KNMapTheme.driveNight()
}Setting the map day search theme
You can set the day search theme using the searchDay function of the KNMapTheme (KO) class. This theme uses bright colors adjusted to the screen brightness so that the elements needed for searching (such as buildings and subway stations) are clearly visible.
private fun searchDayTheme() {
mapView.mapTheme = KNMapTheme.searchDay()
}Setting the map night search theme
You can set the night search theme using the searchNight function of the KNMapTheme (KO) class. This theme uses dark colors adjusted to the screen brightness so that the elements needed for searching (such as buildings and subway stations) are clearly visible.
private fun searchNightTheme() {
mapView.mapTheme = KNMapTheme.searchNight()
}Displaying traffic
You can check traffic using isVisibleTraffic of the KNMapView (KO) class.
Colors by traffic level
Gray: Impassable or unknown / Blue: Smooth / Yellow: Slow / Orange: Delayed / Red: Congested
private fun trafficOnOff() {
mapView.isVisibleTraffic = !mapView.isVisibleTraffic
}