高德地图SDK(导航)  V11.2.0001
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 
15 NS_ASSUME_NONNULL_BEGIN
16 
19 typedef NS_ENUM(NSInteger, AMapNaviRideViewShowMode)
20 {
24 };
25 
26 @protocol AMapNaviRideViewDelegate;
27 
31 
32 #pragma mark - Delegate
33 
36 @property (nonatomic, weak) id<AMapNaviRideViewDelegate> delegate;
37 
40 @property (nonatomic, weak) id <MAMapViewDelegate> mapViewDelegate;
45 - (void)addEventListener:(id<AMapNaviRideViewDelegate>)aListener;
46 
51 - (void)removeEventListener:(id<AMapNaviRideViewDelegate>)aListener;
52 
53 #pragma mark - Options
54 
57 @property (nonatomic, assign, readonly) BOOL isLandscape;
58 
61 @property (nonatomic, assign) AMapNaviViewTrackingMode trackingMode;
62 
65 @property (nonatomic, assign) AMapNaviRideViewShowMode showMode;
66 
69 @property (nonatomic, assign) BOOL showUIElements;
70 
73 @property (nonatomic, assign) BOOL showBrowseRouteButton;
74 
77 @property (nonatomic, assign) BOOL showMoreButton;
78 
81 @property (nonatomic, assign) BOOL showTurnArrow;
82 
85 @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")));
86 
89 @property (nonatomic, assign) AMapNaviViewMapModeType mapViewModeType;
90 
94 @property (nonatomic, assign) CGFloat autoZoomMinLevel;
95 
99 @property (nonatomic, assign) CGFloat autoZoomMaxLevel;
100 
104 @property (nonatomic, assign) AMapNaviRouteAnnoState showRouteAnnotation;
105 
106 #pragma mark - MapView
107 
110 @property (nonatomic, assign) BOOL logoEnable;
111 
116 @property (nonatomic, assign) MALogoLanguage logoLanguage;
117 
120 @property (nonatomic, assign) BOOL showCompass;
121 
124 @property (nonatomic, assign) CGFloat cameraDegree;
125 
128 @property (nonatomic, assign) BOOL showScale;
129 
132 @property (nonatomic, assign) CGPoint scaleOrigin;
133 
136 @property (nonatomic, assign) CGPoint screenAnchor;
137 
140 @property (nonatomic, assign) CGPoint compassOrigin;
141 
144 @property (nonatomic, assign) BOOL autoZoomMapLevel;
145 
153 @property (nonatomic, assign) CGFloat mapZoomLevel;
154 
155 //纯导航模式使用
156 @property(nonatomic, assign) BOOL onlyForGuide;
157 
164 - (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions __attribute((deprecated("Custom View no longer supports custom map style. Since 11.1.000")));
165 
166 #pragma mark - Polyline Texture
167 
170 @property (nonatomic, assign) CGFloat lineWidth;
171 
174 @property (nonatomic, copy, nullable) UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")));
175 
178 @property (nonatomic, assign) BOOL showGreyAfterPass;
179 
182 @property (nonatomic, copy, nullable) UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")));;
183 
184 // 路线走过后置灰的颜色 since 10.0.900
185 //The color of the route after being traveled
186 @property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
187 
191 
192 #pragma mark - Image
193 
200 - (void)setStartPointImage:(nullable UIImage *)startPointImage;
201 
208 - (void)setEndPointImage:(nullable UIImage *)endPointImage;
209 
216 - (void)setCarImage:(nullable UIImage *)carImage;
217 
224 - (void)setCarImageWithSize:(nullable UIImage *)carImage;
225 
232 - (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
233 
240 - (void)setWayPointImage:(nullable UIImage *)wayPointImage;
241 
242 #pragma mark - Annotation
243 
256 - (BOOL)addAnnotation:(AMapNaviCustomAnnotation *)annotation;
257 
266 - (void)removeAnnotation:(AMapNaviCustomAnnotation *)annotation;
267 
276 - (void)addCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
277 
286 - (void)removeCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
287 
288 #pragma mark - Overlay
295 - (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
296 
303 - (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
304 #pragma mark - Other
305 
311 
321 + (UIImage *)rideViewTurnIconImageWithIconType:(AMapNaviIconType)iconType;
322 
323 @end
324 
325 @protocol AMapNaviRideViewDelegate <NSObject>
326 @optional
327 
334 - (void)rideViewCloseButtonClicked:(AMapNaviRideView *)rideView;
335 
342 - (void)rideViewMoreButtonClicked:(AMapNaviRideView *)rideView;
343 
350 - (void)rideViewTrunIndicatorViewTapped:(AMapNaviRideView *)rideView;
351 
360 - (void)rideView:(AMapNaviRideView *)rideView didChangeShowMode:(AMapNaviRideViewShowMode)showMode;
361 
370 - (void)rideView:(AMapNaviRideView *)rideView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
371 
380 - (void)rideView:(AMapNaviRideView *)rideView didChangeOrientation:(BOOL)isLandscape;
381 
390 - (void)rideView:(AMapNaviRideView *)rideView didChangeDayNightType:(BOOL)showStandardNightType;
391 
400 - (UIEdgeInsets)rideViewEdgePadding:(AMapNaviRideView *)rideView;
401 
411 - (void)rideView:(AMapNaviRideView *)rideView asyncScreenShot:(UIImage *)image state:(NSInteger)state;
412 
413 @end
414 
415 NS_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:94
BOOL showScale
Definition: AMapNaviRideView.h:128
BOOL showGreyAfterPass
Definition: AMapNaviRideView.h:178
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition: AMapNaviRideView.h:190
CGPoint scaleOrigin
Definition: AMapNaviRideView.h:132
BOOL isLandscape
Definition: AMapNaviRideView.h:57
AMapNaviRouteAnnoState showRouteAnnotation
Definition: AMapNaviRideView.h:104
AMapNaviViewMapModeType mapViewModeType
Definition: AMapNaviRideView.h:89
BOOL showUIElements
Definition: AMapNaviRideView.h:69
BOOL showTurnArrow
Definition: AMapNaviRideView.h:81
id< AMapNaviRideViewDelegate > delegate
Definition: AMapNaviRideView.h:36
AMapNaviViewTrackingMode trackingMode
Definition: AMapNaviRideView.h:61
BOOL logoEnable
Definition: AMapNaviRideView.h:110
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:153
id< MAMapViewDelegate > mapViewDelegate
Definition: AMapNaviRideView.h:40
CGPoint screenAnchor
Definition: AMapNaviRideView.h:136
BOOL autoZoomMapLevel
Definition: AMapNaviRideView.h:144
AMapNaviPolylineGreyColor * routeGreyColor
Definition: AMapNaviRideView.h:182
BOOL showCompass
Definition: AMapNaviRideView.h:120
BOOL showMoreButton
Definition: AMapNaviRideView.h:77
UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")))
CGFloat cameraDegree
Definition: AMapNaviRideView.h:124
CGFloat autoZoomMaxLevel
Definition: AMapNaviRideView.h:99
CGPoint compassOrigin
Definition: AMapNaviRideView.h:140
CGFloat lineWidth
Definition: AMapNaviRideView.h:170
BOOL showBrowseRouteButton
Definition: AMapNaviRideView.h:73
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
MALogoLanguage logoLanguage
Definition: AMapNaviRideView.h:116
BOOL onlyForGuide
Definition: AMapNaviRideView.h:156
UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")))
AMapNaviRideViewShowMode showMode
Definition: AMapNaviRideView.h:65
Definition: MAMapCustomStyleOptions.h:12
Definition: AMapNaviCompositeAnnotation.h:14
AMapNaviEleBikeDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviEleBikeManager 的addDataRepresentative:...
Definition: AMapNaviEleBikeDataRepresentable.h:27
AMapNaviRideDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviRideManager 的addDataRepresentative:方法进行注册...
Definition: AMapNaviRideDataRepresentable.h:27
Definition: AMapNaviRideView.h:325
© 2017 高德信息技术有限公司 版权所有,保留所有权利。