监控的车辆状态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

@@ -252,7 +252,7 @@ typedef NS_ENUM(NSInteger, AMapNaviBroadcastMode)
AMapNaviBroadcastModeDetailed, ///< 2 新手详细播报
};
///道路状态
///道路状态。特别注意10.0.0新增Default、FineOpen
typedef NS_ENUM(NSInteger, AMapNaviRouteStatus)
{
AMapNaviRouteStatusUnknow = 0, ///< 0 未知状态
@@ -260,6 +260,8 @@ typedef NS_ENUM(NSInteger, AMapNaviRouteStatus)
AMapNaviRouteStatusSlow, ///< 2 缓行
AMapNaviRouteStatusJam, ///< 3 阻塞
AMapNaviRouteStatusSeriousJam, ///< 4 严重阻塞
AMapNaviRouteStatusDefault, ///< 5 默认路况(内部道路)
AMapNaviRouteStatusFineOpen, ///< 6 极其畅通
};
///路径规划时POI点的起终点类型
@@ -396,7 +398,7 @@ typedef NS_ENUM(NSInteger, AMapNaviLinkType)
AMapNaviLinkTypeFairway = 1, ///< 航道
AMapNaviLinkTypeUnderPass = 2, ///< 隧道
AMapNaviLinkTypeBridge = 3, ///< 桥梁
AMapNaviLinkTypeElevatedRd = 4, ///< 地下交通通道
AMapNaviLinkTypeElevatedRd = 4, ///< 高架路
};
///路径的扎点信息类型 since 6.3.0
@@ -1191,3 +1193,75 @@ FOUNDATION_EXTERN AMapNaviDrivingStrategy ConvertDrivingPreferenceToDrivingStrat
@property (nonatomic, assign) double eventMaxAcc;
@end
#pragma mark - AMapNaviPolylineGreyColor
///路线走过后置灰的颜色. since 7.4.0
@interface AMapNaviPolylineGreyColor : NSObject <NSCopying>
///填充颜色
@property (nonatomic, strong) UIColor *fillColor;
///边框颜色
@property (nonatomic, strong) UIColor *borderColor;
///鱼骨线颜色
@property (nonatomic, strong) UIColor *arrowColor;
///填充颜色(夜间)
@property (nonatomic, strong) UIColor *fillColorNight;
///边框颜色(夜间)
@property (nonatomic, strong) UIColor *borderColorNight;
///鱼骨线颜色(夜间)
@property (nonatomic, strong) UIColor *arrowColorNight;
@end
#pragma mark - AMapNaviPolylineTrafficStatusColor
///路线的路况颜色. since 7.4.0
@interface AMapNaviPolylineTrafficStatusColor : NSObject <NSCopying>
///路况,表示该颜色将在该路况下生效
@property (nonatomic, assign) AMapNaviRouteStatus status;
///当前路线的填充颜色(白天)
@property (nonatomic, strong) UIColor *fillColorHighlight;
///当前路线的边框颜色(白天)
@property (nonatomic, strong) UIColor *borderColorHighlight;
///备选路线的填充颜色(白天)
@property (nonatomic, strong) UIColor *fillColor;
///备选路线的边框颜色(白天)
@property (nonatomic, strong) UIColor *borderColor;
///当前路线的填充颜色(黑夜)
@property (nonatomic, strong) UIColor *fillColorHighlightNight;
///当前路线的边框颜色(黑夜)
@property (nonatomic, strong) UIColor *borderColorHighlightNight;
///备选路线的填充颜色(黑夜)
@property (nonatomic, strong) UIColor *fillColorNight;
///备选路线的边框颜色(黑夜)
@property (nonatomic, strong) UIColor *borderColorNight;
@end
#pragma mark - AMapNaviTMCStatusColor
///光柱图的颜色。since 10.0.0
@interface AMapNaviTMCStatusColor : NSObject <NSCopying>
///路况,表示该颜色将在该路况下生效
@property (nonatomic, assign) AMapNaviRouteStatus status;
///当前路况对应的光柱图填充颜色
@property (nonatomic, strong) UIColor *color;
@end

View File

@@ -60,14 +60,14 @@ NS_ASSUME_NONNULL_BEGIN
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateNaviLocation:(nullable AMapNaviLocation *)naviLocation;
/**
* @brief 需要显示路口放大图时的回调
* @brief 需要显示路口放大图时的回调。注意10.0.2版本开始自定义View中如果设置了showCrossImage为YES回调中crossImage为nil
* @param driveManager 驾车导航管理类
* @param crossImage 路口放大图Image(宽:高 = 25:16)
*/
- (void)driveManager:(AMapNaviDriveManager *)driveManager showCrossImage:(UIImage *)crossImage;
- (void)driveManager:(AMapNaviDriveManager *)driveManager showCrossImage:(nullable UIImage *)crossImage;
/**
* @brief 需要隐藏路口放大图时的回调
* @brief 需要隐藏路口放大图时的回调
* @param driveManager 驾车导航管理类
*/
- (void)driveManagerHideCrossImage:(AMapNaviDriveManager *)driveManager;

View File

@@ -260,6 +260,41 @@ NS_ASSUME_NONNULL_BEGIN
* @param enable 请求服务详情信息的功能是否打开, 默认为NO.
*/
- (void)setServiceAreaDetailsEnable:(BOOL)enable;
#pragma mark - push路线相关
/**
* @brief 路线还原接口。since 9.0.0
* @param startPOIInfo 起点POIInfo参考 AMapNaviPOIInfo。如果以“我的位置”作为起点,请传nil。 如果startPOIInfo不为nil,那么POIID合法优先使用ID参与算路,否则使用坐标点.
* @param endPOIInfo 终点POIInfo参考 AMapNaviPOIInfo。如果POIID合法优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空
* @param wayPOIInfos 途经点POIInfo,最多支持16个途经点,超过16个会取前16个。如果POIID合法,优先使用ID参与算路,否则使用坐标点。 注意:POIID和坐标点不能同时为空。
* @param strategy 路径的计算策略。
* @return 路线还原是否成功。
*/
- (BOOL)pushDriveRouteWithRouteGuideData:(nonnull NSData *)routeData
startPOIInfo:(nonnull AMapNaviPOIInfo *)startPOIInfo
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
wayPOIInfos:(nullable NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
drivingStrategy:(AMapNaviDrivingStrategy)strategy;
// 5.1 算路协议升级后的路线还原接口 routeguide 协议版本号 since 9.0.0
/**
* @brief 获取导航路线还原版本号。since 9.0.0
* @return routeguide 协议版本号。
*/
- (NSString *_Nullable)getPushDataNaviVersion;
/**
* @brief 获得 routeService 版本号。
* @return routeService 协议版本号。
*/
- (NSString *_Nullable)routeSDKVersion;
/**
* @brief 获得 routeServer 版本号。
* @return routeServer 协议版本号。
*/
- (NSString *_Nullable)routeServerVersion;
@end
#pragma mark - Escort

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

View File

@@ -23,10 +23,7 @@
#import <AMapNaviKit/AMapNaviRideDataRepresentable.h>
#import <AMapNaviKit/AMapNaviEleBikeManager.h>
#import <AMapNaviKit/AMapNaviManagerConfig.h>
#if __has_include(<AMapNaviKit/AMapNaviTrafficBarView.h>)
#import <AMapNaviKit/AMapNaviTrafficBarView.h>
#endif
#import <AMapNaviKit/AMapNaviOpenNetwrokProxyManager.h>
#if __has_include(<AMapNaviKit/AMapNaviHeaderHandler.h>)
#import <AMapNaviKit/AMapNaviHeaderHandler.h>

View File

@@ -0,0 +1,57 @@
//
// AMapNaviOpenNetwrokProxyManager.h
// AMapNaviKit
//
// Created by chenyu on 2023/8/7.
// Copyright © 2023 Amap. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol AMapNaviOpenNetwrokProxyDelegate;
@interface AMapNaviOpenNetwrokProxyManager : NSObject
/**
* @brief AMapNaviOpenNetwrokProxyManager 单例. since 10.0.1
* @return AMapNaviOpenNetwrokProxyManager 实例
*/
+ (AMapNaviOpenNetwrokProxyManager *)sharedInstance;
#pragma mark - delegate
///实现了 AMapNaviOpenNetwrokProxyDelegate 协议的类指针
@property (nonatomic, weak) id<AMapNaviOpenNetwrokProxyDelegate> delegate;
@end
#pragma mark - AMapNaviOpenNetwrokProxy
@protocol AMapNaviOpenNetwrokProxyDelegate <NSObject>
@optional
/**
* @brief 通过path获取代理host开发者需要保证host的合法性。since 10.0.1
* @param path 网络请求的path
*/
- (NSString *)getHostByPath:(NSString *)path;
/**
* @brief 开发者请根据实际情况返回对应的请求path是否需要携带参数参数和数据放在URL中需要注意携带的数据不易过多且需要对key、value进行encode。since 10.0.1
* @param path 网络请求的path
* @return 根据path返回需要携带的数据没有需要携带的数据可返回nil也可不实现。
*/
- (NSDictionary *)getExtRequestParamByPath:(NSString *)path;
/**
* @brief 通过path获取代理host。since 10.0.1
* @param path 网络请求的path
* @param repsoneStr 服务返回的数据
*/
- (void)onResponseExtParam:(NSString *)path repsoneStr:(NSString *)repsoneStr;
@end
NS_ASSUME_NONNULL_END

View File

@@ -1,42 +0,0 @@
//
// AMapNaviTrafficBarView.h
// AMapNaviKit
//
// Created by AutoNavi on 14-7-11.
// Copyright (c) 2014年 AutoNavi. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AMapNaviDriveDataRepresentable.h"
///导航路况光柱view. 需通过 AMapNaviDriveManager 的 -addDataRepresentative: 方法进行注册.
@interface AMapNaviTrafficBarView : UIView <AMapNaviDriveDataRepresentable>
///是否显示车图标,默认YES
@property (nonatomic, assign) BOOL showCar;
///光柱是否表示全程,即偏航后小车是否还在原来的位置(不是重新从底部开始).默认为YES. since 6.2.0
@property (nonatomic, assign) BOOL wholeCourse;
///外边框的宽度,默认为4. since 6.2.0
@property (nonatomic, assign) CGFloat borderWidth;
///外边框的颜色,默认为白色. since 6.2.0
@property (nonatomic, strong, nonnull) UIColor *borderColor;
///交通状态的颜色数组 \n 例如:{(AMapNaviRouteStatusSlow): [UIColor yellowColor],(AMapNaviRouteStatusSeriousJam): [UIColor colorWithRed:160/255.0 green:8/255.0 blue:8/255.0 alpha:1.0]},设置空字典恢复默认颜色,例如:{}
@property (nonatomic, copy) NSDictionary<NSNumber *, UIColor *> * _Nullable statusColors;
/**
* @brief 更新路况光柱 已废弃,请通过 AMapNaviDriveManager 的 -addDataRepresentative: 将 AMapNaviTrafficBarView 注册为数据接收者即可自动更新光柱信息无需再主动调用此方法since 6.2.0
* @param trafficStatuses 路况信息数组,可以通过 AMapNaviDriveManager 的getTrafficStatuses方法获取.
*/
- (void)updateTrafficBarWithTrafficStatuses:(nullable NSArray<AMapNaviTrafficStatus *> *)trafficStatuses __attribute__((deprecated("已废弃,请通过 AMapNaviDriveManager 的 -addDataRepresentative: 将 AMapNaviTrafficBarView 注册为数据接收者即可自动更新光柱信息无需再主动调用此方法可参考官方demo中的CustomUIViewController例子since 6.2.0")));
/**
* @brief 更新车图标的位置 已废弃,请通过 AMapNaviDriveManager 的 -addDataRepresentative: 将 AMapNaviTrafficBarView 注册为数据接收者即可自动更新光柱百分比无需再主动调用此方法since 6.2.0
* @param posPercent 位置百分比(范围:[0,1.0])
*/
- (void)updateTrafficBarWithCarPositionPercent:(double)posPercent __attribute__((deprecated("已废弃,请通过 AMapNaviDriveManager 的 -addDataRepresentative: 将 AMapNaviTrafficBarView 注册为数据接收者即可自动更新光柱百分比无需再主动调用此方法可参考官方demo中的CustomUIViewController例子since 6.2.0")));
@end

View File

@@ -12,7 +12,7 @@
#ifndef AMapNaviVersion_h
#define AMapNaviVersion_h
#define AMapNaviVersionNumber 90801
#define AMapNaviVersionNumber 10000600
#define AMapNaviFoundationVersionMinRequired 10802
#define AMapNavi3DMapVersionMinRequired 90000

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnnotation.h generated Executable file → Normal file
View File

View File

@@ -0,0 +1,18 @@
//
// MABaseEngineOverlay.h
// MAMapKit
//
// Created by linshiqing on 2024/1/23.
// Copyright © 2024 Amap. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface MABaseEngineOverlay : NSObject
/// 移除Overlay
- (void)removeOverlay;
@end
NS_ASSUME_NONNULL_END

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACircle.h generated Executable file → Normal file
View File

View File

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAConfig.h generated Executable file → Normal file
View File

View File

@@ -38,6 +38,9 @@ NS_ASSUME_NONNULL_BEGIN
///最大显示级别 default 20
@property (nonatomic, assign) CGFloat maxZoom;
///是否为glb格式 @since 9.7.0
@property (nonatomic, assign, getter=isGlbFormat) BOOL glbFormat;
/**
* @brief 根据中心点、模型文件data以及纹理图生成MAGltfOverlay
* @param coordinate 中心点的经纬度坐标,无效坐标按照{00}处理

View File

@@ -75,3 +75,6 @@
#import "MAHeatMapVectorGridOverlayRenderer.h"
#import "MAMVTTileOverlay.h"
#import "MAMVTTileOverlayRenderer.h"
#import "MABaseEngineOverlay.h"
#import "MARouteOverlay.h"
#import "MARouteOverlayModel.h"

View File

@@ -12,8 +12,8 @@
#ifndef MAMapVersion_h
#define MAMapVersion_h
#define MAMapVersionNumber 90602
#define MAMapMinRequiredFoundationVersion 10800
#define MAMapVersionNumber 10000600
#define MAMapMinRequiredFoundationVersion 10802
// 依赖库版本检测
#if AMapFoundationVersionNumber < MAMapMinRequiredFoundationVersion

View File

@@ -19,6 +19,7 @@
#import "MAUserLocationRepresentation.h"
#import "MAMapCustomStyleOptions.h"
#import <AMapFoundationKit/AMapServices.h>
#import "MABaseEngineOverlay.h"
///地图类型
typedef NS_ENUM(NSInteger, MAMapType)
@@ -46,6 +47,7 @@ typedef NS_ENUM(NSInteger, MATrafficStatus)
MATrafficStatusSlow, ///< 2 缓行
MATrafficStatusJam, ///< 3 阻塞
MATrafficStatusSeriousJam, ///< 4 严重阻塞
MATrafficStatusExtremelySmooth, ///< 5 极度通畅
};
///绘制overlay的层级
@@ -794,6 +796,15 @@ extern NSString * const kMAMapLayerCameraDegreeKey;
- (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
@end
@interface MAMapView (EngineOverlay)
/**
* @brief 向地图窗口添加Overlay。
* @param overlay 要添加的engine overlay
*/
- (void)addEngineOverlay:(MABaseEngineOverlay *)overlay;
@end
#pragma mark - MAMapViewDelegate
@protocol MAMapViewDelegate <NSObject>

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPoint.h generated Executable file → Normal file
View File

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOverlay.h generated Executable file → Normal file
View File

View File

View File

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolygon.h generated Executable file → Normal file
View File

View File

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolyline.h generated Executable file → Normal file
View File

View File

View File

@@ -0,0 +1,54 @@
//
// MARouteOverlay.h
// MAMapKit
//
// Created by linshiqing on 2024/1/18.
// Copyright © 2024 Amap. All rights reserved.
//
#import "MAConfig.h"
#if FEATURE_ROUTE_OVERLAY
#import "MABaseEngineOverlay.h"
#import "MARouteOverlayModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface MARouteOverlay : MABaseEngineOverlay
@property (nonatomic, assign, readonly) NSUInteger mapScene;
@property (nonatomic, copy, readonly) NSArray<MARouteOverlayParam *> *params;
@property (nonatomic, assign, readonly) BOOL select;
@property (nonatomic, strong, readonly) MAMapRouteOverlayData *data;
@property (nonatomic, copy, readonly) NSArray<NSNumber *> *passedColors;
- (instancetype)initWithMapSecne:(NSUInteger)mapScene params:(NSArray<MARouteOverlayParam *> *)params select:(BOOL)select data:(MAMapRouteOverlayData *)data passedColors:(NSArray<NSNumber *> *)passedColors;
- (void)setCar2DWithIndex:(uint32_t)index position:(float)postion;
- (void)setCar3DWithIndex:(uint32_t)index position:(float)postion;
- (void)addRouteName;
- (void)removeRouteName;
- (void)setLineWidthScale:(float)scale;
- (void)setLine2DWithLineWidth:(int32_t)lineWidth borderWidth:(int32_t)borderWidth;
- (void)setShowArrow:(BOOL)bShow;
- (void)setArrow3DTexture:(UIImage *)image;
- (void)setRouteItemParam:(MARouteOverlayParam *)routeParam;
- (void)setHighlightType:(MAMapRouteHighLightType)type;
- (void)setHighlightParam:(MARouteOverlayHighLightParam *)highlightParam;
- (void)setSelectStatus:(BOOL)status;
- (void)setShowNaviRouteNameCountMap:(NSDictionary<NSNumber *, NSNumber *>*)countMap;
- (void)setArrowFlow:(BOOL)bFlow;
@end
NS_ASSUME_NONNULL_END
#endif

View File

@@ -0,0 +1,161 @@
//
// MARouteOverlayModel.h
// MAMapKit
//
// Created by linshiqing on 2024/1/18.
// Copyright © 2024 Amap. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#if FEATURE_ROUTE_OVERLAY
NS_ASSUME_NONNULL_BEGIN
/**
* @brief 路线纹理枚举
*/
typedef NS_ENUM(NSInteger, MAMapRouteTexture) {
MAMapRouteTextureNonavi = 0, //!< 非导航道路,步行代表不绘制路段
MAMapRouteTextureNavi = 1, //!< 导航道路,骑步行代表高亮路段
MAMapRouteTextureDefault = 2, //!< 实时交通默认状态,步行代表置灰路段
MAMapRouteTextureOpen = 3, //!< 实时交通畅通状态
MAMapRouteTextureAmble = 4, //!< 实时交通缓行状态
MAMapRouteTextureJam = 5, //!< 实时交通拥堵状态
MAMapRouteTextureCongested = 6, //!< 实时交通极其拥堵状态
MAMapRouteTextureArrow = 7, //!< 路线上鱼骨箭头
MAMapRouteTextureCustom1 = 8, //!< 自定义路线纹理1, 与status值对应
MAMapRouteTextureCustom2 = 9, //!< 自定义路线纹理2, 与status值对应
MAMapRouteTextureCustom3 = 10, //!< 自定义路线纹理3, 与status值对应
MAMapRouteTextureCustom4 = 11, //!< 自定义路线纹理4, 与status值对应
MAMapRouteTextureCustom5 = 12, //!< 自定义路线纹理5, 与status值对应
MAMapRouteTextureCustom6 = 13, //!< 自定义路线纹理6, 与status值对应
MAMapRouteTextureRapider = 16, //!< 自定义路线纹理16,极其畅通
MAMapRouteTextureRestrain = 30, //!< 自定义路线纹理30, 导航抑制状态
MAMapRouteTextureCustomMax = 31, //!< 自定义路线纹理最大值, 与status值对应
MAMapRouteTextureCharge = 32, //!< 收费道路
MAMapRouteTextureFree = 33, //!< 免费道路
MAMapRouteTextureLimit = 34, //!< 限行道路
MAMapRouteTextureSlower = 35, //!< 通勤场景下更拥堵道路
MAMapRouteTextureFaster = 36, //!< 通勤场景下更畅通道路
MAMapRouteTextureWrong = 37, //!< 报错道路
MAMapRouteTextureFerry = 38, //!< 轮渡线
MAMapRouteTextureNumber, //!< 纹理个数
};
@interface MAPolylineCapTextureInfo : NSObject
@property (nonatomic, assign) float x1; //!< 纹理左上角X
@property (nonatomic, assign) float y1; //!< 纹理左上角Y
@property (nonatomic, assign) float x2; //!< 纹理右下角X
@property (nonatomic, assign) float y2; //!< 纹理右上角Y
@end
@interface MAPolylineTextureInfo : MAPolylineCapTextureInfo
@property (nonatomic, assign) float textureLen; //!< 纹理长度,仅在绘制虚线线型时设置
@end
typedef NS_ENUM(NSInteger, MAMapRouteLineWidthType) {
MAMapRouteLineWidthTypePixel = 0,
MAMapRouteLineWidthTypeMeter = 1,
};
@interface MARouteOverlayParam : NSObject
@property (nonatomic, assign) BOOL lineExtract; //!< 是否抽稀
@property (nonatomic, assign) BOOL useColor; //!< 是否使用颜色
@property (nonatomic, assign) BOOL usePoint; //!< 是否使用Point点
@property (nonatomic, assign) BOOL useCap; //!< 是否使用线帽
@property (nonatomic, assign) BOOL canBeCovered; //!< 能否被覆盖
@property (nonatomic, assign) BOOL showArrow; //!< 是否显示箭头 上层控制箭头是否显示
@property (nonatomic, assign) BOOL needColorGradient; //!< 是否需要渐变
@property (nonatomic, assign) BOOL clickable; //!< 是否可点击
@property (nonatomic, assign) int32_t lineWidth; //!< 线宽
@property (nonatomic, assign) int32_t borderLineWidth; //!< 边线宽
@property (nonatomic, strong) UIImage *fillMarkerImage; //!< 里线纹理id
@property (nonatomic, strong) UIImage *simple3DFillMarkerImage; //!< 简易三维下里线纹理
@property (nonatomic, strong) UIImage *borderMarkerImage; //!< 边线纹理id
@property (nonatomic, assign) uint32_t fillColor; //!< 填充颜色
@property (nonatomic, assign) uint32_t borderColor; //!< 边颜色
@property (nonatomic, assign) uint32_t selectFillColor; //!< 选中的填充颜色
@property (nonatomic, assign) uint32_t unSelectFillColor; //!< 未选中的填充颜色
@property (nonatomic, assign) uint32_t selectBorderColor; //!< 选中的边线颜色
@property (nonatomic, assign) uint32_t unSelectBorderColor;//!< 未选中的边线颜色
@property (nonatomic, assign) uint32_t pointDistance; //!< 两点间距离
@property (nonatomic, assign) uint32_t priority; //!< 设置item的优先级(只有usePoint为true有效)
@property (nonatomic, assign) MAMapRouteTexture routeTexture; //!< 路线纹理枚举 具体参考MapRouteTexture
@property (nonatomic, strong) MAPolylineTextureInfo *lineTextureInfo; //!< 纹理坐标参数
@property (nonatomic, strong) MAPolylineTextureInfo *lineSimple3DTextureInfo;//!< 简易三维下纹理坐标参数
@property (nonatomic, strong) MAPolylineCapTextureInfo *lineCapTextureInfo; //!< 线帽纹理参数
@property (nonatomic, assign) NSString *lineBorderQuery; //!< 边线纹理资源URL地址
@property (nonatomic, assign) NSString *lineFillQuery; //!< 中心线纹理资源URL地址
@property (nonatomic, assign) MAMapRouteLineWidthType lineWidthType; //!< 线宽类型
@end
typedef NS_ENUM(NSInteger, MAMapRouteHighLightType) {
MAMapRouteHighLightTypeNone = 0, //!< 无高亮效果
MAMapRouteHighLightTypeSegment //!< 有一段路高亮,其他路段非高亮显示
};
@interface MARouteOverlayHighLightParam : NSObject
@property (nonatomic, assign) uint32_t fillColorHightLight; //!< 高亮路段的填充颜色
@property (nonatomic, assign) uint32_t borderColorHightLight; //!< 高亮路段的边缘颜色
@property (nonatomic, assign) uint32_t fillColorNormal; //!< 非高亮路段的填充颜色
@property (nonatomic, assign) uint32_t borderColorNormal; //!< 非高亮路段的边缘颜色
@property (nonatomic, assign) uint32_t arrowColorNormal; //!< 非高亮路段的鱼骨线颜色,高亮路段使用纹理原来的颜色
@end
/**
* @brief 路线交通状态
*/
@interface MAMapRouteOverlayTrafficState : NSObject
@property (nonatomic, assign) uint32_t state; //!< 路线状态 4B
@property (nonatomic, assign) uint32_t point2DIndex; //!< 二维起始坐标点索引 4B
@property (nonatomic, assign) uint32_t point3DIndex; //!< 三维起始坐标点索引 4B
@property (nonatomic, assign) uint32_t point3DCount; //!< 三维坐标点个数 4B
@end
/**
* @brief 路线颜色
*/
@interface MAMapRouteOverlayColorIndex : NSObject
@property (nonatomic, assign) uint32_t nColor; //!< 路线颜色(ARGB)
@property (nonatomic, assign) uint32_t point2DIndex; //!< 二维起始坐标点索引 (如无二维坐标)
@property (nonatomic, assign) uint32_t point3DIndex; //!< 三维起始坐标点索引 4B
@property (nonatomic, assign) uint32_t point3DCount; //!< 三维坐标点个数 4B
@end
/**
* @brief 路线道路名称
*/
@interface MAMapRouteOverlayRoadName : NSObject
@property (nonatomic, copy) NSString *name; //!< 道路名称字符串, UTF8编码
@property (nonatomic, assign) uint32_t point2DIndex; //!< 道路对应的二维形点起始索引 4B
@property (nonatomic, assign) uint32_t point2DSize; //!< 道路对应的二维形点个数 4B
@property (nonatomic, assign) uint32_t point3DIndex; //!< 道路对应的三维形点起始索引 4B
@property (nonatomic, assign) uint32_t point3DSize; //!< 道路对应的三维形点个数 4B
@property (nonatomic, assign) uint32_t roadLength; //!< 道路长度 4B
@property (nonatomic, assign) uint32_t roadClass; //!< 道路等级 4B
@end
@interface MAMapPoint2I : NSObject
@property (nonatomic, assign) int32_t x;
@property (nonatomic, assign) int32_t y;
@end
@interface MAMapPoint3I : MAMapPoint2I
@property (nonatomic, assign) int32_t z;
@end
@interface MAMapRouteOverlayData : NSObject
@property (nonatomic, assign) uint32_t checkFlag;
@property (nonatomic, assign) uint32_t routeType;
@property (nonatomic, copy) NSArray<MAMapPoint2I *> *point2DArray;
@property (nonatomic, copy) NSArray<MAMapRouteOverlayTrafficState *> *trafficStateArray;
@property (nonatomic, copy) NSArray<MAMapRouteOverlayRoadName *> *roadNameArray;
@property (nonatomic, copy) NSArray<NSNumber *> *point2DFlagArray;
@property (nonatomic, copy) NSArray<MAMapPoint3I *> *point3DArray;
@property (nonatomic, copy) NSArray<NSNumber *> *point3DFlagArray;
@property (nonatomic, copy) NSArray<MAMapRouteOverlayColorIndex *> *colorIndexArray;
@end
NS_ASSUME_NONNULL_END
#endif

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAShape.h generated Executable file → Normal file
View File

0
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAUserLocation.h generated Executable file → Normal file
View File