KNComponentMapView
INFO
This English reference is based on Directions SDK with UI 1.12.8-hotfix02 (as of 2026-07-24). For the latest version, see the Korean reference.
A component that displays the 3D vector map.
Example code — KNComponentMapView
kotlin
class KNComponentMapView : KNComponentView, KNHideTimerView, KNMapViewEventListener, KNMarkerEventListenerMethods
setRouteTheme
Sets the route color according to day/night mode and traffic volume.
TIP
This function must be called before KNNaviView.initWithGuidance.
kotlin
fun setRouteTheme(
driveDay: KNMapRouteTheme? = null,
driveNight: KNMapRouteTheme? = null,
trafficDay: KNMapRouteTheme? = null,
trafficNight: KNMapRouteTheme? = null
): UnitParameters
| Name | Description |
|---|---|
driveDay | Sets the route color for the day driving theme. Displayed in a single color regardless of traffic congestion. |
driveNight | Sets the route color for the night driving theme. Displayed in a single color regardless of traffic congestion. |
trafficDay | Sets the route color for the day theme with traffic congestion information applied. Each section is displayed in a distinct color according to traffic conditions. |
trafficNight | Sets the route color for the night theme with traffic congestion information applied. Each section is displayed in a distinct color according to traffic conditions. |