高德地图SDK(导航) V11.2.100
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
101@property (nonatomic, assign) CGFloat logoSizeScale;
102
107@property (nonatomic, assign) MALogoLanguage logoLanguage;
108
111@property (nonatomic, assign) BOOL showCompass;
112
115@property (nonatomic, assign) CGFloat cameraDegree;
116
119@property (nonatomic, assign) BOOL showScale;
120
123@property (nonatomic, assign) CGPoint scaleOrigin;
124
127@property (nonatomic, assign) CGPoint screenAnchor;
128
131@property (nonatomic, assign) CGPoint compassOrigin;
132
135@property (nonatomic, assign) BOOL autoZoomMapLevel;
136
144@property (nonatomic, assign) CGFloat mapZoomLevel;
145
152- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions __attribute((deprecated("Custom View no longer supports custom map style. Since 11.1.000")));
153
154#pragma mark - Polyline Texture
155
158@property (nonatomic, assign) CGFloat lineWidth;
159
162@property (nonatomic, copy, nullable) UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")));
163
166@property (nonatomic, assign) BOOL showGreyAfterPass;
167
170@property (nonatomic, copy, nullable) UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")));;
171
172// 路线走过后置灰的颜色 since 10.0.900
173//The color of the route after being traveled
174@property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
175
179
180//纯导航模式使用
181@property(nonatomic, assign) BOOL onlyForGuide;
182
183#pragma mark - Other
184
190
191#pragma mark - Image
192
199- (void)setStartPointImage:(nullable UIImage *)startPointImage;
200
207- (void)setEndPointImage:(nullable UIImage *)endPointImage;
208
215- (void)setCarImage:(nullable UIImage *)carImage;
216
223- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
224
231- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
232
233#pragma mark - Annotation and Overlay
234
247- (BOOL)addAnnotation:(AMapNaviCustomAnnotation *)annotation;
248
257- (void)removeAnnotation:(AMapNaviCustomAnnotation *)annotation;
258
267- (void)addCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
268
277- (void)removeCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
278
287- (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
288
297- (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
298@end
299
300@protocol AMapNaviWalkViewDelegate <NSObject>
301@optional
302
309- (void)walkViewCloseButtonClicked:(AMapNaviWalkView *)walkView;
310
317- (void)walkViewMoreButtonClicked:(AMapNaviWalkView *)walkView;
318
325- (void)walkViewTrunIndicatorViewTapped:(AMapNaviWalkView *)walkView;
326
335- (void)walkView:(AMapNaviWalkView *)walkView didChangeShowMode:(AMapNaviWalkViewShowMode)showMode;
336
345- (void)walkView:(AMapNaviWalkView *)walkView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
346
355- (void)walkView:(AMapNaviWalkView *)walkView didChangeOrientation:(BOOL)isLandscape;
356
365- (void)walkView:(AMapNaviWalkView *)walkView didChangeDayNightType:(BOOL)showStandardNightType;
366
375- (UIEdgeInsets)walkViewEdgePadding:(AMapNaviWalkView *)walkView;
376
377@end
378
379NS_ASSUME_NONNULL_END
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:47
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:474
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: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 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:178
BOOL showCompass
Definition AMapNaviWalkView.h:111
CGPoint compassOrigin
Definition AMapNaviWalkView.h:131
CGFloat mapZoomLevel
Definition AMapNaviWalkView.h:144
UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")))
CGPoint scaleOrigin
Definition AMapNaviWalkView.h:123
BOOL showTurnArrow
Definition AMapNaviWalkView.h:77
AMapNaviPolylineGreyColor * routeGreyColor
Definition AMapNaviWalkView.h:174
BOOL showMoreButton
Definition AMapNaviWalkView.h:73
BOOL showUIElements
Definition AMapNaviWalkView.h:65
BOOL onlyForGuide
Definition AMapNaviWalkView.h:181
BOOL showGreyAfterPass
Definition AMapNaviWalkView.h:166
AMapNaviViewMapModeType mapViewModeType
Definition AMapNaviWalkView.h:85
BOOL autoZoomMapLevel
Definition AMapNaviWalkView.h:135
CGFloat lineWidth
Definition AMapNaviWalkView.h:158
BOOL logoEnable
Definition AMapNaviWalkView.h:97
CGPoint screenAnchor
Definition AMapNaviWalkView.h:127
AMapNaviRouteAnnoState showRouteAnnotation
Definition AMapNaviWalkView.h:90
MALogoLanguage logoLanguage
Definition AMapNaviWalkView.h:107
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:119
CGFloat cameraDegree
Definition AMapNaviWalkView.h:115
BOOL isLandscape
Definition AMapNaviWalkView.h:53
id< AMapNaviWalkViewDelegate > delegate
Definition AMapNaviWalkView.h:35
AMapNaviViewTrackingMode trackingMode
Definition AMapNaviWalkView.h:57
CGFloat logoSizeScale
Definition AMapNaviWalkView.h:101
Definition MAMapCustomStyleOptions.h:12
AMapNaviWalkDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviWalkManager 的addDataRepresentative:方法进行注册...
Definition AMapNaviWalkDataRepresentable.h:27
© 2017 高德信息技术有限公司 版权所有,保留所有权利。