高德地图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
9#import "AMapNaviHeaderHandler.h"
10#import "AMapNaviCommonObj.h"
11#import "AMapNaviRideDataRepresentable.h"
12#import "AMapNaviEleBikeDataRepresentable.h"
13#import "AMapNaviCompositeAnnotation.h"
14
15NS_ASSUME_NONNULL_BEGIN
16
19 typedef NS_ENUM(NSInteger, AMapNaviRideViewShowMode)
20{
21 AMapNaviRideViewShowModeCarPositionLocked = 1,
22 AMapNaviRideViewShowModeOverview = 2,
23 AMapNaviRideViewShowModeNormal = 3,
24};
25
26@protocol AMapNaviRideViewDelegate;
27
30@interface AMapNaviRideView : UIView<AMapNaviRideDataRepresentable,AMapNaviEleBikeDataRepresentable>
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
198@property (nonatomic, copy) AMapNaviPolylineTrafficStatusColor *routeStatusColor;
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
318- (void)updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview;
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
AMapNaviCommonObj.h
AMapNaviIconType
AMapNaviIconType
Definition AMapNaviCommonObj.h:138
AMapNaviViewTrackingMode
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:47
AMapNaviViewMapModeType
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:472
AMapNaviCompositeAnnotation.h
AMapNaviEleBikeDataRepresentable.h
AMapNaviHeaderHandler.h
AMapNaviRideDataRepresentable.h
AMapNaviRideViewShowMode
AMapNaviRideViewShowMode
Definition AMapNaviRideView.h:20
AMapNaviRideViewShowModeOverview
@ AMapNaviRideViewShowModeOverview
全览状态 Overview status
Definition AMapNaviRideView.h:22
AMapNaviRideViewShowModeCarPositionLocked
@ AMapNaviRideViewShowModeCarPositionLocked
锁车状态 Locked car status
Definition AMapNaviRideView.h:21
AMapNaviRideViewShowModeNormal
@ AMapNaviRideViewShowModeNormal
普通状态 Normal status
Definition AMapNaviRideView.h:23
MALogoLanguage
MALogoLanguage
Definition MAMapView.h:64
AMapNaviCompositeCustomAnnotation
导航界面自定义标注 Custom annotations in the navigation interface since 5.5.0
Definition AMapNaviCompositeAnnotation.h:31
AMapNaviCustomAnnotation
Definition AMapNaviCompositeAnnotation.h:87
AMapNaviPolylineGreyColor
Definition AMapNaviCommonObj.h:1507
AMapNaviPolylineTrafficStatusColor
Definition AMapNaviCommonObj.h:1539
AMapNaviRideView
Definition AMapNaviRideView.h:30
AMapNaviRideView::autoZoomMinLevel
CGFloat autoZoomMinLevel
Definition AMapNaviRideView.h:102
AMapNaviRideView::showScale
BOOL showScale
Definition AMapNaviRideView.h:136
AMapNaviRideView::showGreyAfterPass
BOOL showGreyAfterPass
Definition AMapNaviRideView.h:186
AMapNaviRideView::routeStatusColor
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition AMapNaviRideView.h:198
AMapNaviRideView::scaleOrigin
CGPoint scaleOrigin
Definition AMapNaviRideView.h:140
AMapNaviRideView::isLandscape
BOOL isLandscape
Definition AMapNaviRideView.h:65
AMapNaviRideView::showRouteAnnotation
AMapNaviRouteAnnoState showRouteAnnotation
Definition AMapNaviRideView.h:112
AMapNaviRideView::mapViewModeType
AMapNaviViewMapModeType mapViewModeType
Definition AMapNaviRideView.h:97
AMapNaviRideView::showUIElements
BOOL showUIElements
Definition AMapNaviRideView.h:77
AMapNaviRideView::showTurnArrow
BOOL showTurnArrow
Definition AMapNaviRideView.h:89
AMapNaviRideView::delegate
id< AMapNaviRideViewDelegate > delegate
Definition AMapNaviRideView.h:44
AMapNaviRideView::trackingMode
AMapNaviViewTrackingMode trackingMode
Definition AMapNaviRideView.h:69
AMapNaviRideView::logoEnable
BOOL logoEnable
Definition AMapNaviRideView.h:118
-[AMapNaviRideView __attribute]
UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")))
-[AMapNaviRideView __attribute]
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")))
AMapNaviRideView::mapZoomLevel
CGFloat mapZoomLevel
Definition AMapNaviRideView.h:161
-[AMapNaviRideView __attribute]
UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")))
AMapNaviRideView::mapViewDelegate
id< MAMapViewDelegate > mapViewDelegate
Definition AMapNaviRideView.h:48
AMapNaviRideView::screenAnchor
CGPoint screenAnchor
Definition AMapNaviRideView.h:144
AMapNaviRideView::autoZoomMapLevel
BOOL autoZoomMapLevel
Definition AMapNaviRideView.h:152
AMapNaviRideView::routeGreyColor
AMapNaviPolylineGreyColor * routeGreyColor
Definition AMapNaviRideView.h:194
AMapNaviRideView::showCompass
BOOL showCompass
Definition AMapNaviRideView.h:128
AMapNaviRideView::showMoreButton
BOOL showMoreButton
Definition AMapNaviRideView.h:85
AMapNaviRideView::cameraDegree
CGFloat cameraDegree
Definition AMapNaviRideView.h:132
AMapNaviRideView::autoZoomMaxLevel
CGFloat autoZoomMaxLevel
Definition AMapNaviRideView.h:107
AMapNaviRideView::compassOrigin
CGPoint compassOrigin
Definition AMapNaviRideView.h:148
AMapNaviRideView::lineWidth
CGFloat lineWidth
Definition AMapNaviRideView.h:178
AMapNaviRideView::showBrowseRouteButton
BOOL showBrowseRouteButton
Definition AMapNaviRideView.h:81
-[AMapNaviRideView updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview]
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域)，保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时（自定义界面）横竖屏切换后，可以调用...
AMapNaviRideView::logoLanguage
MALogoLanguage logoLanguage
Definition AMapNaviRideView.h:124
AMapNaviRideView::onlyForGuide
BOOL onlyForGuide
Definition AMapNaviRideView.h:164
AMapNaviRideView::showMode
AMapNaviRideViewShowMode showMode
Definition AMapNaviRideView.h:73
MAMapCustomStyleOptions
Definition MAMapCustomStyleOptions.h:12
AMapNaviEleBikeDataRepresentable-p
AMapNaviEleBikeDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviEleBikeManager 的addDataRepresentative:...
Definition AMapNaviEleBikeDataRepresentable.h:28
AMapNaviRideDataRepresentable-p
AMapNaviRideDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviRideManager 的addDataRepresentative:方法进行注册...
Definition AMapNaviRideDataRepresentable.h:27
© 2017 高德信息技术有限公司 版权所有，保留所有权利。