KNNaviMapView
INFO
This English reference is based on Directions SDK 1.12.12. For the latest version, see the Korean reference.
- Inherits from: KNComponentView : UIView
- Declared in: KNNaviMapView.h
Configures the vehicle icon displayed on the map.
Methods
setCustomCarImages:anchor
Enables or disables the vehicle icon color on the map.
objc
- (void) setCustomCarImages: (NSArray *) aArray
anchor: (CGPoint) aAnchorParameters
| Name | Description |
|---|---|
aArray | 0: color enabled in day mode / 1: color enabled in night mode / 2: color disabled in day mode / 3: color disabled in night mode |
aAnchor | Display anchor for the vehicle icon |
setBackgroundColor:nightColor
The background color of the first route guidance information.
objc
- (void) setBackgroundColor: (UIColor * _Nonnull) aDayColor
nightColor: (UIColor * _Nonnull) aNightColorParameters
| Name | Description |
|---|---|
aDayColor | Day-mode background color |
aNightColor | Night-mode background color |
useMapViewMode
Sets Camera mode currently used on the map.
objc
- (void) useMapViewMode: (MapViewCameraMode) aMapViewCameraMode;Parameters
| Name | Description |
|---|---|
aMapViewCameraMode | Currently changed Camera mode |
setRouteThemeDriveDay
Sets route themes for day/night modes and driving/traffic conditions.
objc
- (void) setRouteThemeDriveDay: (KNMapRouteTheme * _Nullable) aDriveDay
routeThemeDriveNight: (KNMapRouteTheme * _Nullable) aDriveNight
routeThemeTrafficDay: (KNMapRouteTheme * _Nullable) aTrafficDay
routeThemeTrafficNight: (KNMapRouteTheme * _Nullable) aTrafficNight;Parameters
| Name | Description |
|---|---|
aDriveDay | Daytime driving route theme |
aDriveNight | Nighttime driving route theme |
aTrafficDay | Daytime route theme with traffic congestion |
aTrafficNight | Nighttime route theme with traffic congestion |