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
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
157- (void)updateRouteConfig:(TNKRouteConfig *)routeConfig;
158
163- (void)updateOriginMarkerPresentation:(TNKODMarkerPresentation * _Nullable)originMarkerPresentation;
164
169- (void)updateDestinationMarkerPresentation:(TNKODMarkerPresentation * _Nullable)destinationMarkerPresentation;
170
175- (void)updateUserLocationPresentation:(TNKUserLocationPresentation * _Nullable)userLocationPresentation;
176
181- (void)updateRedLineConfig:(TNKRedLineConfig * _Nullable)redLineConfig;
182
183@end
184
185@interface TNKBaseNavView (QMapView)
186
187
191@property (nonatomic, assign) BOOL showsUserLocation;
192
198- (void)configureUserLocationPresentation:(QUserLocationPresentation *)presentation;
199
205- (void)setMapStyle:(int)styleType;
206
207@end
208
209NS_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