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/TNKSnapShot.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) BOOL exitOverviewEnabled;
77
81@property (nonatomic, assign) NSTimeInterval exitOverviewDelay;
82
86@property (nonatomic, assign) TNKNavUIMode nonOverviewNaviUIMode;
87
91@property (nonatomic, assign) TNKNavUIMode overviewNaviUIMode;
92
93
98@property (nonatomic, readonly) TNKRouteConfig *routeConfig;
99
100
106- (void)clearAllRouteUI;
107
113@property (nonatomic, assign) UIEdgeInsets externalEdgeInsets;
114
118@property (nonatomic, copy, nullable) NSArray<TNKCoordinatePoint *> *extraPointsForOverview;
119
126@property (nonatomic, assign) CGPoint fix3DProportion;
127
134@property (nonatomic, assign) CGPoint fix2DProportion;
135
140@property (nonatomic, assign) BOOL compassHidden;
141
142
146@property (nonatomic, assign) BOOL turnArrowEnabled;
147
151@property (nonatomic, strong) TNKTurnArrowConfig *turnArrowConfig;
152
156@property (nonatomic, strong, nullable) UIView* navInfoBriefView;
157
162- (void)updateRouteConfig:(TNKRouteConfig *)routeConfig;
163
168- (void)updateOriginMarkerPresentation:(TNKODMarkerPresentation * _Nullable)originMarkerPresentation;
169
174- (void)updateDestinationMarkerPresentation:(TNKODMarkerPresentation * _Nullable)destinationMarkerPresentation;
175
180- (void)updateUserLocationPresentation:(TNKUserLocationPresentation * _Nullable)userLocationPresentation;
181
186- (void)updateRedLineConfig:(TNKRedLineConfig * _Nullable)redLineConfig;
187
193- (void)snapShotWithConfig:(TNKSnapShotConfig *)config completion:(void (^)(TNKSnapShotResult * _Nullable result, NSError * _Nullable error))completion;
194
198- (void)stopSnapShot;
199
200@end
201
202@interface TNKBaseNavView (QMapView)
203
204
208@property (nonatomic, assign) BOOL showsUserLocation;
209
215- (void)configureUserLocationPresentation:(QUserLocationPresentation *)presentation;
216
222- (void)setMapStyle:(int)styleType;
223
224@end
225
226NS_ASSUME_NONNULL_END
TNKODMarkerPresentation
起终点样式
Definition: TNKODMarkerPresentation.h:16
TNKRedLineConfig
导航红线配置类
Definition: TNKRedLineConfig.h:16
TNKRouteConfig
导航路线样式配置类
Definition: TNKRouteConfig.h:18
TNKSnapShotConfig
截图配置类
Definition: TNKSnapShot.h:44
TNKSnapShotResult
截图结果类
Definition: TNKSnapShot.h:92
TNKTurnArrowConfig
转向箭头样式
Definition: TNKTurnArrowConfig.h:16
TNKUserLocationPresentation
自车点配置类
Definition: TNKUserLocationPresentation.h:35