高德地图SDK(导航)  V11.1.000
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;
41 
42 #pragma mark - Options
43 
46 @property (nonatomic, assign, readonly) BOOL isLandscape;
47 
50 @property (nonatomic, assign) AMapNaviViewTrackingMode trackingMode;
51 
54 @property (nonatomic, assign) AMapNaviRideViewShowMode showMode;
55 
58 @property (nonatomic, assign) BOOL showUIElements;
59 
62 @property (nonatomic, assign) BOOL showBrowseRouteButton;
63 
66 @property (nonatomic, assign) BOOL showMoreButton;
67 
70 @property (nonatomic, assign) BOOL showTurnArrow;
71 
74 @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")));
75 
78 @property (nonatomic, assign) AMapNaviViewMapModeType mapViewModeType;
79 
83 @property (nonatomic, assign) CGFloat autoZoomMinLevel;
84 
88 @property (nonatomic, assign) CGFloat autoZoomMaxLevel;
89 
93 @property (nonatomic, assign) AMapNaviRouteAnnoState showRouteAnnotation;
94 
95 #pragma mark - MapView
96 
99 @property (nonatomic, assign) BOOL showCompass;
100 
103 @property (nonatomic, assign) CGFloat cameraDegree;
104 
107 @property (nonatomic, assign) BOOL showScale;
108 
111 @property (nonatomic, assign) CGPoint scaleOrigin;
112 
115 @property (nonatomic, assign) CGPoint screenAnchor;
116 
119 @property (nonatomic, assign) CGPoint compassOrigin;
120 
123 @property (nonatomic, assign) BOOL autoZoomMapLevel;
124 
132 @property (nonatomic, assign) CGFloat mapZoomLevel;
133 
134 
135 
142 - (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions __attribute((deprecated("Custom View no longer supports custom map style. Since 11.1.000")));
143 
144 #pragma mark - Polyline Texture
145 
148 @property (nonatomic, assign) CGFloat lineWidth;
149 
152 @property (nonatomic, copy, nullable) UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")));
153 
156 @property (nonatomic, assign) BOOL showGreyAfterPass;
157 
160 @property (nonatomic, copy, nullable) UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")));;
161 
162 // 路线走过后置灰的颜色 since 10.0.900
163 //The color of the route after being traveled
164 @property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
165 
169 
170 #pragma mark - Image
171 
178 - (void)setStartPointImage:(nullable UIImage *)startPointImage;
179 
186 - (void)setEndPointImage:(nullable UIImage *)endPointImage;
187 
194 - (void)setCarImage:(nullable UIImage *)carImage;
195 
202 - (void)setCarImageWithSize:(nullable UIImage *)carImage;
203 
210 - (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
211 
218 - (void)setWayPointImage:(nullable UIImage *)wayPointImage;
219 #pragma mark - Overlay
226 - (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
227 
234 - (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
235 #pragma mark - Other
236 
242 
252 + (UIImage *)rideViewTurnIconImageWithIconType:(AMapNaviIconType)iconType;
253 
254 @end
255 
256 @protocol AMapNaviRideViewDelegate <NSObject>
257 @optional
258 
265 - (void)rideViewCloseButtonClicked:(AMapNaviRideView *)rideView;
266 
273 - (void)rideViewMoreButtonClicked:(AMapNaviRideView *)rideView;
274 
281 - (void)rideViewTrunIndicatorViewTapped:(AMapNaviRideView *)rideView;
282 
291 - (void)rideView:(AMapNaviRideView *)rideView didChangeShowMode:(AMapNaviRideViewShowMode)showMode;
292 
301 - (void)rideView:(AMapNaviRideView *)rideView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
302 
311 - (void)rideView:(AMapNaviRideView *)rideView didChangeOrientation:(BOOL)isLandscape;
312 
321 - (void)rideView:(AMapNaviRideView *)rideView didChangeDayNightType:(BOOL)showStandardNightType;
322 
331 - (UIEdgeInsets)rideViewEdgePadding:(AMapNaviRideView *)rideView;
332 
342 - (void)rideView:(AMapNaviRideView *)rideView asyncScreenShot:(UIImage *)image state:(NSInteger)state;
343 
344 @end
345 
346 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
Definition: AMapNaviCommonObj.h:1483
Definition: AMapNaviCommonObj.h:1515
Definition: AMapNaviRideView.h:30
CGFloat autoZoomMinLevel
Definition: AMapNaviRideView.h:83
BOOL showScale
Definition: AMapNaviRideView.h:107
BOOL showGreyAfterPass
Definition: AMapNaviRideView.h:156
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition: AMapNaviRideView.h:168
CGPoint scaleOrigin
Definition: AMapNaviRideView.h:111
BOOL isLandscape
Definition: AMapNaviRideView.h:46
AMapNaviRouteAnnoState showRouteAnnotation
Definition: AMapNaviRideView.h:93
AMapNaviViewMapModeType mapViewModeType
Definition: AMapNaviRideView.h:78
BOOL showUIElements
Definition: AMapNaviRideView.h:58
BOOL showTurnArrow
Definition: AMapNaviRideView.h:70
id< AMapNaviRideViewDelegate > delegate
Definition: AMapNaviRideView.h:36
AMapNaviViewTrackingMode trackingMode
Definition: AMapNaviRideView.h:50
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:132
id< MAMapViewDelegate > mapViewDelegate
Definition: AMapNaviRideView.h:40
CGPoint screenAnchor
Definition: AMapNaviRideView.h:115
BOOL autoZoomMapLevel
Definition: AMapNaviRideView.h:123
AMapNaviPolylineGreyColor * routeGreyColor
Definition: AMapNaviRideView.h:160
BOOL showCompass
Definition: AMapNaviRideView.h:99
BOOL showMoreButton
Definition: AMapNaviRideView.h:66
UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")))
CGFloat cameraDegree
Definition: AMapNaviRideView.h:103
CGFloat autoZoomMaxLevel
Definition: AMapNaviRideView.h:88
CGPoint compassOrigin
Definition: AMapNaviRideView.h:119
CGFloat lineWidth
Definition: AMapNaviRideView.h:148
BOOL showBrowseRouteButton
Definition: AMapNaviRideView.h:62
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")))
AMapNaviRideViewShowMode showMode
Definition: AMapNaviRideView.h:54
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:256
© 2017 高德信息技术有限公司 版权所有,保留所有权利。