Go to the documentation of this file.
14 NS_ASSUME_NONNULL_BEGIN
21 #pragma mark - Delegate
24 @property (nonatomic, weak) id<AMapNaviDriveViewDelegate>
delegate;
29 #pragma mark - Mode Options
32 @property (nonatomic, assign) AMapNaviViewTrackingMode
trackingMode;
35 @property (nonatomic, assign) AMapNaviDriveViewShowMode
showMode;
37 #pragma mark - Map Options
43 @property (nonatomic, assign, readonly) CGSize
logoSize;
88 @property (nonatomic, assign) BOOL autoSwitchDayNightType
__attribute((deprecated(
"已废弃, 请使用 mapViewModeType 替代 since 6.7.0")));
91 @property (nonatomic, assign) BOOL showStandardNightType
__attribute((deprecated(
"已废弃, 请使用 mapViewModeType 替代 since 6.7.0")));
94 @property (nonatomic, assign) BOOL customMapStyleEnabled
__attribute((deprecated(
"已废弃, 请使用 mapViewModeType 替代 since 6.7.0")));
100 - (void)setCustomMapStyle:(NSData *)customJson __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: 替代 since 6.6.0")));
106 - (void)setCustomMapStyleWithWebData:(NSData*)data __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: 替代 since 6.6.0")));
108 #pragma mark - Annoation Options and Overlay Options
111 @property (nonatomic, assign) BOOL showTrafficLayer
__attribute((deprecated(
"已废弃, 请使用 mapShowTraffic 结合 -statusTextures: 替代. since 7.4.0")));
177 - (void)setCameraImage:(nullable UIImage *)cameraImage;
183 - (void)setStartPointImage:(nullable UIImage *)startPointImage;
189 - (void)setWayPointImage:(nullable UIImage *)wayPointImage;
195 - (void)setEndPointImage:(nullable UIImage *)endPointImage;
201 - (void)setCarImage:(nullable UIImage *)carImage;
207 - (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
233 #pragma mark - UI Element Options
294 - (void)driveView:(
AMapNaviDriveView *)driveView didChangeShowMode:(AMapNaviDriveViewShowMode)showMode;
301 - (void)driveView:(
AMapNaviDriveView *)driveView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
308 - (void)driveView:(
AMapNaviDriveView *)driveView didChangeOrientation:(BOOL)isLandscape;
315 - (void)driveView:(
AMapNaviDriveView *)driveView didChangeDayNightType:(BOOL)showStandardNightType;
330 - (id)driveView:(
AMapNaviDriveView *)driveView needUpdatePolylineOptionForRoute:(
AMapNaviRoute *)naviRoute __attribute__((deprecated("已废弃,请使用 lineWidth、statusTextures、greyTexture、dashedLineColor 等相关属性替代, since 6.2.0")));
334 NS_ASSUME_NONNULL_END
CGPoint scaleOrigin
当前地图比例尺的原点位置. 注意:只有showUIElements为NO时,设置此值才有效.
Definition: AMapNaviDriveView.h:49
BOOL showCamera
路线上是否显示摄像头,默认YES
Definition: AMapNaviDriveView.h:114
BOOL showMoreButton
是否显示更多按钮,默认YES
Definition: AMapNaviDriveView.h:251
Definition: AMapNaviDriveView.h:268
CGFloat mapZoomLevel
当前地图的zoomLevel,修改zoomLevel会进入非锁车状态
Definition: AMapNaviDriveView.h:64
BOOL showBrowseRouteButton
是否显示全览按钮,默认YES
Definition: AMapNaviDriveView.h:248
CGFloat cameraDegree
锁车状态下地图cameraDegree, 默认35.0, 范围[0,60]
Definition: AMapNaviDriveView.h:70
MACustomCalloutView * customCalloutView
自定义导航界面自车图标的弹出框view, 设置为nil取消弹框. 注意:弹框功能同MAAnnotationView的customCalloutView, 弹框不会触发 mapView:didAnnota...
Definition: AMapNaviDriveView.h:153
BOOL showBackupRoute
多路线导航模式下是否显示备选路线, 默认YES. since 6.7.0
Definition: AMapNaviDriveView.h:144
UIColor * turnArrowSideColor
路线上转弯箭头设置3D箭头的侧边颜色(当turnArrowIs3D为YES时有效). since 6.6.0
Definition: AMapNaviDriveView.h:129
CGFloat lineWidth
路线polyline的宽度,设置0恢复默认宽度
Definition: AMapNaviDriveView.h:150
CGFloat turnArrowWidth
路线上转弯箭头的宽度,设置0恢复默认宽度. since 6.2.0
Definition: AMapNaviDriveView.h:123
BOOL mapShowTraffic
地图是否显示交通路况,默认YES. since 6.1.0
Definition: AMapNaviDriveView.h:61
BOOL showTrafficButton
是否显示实时交通按钮,默认YES
Definition: AMapNaviDriveView.h:242
CGSize compassSize
指南针的宽高. since 6.3.0
Definition: AMapNaviDriveView.h:58
BOOL showTrafficBar
是否显示路况光柱,默认YES
Definition: AMapNaviDriveView.h:245
BOOL autoZoomMapLevel
锁车模式下是否为了预见下一导航动作自动缩放地图,默认为NO. since 6.2.0
Definition: AMapNaviDriveView.h:67
BOOL showStandardNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 6.7.0")))
是否黑夜模式,默认NO.
导航界面自定义标注 since 5.5.0
Definition: AMapNaviCompositeAnnotation.h:28
UIColor * dashedLineGreyColor
路线虚线部分走过后置灰的颜色 since 6.2.0
Definition: AMapNaviDriveView.h:162
BOOL showVectorline
是否显示牵引线,默认YES. since 6.2.0
Definition: AMapNaviDriveView.h:132
导航页添加自定overlay,需要遵守此协议 since 6.7.0
Definition: AMapNaviCompositeAnnotation.h:13
UIImage * greyTexture
路线纹理部分走过后置灰的纹理图片,设置nil恢复默认纹理. 纹理图片需满足:长宽相等,且宽度值为2的次幂. since 6.2.0
Definition: AMapNaviDriveView.h:165
CGPoint logoCenter
当前地图Logo位置, 必须在 AMapNaviDriveView.bounds 之内,否则会被忽略. 注意:只有showUIElements为NO时,设置此值才有效....
Definition: AMapNaviDriveView.h:40
BOOL showScale
当前地图是否显示比例尺,默认NO. 注意:只有showUIElements为NO时,设置此值才有效.
Definition: AMapNaviDriveView.h:46
AMapNaviDriveDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviDriveManager 的addDataRepresentative:方法进行...
Definition: AMapNaviDriveDataRepresentable.h:24
CGPoint screenAnchor
地图的视图锚点. (0, 0)为左上角,(1, 1)为右下角. 可通过设置此值来改变自车图标的默认显示位置. 注意:只有showUIElements为NO时,设置此值才有效 since 6....
Definition: AMapNaviDriveView.h:73
BOOL showTurnArrow
路线上是否显示转向箭头,默认YES
Definition: AMapNaviDriveView.h:117
NSUInteger maxRenderFrame
当前地图最大帧数,有效的帧数为:60、30、20、10等能被60整除的数,默认为30. since 6.5.0
Definition: AMapNaviDriveView.h:76
BOOL isLandscape
目前是否为横屏状态. since 6.2.0 内部会自行监听 UIDeviceOrientationDidChange 进行横竖屏切换,无需再设置此值,但用户要自行保证 AMapNaviDriveVie...
Definition: AMapNaviDriveView.h:256
AMapNaviDriveViewShowMode showMode
导航界面显示模式,默认AMapNaviDriveViewShowModeCarPositionLocked
Definition: AMapNaviDriveView.h:35
AMapNaviViewTrackingMode trackingMode
导航界面跟随模式,默认AMapNaviViewTrackingModeMapNorth
Definition: AMapNaviDriveView.h:32
BOOL autoSwitchDayNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 6.7.0")))
地图是否自动切换白天黑夜模式,默认NO.
BOOL showRoute
是否显示路线,默认YES. 注意:路线上的相关信息,如摄像头(showCamera)、红绿灯(showTrafficLights)、转向箭头(showTurnArrow)、牵引线(showVectorl...
Definition: AMapNaviDriveView.h:141
自定义annotationView的弹出框. 注意:不会触发-(void)mapView: didAnnotationViewCalloutTapped: since 5....
Definition: MACustomCalloutView.h:14
BOOL showCar
是否显示小车图标,默认YES. since 6.2.0
Definition: AMapNaviDriveView.h:138
BOOL showTrafficLights
是否显示红绿灯图标,默认YES. since 6.2.0
Definition: AMapNaviDriveView.h:135
导航路径信息
Definition: AMapNaviRoute.h:132
BOOL showCrossImage
是否显示路口放大图,默认YES
Definition: AMapNaviDriveView.h:239
UIColor * turnArrowColor
路线上转弯箭头颜色. since 6.1.0
Definition: AMapNaviDriveView.h:120
AMapNaviViewMapModeType mapViewModeType
导航界面日夜模式类型, 默认为 AMapNaviViewMapModeTypeDay(白天模式) since 6.7.0
Definition: AMapNaviDriveView.h:79
UIImage * normalTexture
标准路线Polyline的纹理图片,设置nil恢复默认纹理.纹理图片需满足:长宽相等,且宽度值为2的次幂
Definition: AMapNaviDriveView.h:171
CGSize logoSize
当前地图Logo的宽高. since 6.2.0
Definition: AMapNaviDriveView.h:43
NSDictionary< NSNumber *, UIImage * > * statusTextures
带路况路线Polyline的纹理图片. 纹理图片需满足: 长宽相等,且宽度值为2的次幂. 例如:@(AMapNaviRouteStatusSlow): [UIImage Slow路况下的Image],...
Definition: AMapNaviDriveView.h:168
BOOL autoSwitchShowModeToCarPositionLocked
当显示模式为非锁车模式时,是否在7秒后自动设置为锁车模式,默认为NO. since 5.3.0
Definition: AMapNaviDriveView.h:259
BOOL showTrafficLayer __attribute((deprecated("已废弃, 请使用 mapShowTraffic 结合 -statusTextures: 替代. since 7.4.0")))
是否显示实时交通图层(地图路况+路线路况),默认YES
CGFloat dashedLineWidth
路线polyline的虚线部分宽度,设置0恢复默认宽度
Definition: AMapNaviDriveView.h:156
BOOL showGreyAfterPass
走过的路线是否置灰,默认为NO. since 6.2.0
Definition: AMapNaviDriveView.h:147
BOOL showCompass
是否显示指南针,默认NO
Definition: AMapNaviDriveView.h:52
BOOL showUIElements
是否显示界面元素,默认YES
Definition: AMapNaviDriveView.h:236
id< AMapNaviDriveViewDelegate > delegate
实现了 AMapNaviDriveViewDelegate 协议的类指针
Definition: AMapNaviDriveView.h:24
驾车导航界面.该类实现AMapNaviDriveDataRepresentable协议,可通过 AMapNaviDriveManager 的addDataRepresentative:方法进行注册展示驾...
Definition: AMapNaviDriveView.h:19
CGPoint compassOrigin
指南针原点位置. since 6.3.0
Definition: AMapNaviDriveView.h:55
BOOL turnArrowIs3D
路线上转弯箭头是否为3D箭头线,默认为YES. since 6.6.0
Definition: AMapNaviDriveView.h:126
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
Definition: MAMapCustomStyleOptions.h:12
id< MAMapViewDelegate > mapViewDelegate
可获得和 MAMapView 原始 Delegate 同样的能力. since 7.0.0
Definition: AMapNaviDriveView.h:27
UIColor * dashedLineColor
路线虚线部分的颜色. since 6.2.0
Definition: AMapNaviDriveView.h:159
© 2017 高德信息技术有限公司 版权所有,保留所有权利。