监控的车辆状态label约束修改,更新高德地图

This commit is contained in:
DDIsFriend
2024-04-02 15:51:09 +08:00
parent 990658582a
commit 4018a59c7a
2862 changed files with 15621 additions and 3359 deletions

View File

@@ -63,16 +63,16 @@ NS_ASSUME_NONNULL_BEGIN
///当前地图的zoomLevel修改zoomLevel会进入非锁车状态
@property (nonatomic, assign) CGFloat mapZoomLevel;
///锁车模式下是否为了预见下一导航动作自动缩放地图,默认为NO. since 6.2.0
///锁车模式下是否为了预见下一导航动作自动缩放地图,默认为YES。 since 10.0.2
@property (nonatomic, assign) BOOL autoZoomMapLevel;
///锁车状态下地图cameraDegree, 默认35.0, 范围[0,60]
///锁车状态下地图cameraDegree,锁车态下内部会处理, 默认35.0, 范围[0,60]
@property (nonatomic, assign) CGFloat cameraDegree;
///地图的视图锚点. (0, 0)为左上角,(1, 1)为右下角. 可通过设置此值来改变自车图标的默认显示位置. 注意:只有showUIElements为NO时设置此值才有效 since 6.2.0
@property (nonatomic, assign) CGPoint screenAnchor;
///当前地图最大帧数有效的帧数为60、30、20、10等能被60整除的数默认为30. since 6.5.0
///当前地图最大帧数有效的帧数为60、30、20、10等能被60整除的数默认为60. since 6.5.0
@property (nonatomic, assign) NSUInteger maxRenderFrame;
///导航界面日夜模式类型, 默认为 AMapNaviViewMapModeTypeDay(白天模式) since 6.7.0
@@ -152,27 +152,33 @@ NS_ASSUME_NONNULL_BEGIN
///自定义导航界面自车图标的弹出框view, 设置为nil取消弹框. 注意:弹框功能同MAAnnotationView的customCalloutView, 弹框不会触发 mapView:didAnnotationViewCalloutTapped: 方法. since 5.1.0
@property (nonatomic, strong, nullable) MACustomCalloutView *customCalloutView;
///路线polyline的虚线部分宽度,设置0恢复默认宽度
@property (nonatomic, assign) CGFloat dashedLineWidth;
///路线虚线部分的颜色. since 6.2.0
@property (nonatomic, strong) UIColor *dashedLineColor;
///路线虚线部分走过后置灰的颜色 since 6.2.0
@property (nonatomic, strong) UIColor *dashedLineGreyColor;
// 路线走过后置灰的颜色 since 10.0.2
@property (nonatomic, strong) AMapNaviPolylineGreyColor *routeGreyColor;
///路线纹理部分走过后置灰的纹理图片,设置nil恢复默认纹理. 纹理图片需满足长宽相等且宽度值为2的次幂. since 6.2.0
@property (nonatomic, copy, nullable) UIImage *greyTexture;
///路线的路况颜色根据AMapNaviRouteStatus配置不同道路状态的颜色 since 10.0.2
@property (nonatomic, copy) NSArray<AMapNaviPolylineTrafficStatusColor *> *routeStatusColor;
///带路况路线Polyline的纹理图片. 纹理图片需满足: 长宽相等,且宽度值为2的次幂. 例如:@{@(AMapNaviRouteStatusSlow): [UIImage Slow路况下的Image],@(AMapNaviRouteStatusSeriousJam): [UIImage SeriousJam路况下的Image]}. 设置空字典恢复默认纹理,例如: @{}
@property (nonatomic, copy) NSDictionary<NSNumber *, UIImage *> *statusTextures;
//设置自定义View是否显示鹰眼地图默认为NO。显示鹰眼小地图的时候光柱图和全览按钮隐藏。 特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。since 10.0.2
@property (nonatomic, assign) BOOL showEagleMap;
///标准路线Polyline的纹理图片,设置nil恢复默认纹理.纹理图片需满足长宽相等且宽度值为2的次幂
@property (nonatomic, copy, nullable) UIImage *normalTexture;
///是否显示电子眼的距离默认为NO。since 10.0.2
@property (nonatomic, assign) BOOL showCameraDistance;
///是否显示超速脉冲默认为NO。特别注意当前接口为收费接口您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。since 10.0.2
@property (nonatomic, assign) BOOL showOverSpeedPulse;
///路线上是否显示拥堵气泡默认YES。 since 10.0.5
@property (nonatomic, assign) BOOL showDriveCongestion;
///路线上是否显示红绿灯倒计时开启付费权限时默认YES。特别注意当前接口为收费接口您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。since 10.0.5
@property (nonatomic, assign) BOOL showTrafficLightView;
/**
* @brief 设置摄像头图标
* @param cameraImage 摄像头图标,设置nil为默认图标
* @param cameraImage 摄像头图标
*/
- (void)setCameraImage:(nullable UIImage *)cameraImage;
@@ -235,13 +241,13 @@ NS_ASSUME_NONNULL_BEGIN
///是否显示界面元素,默认YES
@property (nonatomic, assign) BOOL showUIElements;
///是否显示路口放大图,默认YES
///是否显示路口放大图默认YES
@property (nonatomic, assign) BOOL showCrossImage;
///是否显示实时交通按钮,默认YES
@property (nonatomic, assign) BOOL showTrafficButton;
///是否显示路况光柱,默认YES
///是否显示路况光柱,默认YES
@property (nonatomic, assign) BOOL showTrafficBar;
///是否显示全览按钮,默认YES
@@ -250,6 +256,12 @@ NS_ASSUME_NONNULL_BEGIN
///是否显示更多按钮,默认YES
@property (nonatomic, assign) BOOL showMoreButton;
///光柱图位置。since 10.0.2
@property (nonatomic, assign) CGRect tmcRouteFrame;
///光柱图颜色根据AMapNaviRouteStatus配置不同道路状态的颜色AMapNaviRouteStatusUnknow 的可以不做配置。since 10.0.2
@property (nonatomic, copy) NSArray<AMapNaviTMCStatusColor *> *tmcRouteColor;
#pragma mark - Other
///目前是否为横屏状态. since 6.2.0 内部会自行监听 UIDeviceOrientationDidChange 进行横竖屏切换,无需再设置此值,但用户要自行保证 AMapNaviDriveView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight让 AMapNaviDriveView 能够跟着父View一起变化. 可通过回调 -driveView:didChangeOrientation: 获取横竖屏切换时机
@@ -300,6 +312,12 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)driveView:(AMapNaviDriveView *)driveView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
/**
* @brief 驾车导航界面跟随模式改变动画执行完成的回调函数可在此函数中设置地图状态。注意只有在showMode为AMapNaviDriveViewShowModeNormal时才会回调。 since 10.0.2
* @param driveView 驾车导航界面
*/
- (void)driveViewTrackingModeAnimationFinished:(AMapNaviDriveView *)driveView;
/**
* @brief 驾车导航界面横竖屏切换后的回调函数. since 6.2.0
* @param driveView 驾车导航界面
@@ -321,14 +339,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (UIEdgeInsets)driveViewEdgePadding:(AMapNaviDriveView *)driveView;
/**
* @brief 获取导航界面上路线显示样式的回调函数. 已废弃,请使用 lineWidth、statusTextures、greyTexture、dashedLineColor 等相关属性替代, since 6.2.0
* @param driveView 驾车导航界面
* @param naviRoute 当前界面的路线信息
* @return AMapNaviRoutePolylineOption 路线显示样式
*/
- (id)driveView:(AMapNaviDriveView *)driveView needUpdatePolylineOptionForRoute:(AMapNaviRoute *)naviRoute __attribute__((deprecated("已废弃,请使用 lineWidth、statusTextures、greyTexture、dashedLineColor 等相关属性替代, since 6.2.0")));
@end
NS_ASSUME_NONNULL_END