高德地图SDK(导航) V11.2.0501
Loading...
Searching...
No Matches
AMapNaviRideView.h
Go to the documentation of this file.
1//
2// AMapNaviRideView.h
3// AMapNaviKit
4//
5// Created by AutoNavi on 9/19/16.
6// Copyright © 2016 Amap. All rights reserved.
7//
8
10#import "AMapNaviCommonObj.h"
14
15NS_ASSUME_NONNULL_BEGIN
16
25
26@protocol AMapNaviRideViewDelegate;
27
31
38- (instancetype)initWithFrame:(CGRect)frame withScale:(CGFloat)scaleFactor;
39
40#pragma mark - Delegate
41
44@property (nonatomic, weak) id<AMapNaviRideViewDelegate> delegate;
45
48@property (nonatomic, weak) id <MAMapViewDelegate> mapViewDelegate;
53- (void)addEventListener:(id<AMapNaviRideViewDelegate>)aListener;
54
59- (void)removeEventListener:(id<AMapNaviRideViewDelegate>)aListener;
60
61#pragma mark - Options
62
65@property (nonatomic, assign, readonly) BOOL isLandscape;
66
69@property (nonatomic, assign) AMapNaviViewTrackingMode trackingMode;
70
73@property (nonatomic, assign) AMapNaviRideViewShowMode showMode;
74
77@property (nonatomic, assign) BOOL showUIElements;
78
81@property (nonatomic, assign) BOOL showBrowseRouteButton;
82
85@property (nonatomic, assign) BOOL showMoreButton;
86
89@property (nonatomic, assign) BOOL showTurnArrow;
90
93@property (nonatomic, assign) BOOL showSensorHeading __attribute((deprecated("Deprecated, the direction of the self-vehicle icon will be displayed as the device direction, and setting is no longer supported. since 10.0.900")));
94
97@property (nonatomic, assign) AMapNaviViewMapModeType mapViewModeType;
98
102@property (nonatomic, assign) CGFloat autoZoomMinLevel;
103
107@property (nonatomic, assign) CGFloat autoZoomMaxLevel;
108
112@property (nonatomic, assign) AMapNaviRouteAnnoState showRouteAnnotation;
113
114#pragma mark - MapView
115
118@property (nonatomic, assign) BOOL logoEnable;
119
124@property (nonatomic, assign) MALogoLanguage logoLanguage;
125
128@property (nonatomic, assign) BOOL showCompass;
129
132@property (nonatomic, assign) CGFloat cameraDegree;
133
136@property (nonatomic, assign) BOOL showScale;
137
140@property (nonatomic, assign) CGPoint scaleOrigin;
141
144@property (nonatomic, assign) CGPoint screenAnchor;
145
148@property (nonatomic, assign) CGPoint compassOrigin;
149
152@property (nonatomic, assign) BOOL autoZoomMapLevel;
153
161@property (nonatomic, assign) CGFloat mapZoomLevel;
162
163//纯导航模式使用
164@property(nonatomic, assign) BOOL onlyForGuide;
165
172- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions __attribute((deprecated("Custom View no longer supports custom map style. Since 11.1.000")));
173
174#pragma mark - Polyline Texture
175
178@property (nonatomic, assign) CGFloat lineWidth;
179
182@property (nonatomic, copy, nullable) UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")));
183
186@property (nonatomic, assign) BOOL showGreyAfterPass;
187
190@property (nonatomic, copy, nullable) UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")));;
191
192// 路线走过后置灰的颜色 since 10.0.900
193//The color of the route after being traveled
194@property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
195
199
200#pragma mark - Image
201
208- (void)setStartPointImage:(nullable UIImage *)startPointImage;
209
216- (void)setEndPointImage:(nullable UIImage *)endPointImage;
217
224- (void)setCarImage:(nullable UIImage *)carImage;
225
232- (void)setCarImageWithSize:(nullable UIImage *)carImage;
233
240- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
241
248- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
249
250#pragma mark - Annotation
251
264- (BOOL)addAnnotation:(AMapNaviCustomAnnotation *)annotation;
265
274- (void)removeAnnotation:(AMapNaviCustomAnnotation *)annotation;
275
284- (void)addCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
285
294- (void)removeCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
295
296#pragma mark - Overlay
303- (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
304
311- (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
312#pragma mark - Other
313
319
329+ (UIImage *)rideViewTurnIconImageWithIconType:(AMapNaviIconType)iconType;
330
331@end
332
333@protocol AMapNaviRideViewDelegate <NSObject>
334@optional
335
342- (void)rideViewCloseButtonClicked:(AMapNaviRideView *)rideView;
343
350- (void)rideViewMoreButtonClicked:(AMapNaviRideView *)rideView;
351
358- (void)rideViewTrunIndicatorViewTapped:(AMapNaviRideView *)rideView;
359
368- (void)rideView:(AMapNaviRideView *)rideView didChangeShowMode:(AMapNaviRideViewShowMode)showMode;
369
378- (void)rideView:(AMapNaviRideView *)rideView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
379
388- (void)rideView:(AMapNaviRideView *)rideView didChangeOrientation:(BOOL)isLandscape;
389
398- (void)rideView:(AMapNaviRideView *)rideView didChangeDayNightType:(BOOL)showStandardNightType;
399
408- (UIEdgeInsets)rideViewEdgePadding:(AMapNaviRideView *)rideView;
409
419- (void)rideView:(AMapNaviRideView *)rideView asyncScreenShot:(UIImage *)image state:(NSInteger)state;
420
421@end
422
423NS_ASSUME_NONNULL_END
AMapNaviIconType
Definition AMapNaviCommonObj.h:138
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:47
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:472
AMapNaviRideViewShowMode
Definition AMapNaviRideView.h:20
@ AMapNaviRideViewShowModeOverview
全览状态 Overview status
Definition AMapNaviRideView.h:22
@ AMapNaviRideViewShowModeCarPositionLocked
锁车状态 Locked car status
Definition AMapNaviRideView.h:21
@ AMapNaviRideViewShowModeNormal
普通状态 Normal status
Definition AMapNaviRideView.h:23
MALogoLanguage
Definition MAMapView.h:64
导航界面自定义标注 Custom annotations in the navigation interface since 5.5.0
Definition AMapNaviCompositeAnnotation.h:31
Definition AMapNaviCompositeAnnotation.h:87
Definition AMapNaviCommonObj.h:1507
Definition AMapNaviCommonObj.h:1539
Definition AMapNaviRideView.h:30
CGFloat autoZoomMinLevel
Definition AMapNaviRideView.h:102
BOOL showScale
Definition AMapNaviRideView.h:136
BOOL showGreyAfterPass
Definition AMapNaviRideView.h:186
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition AMapNaviRideView.h:198
CGPoint scaleOrigin
Definition AMapNaviRideView.h:140
BOOL isLandscape
Definition AMapNaviRideView.h:65
AMapNaviRouteAnnoState showRouteAnnotation
Definition AMapNaviRideView.h:112
AMapNaviViewMapModeType mapViewModeType
Definition AMapNaviRideView.h:97
BOOL showUIElements
Definition AMapNaviRideView.h:77
BOOL showTurnArrow
Definition AMapNaviRideView.h:89
id< AMapNaviRideViewDelegate > delegate
Definition AMapNaviRideView.h:44
AMapNaviViewTrackingMode trackingMode
Definition AMapNaviRideView.h:69
BOOL logoEnable
Definition AMapNaviRideView.h:118
UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")))
BOOL showSensorHeading __attribute((deprecated("Deprecated, the direction of the self-vehicle icon will be displayed as the device direction, and setting is no longer supported. since 10.0.900")))
CGFloat mapZoomLevel
Definition AMapNaviRideView.h:161
UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")))
id< MAMapViewDelegate > mapViewDelegate
Definition AMapNaviRideView.h:48
CGPoint screenAnchor
Definition AMapNaviRideView.h:144
BOOL autoZoomMapLevel
Definition AMapNaviRideView.h:152
AMapNaviPolylineGreyColor * routeGreyColor
Definition AMapNaviRideView.h:194
BOOL showCompass
Definition AMapNaviRideView.h:128
BOOL showMoreButton
Definition AMapNaviRideView.h:85
CGFloat cameraDegree
Definition AMapNaviRideView.h:132
CGFloat autoZoomMaxLevel
Definition AMapNaviRideView.h:107
CGPoint compassOrigin
Definition AMapNaviRideView.h:148
CGFloat lineWidth
Definition AMapNaviRideView.h:178
BOOL showBrowseRouteButton
Definition AMapNaviRideView.h:81
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
MALogoLanguage logoLanguage
Definition AMapNaviRideView.h:124
BOOL onlyForGuide
Definition AMapNaviRideView.h:164
AMapNaviRideViewShowMode showMode
Definition AMapNaviRideView.h:73
Definition MAMapCustomStyleOptions.h:12
AMapNaviEleBikeDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviEleBikeManager 的addDataRepresentative:...
Definition AMapNaviEleBikeDataRepresentable.h:28
AMapNaviRideDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviRideManager 的addDataRepresentative:方法进行注册...
Definition AMapNaviRideDataRepresentable.h:27
© 2017 高德信息技术有限公司 版权所有,保留所有权利。