15NS_ASSUME_NONNULL_BEGIN
25@protocol AMapNaviRideViewDelegate;
30#pragma mark - Delegate
33@property (nonatomic, weak) id<AMapNaviRideViewDelegate>
delegate;
50@property (nonatomic, assign) BOOL showStandardNightType
__attribute((deprecated(
"已废弃, 请使用 mapViewModeType 替代 since 8.0.0")));
88@property (nonatomic, assign) BOOL customMapStyleEnabled
__attribute((deprecated(
"已废弃, 请使用 mapViewModeType 替代 since 8.0.0")));
94- (void)setCustomMapStyle:(NSData *)customJson __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0")));
100- (void)setCustomMapStyleWithWebData:(NSData*)data __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0")));
108#pragma mark - Polyline Texture
128- (void)setStartPointImage:(nullable UIImage *)startPointImage;
134- (void)setEndPointImage:(nullable UIImage *)endPointImage;
140- (void)setCarImage:(nullable UIImage *)carImage;
146- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
152- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
153#pragma mark - Overlay
158- (void)addCustomOverlay:(
id <AMapNaviCompositeOverlay>_Nonnull)overlay;
164- (void)removeCustomOverlay:(
id <AMapNaviCompositeOverlay>_Nonnull)overlay;
174@protocol AMapNaviRideViewDelegate <NSObject>
214- (void)rideView:(
AMapNaviRideView *)rideView didChangeOrientation:(BOOL)isLandscape;
221- (void)rideView:(
AMapNaviRideView *)rideView didChangeDayNightType:(BOOL)showStandardNightType;
AMapNaviViewTrackingMode
Definition AMapNaviCommonObj.h:33
AMapNaviViewMapModeType
Definition AMapNaviCommonObj.h:424
AMapNaviRideViewShowMode
Definition AMapNaviRideView.h:19
@ AMapNaviRideViewShowModeOverview
全览状态
Definition AMapNaviRideView.h:21
@ AMapNaviRideViewShowModeCarPositionLocked
锁车状态
Definition AMapNaviRideView.h:20
@ AMapNaviRideViewShowModeNormal
普通状态
Definition AMapNaviRideView.h:22
骑行导航界面.该类实现AMapNaviRideDataRepresentable协议,可通过 AMapNaviRideManager 的addDataRepresentative:方法进行注册展示骑行导...
Definition AMapNaviRideView.h:28
BOOL showScale
当前地图是否显示比例尺,默认NO
Definition AMapNaviRideView.h:76
BOOL showGreyAfterPass
走过的路线是否置灰,默认为NO. since 7.4.0
Definition AMapNaviRideView.h:117
CGPoint scaleOrigin
当前地图比例尺的原点位置,默认(10,10)
Definition AMapNaviRideView.h:79
UIImage * greyTexture
路线纹理部分走过后置灰的纹理图片,设置nil恢复默认纹理. 纹理图片需满足:长宽相等,且宽度值为2的次幂. since 7.4.0
Definition AMapNaviRideView.h:120
UIImage * normalTexture
标准路线Polyline的纹理图片,设置nil恢复默认纹理.纹理图片需满足:长宽相等,且宽度值为2的次幂
Definition AMapNaviRideView.h:114
BOOL isLandscape
目前是否为横屏状态. since 7.4.0 内部会自行监听 UIDeviceOrientationDidChange 进行横竖屏切换,无需再设置此值,但用户要自行保证 AMapNaviRideView...
Definition AMapNaviRideView.h:38
AMapNaviViewMapModeType mapViewModeType
导航界面日夜模式类型, 默认为 AMapNaviViewMapModeTypeDay(白天模式) since 8.0.0
Definition AMapNaviRideView.h:65
BOOL showUIElements
是否显示界面元素,默认YES
Definition AMapNaviRideView.h:47
BOOL showTurnArrow
是否显示转向箭头,默认YES
Definition AMapNaviRideView.h:59
id< AMapNaviRideViewDelegate > delegate
实现了 AMapNaviRideViewDelegate 协议的类指针
Definition AMapNaviRideView.h:33
AMapNaviViewTrackingMode trackingMode
导航界面跟随模式,默认AMapNaviViewTrackingModeMapNorth
Definition AMapNaviRideView.h:41
BOOL showSensorHeading
是否显示传感器方向信息,默认NO.设置为YES后,自车图标方向将显示为设备方向
Definition AMapNaviRideView.h:62
BOOL showStandardNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 8.0.0")))
是否黑夜模式,默认NO. 对应的地图样式为:白天模式MAMapTypeNavi,黑夜模式MAMapTypeStandardNight.
CGPoint screenAnchor
地图的视图锚点. (0, 0)为左上角,(1, 1)为右下角. 可通过设置此值来改变自车图标的默认显示位置. 注意:只有showUIElements为NO时,设置此值才有效 since 8....
Definition AMapNaviRideView.h:82
BOOL showCompass
是否显示指南针,默认NO
Definition AMapNaviRideView.h:70
BOOL showMoreButton
是否显示更多按钮,默认YES
Definition AMapNaviRideView.h:56
CGFloat cameraDegree
锁车状态下地图cameraDegree, 默认30.0, 范围[0,60]
Definition AMapNaviRideView.h:73
CGPoint compassOrigin
指南针原点位置. since 8.0.0
Definition AMapNaviRideView.h:85
CGFloat lineWidth
路线polyline的宽度,设置0恢复默认宽度
Definition AMapNaviRideView.h:111
BOOL showBrowseRouteButton
是否显示全览按钮,默认YES
Definition AMapNaviRideView.h:53
void updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview()
在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用...
BOOL customMapStyleEnabled __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 8.0.0")))
当前地图是否开启自定义样式, 默认NO. 设置为YES,将忽略showStandardNightType的设置,并将mapType切换为MAMapTypeStandard....
AMapNaviRideViewShowMode showMode
导航界面显示模式,默认AMapNaviDriveViewShowModeCarPositionLocked
Definition AMapNaviRideView.h:44
Definition MAMapCustomStyleOptions.h:12
AMapNaviEleBikeeDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviEleBikeManager 的addDataRepresentative...
Definition AMapNaviEleBikeDataRepresentable.h:24
AMapNaviRideDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviRideManager 的addDataRepresentative:方法进行注册...
Definition AMapNaviRideDataRepresentable.h:24