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.
- (void)driveDayTheme{
self->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.
- (void)driveNightTheme{
self->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.
- (void)searchDayTheme{
self->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.
- (void)searchNightTheme{
self->mapView.mapTheme = [KNMapTheme searchNight];
}Displaying traffic
You can check traffic using the functions of the KNMapView (KO) class.
Colors by traffic level
Gray: Impassable or unknown / Blue: Smooth / Yellow: Slow / Orange: Delayed / Red: Congested
- (void)trafficOnOff{
self->mapView.isVisibleTraffic = !self->mapView.isVisibleTraffic;
}