KNNaviMapView
INFO
This English reference is based on Directions SDK with UI 1.12.12. For the latest version, see the Korean reference.
- Inherits from: KNComponentView : UIView
- Declared in: KNNaviMapView.h
Sets the vehicle image displayed on the map.
Methods
setCustomCarImages:anchor
Enables or disables the color of the vehicle image displayed on the map.
objc
- (void) setCustomCarImages: (NSArray *) aArray
anchor: (CGPoint) aAnchorParameters
| Name | Description |
|---|---|
aArray | 0: enables the vehicle image color in day mode / 1: enables it in night mode / 2: disables it in day mode / 3: disables it in night mode |
aAnchor | Anchor point for displaying the vehicle image |
setBackgroundColor:nightColor
Sets the background color of the map view.
objc
- (void) setBackgroundColor: (UIColor * _Nonnull) aDayColor
nightColor: (UIColor * _Nonnull) aNightColorParameters
| Name | Description |
|---|---|
aDayColor | Day background color |
aNightColor | Night background color |
useMapViewMode
Sets the camera mode currently used on the map.
objc
- (void) useMapViewMode: (MapViewCameraMode) aMapViewCameraMode;Parameters
| Name | Description |
|---|---|
aMapViewCameraMode | Current camera mode |
setRouteThemeDriveDay
Sets route themes for day and night modes, with separate themes for driving and traffic conditions.
objc
- (void) setRouteThemeDriveDay: (KNMapRouteTheme * _Nullable) aDriveDay
routeThemeDriveNight: (KNMapRouteTheme * _Nullable) aDriveNight
routeThemeTrafficDay: (KNMapRouteTheme * _Nullable) aTrafficDay
routeThemeTrafficNight: (KNMapRouteTheme * _Nullable) aTrafficNight;Parameters
| Name | Description |
|---|---|
aDriveDay | Day driving route theme |
aDriveNight | Night driving route theme |
aTrafficDay | Day route theme reflecting traffic congestion |
aTrafficNight | Night route theme reflecting traffic congestion |