高德地图SDK(导航) V11.3.100
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
122@property (nonatomic, assign) CGFloat logoSizeScale;
123
128@property (nonatomic, assign) MALogoLanguage logoLanguage;
129
132@property (nonatomic, assign) BOOL showCompass;
133
136@property (nonatomic, assign) CGFloat cameraDegree;
137
140@property (nonatomic, assign) BOOL showScale;
141
144@property (nonatomic, assign) CGPoint scaleOrigin;
145
148@property (nonatomic, assign) CGPoint screenAnchor;
149
152@property (nonatomic, assign) CGPoint compassOrigin;
153
158@property (nonatomic, assign) BOOL autoZoomMapLevel;
159
169@property (nonatomic, assign) CGFloat mapZoomLevel;
170
171//纯导航模式使用
172//Used in pure navigation mode
173@property(nonatomic, assign) BOOL onlyForGuide;
174
181- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions __attribute((deprecated("Custom View no longer supports custom map style. Since 11.1.000")));
182
183#pragma mark - Polyline Texture
184
187@property (nonatomic, assign) CGFloat lineWidth;
188
191@property (nonatomic, copy, nullable) UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")));
192
195@property (nonatomic, assign) BOOL showGreyAfterPass;
196
199@property (nonatomic, copy, nullable) UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")));;
200
201// 路线走过后置灰的颜色 since 10.0.900
202//The color of the route after being traveled
203@property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
204
208
209#pragma mark - Image
210
217- (void)setStartPointImage:(nullable UIImage *)startPointImage;
218
225- (void)setEndPointImage:(nullable UIImage *)endPointImage;
226
233- (void)setCarImage:(nullable UIImage *)carImage;
234
241- (void)setCarImageWithSize:(nullable UIImage *)carImage;
242
249- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
250
257- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
258
259#pragma mark - Annotation
260
273- (BOOL)addAnnotation:(AMapNaviCustomAnnotation *)annotation;
274
283- (void)removeAnnotation:(AMapNaviCustomAnnotation *)annotation;
284
293- (void)addCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
294
303- (void)removeCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
304
305#pragma mark - Overlay
312- (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
313
320- (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
321#pragma mark - Other
322
328
338+ (UIImage *)rideViewTurnIconImageWithIconType:(AMapNaviIconType)iconType;
339
340@end
341
342@protocol AMapNaviRideViewDelegate <NSObject>
343@optional
344
351- (void)rideViewCloseButtonClicked:(AMapNaviRideView *)rideView;
352
359- (void)rideViewMoreButtonClicked:(AMapNaviRideView *)rideView;
360
367- (void)rideViewTrunIndicatorViewTapped:(AMapNaviRideView *)rideView;
368
377- (void)rideView:(AMapNaviRideView *)rideView didChangeShowMode:(AMapNaviRideViewShowMode)showMode;
378
387- (void)rideView:(AMapNaviRideView *)rideView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
388
397- (void)rideView:(AMapNaviRideView *)rideView didChangeOrientation:(BOOL)isLandscape;
398
407- (void)rideView:(AMapNaviRideView *)rideView didChangeDayNightType:(BOOL)showStandardNightType;
408
417- (UIEdgeInsets)rideViewEdgePadding:(AMapNaviRideView *)rideView;
418
428- (void)rideView:(AMapNaviRideView *)rideView asyncScreenShot:(UIImage *)image state:(NSInteger)state;
429
430@end
431
432NS_ASSUME_NONNULL_END
AMapNaviIconType
Definition AMapNaviCommonObj.h:148
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:57
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:490
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:1525
Definition AMapNaviCommonObj.h:1557
Definition AMapNaviRideView.h:30
CGFloat autoZoomMinLevel
Definition AMapNaviRideView.h:102
BOOL showScale
Definition AMapNaviRideView.h:140
BOOL showGreyAfterPass
Definition AMapNaviRideView.h:195
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition AMapNaviRideView.h:207
CGPoint scaleOrigin
Definition AMapNaviRideView.h:144
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:169
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:148
CGFloat logoSizeScale
Definition AMapNaviRideView.h:122
BOOL autoZoomMapLevel
Definition AMapNaviRideView.h:158
AMapNaviPolylineGreyColor * routeGreyColor
Definition AMapNaviRideView.h:203
BOOL showCompass
Definition AMapNaviRideView.h:132
BOOL showMoreButton
Definition AMapNaviRideView.h:85
CGFloat cameraDegree
Definition AMapNaviRideView.h:136
CGFloat autoZoomMaxLevel
Definition AMapNaviRideView.h:107
CGPoint compassOrigin
Definition AMapNaviRideView.h:152
CGFloat lineWidth
Definition AMapNaviRideView.h:187
BOOL showBrowseRouteButton
Definition AMapNaviRideView.h:81
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
MALogoLanguage logoLanguage
Definition AMapNaviRideView.h:128
BOOL onlyForGuide
Definition AMapNaviRideView.h:173
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 高德信息技术有限公司 版权所有,保留所有权利。