KNComponentMapView
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. 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 route colors based on day or night mode and traffic conditions.
TIP
This function KNNaviview.initWithGuidance must be called beforehand.
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. |