TencentNavKit

TNKBaseNavView.h
Go to the documentation of this file.
1//
2// TNKBaseNavView.h
3// TencentNavKit
4//
5// Created by mol on 2022/10/20.
6// Copyright © 2022 Tencent. All rights reserved.
7//
8
9#import <UIKit/UIKit.h>
10#import <TencentNavKit/TNKNavViewCommonObj.h>
11#import <TencentNavKit/TNKRouteConfig.h>
12#import <TencentNavKit/TNKODMarkerPresentation.h>
13#import <TencentNavKit/TNKUserLocationPresentation.h>
14#import <TencentNavKit/TNKCommonObj.h>
15#import <QMapKit/QMapView.h>
16#import <QMapKit/QMapView+Config.h>
17#import <TencentNavKit/TNKRedLineConfig.h>
18#import <TencentNavKit/TNKTurnArrowConfig.h>
19//#import <TencentNavKit/TNKNavTTS.h>
20
21NS_ASSUME_NONNULL_BEGIN
22
23
25@interface TNKBaseNavView : UIView
26
27- (instancetype)init UNAVAILABLE_ATTRIBUTE;
28
34- (instancetype)initWithFrame:(CGRect)frame config:(QMapConfig * _Nullable)config;
35
39@property (nonatomic, readonly) QMapView *mapView;
40
44@property (nonatomic, assign) TNKNavDayNightMode dayNightMode;
45
49@property (nonatomic, readonly) TNKNavDayNightStatus dayNightStatus;
50
56@property (nonatomic, assign) TNKNavUIMode navUIMode;
57
61@property (nonatomic, assign) BOOL followed;
62
66@property (nonatomic, assign) BOOL followEnabled;
67
71@property (nonatomic, assign) NSTimeInterval followDelay;
72
76@property (nonatomic, assign) TNKNavUIMode nonOverviewNaviUIMode;
77
81@property (nonatomic, assign) TNKNavUIMode overviewNaviUIMode;
82
83
88@property (nonatomic, readonly) TNKRouteConfig *routeConfig;
89
90
96- (void)clearAllRouteUI;
97
103@property (nonatomic, assign) UIEdgeInsets externalEdgeInsets;
104
108@property (nonatomic, copy, nullable) NSArray<TNKCoordinatePoint *> *extraPointsForOverview;
109
116@property (nonatomic, assign) CGPoint fix3DProportion;
117
124@property (nonatomic, assign) CGPoint fix2DProportion;
125
130@property (nonatomic, assign) BOOL compassHidden;
131
132
136@property (nonatomic, assign) BOOL turnArrowEnabled;
137
141@property (nonatomic, strong) TNKTurnArrowConfig *turnArrowConfig;
142
147- (void)updateRouteConfig:(TNKRouteConfig *)routeConfig;
148
153- (void)updateOriginMarkerPresentation:(TNKODMarkerPresentation * _Nullable)originMarkerPresentation;
154
159- (void)updateDestinationMarkerPresentation:(TNKODMarkerPresentation * _Nullable)destinationMarkerPresentation;
160
165- (void)updateUserLocationPresentation:(TNKUserLocationPresentation * _Nullable)userLocationPresentation;
166
171- (void)updateRedLineConfig:(TNKRedLineConfig * _Nullable)redLineConfig;
172
173@end
174
175@interface TNKBaseNavView (QMapView)
176
177
181@property (nonatomic, assign) BOOL showsUserLocation;
182
188- (void)configureUserLocationPresentation:(QUserLocationPresentation *)presentation;
189
195- (void)setMapStyle:(int)styleType;
196
197@end
198
199NS_ASSUME_NONNULL_END
TNKODMarkerPresentation
起终点样式
Definition: TNKODMarkerPresentation.h:16
TNKRedLineConfig
导航红线配置类
Definition: TNKRedLineConfig.h:16
TNKRouteConfig
导航路线样式配置类
Definition: TNKRouteConfig.h:18
TNKTurnArrowConfig
转向箭头样式
Definition: TNKTurnArrowConfig.h:16
TNKUserLocationPresentation
自车点配置类
Definition: TNKUserLocationPresentation.h:35