高德地图SDK(导航) V11.2.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
156@property (nonatomic, assign) BOOL autoZoomMapLevel;
157
165@property (nonatomic, assign) CGFloat mapZoomLevel;
166
167//纯导航模式使用
168//Used in pure navigation mode
169@property(nonatomic, assign) BOOL onlyForGuide;
170
177- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions __attribute((deprecated("Custom View no longer supports custom map style. Since 11.1.000")));
178
179#pragma mark - Polyline Texture
180
183@property (nonatomic, assign) CGFloat lineWidth;
184
187@property (nonatomic, copy, nullable) UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")));
188
191@property (nonatomic, assign) BOOL showGreyAfterPass;
192
195@property (nonatomic, copy, nullable) UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")));;
196
197// 路线走过后置灰的颜色 since 10.0.900
198//The color of the route after being traveled
199@property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
200
204
205#pragma mark - Image
206
213- (void)setStartPointImage:(nullable UIImage *)startPointImage;
214
221- (void)setEndPointImage:(nullable UIImage *)endPointImage;
222
229- (void)setCarImage:(nullable UIImage *)carImage;
230
237- (void)setCarImageWithSize:(nullable UIImage *)carImage;
238
245- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
246
253- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
254
255#pragma mark - Annotation
256
269- (BOOL)addAnnotation:(AMapNaviCustomAnnotation *)annotation;
270
279- (void)removeAnnotation:(AMapNaviCustomAnnotation *)annotation;
280
289- (void)addCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
290
299- (void)removeCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
300
301#pragma mark - Overlay
308- (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
309
316- (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
317#pragma mark - Other
318
324
334+ (UIImage *)rideViewTurnIconImageWithIconType:(AMapNaviIconType)iconType;
335
336@end
337
338@protocol AMapNaviRideViewDelegate <NSObject>
339@optional
340
347- (void)rideViewCloseButtonClicked:(AMapNaviRideView *)rideView;
348
355- (void)rideViewMoreButtonClicked:(AMapNaviRideView *)rideView;
356
363- (void)rideViewTrunIndicatorViewTapped:(AMapNaviRideView *)rideView;
364
373- (void)rideView:(AMapNaviRideView *)rideView didChangeShowMode:(AMapNaviRideViewShowMode)showMode;
374
383- (void)rideView:(AMapNaviRideView *)rideView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
384
393- (void)rideView:(AMapNaviRideView *)rideView didChangeOrientation:(BOOL)isLandscape;
394
403- (void)rideView:(AMapNaviRideView *)rideView didChangeDayNightType:(BOOL)showStandardNightType;
404
413- (UIEdgeInsets)rideViewEdgePadding:(AMapNaviRideView *)rideView;
414
424- (void)rideView:(AMapNaviRideView *)rideView asyncScreenShot:(UIImage *)image state:(NSInteger)state;
425
426@end
427
428NS_ASSUME_NONNULL_END
AMapNaviIconType
Definition AMapNaviCommonObj.h:138
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:47
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:474
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:1509
Definition AMapNaviCommonObj.h:1541
Definition AMapNaviRideView.h:30
CGFloat autoZoomMinLevel
Definition AMapNaviRideView.h:102
BOOL showScale
Definition AMapNaviRideView.h:140
BOOL showGreyAfterPass
Definition AMapNaviRideView.h:191
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition AMapNaviRideView.h:203
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:165
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:156
AMapNaviPolylineGreyColor * routeGreyColor
Definition AMapNaviRideView.h:199
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:183
BOOL showBrowseRouteButton
Definition AMapNaviRideView.h:81
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
MALogoLanguage logoLanguage
Definition AMapNaviRideView.h:128
BOOL onlyForGuide
Definition AMapNaviRideView.h:169
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 高德信息技术有限公司 版权所有,保留所有权利。