高德地图SDK(导航)  V11.3.300
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 
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 showTrafficLights;
94 
97 @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")));
98 
102 @property (nonatomic, assign) AMapNaviViewMapModeType mapViewModeType;
103 
107 @property (nonatomic, assign) CGFloat autoZoomMinLevel;
108 
112 @property (nonatomic, assign) CGFloat autoZoomMaxLevel;
113 
117 @property (nonatomic, assign) AMapNaviRouteAnnoState showRouteAnnotation;
118 
119 #pragma mark - MapView
120 
123 @property (nonatomic, assign) BOOL logoEnable;
124 
127 @property (nonatomic, assign) CGFloat logoSizeScale;
128 
133 @property (nonatomic, assign) MALogoLanguage logoLanguage;
134 
137 @property (nonatomic, assign) BOOL showCompass;
138 
141 @property (nonatomic, assign) CGFloat cameraDegree;
142 
145 @property (nonatomic, assign) BOOL showScale;
146 
149 @property (nonatomic, assign) CGPoint scaleOrigin;
150 
153 @property (nonatomic, assign) CGPoint screenAnchor;
154 
157 @property (nonatomic, assign) CGPoint compassOrigin;
158 
163 @property (nonatomic, assign) BOOL autoZoomMapLevel;
164 
174 @property (nonatomic, assign) CGFloat mapZoomLevel;
175 
176 //纯导航模式使用
177 //Used in pure navigation mode
178 @property(nonatomic, assign) BOOL onlyForGuide;
179 
186 - (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions __attribute((deprecated("Custom View no longer supports custom map style. Since 11.1.000")));
187 
188 #pragma mark - Polyline Texture
189 
192 @property (nonatomic, assign) CGFloat lineWidth;
193 
196 @property (nonatomic, copy, nullable) UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")));
197 
200 @property (nonatomic, assign) BOOL showGreyAfterPass;
201 
204 @property (nonatomic, copy, nullable) UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")));;
205 
206 // 路线走过后置灰的颜色 since 10.0.900
207 //The color of the route after being traveled
208 @property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
209 
213 
214 #pragma mark - Image
215 
222 - (void)setStartPointImage:(nullable UIImage *)startPointImage;
223 
230 - (void)setEndPointImage:(nullable UIImage *)endPointImage;
231 
238 - (void)setCarImage:(nullable UIImage *)carImage;
239 
246 - (void)setCarImageWithSize:(nullable UIImage *)carImage;
247 
254 - (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
255 
262 - (void)setWayPointImage:(nullable UIImage *)wayPointImage;
263 
264 #pragma mark - Annotation
265 
278 - (BOOL)addAnnotation:(AMapNaviCustomAnnotation *)annotation;
279 
288 - (void)removeAnnotation:(AMapNaviCustomAnnotation *)annotation;
289 
298 - (void)addCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
299 
308 - (void)removeCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
309 
310 #pragma mark - Overlay
317 - (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
318 
325 - (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
326 #pragma mark - Other
327 
333 
343 + (UIImage *)rideViewTurnIconImageWithIconType:(AMapNaviIconType)iconType;
344 
345 @end
346 
347 @protocol AMapNaviRideViewDelegate <NSObject>
348 @optional
349 
356 - (void)rideViewCloseButtonClicked:(AMapNaviRideView *)rideView;
357 
364 - (void)rideViewMoreButtonClicked:(AMapNaviRideView *)rideView;
365 
372 - (void)rideViewTrunIndicatorViewTapped:(AMapNaviRideView *)rideView;
373 
382 - (void)rideView:(AMapNaviRideView *)rideView didChangeShowMode:(AMapNaviRideViewShowMode)showMode;
383 
392 - (void)rideView:(AMapNaviRideView *)rideView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
393 
402 - (void)rideView:(AMapNaviRideView *)rideView didChangeOrientation:(BOOL)isLandscape;
403 
412 - (void)rideView:(AMapNaviRideView *)rideView didChangeDayNightType:(BOOL)showStandardNightType;
413 
422 - (UIEdgeInsets)rideViewEdgePadding:(AMapNaviRideView *)rideView;
423 
433 - (void)rideView:(AMapNaviRideView *)rideView asyncScreenShot:(UIImage *)image state:(NSInteger)state;
434 
435 @end
436 
437 NS_ASSUME_NONNULL_END
AMapNaviIconType
Definition: AMapNaviCommonObj.h:157
AMapNaviViewTrackingMode
Definition: AMapNaviCommonObj.h:66
AMapNaviViewMapModeType
Definition: AMapNaviCommonObj.h:499
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:66
导航界面自定义标注 Custom annotations in the navigation interface since 5.5.0
Definition: AMapNaviCompositeAnnotation.h:31
Definition: AMapNaviCompositeAnnotation.h:87
Definition: AMapNaviCommonObj.h:1534
Definition: AMapNaviCommonObj.h:1566
Definition: AMapNaviRideView.h:30
CGFloat autoZoomMinLevel
Definition: AMapNaviRideView.h:107
BOOL showScale
Definition: AMapNaviRideView.h:145
BOOL showGreyAfterPass
Definition: AMapNaviRideView.h:200
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition: AMapNaviRideView.h:212
CGPoint scaleOrigin
Definition: AMapNaviRideView.h:149
BOOL showTrafficLights
Definition: AMapNaviRideView.h:93
BOOL isLandscape
Definition: AMapNaviRideView.h:65
AMapNaviRouteAnnoState showRouteAnnotation
Definition: AMapNaviRideView.h:117
AMapNaviViewMapModeType mapViewModeType
Definition: AMapNaviRideView.h:102
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:123
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:174
id< MAMapViewDelegate > mapViewDelegate
Definition: AMapNaviRideView.h:48
CGPoint screenAnchor
Definition: AMapNaviRideView.h:153
CGFloat logoSizeScale
Definition: AMapNaviRideView.h:127
BOOL autoZoomMapLevel
Definition: AMapNaviRideView.h:163
AMapNaviPolylineGreyColor * routeGreyColor
Definition: AMapNaviRideView.h:204
BOOL showCompass
Definition: AMapNaviRideView.h:137
BOOL showMoreButton
Definition: AMapNaviRideView.h:85
UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")))
CGFloat cameraDegree
Definition: AMapNaviRideView.h:141
CGFloat autoZoomMaxLevel
Definition: AMapNaviRideView.h:112
CGPoint compassOrigin
Definition: AMapNaviRideView.h:157
CGFloat lineWidth
Definition: AMapNaviRideView.h:192
BOOL showBrowseRouteButton
Definition: AMapNaviRideView.h:81
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
MALogoLanguage logoLanguage
Definition: AMapNaviRideView.h:133
BOOL onlyForGuide
Definition: AMapNaviRideView.h:178
UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")))
AMapNaviRideViewShowMode showMode
Definition: AMapNaviRideView.h:73
Definition: MAMapCustomStyleOptions.h:12
Definition: AMapNaviCompositeAnnotation.h:14
AMapNaviEleBikeDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviEleBikeManager 的addDataRepresentative:...
Definition: AMapNaviEleBikeDataRepresentable.h:28
AMapNaviRideDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviRideManager 的addDataRepresentative:方法进行注册...
Definition: AMapNaviRideDataRepresentable.h:27
Definition: AMapNaviRideView.h:347
© 2017 高德信息技术有限公司 版权所有,保留所有权利。