14NS_ASSUME_NONNULL_BEGIN
16@protocol AMapNaviDriveViewDelegate;
21#pragma mark - Delegate
24@property (nonatomic, weak) id<AMapNaviDriveViewDelegate>
delegate;
29#pragma mark - Mode Options
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")));
162@property (nonatomic, copy) NSArray<AMapNaviPolylineTrafficStatusColor *> *
routeStatusColor;
183- (void)setCameraImage:(nullable UIImage *)cameraImage;
189- (void)setStartPointImage:(nullable UIImage *)startPointImage;
195- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
201- (void)setEndPointImage:(nullable UIImage *)endPointImage;
207- (void)setCarImage:(nullable UIImage *)carImage;
213- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
231- (void)addCustomOverlay:(
id <AMapNaviCompositeOverlay>_Nonnull)overlay;
237- (void)removeCustomOverlay:(
id <AMapNaviCompositeOverlay>_Nonnull)overlay;
239#pragma mark - UI Element Options
263@property (nonatomic, copy) NSArray<AMapNaviTMCStatusColor *> *
tmcRouteColor;
280@protocol AMapNaviDriveViewDelegate <NSObject>
326- (void)driveView:(
AMapNaviDriveView *)driveView didChangeOrientation:(BOOL)isLandscape;
333- (void)driveView:(
AMapNaviDriveView *)driveView didChangeDayNightType:(BOOL)showStandardNightType;
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:33
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:424
AMapNaviDriveViewShowMode
Definition AMapNaviCommonObj.h:40
导航界面自定义标注 since 5.5.0
Definition AMapNaviCompositeAnnotation.h:28
驾车导航界面.该类实现AMapNaviDriveDataRepresentable协议,可通过 AMapNaviDriveManager 的addDataRepresentative:方法进行注册展示驾...
Definition AMapNaviDriveView.h:19
NSUInteger maxRenderFrame
当前地图最大帧数,有效的帧数为:60、30、20、10等能被60整除的数,默认为60. since 6.5.0
Definition AMapNaviDriveView.h:76
BOOL showVectorline
是否显示牵引线,默认YES. since 6.2.0
Definition AMapNaviDriveView.h:132
BOOL showTrafficButton
是否显示实时交通按钮,默认YES
Definition AMapNaviDriveView.h:248
CGPoint logoCenter
当前地图Logo位置, 必须在 AMapNaviDriveView.bounds 之内,否则会被忽略. 注意:只有showUIElements为NO时,设置此值才有效....
Definition AMapNaviDriveView.h:40
BOOL autoZoomMapLevel
锁车模式下是否为了预见下一导航动作自动缩放地图,默认为YES。 since 10.0.2
Definition AMapNaviDriveView.h:67
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
CGSize compassSize
指南针的宽高. since 6.3.0
Definition AMapNaviDriveView.h:58
UIColor * dashedLineColor
路线虚线部分的颜色. since 6.2.0
Definition AMapNaviDriveView.h:156
CGPoint scaleOrigin
当前地图比例尺的原点位置. 注意:只有showUIElements为NO时,设置此值才有效.
Definition AMapNaviDriveView.h:49
BOOL showEagleMap
Definition AMapNaviDriveView.h:165
AMapNaviViewTrackingMode trackingMode
导航界面跟随模式,默认AMapNaviViewTrackingModeMapNorth
Definition AMapNaviDriveView.h:32
AMapNaviDriveViewShowMode showMode
导航界面显示模式,默认AMapNaviDriveViewShowModeCarPositionLocked
Definition AMapNaviDriveView.h:35
id< MAMapViewDelegate > mapViewDelegate
可获得和 MAMapView 原始 Delegate 同样的能力. since 7.0.0
Definition AMapNaviDriveView.h:27
BOOL showGreyAfterPass
走过的路线是否置灰,默认为NO. since 6.2.0
Definition AMapNaviDriveView.h:147
NSArray< AMapNaviPolylineTrafficStatusColor * > * routeStatusColor
路线的路况颜色,根据AMapNaviRouteStatus配置不同道路状态的颜色 since 10.0.2
Definition AMapNaviDriveView.h:162
BOOL mapShowTraffic
地图是否显示交通路况,默认YES. since 6.1.0
Definition AMapNaviDriveView.h:61
BOOL showCar
是否显示小车图标,默认YES. since 6.2.0
Definition AMapNaviDriveView.h:138
CGRect tmcRouteFrame
光柱图位置。since 10.0.2
Definition AMapNaviDriveView.h:260
BOOL showOverSpeedPulse
是否显示超速脉冲,默认为NO。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap....
Definition AMapNaviDriveView.h:171
BOOL autoSwitchShowModeToCarPositionLocked
当显示模式为非锁车模式时,是否在7秒后自动设置为锁车模式,默认为NO. since 5.3.0
Definition AMapNaviDriveView.h:271
BOOL showBackupRoute
多路线导航模式下是否显示备选路线, 默认YES. since 6.7.0
Definition AMapNaviDriveView.h:144
id< AMapNaviDriveViewDelegate > delegate
实现了 AMapNaviDriveViewDelegate 协议的类指针
Definition AMapNaviDriveView.h:24
BOOL showMoreButton
是否显示更多按钮,默认YES
Definition AMapNaviDriveView.h:257
BOOL showBrowseRouteButton
是否显示全览按钮,默认YES
Definition AMapNaviDriveView.h:254
MACustomCalloutView * customCalloutView
自定义导航界面自车图标的弹出框view, 设置为nil取消弹框. 注意:弹框功能同MAAnnotationView的customCalloutView, 弹框不会触发 mapView:didAnnota...
Definition AMapNaviDriveView.h:153
BOOL showCrossImage
是否显示路口放大图,默认YES
Definition AMapNaviDriveView.h:245
BOOL showRoute
是否显示路线,默认YES. 注意:路线上的相关信息,如摄像头(showCamera)、红绿灯(showTrafficLights)、转向箭头(showTurnArrow)、牵引线(showVectorl...
Definition AMapNaviDriveView.h:141
NSArray< AMapNaviTMCStatusColor * > * tmcRouteColor
光柱图颜色,根据AMapNaviRouteStatus配置不同道路状态的颜色,AMapNaviRouteStatusUnknow 的可以不做配置。since 10....
Definition AMapNaviDriveView.h:263
CGFloat cameraDegree
非锁车状态下地图cameraDegree,锁车态下内部会处理, 默认35.0, 范围[0,60]
Definition AMapNaviDriveView.h:70
AMapNaviPolylineGreyColor * routeGreyColor
Definition AMapNaviDriveView.h:159
CGFloat mapZoomLevel
当前地图的zoomLevel,修改zoomLevel会进入非锁车状态
Definition AMapNaviDriveView.h:64
BOOL showUIElements
是否显示界面元素,默认YES
Definition AMapNaviDriveView.h:242
BOOL showDriveCongestion
路线上是否显示拥堵气泡,默认YES。 since 10.0.5
Definition AMapNaviDriveView.h:174
BOOL showTrafficLightView
路线上是否显示红绿灯倒计时,开启付费权限时默认YES。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs....
Definition AMapNaviDriveView.h:177
CGPoint compassOrigin
指南针原点位置. since 6.3.0
Definition AMapNaviDriveView.h:55
BOOL showTrafficLights
是否显示红绿灯图标,默认YES. since 6.2.0
Definition AMapNaviDriveView.h:135
BOOL showScale
当前地图是否显示比例尺,默认NO. 注意:只有showUIElements为NO时,设置此值才有效.
Definition AMapNaviDriveView.h:46
CGFloat lineWidth
路线polyline的宽度,设置0恢复默认宽度
Definition AMapNaviDriveView.h:150
BOOL isLandscape
目前是否为横屏状态. since 6.2.0 内部会自行监听 UIDeviceOrientationDidChange 进行横竖屏切换,无需再设置此值,但用户要自行保证 AMapNaviDriveVie...
Definition AMapNaviDriveView.h:268
BOOL turnArrowIs3D
路线上转弯箭头是否为3D箭头线,默认为YES. since 6.6.0
Definition AMapNaviDriveView.h:126
UIColor * turnArrowColor
路线上转弯箭头颜色. since 6.1.0
Definition AMapNaviDriveView.h:120
CGSize logoSize
当前地图Logo的宽高. since 6.2.0
Definition AMapNaviDriveView.h:43
AMapNaviViewMapModeType mapViewModeType
导航界面日夜模式类型, 默认为 AMapNaviViewMapModeTypeDay(白天模式) since 6.7.0
Definition AMapNaviDriveView.h:79
BOOL customMapStyleEnabled __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 6.7.0")))
当前地图是否开启自定义样式, 默认NO.
BOOL showTurnArrow
路线上是否显示转向箭头,默认YES
Definition AMapNaviDriveView.h:117
CGPoint screenAnchor
地图的视图锚点. (0, 0)为左上角,(1, 1)为右下角. 可通过设置此值来改变自车图标的默认显示位置. 注意:只有showUIElements为NO时,设置此值才有效 since 6....
Definition AMapNaviDriveView.h:73
CGFloat turnArrowWidth
路线上转弯箭头的宽度,设置0恢复默认宽度. since 6.2.0
Definition AMapNaviDriveView.h:123
BOOL showTrafficLayer __attribute((deprecated("已废弃, 请使用 mapShowTraffic 结合 -statusTextures: 替代. since 7.4.0")))
是否显示实时交通图层(地图路况+路线路况),默认YES
BOOL showCompass
是否显示指南针,默认NO
Definition AMapNaviDriveView.h:52
BOOL autoSwitchDayNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 6.7.0")))
地图是否自动切换白天黑夜模式,默认NO.
BOOL showTrafficBar
是否显示路况光柱图,默认YES
Definition AMapNaviDriveView.h:251
UIColor * turnArrowSideColor
路线上转弯箭头设置3D箭头的侧边颜色(当turnArrowIs3D为YES时有效). since 6.6.0
Definition AMapNaviDriveView.h:129
BOOL showStandardNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 6.7.0")))
是否黑夜模式,默认NO.
BOOL showCameraDistance
是否显示电子眼的距离,默认为NO。since 10.0.2
Definition AMapNaviDriveView.h:168
BOOL showCamera
路线上是否显示摄像头,默认YES
Definition AMapNaviDriveView.h:114
路线走过后置灰的颜色. since 7.4.0
Definition AMapNaviCommonObj.h:1210
自定义annotationView的弹出框. 注意:不会触发-(void)mapView: didAnnotationViewCalloutTapped: since 5....
Definition MACustomCalloutView.h:14
Definition MAMapCustomStyleOptions.h:12
AMapNaviDriveDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviDriveManager 的addDataRepresentative:方法进行...
Definition AMapNaviDriveDataRepresentable.h:24