高德地图SDK(导航) V11.2.000
Loading...
Searching...
No Matches
AMapNaviWalkView.h
Go to the documentation of this file.
1//
2// AMapNaviWalkView.h
3// AMapNaviKit
4//
5// Created by AutoNavi on 15/12/28.
6// Copyright © 2016年 Amap. All rights reserved.
7//
8
10#import "AMapNaviCommonObj.h"
13
14NS_ASSUME_NONNULL_BEGIN
15
24
25@protocol AMapNaviWalkViewDelegate;
26
30
31#pragma mark - Delegate
32
35@property (nonatomic, weak) id<AMapNaviWalkViewDelegate> delegate;
36
41- (void)addEventListener:(id<AMapNaviWalkViewDelegate>)aListener;
42
47- (void)removeEventListener:(id<AMapNaviWalkViewDelegate>)aListener;
48
49#pragma mark - Options
50
53@property (nonatomic, assign, readonly) BOOL isLandscape;
54
57@property (nonatomic, assign) AMapNaviViewTrackingMode trackingMode;
58
61@property (nonatomic, assign) AMapNaviWalkViewShowMode showMode;
62
65@property (nonatomic, assign) BOOL showUIElements;
66
69@property (nonatomic, assign) BOOL showBrowseRouteButton;
70
73@property (nonatomic, assign) BOOL showMoreButton;
74
77@property (nonatomic, assign) BOOL showTurnArrow;
78
81@property (nonatomic, assign) BOOL showSensorHeading __attribute((deprecated("Deprecated, the direction of the self-car icon will display as the device orientation, no longer supports setting. since 10.0.900")));
82
85@property (nonatomic, assign) AMapNaviViewMapModeType mapViewModeType;
86
90@property (nonatomic, assign) AMapNaviRouteAnnoState showRouteAnnotation;
91
92
93#pragma mark - MapView
94
97@property (nonatomic, assign) BOOL logoEnable;
98
103@property (nonatomic, assign) MALogoLanguage logoLanguage;
104
107@property (nonatomic, assign) BOOL showCompass;
108
111@property (nonatomic, assign) CGFloat cameraDegree;
112
115@property (nonatomic, assign) BOOL showScale;
116
119@property (nonatomic, assign) CGPoint scaleOrigin;
120
123@property (nonatomic, assign) CGPoint screenAnchor;
124
127@property (nonatomic, assign) CGPoint compassOrigin;
128
131@property (nonatomic, assign) BOOL autoZoomMapLevel;
132
140@property (nonatomic, assign) CGFloat mapZoomLevel;
141
148- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
149
150#pragma mark - Polyline Texture
151
154@property (nonatomic, assign) CGFloat lineWidth;
155
158@property (nonatomic, copy, nullable) UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")));
159
162@property (nonatomic, assign) BOOL showGreyAfterPass;
163
166@property (nonatomic, copy, nullable) UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")));;
167
168// 路线走过后置灰的颜色 since 10.0.900
169//The color of the route after being traveled
170@property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
171
175
176//纯导航模式使用
177@property(nonatomic, assign) BOOL onlyForGuide;
178
179#pragma mark - Other
180
186
187#pragma mark - Image
188
195- (void)setStartPointImage:(nullable UIImage *)startPointImage;
196
203- (void)setEndPointImage:(nullable UIImage *)endPointImage;
204
211- (void)setCarImage:(nullable UIImage *)carImage;
212
219- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
220
227- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
228
229#pragma mark - Annotation and Overlay
230
243- (BOOL)addAnnotation:(AMapNaviCustomAnnotation *)annotation;
244
253- (void)removeAnnotation:(AMapNaviCustomAnnotation *)annotation;
254
263- (void)addCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
264
273- (void)removeCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
274
283- (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
284
293- (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
294@end
295
296@protocol AMapNaviWalkViewDelegate <NSObject>
297@optional
298
305- (void)walkViewCloseButtonClicked:(AMapNaviWalkView *)walkView;
306
313- (void)walkViewMoreButtonClicked:(AMapNaviWalkView *)walkView;
314
321- (void)walkViewTrunIndicatorViewTapped:(AMapNaviWalkView *)walkView;
322
331- (void)walkView:(AMapNaviWalkView *)walkView didChangeShowMode:(AMapNaviWalkViewShowMode)showMode;
332
341- (void)walkView:(AMapNaviWalkView *)walkView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
342
351- (void)walkView:(AMapNaviWalkView *)walkView didChangeOrientation:(BOOL)isLandscape;
352
361- (void)walkView:(AMapNaviWalkView *)walkView didChangeDayNightType:(BOOL)showStandardNightType;
362
371- (UIEdgeInsets)walkViewEdgePadding:(AMapNaviWalkView *)walkView;
372
373@end
374
375NS_ASSUME_NONNULL_END
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:47
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:472
AMapNaviWalkViewShowMode
Definition AMapNaviWalkView.h:19
@ AMapNaviWalkViewShowModeOverview
全览状态 Overview status
Definition AMapNaviWalkView.h:21
@ AMapNaviWalkViewShowModeNormal
普通状态 Normal status
Definition AMapNaviWalkView.h:22
@ AMapNaviWalkViewShowModeCarPositionLocked
锁车状态 Locked car status
Definition AMapNaviWalkView.h:20
MALogoLanguage
Definition MAMapView.h:64
导航界面自定义标注 Custom annotations in the navigation interface since 5.5.0
Definition AMapNaviCompositeAnnotation.h:31
Definition AMapNaviCompositeAnnotation.h:87
Definition AMapNaviCommonObj.h:1507
Definition AMapNaviCommonObj.h:1539
Definition AMapNaviWalkView.h:29
BOOL showSensorHeading __attribute((deprecated("Deprecated, the direction of the self-car icon will display as the device orientation, no longer supports setting. since 10.0.900")))
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition AMapNaviWalkView.h:174
BOOL showCompass
Definition AMapNaviWalkView.h:107
CGPoint compassOrigin
Definition AMapNaviWalkView.h:127
CGFloat mapZoomLevel
Definition AMapNaviWalkView.h:140
UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")))
CGPoint scaleOrigin
Definition AMapNaviWalkView.h:119
BOOL showTurnArrow
Definition AMapNaviWalkView.h:77
AMapNaviPolylineGreyColor * routeGreyColor
Definition AMapNaviWalkView.h:170
BOOL showMoreButton
Definition AMapNaviWalkView.h:73
BOOL showUIElements
Definition AMapNaviWalkView.h:65
BOOL onlyForGuide
Definition AMapNaviWalkView.h:177
BOOL showGreyAfterPass
Definition AMapNaviWalkView.h:162
AMapNaviViewMapModeType mapViewModeType
Definition AMapNaviWalkView.h:85
BOOL autoZoomMapLevel
Definition AMapNaviWalkView.h:131
CGFloat lineWidth
Definition AMapNaviWalkView.h:154
BOOL logoEnable
Definition AMapNaviWalkView.h:97
CGPoint screenAnchor
Definition AMapNaviWalkView.h:123
AMapNaviRouteAnnoState showRouteAnnotation
Definition AMapNaviWalkView.h:90
MALogoLanguage logoLanguage
Definition AMapNaviWalkView.h:103
UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")))
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
BOOL showBrowseRouteButton
Definition AMapNaviWalkView.h:69
AMapNaviWalkViewShowMode showMode
Definition AMapNaviWalkView.h:61
BOOL showScale
Definition AMapNaviWalkView.h:115
CGFloat cameraDegree
Definition AMapNaviWalkView.h:111
BOOL isLandscape
Definition AMapNaviWalkView.h:53
id< AMapNaviWalkViewDelegate > delegate
Definition AMapNaviWalkView.h:35
AMapNaviViewTrackingMode trackingMode
Definition AMapNaviWalkView.h:57
Definition MAMapCustomStyleOptions.h:12
AMapNaviWalkDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviWalkManager 的addDataRepresentative:方法进行注册...
Definition AMapNaviWalkDataRepresentable.h:27
© 2017 高德信息技术有限公司 版权所有,保留所有权利。