高德地图SDK(导航) V11.2.0501

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
9#import "AMapNaviHeaderHandler.h"
10#import "AMapNaviCommonObj.h"
11#import "AMapNaviWalkDataRepresentable.h"
12#import "AMapNaviCompositeAnnotation.h"
13
14NS_ASSUME_NONNULL_BEGIN
15
18 typedef NS_ENUM(NSInteger, AMapNaviWalkViewShowMode)
19{
20 AMapNaviWalkViewShowModeCarPositionLocked = 1,
21 AMapNaviWalkViewShowModeOverview = 2,
22 AMapNaviWalkViewShowModeNormal = 3,
23};
24
25@protocol AMapNaviWalkViewDelegate;
26
29@interface AMapNaviWalkView : UIView<AMapNaviWalkDataRepresentable>
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
174@property (nonatomic, copy) AMapNaviPolylineTrafficStatusColor *routeStatusColor;
175
176//纯导航模式使用
177@property(nonatomic, assign) BOOL onlyForGuide;
178
179#pragma mark - Other
180
185- (void)updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview;
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
AMapNaviCommonObj.h
AMapNaviViewTrackingMode
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:47
AMapNaviViewMapModeType
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:472
AMapNaviCompositeAnnotation.h
AMapNaviHeaderHandler.h
AMapNaviWalkDataRepresentable.h
AMapNaviWalkViewShowMode
AMapNaviWalkViewShowMode
Definition AMapNaviWalkView.h:19
AMapNaviWalkViewShowModeOverview
@ AMapNaviWalkViewShowModeOverview
全览状态 Overview status
Definition AMapNaviWalkView.h:21
AMapNaviWalkViewShowModeNormal
@ AMapNaviWalkViewShowModeNormal
普通状态 Normal status
Definition AMapNaviWalkView.h:22
AMapNaviWalkViewShowModeCarPositionLocked
@ AMapNaviWalkViewShowModeCarPositionLocked
锁车状态 Locked car status
Definition AMapNaviWalkView.h:20
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
AMapNaviWalkView
Definition AMapNaviWalkView.h:29
-[AMapNaviWalkView __attribute]
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")))
AMapNaviWalkView::routeStatusColor
AMapNaviPolylineTrafficStatusColor * routeStatusColor
Definition AMapNaviWalkView.h:174
AMapNaviWalkView::showCompass
BOOL showCompass
Definition AMapNaviWalkView.h:107
AMapNaviWalkView::compassOrigin
CGPoint compassOrigin
Definition AMapNaviWalkView.h:127
AMapNaviWalkView::mapZoomLevel
CGFloat mapZoomLevel
Definition AMapNaviWalkView.h:140
-[AMapNaviWalkView __attribute]
UIImage *greyTexture __attribute((deprecated("Deprecated, please use routeGreyColor instead. since 10.0.900")))
AMapNaviWalkView::scaleOrigin
CGPoint scaleOrigin
Definition AMapNaviWalkView.h:119
AMapNaviWalkView::showTurnArrow
BOOL showTurnArrow
Definition AMapNaviWalkView.h:77
AMapNaviWalkView::routeGreyColor
AMapNaviPolylineGreyColor * routeGreyColor
Definition AMapNaviWalkView.h:170
AMapNaviWalkView::showMoreButton
BOOL showMoreButton
Definition AMapNaviWalkView.h:73
AMapNaviWalkView::showUIElements
BOOL showUIElements
Definition AMapNaviWalkView.h:65
AMapNaviWalkView::onlyForGuide
BOOL onlyForGuide
Definition AMapNaviWalkView.h:177
AMapNaviWalkView::showGreyAfterPass
BOOL showGreyAfterPass
Definition AMapNaviWalkView.h:162
AMapNaviWalkView::mapViewModeType
AMapNaviViewMapModeType mapViewModeType
Definition AMapNaviWalkView.h:85
AMapNaviWalkView::autoZoomMapLevel
BOOL autoZoomMapLevel
Definition AMapNaviWalkView.h:131
AMapNaviWalkView::lineWidth
CGFloat lineWidth
Definition AMapNaviWalkView.h:154
AMapNaviWalkView::logoEnable
BOOL logoEnable
Definition AMapNaviWalkView.h:97
AMapNaviWalkView::screenAnchor
CGPoint screenAnchor
Definition AMapNaviWalkView.h:123
AMapNaviWalkView::showRouteAnnotation
AMapNaviRouteAnnoState showRouteAnnotation
Definition AMapNaviWalkView.h:90
AMapNaviWalkView::logoLanguage
MALogoLanguage logoLanguage
Definition AMapNaviWalkView.h:103
-[AMapNaviWalkView __attribute]
UIImage *normalTexture __attribute((deprecated("Deprecated, please use routeStatusColor instead. since 10.0.900")))
-[AMapNaviWalkView updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview]
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域)，保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时（自定义界面）横竖屏切换后，可以调用...
AMapNaviWalkView::showBrowseRouteButton
BOOL showBrowseRouteButton
Definition AMapNaviWalkView.h:69
AMapNaviWalkView::showMode
AMapNaviWalkViewShowMode showMode
Definition AMapNaviWalkView.h:61
AMapNaviWalkView::showScale
BOOL showScale
Definition AMapNaviWalkView.h:115
AMapNaviWalkView::cameraDegree
CGFloat cameraDegree
Definition AMapNaviWalkView.h:111
AMapNaviWalkView::isLandscape
BOOL isLandscape
Definition AMapNaviWalkView.h:53
AMapNaviWalkView::delegate
id< AMapNaviWalkViewDelegate > delegate
Definition AMapNaviWalkView.h:35
AMapNaviWalkView::trackingMode
AMapNaviViewTrackingMode trackingMode
Definition AMapNaviWalkView.h:57
MAMapCustomStyleOptions
Definition MAMapCustomStyleOptions.h:12
AMapNaviWalkDataRepresentable-p
AMapNaviWalkDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviWalkManager 的addDataRepresentative:方法进行注册...
Definition AMapNaviWalkDataRepresentable.h:27
© 2017 高德信息技术有限公司 版权所有，保留所有权利。