initial
This commit is contained in:
124
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviBaseManager.h
generated
Normal file
124
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviBaseManager.h
generated
Normal file
@@ -0,0 +1,124 @@
|
||||
//
|
||||
// AMapNaviBaseManager.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by 刘博 on 16/1/12.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class CLLocation;
|
||||
@class AMapNaviInfo;
|
||||
@class AMapNaviRoute;
|
||||
@class AMapNaviLocation;
|
||||
@class AMapNaviStatisticsInfo;
|
||||
@class AMapNaviRouteGroup;
|
||||
|
||||
///注意:该类为导航控制器基类,请不要直接使用
|
||||
@interface AMapNaviBaseManager : NSObject
|
||||
|
||||
#pragma mark - Navi Mode
|
||||
|
||||
///当前导航模式,参考 AMapNaviMode .
|
||||
@property (nonatomic, readonly) AMapNaviMode naviMode;
|
||||
|
||||
#pragma mark - Options
|
||||
|
||||
///是否在导航过程中让屏幕常亮,默认YES.
|
||||
@property (nonatomic, assign) BOOL screenAlwaysBright;
|
||||
|
||||
///指定定位是否会被系统自动暂停。默认为YES。
|
||||
@property(nonatomic, assign) BOOL pausesLocationUpdatesAutomatically;
|
||||
|
||||
///是否允许后台定位.默认为NO(只在iOS 9.0及以后版本起作用).注意:设置为YES的时候必须保证 Background Modes 中的 Location updates 处于选中状态,否则会抛出异常.
|
||||
@property (nonatomic, assign) BOOL allowsBackgroundLocationUpdates;
|
||||
|
||||
#pragma mark - External Location
|
||||
|
||||
///是否采用外部传入定位信息.注意:默认NO.
|
||||
@property (nonatomic, assign) BOOL enableExternalLocation;
|
||||
|
||||
///外部传入定位信息(enableExternalLocation为YES时有效).该方法坐标需使用WGS84坐标系.
|
||||
@property (nonatomic, copy) CLLocation *externalLocation;
|
||||
|
||||
///是否使用内置播放器进行导航播报, 如果为YES,就是由导航SDK来播报导航信息. 默认为NO. since 5.5.0
|
||||
@property (nonatomic, assign) BOOL isUseInternalTTS;
|
||||
|
||||
/**
|
||||
* @brief 设置外部传入定位的信息
|
||||
* @param externalLocation 外部传入的定位信息
|
||||
* @param isAMapCoordinate 外部传入的坐标是否采用高德坐标,YES表示采用高德坐标(GCJ02),NO表示使用WGS84坐标.
|
||||
*/
|
||||
- (void)setExternalLocation:(CLLocation *)externalLocation isAMapCoordinate:(BOOL)isAMapCoordinate;
|
||||
|
||||
#pragma mark - 实时导航 & 模拟导航
|
||||
|
||||
/**
|
||||
* @brief 设置模拟导航的速度,默认60
|
||||
* @param speed 模拟导航的速度(范围:[10,120]; 单位:km/h)
|
||||
*/
|
||||
- (void)setEmulatorNaviSpeed:(int)speed;
|
||||
|
||||
/**
|
||||
* @brief 开始模拟导航. 注意:必须在路径规划成功的情况下,才能够开始模拟导航
|
||||
* @return 是否成功
|
||||
*/
|
||||
- (BOOL)startEmulatorNavi;
|
||||
|
||||
/**
|
||||
* @brief 开始实时导航. 注意:必须在路径规划成功的情况下,才能够开始实时导航
|
||||
* @return 是否成功
|
||||
*/
|
||||
- (BOOL)startGPSNavi;
|
||||
|
||||
/**
|
||||
* @brief 开始模拟导航. 注意:必须传入导航的路线组合routeGroup,才能够开始模拟导航. since 7.7.0
|
||||
* @param routeGroup 本次导航需要传入的路线组合
|
||||
* @return 是否成功
|
||||
*/
|
||||
- (BOOL)startEmulatorNavi:(AMapNaviRouteGroup *)routeGroup;
|
||||
|
||||
/**
|
||||
* @brief 开始实时导航. 注意:必须传入导航的路线组合routeGroup,才能够开始实时导航. since 7.7.0
|
||||
* @param routeGroup 本次导航需要传入的路线组合
|
||||
* @return 是否成功
|
||||
*/
|
||||
- (BOOL)startGPSNavi:(AMapNaviRouteGroup *)routeGroup;
|
||||
|
||||
/**
|
||||
* @brief 停止导航,包含实时导航和模拟导航
|
||||
*/
|
||||
- (void)stopNavi;
|
||||
|
||||
/**
|
||||
* @brief 暂停导航,包含实时导航和模拟导航
|
||||
*/
|
||||
- (void)pauseNavi;
|
||||
|
||||
/**
|
||||
* @brief 继续导航,包含实时导航和模拟导航
|
||||
*/
|
||||
- (void)resumeNavi;
|
||||
|
||||
#pragma mark - Manual
|
||||
|
||||
/**
|
||||
* @brief 实时导航中手动触发一次信息播报. 注意:该接口仅支持驾车和步行,骑行不支持此功能.
|
||||
* @return 是否成功
|
||||
*/
|
||||
- (BOOL)readNaviInfoManual;
|
||||
|
||||
|
||||
#pragma mark - Navi Guide
|
||||
|
||||
/**
|
||||
* @brief 获取导航路线的路线详情列表
|
||||
* @return 导航路线的路线详情列表,参考 AMapNaviGuide 类.
|
||||
*/
|
||||
- (nullable NSArray<AMapNaviGuide *> *)getNaviGuideList __attribute__((deprecated("已废弃,请使用 AMapNaviRoute 中的 guideGroups 替代 since 7.5.0")));
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
1193
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviCommonObj.h
generated
Normal file
1193
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviCommonObj.h
generated
Normal file
File diff suppressed because it is too large
Load Diff
49
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviCompositeAnnotation.h
generated
Normal file
49
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviCompositeAnnotation.h
generated
Normal file
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// AMapNaviCompositeAnnotation.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by eidan on 2018/3/26.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "AMapNaviHeaderHandler.h"
|
||||
|
||||
///导航页添加自定overlay,需要遵守此协议 since 6.7.0
|
||||
@protocol AMapNaviCompositeOverlay <MAOverlay>
|
||||
|
||||
@required
|
||||
|
||||
///导航SDK内部会将该值传给地图进行绘制, 开发者自行实现的对象在遵守协议后, 需对该值赋值, 不能为空.
|
||||
@property (nonatomic, strong, readonly) MAOverlayRenderer *overlayRender;
|
||||
|
||||
@optional
|
||||
|
||||
///添加的overlay所在层级, 参考MAOverlayLevel, 默认 MAOverlayLevelAboveRoads.
|
||||
@property (nonatomic, assign, readonly) MAOverlayLevel overlayLevel;
|
||||
|
||||
@end
|
||||
|
||||
///导航界面自定义标注 since 5.5.0
|
||||
@interface AMapNaviCompositeCustomAnnotation : NSObject <MAAnnotation>
|
||||
|
||||
///标注的中心坐标
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///z值,大值在上,默认为0. 类似CALayer的zPosition
|
||||
@property (nonatomic, assign) NSInteger zIndex;
|
||||
|
||||
///导航界面添加的自定义标注是否可以响应事件,默认为NO. since 7.5.0
|
||||
@property (nonatomic, assign) BOOL enable;
|
||||
|
||||
///导航界面添加的自定义标注的复用view的标识,注意:如果两个标注有不同的图标,这个复用标识必须设置,否则会出现复用混乱的现象. since 8.0.0
|
||||
@property (nonatomic, copy) NSString *identifier;
|
||||
/**
|
||||
* @brief 初始化导航界面自定义标注. since 5.5.0
|
||||
* @param coordinate 标注的中心坐标.
|
||||
* @param view 会被显示在驾车导航界面的地图上. 如需调整view的相对位置,请修改view.frame.origin
|
||||
* @return id 自定义标注对象
|
||||
*/
|
||||
- (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate view:(UIView *)view;
|
||||
|
||||
@end
|
||||
202
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviCompositeManager.h
generated
Normal file
202
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviCompositeManager.h
generated
Normal file
@@ -0,0 +1,202 @@
|
||||
//
|
||||
// AMapNaviManager.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by eidan on 2017/5/9.
|
||||
// Copyright © 2017年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
@class AMapNaviRoute;
|
||||
@class AMapNaviLocation;
|
||||
@class AMapNaviCompositeUserConfig;
|
||||
@class AMapNaviCompositeCustomAnnotation;
|
||||
@protocol AMapNaviCompositeOverlay;
|
||||
@protocol MAMapViewDelegate;
|
||||
|
||||
@protocol AMapNaviCompositeManagerDelegate;
|
||||
|
||||
///导航组件类 since 5.1.0 注意:AMapNaviCompositeManager 内部使用了单例 [AMapNaviDriveManager sharedInstance]
|
||||
@interface AMapNaviCompositeManager : NSObject
|
||||
|
||||
///实现了 AMapNaviCompositeManagerDelegate 协议的类指针
|
||||
@property (nonatomic, weak, nullable) id<AMapNaviCompositeManagerDelegate>delegate;
|
||||
|
||||
///当前选择的导航路径的ID
|
||||
@property (nonatomic, readonly) NSInteger naviRouteID;
|
||||
|
||||
///当前选择的导航路径的信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
|
||||
|
||||
///路径规划后的所有路径ID,路径ID为 NSInteger 类型.
|
||||
@property (nonatomic, readonly, nullable) NSArray<NSNumber *> *naviRouteIDs;
|
||||
|
||||
///路径规划后的所有路径信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) NSDictionary<NSNumber *, AMapNaviRoute *> *naviRoutes;
|
||||
|
||||
/**
|
||||
* @brief 通过present的方式显示导航组件页面 注意:此函数涉及到UI操作,请在主线程中调用,否则无效.
|
||||
* @param options 导航组件的配置类,参考 AMapNaviCompositeUserConfig .
|
||||
*/
|
||||
- (void)presentRoutePlanViewControllerWithOptions:(AMapNaviCompositeUserConfig *_Nullable)options;
|
||||
|
||||
/**
|
||||
* @brief 退出导航组件页面 注意:此函数涉及到UI操作,请在主线程中调用,否则无效. since 5.5.0
|
||||
* @param animated 是否执行动画
|
||||
*/
|
||||
- (void)dismissWithAnimated:(BOOL)animated;
|
||||
|
||||
/**
|
||||
* @brief 在驾车导航界面添加自定义标注. 注意:每次退出导航之后,标注都会被清空. since 5.5.0
|
||||
* @param annotation 会被显示在驾车导航界面地图上, 具体参考 AMapNaviCompositeCustomAnnotation .
|
||||
*/
|
||||
- (void)addAnnotation:(AMapNaviCompositeCustomAnnotation *_Nonnull)annotation;
|
||||
|
||||
/**
|
||||
* @brief 移除驾车导航界面的自定义标注. since 5.5.0
|
||||
* @param annotation 具体参考 AMapNaviCompositeCustomAnnotation .
|
||||
*/
|
||||
- (void)removeAnnotation:(AMapNaviCompositeCustomAnnotation *_Nonnull)annotation;
|
||||
|
||||
/**
|
||||
* @brief 在驾车导航界面添加自定义Overlay. 注意:每次退出导航之后,Overlay都会被清空. since 6.7.0
|
||||
* @param customOverlay 会被显示在驾车导航界面地图上, 此对象需遵守AMapNaviCompositeOverlay协议,否则无效, 具体参考官方Demo CustomOverlayCompositeViewController 类 .
|
||||
*/
|
||||
- (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)customOverlay;
|
||||
|
||||
/**
|
||||
* @brief 移除驾车导航界面的自定义Overlay. since 6.7.0
|
||||
* @param customOverlay 具体参考 AMapNaviCompositeOverlay .
|
||||
*/
|
||||
- (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)customOverlay;
|
||||
@end
|
||||
|
||||
///AMapNaviCompositeManagerDelegate 协议 since 5.1.0
|
||||
@protocol AMapNaviCompositeManagerDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 发生错误时,会调用此方法
|
||||
* @param compositeManager 导航组件类
|
||||
* @param error 错误信息
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager error:(NSError *_Nonnull)error;
|
||||
|
||||
/**
|
||||
* @brief 算路成功后的回调函数, 路径规划页面的算路、导航页面的重算等成功后均会调用此方法
|
||||
* @param compositeManager 导航组件类
|
||||
*/
|
||||
- (void)compositeManagerOnCalculateRouteSuccess:(AMapNaviCompositeManager *_Nonnull)compositeManager;
|
||||
|
||||
/**
|
||||
* @brief 算路成功后的回调函数. since 5.5.0
|
||||
* @param compositeManager 导航组件类
|
||||
* @param type 路径规划类型,参考 AMapNaviRoutePlanType .
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager onCalculateRouteSuccessWithType:(AMapNaviRoutePlanType)type;
|
||||
|
||||
/**
|
||||
* @brief 算路失败后的回调函数,路径规划页面的算路、导航页面的重算等失败后均会调用此方法
|
||||
* @param compositeManager 导航组件类
|
||||
* @param error 错误信息,error.code参考 AMapNaviCalcRouteState .
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager onCalculateRouteFailure:(NSError *_Nonnull)error;
|
||||
|
||||
/**
|
||||
* @brief 开始导航的回调函数
|
||||
* @param compositeManager 导航组件类
|
||||
* @param naviMode 导航类型,参考 AMapNaviMode .
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager didStartNavi:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief SDK需要实时的获取是否正在进行导航信息播报,以便SDK内部控制 "导航播报信息回调函数" 的触发时机,避免出现下一句话打断前一句话的情况. 如果需要自定义"导航语音播报"功能,必须实现此代理
|
||||
* @param compositeManager 导航组件类
|
||||
* @return 返回当前是否正在进行导航信息播报,如一直返回YES,"导航播报信息回调函数"就一直不会触发,如一直返回NO,就会出现语句打断情况,所以请根据实际情况返回。
|
||||
*/
|
||||
- (BOOL)compositeManagerIsNaviSoundPlaying:(AMapNaviCompositeManager *_Nonnull)compositeManager;
|
||||
|
||||
/**
|
||||
* @brief 导航播报信息回调函数,此回调函数需要和compositeManagerIsNaviSoundPlaying:配合使用. 如果需要自定义"导航语音播报"功能,必须实现此代理
|
||||
* @param compositeManager 导航组件类
|
||||
* @param soundString 播报文字
|
||||
* @param soundStringType 播报类型,参考 AMapNaviSoundType. 注意:since 6.0.0 AMapNaviSoundType 只返回 AMapNaviSoundTypeDefault
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager playNaviSoundString:(NSString *_Nullable)soundString soundStringType:(AMapNaviSoundType)soundStringType;
|
||||
|
||||
/**
|
||||
* @brief 停止导航语音播报的回调函数,当导航SDK需要停止外部语音播报时,会调用此方法. 如果需要自定义"导航语音播报"功能,必须实现此代理
|
||||
* @param compositeManager 导航组件类
|
||||
*/
|
||||
- (void)compositeManagerStopPlayNaviSound:(AMapNaviCompositeManager *_Nonnull)compositeManager;
|
||||
|
||||
/**
|
||||
* @brief 当前位置更新回调(无论是否在导航中,只要当前位置有更新就会回调)
|
||||
* @param compositeManager 导航组件类
|
||||
* @param naviLocation 当前位置信息,参考 AMapNaviLocation 类
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager updateNaviLocation:(AMapNaviLocation *_Nullable)naviLocation;
|
||||
|
||||
/**
|
||||
* @brief 驾车导航页面白天夜间模式切换回调 since 6.7.0
|
||||
* @param compositeManager 导航组件类
|
||||
* @param showStandardNightType 是否为夜间模式,YES 表示夜间模式,NO 表示白天模式
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager didChangeDayNightType:(BOOL)showStandardNightType;
|
||||
|
||||
/**
|
||||
* @brief 导航到达目的地后的回调函数
|
||||
* @param compositeManager 导航组件类
|
||||
* @param naviMode 导航类型,参考 AMapNaviMode .
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager didArrivedDestination:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 导航组件页面回退或者退出导航组件时会调用此函数 since 5.5.0
|
||||
* @param compositeManager 导航组件类
|
||||
* @param backwardActionType 导航组件页面回退的动作类型,参考 AMapNaviCompositeVCBackwardActionType .
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager didBackwardAction:(AMapNaviCompositeVCBackwardActionType)backwardActionType;
|
||||
|
||||
/**
|
||||
* @brief 每次进入导航组件时和驾车路径规划策略改变均会调用此方法 since 6.1.0
|
||||
* @param compositeManager 导航组件类
|
||||
* @param driveStrategy 驾车路径规划策略,参考 AMapNaviDrivingStrategy .
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager onDriveStrategyChanged:(AMapNaviDrivingStrategy)driveStrategy;
|
||||
|
||||
/**
|
||||
* @brief 导航到达某个途经点的回调函数 since 6.1.0
|
||||
* @param compositeManager 导航组件类
|
||||
* @param wayPointIndex 到达途径点的编号,标号从0开始. 注意:如果导航过程进行了路径重算(包含偏航、手动刷新等),wayPointIndex会重新从0开始计数
|
||||
*/
|
||||
- (void)compositeManager:(AMapNaviCompositeManager *_Nonnull)compositeManager onArrivedWayPoint:(int)wayPointIndex;
|
||||
|
||||
/**
|
||||
* @brief 导航界面地图的日夜模式设置改变的回调函数. since 7.1.0
|
||||
* @param type 参考 AMapNaviViewMapModeType .
|
||||
*/
|
||||
- (void)compositeManagerDidChangeMapViewModeType:(AMapNaviViewMapModeType)type;
|
||||
|
||||
/**
|
||||
* @brief 导航语音播报模式设置改变的回调函数. since 7.1.0
|
||||
* @param type 参考 AMapNaviCompositeBroadcastType .
|
||||
*/
|
||||
- (void)compositeManagerDidChangeBroadcastType:(AMapNaviCompositeBroadcastType)type;
|
||||
|
||||
/**
|
||||
* @brief 导航界面跟随模式设置改变的回调函数. since 7.1.0
|
||||
* @param mode 参考 AMapNaviViewTrackingMode .
|
||||
*/
|
||||
- (void)compositeManagerDidChangeTrackingMode:(AMapNaviViewTrackingMode)mode;
|
||||
|
||||
/**
|
||||
* @brief 比例尺智能缩放设置改变的回调函数. since 7.1.0
|
||||
* @param autoZoomMapLevel 锁车模式下是否为了预见下一导航动作自动缩放地图
|
||||
*/
|
||||
- (void)compositeManagerDidChangeAutoZoomMapLevel:(BOOL)autoZoomMapLevel;
|
||||
|
||||
@end
|
||||
|
||||
182
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviCompositeUserConfig.h
generated
Normal file
182
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviCompositeUserConfig.h
generated
Normal file
@@ -0,0 +1,182 @@
|
||||
//
|
||||
// AMapNaviCompositeUserConfig.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by eidan on 2017/6/23.
|
||||
// Copyright © 2017年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
///导航组件的配置类 since 5.2.0
|
||||
@interface AMapNaviCompositeUserConfig : NSObject
|
||||
|
||||
/**
|
||||
* @brief 设置起点、终点、途径点(最多支持三个途径点)来调起路线规划页面,自动完成算路. 如果不设置起点,默认使用的是“我的位置”.
|
||||
* @param type POI点的起终点类型,参考 AMapNaviRoutePlanPOIType .
|
||||
* @param locationPoint POI点的经纬度坐标,必填. SDK会使用该坐标点进行路径规划,参考 AMapNaviPoint .
|
||||
* @param name POI点的名字,选填. SDK会将该名字显示在搜索栏内. 如果不传将使用默认值,如“终点”、“途径点1”.
|
||||
* @param mid POI点的高德唯一标识ID,选填. 如果传入,SDK将会优先使用此ID对应的POI点的经纬度坐标、名字等信息进行算路和展示.
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setRoutePlanPOIType:(AMapNaviRoutePlanPOIType)type location:(AMapNaviPoint *_Nonnull)locationPoint name:(NSString *_Nullable)name POIId:(NSString *_Nullable)mid;
|
||||
|
||||
/**
|
||||
* @brief 设置导航组件启动时,直接进入导航界面(跳过路径规划页面)进行算路并自动开始导航. since 5.3.0
|
||||
* @param directly 是否直接进入导航界面, 默认值为NO. 注意:如果为YES,为了保证算路成功,还需设置有效的终点,否则会报错
|
||||
*/
|
||||
- (void)setStartNaviDirectly:(BOOL)directly;
|
||||
|
||||
/**
|
||||
* @brief 设置导航组件的主题皮肤类型. since 5.4.0
|
||||
* @param themeType 主题皮肤类型,默认为 AMapNaviCompositeThemeTypeDefault(蓝色),参考 AMapNaviCompositeThemeType .
|
||||
*/
|
||||
- (void)setThemeType:(AMapNaviCompositeThemeType)themeType;
|
||||
|
||||
/**
|
||||
* @brief 设置导航组件启动时,是否需要进行路径规划. 此设置只有在setStartNaviDirectly为YES时,才起作用. since 5.4.0
|
||||
* @param need 是否需要进行路径规划,默认为YES. 如果为NO,导航组件启动时将不再进行算路,直接使用 AMapNaviDriveManager 单例已经规划好的路径进行导航
|
||||
*/
|
||||
- (void)setNeedCalculateRouteWhenPresent:(BOOL)need;
|
||||
|
||||
/**
|
||||
* @brief 设置导航界面顶部信息是否展示随后转向图标. since 6.9.0
|
||||
* @param showNextRoadInfo 是否展示随后转向图标,默认为NO,不展示.
|
||||
*/
|
||||
- (void)setShowNextRoadInfo:(BOOL)showNextRoadInfo;
|
||||
|
||||
/**
|
||||
* @brief 设置导航组件界面dismiss时,是否调用 [AMapNaviDriveManager destroyInstance] 来尝试销毁 AMapNaviDriveManager 的单例. since 5.4.0
|
||||
* @param need 是否尝试销毁 AMapNaviDriveManager 的单例,默认为YES.
|
||||
*/
|
||||
- (void)setNeedDestoryDriveManagerInstanceWhenDismiss:(BOOL)need;
|
||||
|
||||
/**
|
||||
* @brief 设置当退出实时导航时,是否弹出“确认退出导航”的AlertView. since 5.5.0
|
||||
* @param need 是否弹出“确认退出导航”的AlertView,默认为YES.
|
||||
*/
|
||||
- (void)setNeedShowConfirmViewWhenStopGPSNavi:(BOOL)need;
|
||||
|
||||
/**
|
||||
* @brief 设置车辆信息. since 6.0.0
|
||||
* @param vehicleInfo 车辆信息,参考 AMapNaviVehicleInfo.
|
||||
*/
|
||||
- (void)setVehicleInfo:(nonnull AMapNaviVehicleInfo *)vehicleInfo;
|
||||
|
||||
/**
|
||||
* @brief 设置驾车导航界面自定义View,该View将显示在界面的底部区域,容器View的宽度为屏幕宽度减去133,高度为46. since 6.1.0
|
||||
* @param customView 将被显示在底部区域的自定义view
|
||||
*/
|
||||
- (void)addCustomViewToNaviDriveView:(UIView *_Nonnull)customView;
|
||||
|
||||
/**
|
||||
* @brief 设置驾车导航界面左侧自定义View,该View宽度为63,高度为53,将显示在界面的左侧靠边垂直中心区域. since 6.9.0
|
||||
* @param customView 将被显示的自定义view
|
||||
*/
|
||||
- (void)addLeftCustomViewToNaviDriveView:(UIView *_Nonnull)customView;
|
||||
|
||||
/**
|
||||
* @brief 设置驾车导航界面自定义View,该View将显示在界面的底部区域之下,容器View的宽度为屏幕宽度,高度最高为200. 注意: 设置了自定义View,导航界面将自动设置为不支持横屏 since 6.1.0
|
||||
* @param customBottomView 将被显示在底部区域之下的自定义view
|
||||
* @return 是否设置成功(高度超过200将会返回NO)
|
||||
*/
|
||||
- (BOOL)addCustomBottomViewToNaviDriveView:(UIView *_Nonnull)customBottomView;
|
||||
|
||||
/**
|
||||
* @brief 设置驾车路径规划策略. 注意:如设置,将清空用户之前选择的值。如不设置,则取用户之前选择的值,如用户之前无选择过,则取 AMapNaviDrivingStrategyMultipleDefault . since 6.1.0
|
||||
* @param driveStrategy 参考 AMapNaviDrivingStrategy .
|
||||
*/
|
||||
- (void)setDriveStrategy:(AMapNaviDrivingStrategy)driveStrategy;
|
||||
|
||||
/**
|
||||
* @brief 设置驾车导航时是否显示路口放大图. since 6.1.0
|
||||
* @param need 是否显示路口放大图,默认为YES.
|
||||
*/
|
||||
- (void)setShowCrossImage:(BOOL)need;
|
||||
|
||||
/**
|
||||
* @brief 设置路径规划偏好策略页面是否显示. since 6.1.0
|
||||
* @param need 是否显示,默认为YES.
|
||||
*/
|
||||
- (void)setShowDrivingStrategyPreferenceView:(BOOL)need;
|
||||
|
||||
/**
|
||||
* @brief 设置驾车导航界面到达目的地后是否移除路线和牵引线. since 5.5.0
|
||||
* @param need 是否移除,默认为NO.
|
||||
*/
|
||||
- (void)setRemovePolylineAndVectorlineWhenArrivedDestination:(BOOL)need;
|
||||
|
||||
/**
|
||||
* @brief 设置多路线导航模式(实时导航中拥有若干条备选路线供用户选择,默认模式), 或单路线导航模式. 注意: 1、设置的导航模式会在下一次主动路径规划时生效. 2、多路线导航模式还需同时满足以下4个条件才能够生效:a.路径规划时 AMapNaviDrivingStrategy 需选用多路径策略; b.起终点的直线距离需<=80KM; c.不能有途径点; d.车辆不能是货车类型. since 6.3.0
|
||||
* @param multipleRouteNaviMode YES:多路线导航模式, NO:单路线导航模式. 默认为YES.
|
||||
*/
|
||||
- (void)setMultipleRouteNaviMode:(BOOL)multipleRouteNaviMode;
|
||||
|
||||
/**
|
||||
* @brief 设置货车多路线导航模式(导航中拥有若干条备选路线供用户选择),或单路线导航模式(默认模式)。注意:此方法仅限于在开始导航前调用有效,以下情况不会出现多备选路线:模拟导航、路线存在途经点、路线长度超过80KM。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。since 9.3.5
|
||||
* @param multipleRouteNaviMode YES:多路线导航模式, NO:单路线导航模式. 默认为NO.
|
||||
*/
|
||||
- (void)setTruckMultipleRouteNaviMode:(BOOL)multipleRouteNaviMode;
|
||||
|
||||
/**
|
||||
* @brief 设置多路线导航模式下地图是否显示备选路线. since 6.7.0
|
||||
* @param need 是否显示,默认为YES.
|
||||
*/
|
||||
- (void)setShowBackupRoute:(BOOL)need;
|
||||
|
||||
/**
|
||||
* @brief 设置网约车模式. since 6.4.0
|
||||
* @param type 参考 AMapNaviOnlineCarHailingType. 默认为 AMapNaviOnlineCarHailingTypeNone (非网约车模式, 即正常模式)
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setOnlineCarHailingType:(AMapNaviOnlineCarHailingType)type;
|
||||
|
||||
/**
|
||||
* @brief 设置地图是否展示实时路况. since 6.6.0
|
||||
* @param need 是否显示,默认为YES.
|
||||
*/
|
||||
- (void)setMapShowTraffic:(BOOL)need;
|
||||
|
||||
/**
|
||||
* @brief 设置导航界面地图的日夜模式. since 7.1.0
|
||||
* @param type 参考 AMapNaviViewMapModeType . 默认为 AMapNaviViewMapModeTypeDayNightAuto(自动切换模式)
|
||||
*/
|
||||
- (void)setMapViewModeType:(AMapNaviViewMapModeType)type;
|
||||
|
||||
/**
|
||||
* @brief 设置导航语音播报模式. since 7.1.0
|
||||
* @param type 参考 AMapNaviCompositeBroadcastType . 默认为 AMapNaviCompositeBroadcastDetailed(详细播报模式)
|
||||
*/
|
||||
- (void)setBroadcastType:(AMapNaviCompositeBroadcastType)type;
|
||||
|
||||
/**
|
||||
* @brief 设置导航界面跟随模式. since 7.1.0
|
||||
* @param mode 参考 AMapNaviViewTrackingMode . 默认为 AMapNaviViewTrackingModeCarNorth(车头朝上)
|
||||
*/
|
||||
- (void)setTrackingMode:(AMapNaviViewTrackingMode)mode;
|
||||
|
||||
/**
|
||||
* @brief 设置比例尺智能缩放. since 7.1.0
|
||||
* @param autoZoomMapLevel 锁车模式下是否为了预见下一导航动作自动缩放地图. 默认为YES
|
||||
*/
|
||||
- (void)setAutoZoomMapLevel:(BOOL)autoZoomMapLevel;
|
||||
|
||||
/**
|
||||
* @brief 设置一个 ViewController,SDK内部会使用该 ViewController 来 present 导航组件. since 7.2.0
|
||||
* @param presenterViewController SDK会使用该对象来 present 导航组件
|
||||
*/
|
||||
- (void)setPresenterViewController:(UIViewController *_Nonnull)presenterViewController;
|
||||
|
||||
/**
|
||||
* @brief 设置导航组件规划页面是否展示限行图层 注意:当前接口为付费接口,使用当前接口需要 官网联系https://lbs.amap.com/ 商务 since 9.0.1
|
||||
* @param showRestrictareaEnable 组件是否显示限行图层,默认为NO.
|
||||
*/
|
||||
- (void)setShowRestrictareaEnable:(BOOL)showRestrictareaEnable;
|
||||
|
||||
/**
|
||||
* @brief 设置导航组件导航页面驾车模式下是否显示鹰眼地图,显示鹰眼小地图的时候:光柱图和全览按钮隐藏 注意:摩托车模式下设置不生效 since 9.0.2
|
||||
* @param showEagleMap 组件是否显示鹰眼地图,默认为NO.
|
||||
*/
|
||||
- (void)setShowEagleMap:(BOOL)showEagleMap;
|
||||
@end
|
||||
196
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviDriveDataRepresentable.h
generated
Normal file
196
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviDriveDataRepresentable.h
generated
Normal file
@@ -0,0 +1,196 @@
|
||||
//
|
||||
// AMapNaviDriveDataRepresentable.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by 刘博 on 16/1/13.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class AMapNaviInfo;
|
||||
@class AMapNaviRoute;
|
||||
@class AMapNaviLocation;
|
||||
@class AMapNaviStatisticsInfo;
|
||||
@class AMapNaviDriveManager;
|
||||
|
||||
/**
|
||||
* @brief AMapNaviDriveDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviDriveManager 的addDataRepresentative:方法进行注册,便可获取导航过程中的导航数据更新.
|
||||
* 可以根据不同需求,选取使用特定的数据进行导航界面自定义.
|
||||
* AMapNaviDriveView 即通过该协议实现导航过程展示.也可以依据导航数据的更新进行其他的逻辑处理.
|
||||
*/
|
||||
@protocol AMapNaviDriveDataRepresentable <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 导航模式更新回调. 从5.3.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviDriveManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态.
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param naviMode 导航模式,参考 AMapNaviMode 值
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateNaviMode:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 路径ID更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param naviRouteID 导航路径ID
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateNaviRouteID:(NSInteger)naviRouteID;
|
||||
|
||||
/**
|
||||
* @brief 路径信息更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param naviRoute 路径信息,参考 AMapNaviRoute 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateNaviRoute:(nullable AMapNaviRoute *)naviRoute;
|
||||
|
||||
/**
|
||||
* @brief 导航信息更新回调
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param naviInfo 导航信息,参考 AMapNaviInfo 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateNaviInfo:(nullable AMapNaviInfo *)naviInfo;
|
||||
|
||||
/**
|
||||
* @brief 自车位置更新回调 (since 5.0.0,模拟导航和实时导航的自车位置更新都会走此回调)
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param naviLocation 自车位置信息,参考 AMapNaviLocation 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateNaviLocation:(nullable AMapNaviLocation *)naviLocation;
|
||||
|
||||
/**
|
||||
* @brief 需要显示路口放大图时的回调
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param crossImage 路口放大图Image(宽:高 = 25:16)
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager showCrossImage:(UIImage *)crossImage;
|
||||
|
||||
/**
|
||||
* @brief 需要隐藏路口放大图时的回调
|
||||
* @param driveManager 驾车导航管理类
|
||||
*/
|
||||
- (void)driveManagerHideCrossImage:(AMapNaviDriveManager *)driveManager;
|
||||
|
||||
/**
|
||||
* @brief 需要显示车道信息时的回调.可通过 UIImage *CreateLaneInfoImageWithLaneInfo(NSString *laneBackInfo, NSString *laneSelectInfo); 方法创建车道信息图片
|
||||
* 0-直行; 1-左转; 2-直行和左转; 3-右转;
|
||||
* 4-直行和右转; 5-左转掉头; 6-左转和右转; 7-直行和左转和右转;
|
||||
* 8-右转掉头; 9-直行和左转掉头; 10-直行和右转掉头; 11-左转和左转掉头;
|
||||
* 12-右转和右转掉头; 13-直行左侧道路变宽; 14-左转和左转掉头左侧变宽; 16-直行和左转和左掉头;
|
||||
* 17-右转和左掉头; 18-左转和左掉头和右转; 19-直行和右转和左掉头; 20-左转和右掉头; 21-公交车道; 23-可变车道;
|
||||
* 255-只会出现在laneSelectInfo,表示目前规划的路径,不可以走这个车道
|
||||
*
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param laneBackInfo 车道背景信息,例如:@"1|0|0|4",表示当前道路有4个车道,分别为"左转|直行|直行|右转+直行"
|
||||
* @param laneSelectInfo 车道前景信息,其个数一定和车道背景信息一样,例如:@"255|0|0|0",表示选择了当前道路的第2、3、4三个直行车道。
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager showLaneBackInfo:(NSString *)laneBackInfo laneSelectInfo:(NSString *)laneSelectInfo;
|
||||
|
||||
/**
|
||||
* @brief 需要隐藏车道信息时的回调
|
||||
* @param driveManager 驾车导航管理类
|
||||
*/
|
||||
- (void)driveManagerHideLaneInfo:(AMapNaviDriveManager *)driveManager;
|
||||
|
||||
/**
|
||||
* @brief 路况光柱信息更新回调
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param trafficStatus 路况光柱信息数组,参考 AMapNaviTrafficStatus 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateTrafficStatus:(nullable NSArray<AMapNaviTrafficStatus *> *)trafficStatus;
|
||||
|
||||
/**
|
||||
* @brief 电子眼信息更新回调 since 5.0.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param cameraInfos 电子眼信息,参考 AMapNaviCameraInfo 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateCameraInfos:(nullable NSArray<AMapNaviCameraInfo *> *)cameraInfos;
|
||||
|
||||
/**
|
||||
* @brief 服务区和收费站信息更新回调 since 5.0.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param serviceAreaInfos 服务区信息,参考 AMapNaviServiceAreaInfo 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateServiceAreaInfos:(nullable NSArray<AMapNaviServiceAreaInfo *> *)serviceAreaInfos;
|
||||
|
||||
/**
|
||||
* @brief 通知当前是否可以进行平行道路切换,包括主路、辅路以及高架桥上、高架桥下. since 5.3.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param parallelRoadStatus 平行道路信息,参考 AMapNaviParallelRoadStatus 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateParallelRoadStatus:(nullable AMapNaviParallelRoadStatus *)parallelRoadStatus;
|
||||
|
||||
/**
|
||||
* @brief 区间电子眼信息更新回调 since 6.0.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param state 自车位置和区间测速电子眼路段的位置关系,参考 AMapNaviIntervalCameraPositionState 类
|
||||
* @param startInfo 电子眼信息,参考 AMapNaviCameraInfo 类
|
||||
* @param endInfo 电子眼信息,参考 AMapNaviCameraInfo 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateIntervalCameraWithPositionState:(AMapNaviIntervalCameraPositionState)state startInfo:(nullable AMapNaviCameraInfo *)startInfo endInfo:(nullable AMapNaviCameraInfo *)endInfo;
|
||||
|
||||
/**
|
||||
* @brief 导航中的转向图标更新回调 since 6.2.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param turnIconImage 导航段转向图标, 默认大小为(255,255)
|
||||
* @param turnIconType 导航段转向图标类型,参考 AMapNaviIconType 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateTurnIconImage:(nullable UIImage *)turnIconImage turnIconType:(AMapNaviIconType)turnIconType;
|
||||
|
||||
/**
|
||||
* @brief 导航中相对于当前转向图标,下一个转向图标更新回调 since 6.9.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param turnIconImage 导航段下一个路口转向图标, 默认大小为(255,255)
|
||||
* @param turnIconType 导航段下一个转向图标类型,参考 AMapNaviIconType 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateNextTurnIconImage:(nullable UIImage *)turnIconImage nextTurnIconType:(AMapNaviIconType)turnIconType;
|
||||
|
||||
/**
|
||||
* @brief 多路线导航模式下的备选路线更新回调, 注意:此函数只有在 driveManager 设置了多路线导航模式才会回调. since 6.3.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param backupRoutes 备选路线信息数组, 参考 AMapNaviRoute 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateBackupRoute:(nullable NSArray<AMapNaviRoute *> *)backupRoutes;
|
||||
|
||||
/**
|
||||
* @brief 前方拥堵区域信息的更新回调. since 7.5.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param congestionInfo 拥堵区域信息, 参考 AMapNaviCongestionInfo 类,如果已通过该拥堵区域或者其不再拥堵时,congestionInfo会返回nil
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateCongestionInfo:(nullable AMapNaviCongestionInfo *)congestionInfo;
|
||||
|
||||
#pragma mark - 智能巡航
|
||||
|
||||
/**
|
||||
* @brief 巡航道路设施信息更新回调.该更新回调只有在detectedMode开启后有效
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param trafficFacilities 道路设施信息数组,参考 AMapNaviTrafficFacilityInfo 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateTrafficFacilities:(nullable NSArray<AMapNaviTrafficFacilityInfo *> *)trafficFacilities;
|
||||
|
||||
/**
|
||||
* @brief 巡航时自车前方电子眼信息.该更新回调只有在detectedMode开启后有效 since 6.7.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param cameraInfos 电子眼信息数组,参考 AMapNaviTrafficFacilityInfo 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateCruiseElecCameraInfos:(NSArray<AMapNaviTrafficFacilityInfo *> *)cameraInfos;
|
||||
|
||||
/**
|
||||
* @brief 巡航信息更新回调.该更新回调只有在detectedMode开启后有效
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param cruiseInfo 巡航信息,参考 AMapNaviCruiseInfo 类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateCruiseInfo:(nullable AMapNaviCruiseInfo *)cruiseInfo;
|
||||
|
||||
/**
|
||||
* @brief 巡航状态下的拥堵区域信息. 该更新回调只有在detectedMode开启后有效 since 6.7.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param congestionInfo 巡航拥堵信息, 参考 AMapNaviCruiseCongestionInfo 类, 当前方无拥堵信息时, congestionInfo 的值为 nil .
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateCruiseCongestionInfo:(AMapNaviCruiseCongestionInfo *)congestionInfo;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
478
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviDriveManager.h
generated
Normal file
478
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviDriveManager.h
generated
Normal file
@@ -0,0 +1,478 @@
|
||||
//
|
||||
// AMapNaviDriveManager.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by 刘博 on 16/1/12.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviBaseManager.h"
|
||||
#import "AMapNaviDriveDataRepresentable.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol AMapNaviDriveManagerDelegate;
|
||||
|
||||
#pragma mark - AMapNaviDriveManager
|
||||
|
||||
///驾车导航管理类
|
||||
@interface AMapNaviDriveManager : AMapNaviBaseManager
|
||||
|
||||
#pragma mark - Singleton
|
||||
|
||||
/**
|
||||
* @brief AMapNaviDriveManager单例. since 5.4.0
|
||||
* @return AMapNaviDriveManager实例
|
||||
*/
|
||||
+ (AMapNaviDriveManager *)sharedInstance;
|
||||
|
||||
/**
|
||||
* @brief 销毁AMapNaviDriveManager单例. AMapNaviDriveManager内存开销比较大,建议不使用时可销毁. since 5.4.0
|
||||
* @return 是否销毁成功. 如果返回NO,请检查单例是否被强引用
|
||||
*/
|
||||
+ (BOOL)destroyInstance;
|
||||
|
||||
/**
|
||||
* @brief 请使用单例替代. since 5.4.0 init已被禁止使用,请使用单例 [AMapNaviDriveManager sharedInstance] 替代,且在调用类的 dealloc 函数或其他适当时机(如导航ViewController被pop时),调用 [AMapNaviDriveManager destroyInstance] 来销毁单例(需要注意如未销毁成功,请检查单例是否被强引用)
|
||||
*/
|
||||
- (instancetype)init __attribute__((unavailable("since 5.4.0 init 已被禁止使用,请使用单例 [AMapNaviDriveManager sharedInstance] 替代,且在调用类的 dealloc 函数里或其他适当时机(如导航ViewController被pop时),调用 [AMapNaviDriveManager destroyInstance] 来销毁单例(需要注意如未销毁成功,请检查单例是否被强引用)")));
|
||||
|
||||
#pragma mark - Delegate
|
||||
|
||||
///实现了 AMapNaviDriveManagerDelegate 协议的类指针
|
||||
@property (nonatomic, weak) id<AMapNaviDriveManagerDelegate> delegate;
|
||||
|
||||
#pragma mark - Event Listener
|
||||
|
||||
/**
|
||||
* @brief 增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference). since 5.4.0
|
||||
* @param aListener 实现了 AMapNaviDriveManagerDelegate 协议的实例
|
||||
*/
|
||||
- (void)addEventListener:(id<AMapNaviDriveManagerDelegate>)aListener;
|
||||
|
||||
/**
|
||||
* @brief 移除用于接收导航回调事件的Listener. since 5.4.0
|
||||
* @param aListener 实现了 AMapNaviDriveManagerDelegate 协议的实例
|
||||
*/
|
||||
- (void)removeEventListener:(id<AMapNaviDriveManagerDelegate>)aListener;
|
||||
|
||||
#pragma mark - Data Representative
|
||||
|
||||
/**
|
||||
* @brief 增加用于展示导航数据的DataRepresentative.注意:该方法不会增加实例对象的引用计数(Weak Reference)
|
||||
* @param aRepresentative 实现了 AMapNaviDriveDataRepresentable 协议的实例
|
||||
*/
|
||||
- (void)addDataRepresentative:(id<AMapNaviDriveDataRepresentable>)aRepresentative;
|
||||
|
||||
/**
|
||||
* @brief 移除用于展示导航数据的DataRepresentative
|
||||
* @param aRepresentative 实现了 AMapNaviDriveDataRepresentable 协议的实例
|
||||
*/
|
||||
- (void)removeDataRepresentative:(id<AMapNaviDriveDataRepresentable>)aRepresentative;
|
||||
|
||||
#pragma mark - Navi Route
|
||||
|
||||
///当前导航路径的ID
|
||||
@property (nonatomic, readonly) NSInteger naviRouteID;
|
||||
|
||||
///当前导航路径的信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
|
||||
|
||||
///多路径规划时的所有路径ID,路径ID为 NSInteger 类型.
|
||||
@property (nonatomic, readonly, nullable) NSArray<NSNumber *> *naviRouteIDs;
|
||||
|
||||
///多路径规划时的所有路径信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) NSDictionary<NSNumber *, AMapNaviRoute *> *naviRoutes;
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时选择路径.注意:该方法仅限于在开始导航前使用,开始导航后该方法无效.
|
||||
* @param routeID 路径ID
|
||||
* @return 是否选择路径成功
|
||||
*/
|
||||
- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
|
||||
|
||||
/**
|
||||
* @brief 切换平行道路, 包括主辅路切换、高架上下切换. 该方法需要配合 AMapNaviDriveDataRepresentable 的 driveManager:updateParallelRoadStatus: 回调使用. since 5.3.0
|
||||
* @param parallelRoadInfo 平行路切换信息,参考 AMapNaviParallelRoadInfo.
|
||||
*/
|
||||
- (void)switchParallelRoad:(AMapNaviParallelRoadInfo *)parallelRoadInfo;
|
||||
|
||||
/**
|
||||
* @brief 设置多路线导航模式(实时导航中拥有若干条备选路线供用户选择), 或单路线导航模式(默认模式). 注意: 1、设置的导航模式会在下一次主动路径规划时生效, 建议在 AMapNaviDriveManager 单例初始化时就进行设置. 2、多路线导航模式还需同时满足以下4个条件才能够生效:a.路径规划时 AMapNaviDrivingStrategy 需选用多路径策略; b.起终点的直线距离需<=80KM; c.不能有途径点; d.车辆不能是货车类型. since 6.3.0
|
||||
* @param multipleRouteNaviMode YES:多路线导航模式, NO:单路线导航模式(默认)
|
||||
*/
|
||||
- (void)setMultipleRouteNaviMode:(BOOL)multipleRouteNaviMode;
|
||||
|
||||
/**
|
||||
* @brief 设置货车多路线导航模式(导航中拥有若干条备选路线供用户选择), 或单路线导航模式(默认模式)。建议在 AMapNaviDriveManager 单例初始化时就进行设置。注意:此方法仅限于在开始导航前调用有效,以下情况不会出现多备选路线:模拟导航、路线存在途经点、路线长度超过80KM。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。since 9.3.5
|
||||
* @param multipleRouteNaviMode YES:多路线导航模式, NO:单路线导航模式. 默认为NO.
|
||||
*/
|
||||
- (void)setTruckMultipleRouteNaviMode:(BOOL)multipleRouteNaviMode;
|
||||
|
||||
#pragma mark - Options
|
||||
|
||||
///导航中是否播报摄像头信息,默认YES.
|
||||
@property (nonatomic, assign) BOOL updateCameraInfo;
|
||||
|
||||
///导航中是否播报交通信息,默认YES(需要联网).
|
||||
@property (nonatomic, assign) BOOL updateTrafficInfo;
|
||||
|
||||
///巡航模式,默认为 AMapNaviDetectedModeNone. 注意:1. 如果已经处在导航模式,要开启巡航模式时,需要先调用 stopNavi 来停止导航,再设置 detectedMode 才能生效 2.如果已经处于巡航模式,要开启导航前,需要先调用setDetectedMode(AMapNaviDetectedModeNone) 来关闭巡航,再开启导航
|
||||
@property (nonatomic, assign) AMapNaviDetectedMode detectedMode;
|
||||
|
||||
///卫星定位信号强度类型, 参考 AMapNaviGPSSignalStrength since 7.8.0 只在导航中获取卫星定位信号强弱的值才有效
|
||||
@property (nonatomic, assign, readonly) AMapNaviGPSSignalStrength gpsSignalStrength;
|
||||
|
||||
///默认为10, 范围为[ 5, 15 ], 单位秒. 表示有连续的10s, 定位信号质量都比较差, 就会触发手机卫星定位信号弱的回调. 值越小, 就越容易触发. since 6.6.0
|
||||
@property (nonatomic, assign) NSUInteger gpsWeakDetecedInterval __attribute__((deprecated("已废弃,since 7.8.0")));
|
||||
|
||||
#pragma mark - Calculate Route
|
||||
|
||||
// 以下算路方法需要高德坐标(GCJ02)
|
||||
|
||||
/**
|
||||
* @brief 不带起点的驾车路径规划
|
||||
* @param endPoints 终点坐标.终点列表的尾点为实时导航终点.
|
||||
* @param wayPoints 途经点坐标,最多支持16个途经点. 超过16个会取前16个.
|
||||
* @param strategy 路径的计算策略,建议使用 AMapNaviDrivingStrategyMultipleDefault,与[高德地图]默认策略一致 (避让拥堵+速度优先+避免收费)
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateDriveRouteWithEndPoints:(NSArray<AMapNaviPoint *> *)endPoints
|
||||
wayPoints:(nullable NSArray<AMapNaviPoint *> *)wayPoints
|
||||
drivingStrategy:(AMapNaviDrivingStrategy)strategy;
|
||||
|
||||
/**
|
||||
* @brief 带起点的驾车路径规划
|
||||
* @param startPoints 起点坐标.起点列表的尾点为实时导航起点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧.
|
||||
* @param endPoints 终点坐标.终点列表的尾点为实时导航终点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧.
|
||||
* @param wayPoints 途经点坐标,最多支持16个途经点. 超过16个会取前16个
|
||||
* @param strategy 路径的计算策略,建议使用 AMapNaviDrivingStrategyMultipleDefault,与[高德地图]默认策略一致 (避让拥堵+速度优先+避免收费)
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateDriveRouteWithStartPoints:(NSArray<AMapNaviPoint *> *)startPoints
|
||||
endPoints:(NSArray<AMapNaviPoint *> *)endPoints
|
||||
wayPoints:(nullable NSArray<AMapNaviPoint *> *)wayPoints
|
||||
drivingStrategy:(AMapNaviDrivingStrategy)strategy;
|
||||
|
||||
/**
|
||||
* @brief 根据高德POIId进行驾车路径规划,为了保证路径规划的准确性,请尽量使用此方法. since 6.1.0
|
||||
* @param startPOIId 起点POIId,如果以“我的位置”作为起点,请传nil
|
||||
* @param endPOIId 终点POIId,必填
|
||||
* @param wayPOIIds 途经点POIId,最多支持16个途经点. 超过16个会取前16个
|
||||
* @param strategy 路径的计算策略,建议使用 AMapNaviDrivingStrategyMultipleDefault,与[高德地图]默认策略一致 (避让拥堵+速度优先+避免收费)
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateDriveRouteWithStartPointPOIId:(nullable NSString *)startPOIId
|
||||
endPointPOIId:(nonnull NSString *)endPOIId
|
||||
wayPointsPOIId:(nullable NSArray<NSString *> *)wayPOIIds
|
||||
drivingStrategy:(AMapNaviDrivingStrategy)strategy;
|
||||
/**
|
||||
* @brief 根据高德POIInfo进行驾车路径规划,为了保证路径规划的准确性,请尽量使用此方法. since 6.4.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 路径的计算策略,建议使用 AMapNaviDrivingStrategyMultipleDefault,与[高德地图]默认策略一致 (避让拥堵+速度优先+避免收费)
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateDriveRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
wayPOIInfos:(nullable NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
|
||||
drivingStrategy:(AMapNaviDrivingStrategy)strategy;
|
||||
|
||||
/**
|
||||
* @brief 独立算路能力接口,可用于不干扰本次导航的单独算路场景. since 7.7.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 路径的计算策略,建议使用 AMapNaviDrivingStrategyMultipleDefault,与[高德地图]默认策略一致 (避让拥堵+速度优先+避免收费)
|
||||
* @param callback 算路完成的回调. 算路成功时,routeGroup 不为空;算路失败时,error 不为空,error.code参照 AMapNaviCalcRouteState.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)independentCalculateDriveRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
wayPOIInfos:(nullable NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
|
||||
drivingStrategy:(AMapNaviDrivingStrategy)strategy
|
||||
callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
|
||||
/**
|
||||
* @brief 导航过程中重新规划路径(起点为当前位置,途经点和终点位置不变)
|
||||
* @param strategy 路径的计算策略,建议使用 AMapNaviDrivingStrategyMultipleDefault,与[高德地图]默认策略一致 (避让拥堵+速度优先+避免收费)
|
||||
* @return 重新规划路径所需条件和参数校验是否成功, 不代表算路成功与否, 如非导航状态下调用此方法会返回NO.
|
||||
*/
|
||||
- (BOOL)recalculateDriveRouteWithDrivingStrategy:(AMapNaviDrivingStrategy)strategy;
|
||||
|
||||
#pragma mark - Manual
|
||||
|
||||
/**
|
||||
* @brief 设置车牌信息. 已废弃,请使用 setVehicleInfo: 替代,since 6.0.0
|
||||
* @param province 车牌省份缩写,例如:"京"
|
||||
* @param number 除省份及标点之外,车牌的字母和数字,例如:"NH1N11"
|
||||
*/
|
||||
- (void)setVehicleProvince:(NSString *)province number:(NSString *)number __attribute__((deprecated("已废弃,请使用 setVehicleInfo: 替代,since 6.0.0")));
|
||||
|
||||
/**
|
||||
* @brief 设置车辆信息. since 6.0.0
|
||||
* @param vehicleInfo 车辆信息,参考 AMapNaviVehicleInfo. 如果要清空已设置的车辆信息,传入nil即可.
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setVehicleInfo:(nullable AMapNaviVehicleInfo *)vehicleInfo;
|
||||
|
||||
/**
|
||||
* @brief 设置播报模式. 注意:如果在导航过程中设置,需要在下次算路后才能起作用,如偏航重算、手动刷新后.
|
||||
* @param mode 参考 AMapNaviBroadcastMode . 默认新手详细播报( AMapNaviBroadcastModeDetailed )
|
||||
* @return 是否成功
|
||||
*/
|
||||
- (BOOL)setBroadcastMode:(AMapNaviBroadcastMode)mode;
|
||||
|
||||
/**
|
||||
* @brief 设置网约车模式. since 6.4.0
|
||||
* @param type 参考 AMapNaviOnlineCarHailingType. 默认为 AMapNaviOnlineCarHailingTypeNone (非网约车模式, 即正常模式)
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setOnlineCarHailingType:(AMapNaviOnlineCarHailingType)type;
|
||||
|
||||
#pragma mark - Traffic Status
|
||||
|
||||
/**
|
||||
* @brief 获取某一范围内的路况光柱信息
|
||||
* @param startPosition 光柱范围在路径中的起始位置,取值范围[0, routeLength)
|
||||
* @param distance 光柱范围的距离,startPosition + distance 和的取值范围(0, routelength]
|
||||
* @return 该范围内路况信息数组,可用于绘制光柱,参考 AMapNaviTrafficStatus 类.
|
||||
*/
|
||||
- (nullable NSArray<AMapNaviTrafficStatus *> *)getTrafficStatusesWithStartPosition:(int)startPosition distance:(int)distance;
|
||||
|
||||
/**
|
||||
* @brief 获取当前道路的路况光柱信息
|
||||
* @return 该范围内路况信息数组,可用于绘制光柱,参考 AMapNaviTrafficStatus 类.
|
||||
*/
|
||||
- (nullable NSArray<AMapNaviTrafficStatus *> *)getTrafficStatuses;
|
||||
|
||||
#pragma mark - Xcode Simulate Location
|
||||
|
||||
/**
|
||||
* @brief 设置Xcode模拟定位点是否参与导航. 注意:此方法仅供开发者调试使用. since 6.7.0
|
||||
* @param enableNavi 模拟的定位点是否参与导航, 默认为NO.
|
||||
*/
|
||||
- (void)setXcodeSimulateLocationEnable:(BOOL)enableNavi __attribute__((deprecated("已废弃,since 7.5.0")));
|
||||
|
||||
#pragma mark - 服务区详情信息
|
||||
/**
|
||||
* @brief 设置是否打开服务区详情信息. since 8.0.0
|
||||
* @param enable 请求服务详情信息的功能是否打开, 默认为NO.
|
||||
*/
|
||||
- (void)setServiceAreaDetailsEnable:(BOOL)enable;
|
||||
@end
|
||||
|
||||
#pragma mark - Escort
|
||||
|
||||
@interface AMapNaviDriveManager (Escort)
|
||||
|
||||
/**
|
||||
* 设置一路护航任务id. 注意:此方法必须在"开始算路"之前设置, 否则无效, since 6.7.0
|
||||
* @param missonID 一路护航的任务id
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setEscortMissonID:(NSNumber *)missonID;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - Private
|
||||
|
||||
@interface AMapNaviDriveManager (Private)
|
||||
/**
|
||||
* @brief 私有静态方法,外部禁止调用. since 7.8.0
|
||||
*/
|
||||
+ (BOOL)setCustomCloudControlEnable:(BOOL)enable;
|
||||
/**
|
||||
* @brief 私有实例接口,外部禁止调用. since 7.8.0
|
||||
*/
|
||||
- (BOOL)setExtenalCloudControl:(nullable NSString *)cloudControlString;
|
||||
|
||||
/**
|
||||
* @brief 获取限行数据接口. 注意:当前接口为付费接口,使用当前接口需要 官网联系https://lbs.amap.com/ 商务 since 9.0.1
|
||||
* @param callback 获取限行数据的回调. success 代表是否获取限行数据成功,获取限行数据成功时,responseData 不为空;获取限行数据失败时,errorDesc 不为空.
|
||||
*1. success 为true response成功时返回结构体:
|
||||
{
|
||||
"code": 1, ----code的value 为 1 请求限行数据成功
|
||||
"citynums": 1,
|
||||
"citys": [{
|
||||
"citycode": 000,
|
||||
"rulenums": 1,
|
||||
"cityname": "XX市",
|
||||
"title": "XXX限行政策",
|
||||
"rules": [{
|
||||
"ruleid": 1766888,
|
||||
"ring": 0,
|
||||
"effect": 1,
|
||||
"local": 2,
|
||||
"vehicle": 1,
|
||||
"time": "全天限行",
|
||||
"policyname": "二环及以内外地机动车限行",
|
||||
"summary": "二环路及以内道路(不含外侧辅路)",
|
||||
"desc": "2021年11月1日起,外地全部机动车限行",
|
||||
"otherdesc": "",
|
||||
"centerpoint": "116.397451,39.909060",
|
||||
"linepoints": "",
|
||||
"areapoints": ""。
|
||||
}]
|
||||
}]
|
||||
}
|
||||
code:
|
||||
code的value 为 1 请求限行数据成功, code 为value 非1值,则代表限行数据服务返回失败
|
||||
areapoints:
|
||||
1.在同一限行区域存在一个限行多边形时,限行数据为经度和纬度使用逗号(,)隔开,多个经纬度使用分号(;)隔开;
|
||||
example一个多边形数据:
|
||||
|---------------- 多边形1--------------------| 每一个多边形对应一个polygon
|
||||
lon1,lat1;lon2,lat2;lon3,lat3;lon4,lat4;
|
||||
2.在同一限行区域存在多个限行多边形时,多个多边形之间的数据使用竖线 (|) 隔开;
|
||||
example3个多边形数据:
|
||||
|---------------- 多边形1--------------------| |----------- 多边形2-----------| |----------- 多边形3-----------|
|
||||
lon1,lat1;lon2,lat2;lon3,lat3;lon4,lat4| lon5,lat5;lon6,lat6;lon7,lat7| lon8,lat8;lon9,lat9;lon10,lat10
|
||||
* 2.success 为false response为空,errorDesc为返回的错误描述
|
||||
* @return 获取限行条件是否满足;路线上数据不为空,且路线上有限行信息,则返回YES,否则的话则返回NO;不代表获取限行数据成功与否
|
||||
*/
|
||||
- (BOOL)getRestrictareaInfoInRoute:(AMapNaviRoute *)route callback:(nonnull void (^)(BOOL responseSuccess, NSString *responseData, NSString *errorDesc))callback;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - AMapNaviDriveManagerDelegate
|
||||
@protocol AMapNaviDriveManagerDelegate <NSObject>
|
||||
@optional
|
||||
/**
|
||||
* @brief 发生错误时,会调用代理的此方法
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param error 错误信息
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager error:(NSError *)error;
|
||||
|
||||
/**
|
||||
* @brief 驾车路径规划成功后的回调函数,请尽量使用 -driveManager:onCalculateRouteSuccessWithType: 替代此方法
|
||||
* @param driveManager 驾车导航管理类
|
||||
*/
|
||||
- (void)driveManagerOnCalculateRouteSuccess:(AMapNaviDriveManager *)driveManager;
|
||||
|
||||
/**
|
||||
* @brief 驾车路径规划成功后的回调函数 since 6.1.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param type 路径规划类型,参考 AMapNaviRoutePlanType
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager onCalculateRouteSuccessWithType:(AMapNaviRoutePlanType)type;
|
||||
|
||||
/**
|
||||
* @brief 驾车路径规划失败后的回调函数. 从5.3.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviDriveManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态.
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param error 错误信息,error.code参照 AMapNaviCalcRouteState
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager onCalculateRouteFailure:(NSError *)error;
|
||||
|
||||
/**
|
||||
* @brief 驾车路径规划失败后的回调函数. since 6.1.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param error 错误信息,error.code参照 AMapNaviCalcRouteState
|
||||
* @param type 路径规划类型,参考 AMapNaviRoutePlanType
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager onCalculateRouteFailure:(NSError *)error routePlanType:(AMapNaviRoutePlanType)type;
|
||||
|
||||
/**
|
||||
* @brief 启动导航后回调函数
|
||||
* @param naviMode 导航类型,参考 AMapNaviMode .
|
||||
* @param driveManager 驾车导航管理类
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager didStartNavi:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 出现偏航需要重新计算路径时的回调函数.偏航后 SDK 内部将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理,您无需自行算路.
|
||||
* @param driveManager 驾车导航管理类
|
||||
*/
|
||||
- (void)driveManagerNeedRecalculateRouteForYaw:(AMapNaviDriveManager *)driveManager;
|
||||
|
||||
/**
|
||||
* @brief 前方遇到拥堵需要重新计算路径时的回调函数.拥堵后 SDK 将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理,您无需自行算路.
|
||||
* @param driveManager 驾车导航管理类
|
||||
*/
|
||||
- (void)driveManagerNeedRecalculateRouteForTrafficJam:(AMapNaviDriveManager *)driveManager;
|
||||
|
||||
/**
|
||||
* @brief 导航到达某个途经点的回调函数
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param wayPointIndex 到达的途径点的索引值,表示的是 AMapNaviRoute.wayPointsInfo 的索引.
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager onArrivedWayPoint:(int)wayPointIndex;
|
||||
|
||||
/**
|
||||
* @brief 开发者请根据实际情况返回是否正在播报语音,如果正在播报语音,请返回YES, 如果没有在播报语音,请返回NO
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @return 如一直返回YES,SDK内部会认为外界声道较忙,导致部分文字无法吐出; 如一直返回NO,文字吐出的频率可能会过快,会出现打断的情况,所以请根据实际情况返回。
|
||||
*/
|
||||
- (BOOL)driveManagerIsNaviSoundPlaying:(AMapNaviDriveManager *)driveManager;
|
||||
|
||||
/**
|
||||
* @brief 导航播报信息回调函数,此回调函数需要和driveManagerIsNaviSoundPlaying:配合使用
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param soundString 播报文字
|
||||
* @param soundStringType 播报类型,参考 AMapNaviSoundType. 注意:since 6.0.0 AMapNaviSoundType 只返回 AMapNaviSoundTypeDefault
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager playNaviSoundString:(NSString *)soundString soundStringType:(AMapNaviSoundType)soundStringType;
|
||||
|
||||
/**
|
||||
* @brief 模拟导航到达目的地后的回调函数
|
||||
* @param driveManager 驾车导航管理类
|
||||
*/
|
||||
- (void)driveManagerDidEndEmulatorNavi:(AMapNaviDriveManager *)driveManager;
|
||||
|
||||
/**
|
||||
* @brief 实时导航到达目的地后的回调函数
|
||||
* @param driveManager 驾车导航管理类
|
||||
*/
|
||||
- (void)driveManagerOnArrivedDestination:(AMapNaviDriveManager *)driveManager;
|
||||
|
||||
/**
|
||||
* @brief 导航(巡航)过程中播放提示音的回调函数. since 5.4.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param ringType 提示音类型,参考 AMapNaviRingType .
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager onNaviPlayRing:(AMapNaviRingType)ringType;
|
||||
|
||||
/**
|
||||
* @brief 卫星定位信号强弱回调函数. since 5.5.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param gpsSignalStrength 卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength .
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateGPSSignalStrength:(AMapNaviGPSSignalStrength)gpsSignalStrength;
|
||||
|
||||
/**
|
||||
* @brief 实时导航中关于路线的‘信息通知’回调. since 6.2.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param notifyData 通知信息, 参考 AMapNaviRouteNotifyData .
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager postRouteNotification:(AMapNaviRouteNotifyData *)notifyData;
|
||||
|
||||
/**
|
||||
* @brief 多路线实时导航模式下,建议将某备选路线切换为主导航路线的回调函数. since 6.3.0
|
||||
* @param driveManager 驾车导航管理类
|
||||
* @param suggestChangeMainNaviRouteInfo 切换主导航路线的相关信息, 参考 AMapNaviSuggestChangeMainNaviRouteInfo .
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *)driveManager onSuggestChangeMainNaviRoute:(AMapNaviSuggestChangeMainNaviRouteInfo *)suggestChangeMainNaviRouteInfo;
|
||||
|
||||
/**
|
||||
* @brief 驾车导航道路舒适度回调。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.3.5
|
||||
* @param manager 驾车导航管理类
|
||||
* @param driveComfort 驾车舒适度信息对象
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *_Nullable)manager onUpdateDriveComfort:(AMapNaviDriveComfort *_Nonnull)driveComfort;
|
||||
|
||||
/**
|
||||
* 驾车导航三急(急加速/急减速/急转弯)事件回调。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.3.5
|
||||
* @param manager 驾车导航管理类
|
||||
* @param driveEvent 驾驶事件信息对象
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *_Nullable)manager onUpdateDriveEvent:(AMapNaviDriveEvent *_Nonnull)driveEvent;
|
||||
|
||||
/**
|
||||
* 路段限速值,进入新的路段后,会回调当前路段的限速值,进入没有限速的路段时,限速值回调为0。since 9.6.0
|
||||
* @param manager 驾车导航管理类
|
||||
* @param speed 路段限速值
|
||||
*/
|
||||
- (void)driveManager:(AMapNaviDriveManager *_Nullable)manager onUpdateNaviSpeedLimitSection:(NSInteger)speed;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
334
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviDriveView.h
generated
Normal file
334
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviDriveView.h
generated
Normal file
@@ -0,0 +1,334 @@
|
||||
//
|
||||
// AMapNaviDriveView.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 15/12/28.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviHeaderHandler.h"
|
||||
#import "AMapNaviCommonObj.h"
|
||||
#import "AMapNaviDriveDataRepresentable.h"
|
||||
#import "AMapNaviCompositeAnnotation.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol AMapNaviDriveViewDelegate;
|
||||
|
||||
///驾车导航界面.该类实现AMapNaviDriveDataRepresentable协议,可通过 AMapNaviDriveManager 的addDataRepresentative:方法进行注册展示驾车导航过程.
|
||||
@interface AMapNaviDriveView : UIView <AMapNaviDriveDataRepresentable>
|
||||
|
||||
#pragma mark - Delegate
|
||||
|
||||
///实现了 AMapNaviDriveViewDelegate 协议的类指针
|
||||
@property (nonatomic, weak) id<AMapNaviDriveViewDelegate> delegate;
|
||||
|
||||
///可获得和 MAMapView 原始 Delegate 同样的能力. since 7.0.0
|
||||
@property (nonatomic, weak) id <MAMapViewDelegate> mapViewDelegate;
|
||||
|
||||
#pragma mark - Mode Options
|
||||
|
||||
///导航界面跟随模式,默认AMapNaviViewTrackingModeMapNorth
|
||||
@property (nonatomic, assign) AMapNaviViewTrackingMode trackingMode;
|
||||
|
||||
///导航界面显示模式,默认AMapNaviDriveViewShowModeCarPositionLocked
|
||||
@property (nonatomic, assign) AMapNaviDriveViewShowMode showMode;
|
||||
|
||||
#pragma mark - Map Options
|
||||
|
||||
///当前地图Logo位置, 必须在 AMapNaviDriveView.bounds 之内,否则会被忽略. 注意:只有showUIElements为NO时,设置此值才有效. since 6.2.0
|
||||
@property (nonatomic, assign) CGPoint logoCenter;
|
||||
|
||||
///当前地图Logo的宽高. since 6.2.0
|
||||
@property (nonatomic, assign, readonly) CGSize logoSize;
|
||||
|
||||
///当前地图是否显示比例尺,默认NO. 注意:只有showUIElements为NO时,设置此值才有效.
|
||||
@property (nonatomic, assign) BOOL showScale;
|
||||
|
||||
///当前地图比例尺的原点位置. 注意:只有showUIElements为NO时,设置此值才有效.
|
||||
@property (nonatomic, assign) CGPoint scaleOrigin;
|
||||
|
||||
///是否显示指南针,默认NO
|
||||
@property (nonatomic, assign) BOOL showCompass;
|
||||
|
||||
///指南针原点位置. since 6.3.0
|
||||
@property (nonatomic, assign) CGPoint compassOrigin;
|
||||
|
||||
///指南针的宽高. since 6.3.0
|
||||
@property (nonatomic, assign, readonly) CGSize compassSize;
|
||||
|
||||
///地图是否显示交通路况,默认YES. since 6.1.0
|
||||
@property (nonatomic, assign) BOOL mapShowTraffic;
|
||||
|
||||
///当前地图的zoomLevel,修改zoomLevel会进入非锁车状态
|
||||
@property (nonatomic, assign) CGFloat mapZoomLevel;
|
||||
|
||||
///锁车模式下是否为了预见下一导航动作自动缩放地图,默认为NO. since 6.2.0
|
||||
@property (nonatomic, assign) BOOL autoZoomMapLevel;
|
||||
|
||||
///锁车状态下地图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
|
||||
@property (nonatomic, assign) NSUInteger maxRenderFrame;
|
||||
|
||||
///导航界面日夜模式类型, 默认为 AMapNaviViewMapModeTypeDay(白天模式) since 6.7.0
|
||||
@property (nonatomic, assign) AMapNaviViewMapModeType mapViewModeType;
|
||||
|
||||
/**
|
||||
* @brief 自定义地图样式设置,可以支持分级样式配置,如控制不同级别显示不同的颜色(自7.8.0开始使用新版样式,请到官网(lbs.amap.com)更新新版样式文件,否则无法正常显示路口放大图)
|
||||
* @param styleOptions 自定义样式options. since 6.6.0
|
||||
*/
|
||||
- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
|
||||
|
||||
///地图是否自动切换白天黑夜模式,默认NO.
|
||||
@property (nonatomic, assign) BOOL autoSwitchDayNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 6.7.0")));
|
||||
|
||||
///是否黑夜模式,默认NO.
|
||||
@property (nonatomic, assign) BOOL showStandardNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 6.7.0")));
|
||||
|
||||
///当前地图是否开启自定义样式, 默认NO.
|
||||
@property (nonatomic, assign) BOOL customMapStyleEnabled __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 6.7.0")));
|
||||
|
||||
/**
|
||||
* @brief 自定义当前地图样式, 目前仅支持自定义标准类型. 已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0
|
||||
* @param customJson 自定义的JSON格式数据.
|
||||
*/
|
||||
- (void)setCustomMapStyle:(NSData *)customJson __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: 替代 since 6.6.0")));
|
||||
|
||||
/**
|
||||
* @brief 根据web导出数据设置地图样式, 目前仅支持自定义标准类型. 默认不生效,调用customMapStyleEnabled=YES使生效. since 5.1.0
|
||||
* @param data 高德web端工具导出的地图样式数据.
|
||||
*/
|
||||
- (void)setCustomMapStyleWithWebData:(NSData*)data __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: 替代 since 6.6.0")));
|
||||
|
||||
#pragma mark - Annoation Options and Overlay Options
|
||||
|
||||
///是否显示实时交通图层(地图路况+路线路况),默认YES
|
||||
@property (nonatomic, assign) BOOL showTrafficLayer __attribute((deprecated("已废弃, 请使用 mapShowTraffic 结合 -statusTextures: 替代. since 7.4.0")));
|
||||
|
||||
///路线上是否显示摄像头,默认YES
|
||||
@property (nonatomic, assign) BOOL showCamera;
|
||||
|
||||
///路线上是否显示转向箭头,默认YES
|
||||
@property (nonatomic, assign) BOOL showTurnArrow;
|
||||
|
||||
///路线上转弯箭头颜色. since 6.1.0
|
||||
@property (nonatomic, strong) UIColor *turnArrowColor;
|
||||
|
||||
///路线上转弯箭头的宽度,设置0恢复默认宽度. since 6.2.0
|
||||
@property (nonatomic, assign) CGFloat turnArrowWidth;
|
||||
|
||||
///路线上转弯箭头是否为3D箭头线,默认为YES. since 6.6.0
|
||||
@property (nonatomic, assign) BOOL turnArrowIs3D;
|
||||
|
||||
///路线上转弯箭头设置3D箭头的侧边颜色(当turnArrowIs3D为YES时有效). since 6.6.0
|
||||
@property (nonatomic, strong) UIColor *turnArrowSideColor;
|
||||
|
||||
///是否显示牵引线,默认YES. since 6.2.0
|
||||
@property (nonatomic, assign) BOOL showVectorline;
|
||||
|
||||
///是否显示红绿灯图标,默认YES. since 6.2.0
|
||||
@property (nonatomic, assign) BOOL showTrafficLights;
|
||||
|
||||
///是否显示小车图标,默认YES. since 6.2.0
|
||||
@property (nonatomic, assign) BOOL showCar;
|
||||
|
||||
///是否显示路线,默认YES. 注意:路线上的相关信息,如摄像头(showCamera)、红绿灯(showTrafficLights)、转向箭头(showTurnArrow)、牵引线(showVectorline)、起终点等也会一同受控制,进行显示和隐藏. since 6.2.0
|
||||
@property (nonatomic, assign) BOOL showRoute;
|
||||
|
||||
///多路线导航模式下是否显示备选路线, 默认YES. since 6.7.0
|
||||
@property (nonatomic, assign) BOOL showBackupRoute;
|
||||
|
||||
///走过的路线是否置灰,默认为NO. since 6.2.0
|
||||
@property (nonatomic, assign) BOOL showGreyAfterPass;
|
||||
|
||||
///路线polyline的宽度,设置0恢复默认宽度
|
||||
@property (nonatomic, assign) CGFloat lineWidth;
|
||||
|
||||
///自定义导航界面自车图标的弹出框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;
|
||||
|
||||
///路线纹理部分走过后置灰的纹理图片,设置nil恢复默认纹理. 纹理图片需满足:长宽相等,且宽度值为2的次幂. since 6.2.0
|
||||
@property (nonatomic, copy, nullable) UIImage *greyTexture;
|
||||
|
||||
///带路况路线Polyline的纹理图片. 纹理图片需满足: 长宽相等,且宽度值为2的次幂. 例如:@{@(AMapNaviRouteStatusSlow): [UIImage Slow路况下的Image],@(AMapNaviRouteStatusSeriousJam): [UIImage SeriousJam路况下的Image]}. 设置空字典恢复默认纹理,例如: @{}
|
||||
@property (nonatomic, copy) NSDictionary<NSNumber *, UIImage *> *statusTextures;
|
||||
|
||||
///标准路线Polyline的纹理图片,设置nil恢复默认纹理.纹理图片需满足:长宽相等,且宽度值为2的次幂
|
||||
@property (nonatomic, copy, nullable) UIImage *normalTexture;
|
||||
|
||||
/**
|
||||
* @brief 设置摄像头图标
|
||||
* @param cameraImage 摄像头图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setCameraImage:(nullable UIImage *)cameraImage;
|
||||
|
||||
/**
|
||||
* @brief 设置路径起点图标
|
||||
* @param startPointImage 起点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setStartPointImage:(nullable UIImage *)startPointImage;
|
||||
|
||||
/**
|
||||
* @brief 设置路径途经点图标
|
||||
* @param wayPointImage 途经点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
|
||||
|
||||
/**
|
||||
* @brief 设置路径终点图标
|
||||
* @param endPointImage 终点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setEndPointImage:(nullable UIImage *)endPointImage;
|
||||
|
||||
/**
|
||||
* @brief 设置自车图标
|
||||
* @param carImage 自车图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setCarImage:(nullable UIImage *)carImage;
|
||||
|
||||
/**
|
||||
* @brief 设置自车罗盘图标
|
||||
* @param carCompassImage 自车罗盘图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
|
||||
|
||||
/**
|
||||
* @brief 在导航地图中添加自定义标注. since 6.2.0
|
||||
* @param annotation 具体参考 AMapNaviCompositeCustomAnnotation .
|
||||
*/
|
||||
- (void)addCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
|
||||
|
||||
/**
|
||||
* @brief 移除导航地图中的自定义标注. since 6.2.0
|
||||
* @param annotation 具体参考 AMapNaviCompositeCustomAnnotation .
|
||||
*/
|
||||
- (void)removeCustomAnnotation:(AMapNaviCompositeCustomAnnotation *)annotation;
|
||||
|
||||
/**
|
||||
* @brief 在导航地图中添加自定义overlay. since 6.7.0
|
||||
* @param overlay 具体参考 官方Demo中 DriveViewWithCustomOverlayViewController .
|
||||
*/
|
||||
- (void)addCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
|
||||
|
||||
/**
|
||||
* @brief 移除导航地图中的自定义overlay. since 6.7.0
|
||||
* @param overlay 具体参考 AMapNaviCompositeOverlay .
|
||||
*/
|
||||
- (void)removeCustomOverlay:(id <AMapNaviCompositeOverlay>_Nonnull)overlay;
|
||||
|
||||
#pragma mark - UI Element Options
|
||||
|
||||
///是否显示界面元素,默认YES
|
||||
@property (nonatomic, assign) BOOL showUIElements;
|
||||
|
||||
///是否显示路口放大图,默认YES
|
||||
@property (nonatomic, assign) BOOL showCrossImage;
|
||||
|
||||
///是否显示实时交通按钮,默认YES
|
||||
@property (nonatomic, assign) BOOL showTrafficButton;
|
||||
|
||||
///是否显示路况光柱,默认YES
|
||||
@property (nonatomic, assign) BOOL showTrafficBar;
|
||||
|
||||
///是否显示全览按钮,默认YES
|
||||
@property (nonatomic, assign) BOOL showBrowseRouteButton;
|
||||
|
||||
///是否显示更多按钮,默认YES
|
||||
@property (nonatomic, assign) BOOL showMoreButton;
|
||||
|
||||
#pragma mark - Other
|
||||
|
||||
///目前是否为横屏状态. since 6.2.0 内部会自行监听 UIDeviceOrientationDidChange 进行横竖屏切换,无需再设置此值,但用户要自行保证 AMapNaviDriveView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight,让 AMapNaviDriveView 能够跟着父View一起变化. 可通过回调 -driveView:didChangeOrientation: 获取横竖屏切换时机
|
||||
@property (nonatomic, assign, readonly) BOOL isLandscape;
|
||||
|
||||
///当显示模式为非锁车模式时,是否在7秒后自动设置为锁车模式,默认为NO. since 5.3.0
|
||||
@property (nonatomic, assign) BOOL autoSwitchShowModeToCarPositionLocked;
|
||||
|
||||
/**
|
||||
* @brief 在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用此函数. since 6.2.0
|
||||
*/
|
||||
- (void)updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview;
|
||||
|
||||
@end
|
||||
|
||||
@protocol AMapNaviDriveViewDelegate <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 导航界面关闭按钮点击时的回调函数
|
||||
* @param driveView 驾车导航界面
|
||||
*/
|
||||
- (void)driveViewCloseButtonClicked:(AMapNaviDriveView *)driveView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面更多按钮点击时的回调函数
|
||||
* @param driveView 驾车导航界面
|
||||
*/
|
||||
- (void)driveViewMoreButtonClicked:(AMapNaviDriveView *)driveView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面转向指示View点击时的回调函数
|
||||
* @param driveView 驾车导航界面
|
||||
*/
|
||||
- (void)driveViewTrunIndicatorViewTapped:(AMapNaviDriveView *)driveView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面显示模式改变后的回调函数
|
||||
* @param driveView 驾车导航界面
|
||||
* @param showMode 显示模式
|
||||
*/
|
||||
- (void)driveView:(AMapNaviDriveView *)driveView didChangeShowMode:(AMapNaviDriveViewShowMode)showMode;
|
||||
|
||||
/**
|
||||
* @brief 驾车导航界面跟随模式改变后的回调函数. since 6.2.0
|
||||
* @param driveView 驾车导航界面
|
||||
* @param trackMode 跟随模式
|
||||
*/
|
||||
- (void)driveView:(AMapNaviDriveView *)driveView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
|
||||
|
||||
/**
|
||||
* @brief 驾车导航界面横竖屏切换后的回调函数. since 6.2.0
|
||||
* @param driveView 驾车导航界面
|
||||
* @param isLandscape 是否是横屏
|
||||
*/
|
||||
- (void)driveView:(AMapNaviDriveView *)driveView didChangeOrientation:(BOOL)isLandscape;
|
||||
|
||||
/**
|
||||
* @brief 驾车导航界面白天黑夜模式切换后的回调函数. since 6.2.0
|
||||
* @param driveView 驾车导航界面
|
||||
* @param showStandardNightType 是否为黑夜模式
|
||||
*/
|
||||
- (void)driveView:(AMapNaviDriveView *)driveView didChangeDayNightType:(BOOL)showStandardNightType;
|
||||
|
||||
/**
|
||||
* @brief 在showUIElements为NO时,驾车导航界面需要实时的取得可视区域,比如切换成全览时、横竖屏切换时、动态计算地图的缩放级别时. 注意:此回调只在showUIElements为NO时,才会调用且比较频繁,在获取EdgePadding时请勿进行大量的计算. since 6.2.0
|
||||
* @param driveView 驾车导航界面
|
||||
* @return 如(100, 50, 80, 60)表示的是:driveView.bounds 上边留出100px,左边留出50px,底部留出80px,右边留出60px后的区域为可视区域,一般EdgePadding的值由用户的界面布局决定.
|
||||
*/
|
||||
- (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
|
||||
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviEleBikeDataRepresentable.h
generated
Normal file
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviEleBikeDataRepresentable.h
generated
Normal file
@@ -0,0 +1,65 @@
|
||||
//
|
||||
// AMapNaviEleBikeDataRepresentable.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by menglong on 2022/1/12.
|
||||
// Copyright © 2022 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class AMapNaviInfo;
|
||||
@class AMapNaviRoute;
|
||||
@class AMapNaviLocation;
|
||||
@class AMapNaviStatisticsInfo;
|
||||
@class AMapNaviEleBikeManager;
|
||||
|
||||
/**
|
||||
* @brief AMapNaviEleBikeeDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviEleBikeManager 的addDataRepresentative:方法进行注册,便可获取导航过程中的导航数据更新.
|
||||
* 可以根据不同需求,选取使用特定的数据进行导航界面自定义.
|
||||
* AMapNaviRideView 即通过该协议实现导航过程展示.也可以依据导航数据的更新进行其他的逻辑处理.
|
||||
*/
|
||||
@protocol AMapNaviEleBikeDataRepresentable <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 导航模式更新回调
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param naviMode 导航模式,参考 AMapNaviMode 值
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager updateNaviMode:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 路径ID更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param naviRouteID 导航路径ID
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager updateNaviRouteID:(NSInteger)naviRouteID;
|
||||
|
||||
/**
|
||||
* @brief 路径信息更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param naviRoute 路径信息,参考 AMapNaviRoute 类
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager updateNaviRoute:(nullable AMapNaviRoute *)naviRoute;
|
||||
|
||||
/**
|
||||
* @brief 导航信息更新回调
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param naviInfo 导航信息,参考 AMapNaviInfo 类
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager updateNaviInfo:(nullable AMapNaviInfo *)naviInfo;
|
||||
|
||||
/**
|
||||
* @brief 自车位置更新回调
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param naviLocation 自车位置信息,参考 AMapNaviLocation 类
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager updateNaviLocation:(nullable AMapNaviLocation *)naviLocation;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
229
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviEleBikeManager.h
generated
Normal file
229
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviEleBikeManager.h
generated
Normal file
@@ -0,0 +1,229 @@
|
||||
//
|
||||
// AMapNaviEleBikeManager.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by yuanmenglong on 2021/3/31.
|
||||
// Copyright © 2021 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
#import "AMapNaviTravelManager.h"
|
||||
#import "AMapNaviEleBikeDataRepresentable.h"
|
||||
|
||||
@protocol AMapNaviEleBikeManagerDelegate;
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
///电动车骑行导航管理类
|
||||
@interface AMapNaviEleBikeManager : AMapNaviTravelManager
|
||||
|
||||
#pragma mark - Singleton
|
||||
|
||||
/**
|
||||
* @brief AMapNaviEleBikeManager单例. since 8.0.0
|
||||
* @return AMapNaviEleBikeManager实例
|
||||
*/
|
||||
+ (instancetype)sharedInstance;
|
||||
|
||||
/**
|
||||
* @brief 销毁AMapNaviEleBikeManager单例. since 8.0.0
|
||||
* @return 是否销毁成功. 如果返回NO,请检查单例是否被强引用
|
||||
*/
|
||||
+ (BOOL)destroyInstance;
|
||||
|
||||
/**
|
||||
* @brief 请使用单例替代. since 8.0.0 init已被禁止使用,请使用单例 [AMapNaviEleBikeManager sharedInstance] 替代
|
||||
*/
|
||||
- (instancetype)init __attribute__((unavailable("since 8.0.0 init 已被禁止使用,请使用单例 [AMapNaviEleBikeManager sharedInstance] 替代")));
|
||||
|
||||
#pragma mark - Delegate
|
||||
|
||||
///实现了 AMapNaviRideManagerDelegate 协议的类指针
|
||||
@property (nonatomic, weak) id<AMapNaviEleBikeManagerDelegate> delegate;
|
||||
|
||||
#pragma mark - Data Representative
|
||||
|
||||
/**
|
||||
* @brief 增加用于展示导航数据的DataRepresentative.注意:该方法不会增加实例对象的引用计数(Weak Reference)
|
||||
* @param aRepresentative 实现了 AMapNaviRideDataRepresentable 协议的实例
|
||||
*/
|
||||
- (void)addDataRepresentative:(id<AMapNaviEleBikeDataRepresentable>)aRepresentative;
|
||||
|
||||
/**
|
||||
* @brief 移除用于展示导航数据的DataRepresentative
|
||||
* @param aRepresentative 实现了 AMapNaviRideDataRepresentable 协议的实例
|
||||
*/
|
||||
- (void)removeDataRepresentative:(id<AMapNaviEleBikeDataRepresentable>)aRepresentative;
|
||||
|
||||
/**
|
||||
* @brief 增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference). since 9.0.1
|
||||
* @param aListener 实现了 AMapNaviRideManagerDelegate 协议的实例
|
||||
*/
|
||||
- (void)addEventListener:(id<AMapNaviEleBikeManagerDelegate>)aListener;
|
||||
|
||||
/**
|
||||
* @brief 移除用于接收导航回调事件的Listener. since 9.0.1
|
||||
* @param aListener 实现了 AMapNaviRideManagerDelegate 协议的实例
|
||||
*/
|
||||
- (void)removeEventListener:(id<AMapNaviEleBikeManagerDelegate>)aListener;
|
||||
|
||||
|
||||
#pragma mark - Navi Route
|
||||
|
||||
///当前导航路径的ID
|
||||
@property (nonatomic, readonly) NSInteger naviRouteID;
|
||||
|
||||
///当前导航路径的信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时的所有路径信息 since 8.0.0
|
||||
* @return 返回多路径规划时的所有路径ID和路线信息
|
||||
*/
|
||||
- (NSDictionary<NSNumber *,AMapNaviRoute *> *)naviRoutes;
|
||||
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 8.0.0
|
||||
* @return 返回多路径规划时的所有路径ID
|
||||
*/
|
||||
- (NSArray<NSNumber *> *)naviRouteIDs;
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时选择路径.注意:该方法仅限于在开始导航前使用,开始导航后该方法无效 since 8.0.0
|
||||
* @param routeID 路径ID
|
||||
* @return 是否选择路径成功
|
||||
*/
|
||||
- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
|
||||
|
||||
///卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength. 注意:只有导航中获取卫星定位信号强弱的值有效
|
||||
@property (nonatomic, assign, readonly) AMapNaviGPSSignalStrength gpsSignalStrength;
|
||||
|
||||
#pragma mark - Calculate Route
|
||||
|
||||
// 以下算路方法需要高德坐标(GCJ02)
|
||||
|
||||
/**
|
||||
* @brief 不带起点的电动车骑行路径规划
|
||||
* @param endPoint 终点坐标.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateEleBikeRouteWithEndPoint:(AMapNaviPoint *)endPoint;
|
||||
|
||||
/**
|
||||
* @brief 带起点的电动车骑行路径规划
|
||||
* @param startPoint 起点坐标.
|
||||
* @param endPoint 终点坐标.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateEleBikeRouteWithStartPoint:(AMapNaviPoint *)startPoint
|
||||
endPoint:(AMapNaviPoint *)endPoint;
|
||||
|
||||
/**
|
||||
* @brief 根据高德POIInfo进行电动车骑行路径规划. since 8.0.0
|
||||
* @param startPOIInfo 起点POIInfo, 参考 AMapNaviPOIInfo. 如果以“我的位置”作为起点,请传nil. 如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点
|
||||
* @param endPOIInfo 终点POIInfo, 参考 AMapNaviPOIInfo. 如果POIID合法,优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空
|
||||
* @param strategy 路径的计算策略,参考 AMapNaviTravelStrategy.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateEleBikeRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
strategy:(AMapNaviTravelStrategy)strategy;
|
||||
|
||||
/**
|
||||
* @brief 独立算路能力接口,可用于不干扰本次导航的单独算路场景. since 8.0.0
|
||||
* @param startPOIInfo 起点POIInfo, 参考 AMapNaviPOIInfo. 如果以“我的位置”作为起点,请传nil. 如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点
|
||||
* @param endPOIInfo 终点POIInfo, 参考 AMapNaviPOIInfo. 如果POIID合法,优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空
|
||||
* @param strategy 路径的计算策略,参考 AMapNaviTravelStrategy.
|
||||
* @param callback 算路完成的回调. 算路成功时,routeGroup 不为空;算路失败时,error 不为空,error.code参照 AMapNaviCalcRouteState.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)independentCalculateEleBikeRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
strategy:(AMapNaviTravelStrategy)strategy
|
||||
callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
|
||||
|
||||
/**
|
||||
* @brief 导航过程中重新规划路径(起点为当前位置,终点位置不变)
|
||||
* @return 重新规划路径所需条件和参数校验是否成功, 不代表算路成功与否,如非导航状态下调用此方法会返回NO.
|
||||
*/
|
||||
- (BOOL)recalculateEleBikeRoute;
|
||||
|
||||
#pragma mark - Manual
|
||||
|
||||
/**
|
||||
* @brief 开发者请根据实际情况设置外界此时是否正在进行语音播报. since 8.0.0
|
||||
* @param playing 如果外界正在播报语音,传入YES,否则传入NO.
|
||||
*/
|
||||
- (void)setTTSPlaying:(BOOL)playing;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
#pragma mark - AMapNaviRideManagerDelegate
|
||||
|
||||
@protocol AMapNaviEleBikeManagerDelegate <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 发生错误时,会调用代理的此方法
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param error 错误信息
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager error:(NSError *)error;
|
||||
|
||||
/**
|
||||
* @brief 骑行路径规划成功后的回调函数
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
*/
|
||||
- (void)rideManagerOnCalculateRouteSuccess:(AMapNaviEleBikeManager *)eleBikeManager;
|
||||
|
||||
/**
|
||||
* @brief 骑行路径规划失败后的回调函数. 从6.1.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviRideManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param error 错误信息,error.code参照AMapNaviCalcRouteState
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager onCalculateRouteFailure:(NSError *)error;
|
||||
|
||||
/**
|
||||
* @brief 启动导航后回调函数
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param naviMode 导航类型,参考AMapNaviMode
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager didStartNavi:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 出现偏航需要重新计算路径时的回调函数.偏航后将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理.
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
*/
|
||||
- (void)rideManagerNeedRecalculateRouteForYaw:(AMapNaviEleBikeManager *)eleBikeManager;
|
||||
|
||||
/**
|
||||
* @brief 导航播报信息回调函数
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param soundString 播报文字
|
||||
* @param soundStringType 播报类型,参考 AMapNaviSoundType. 注意:since 6.0.0 AMapNaviSoundType 只返回 AMapNaviSoundTypeDefault
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager playNaviSoundString:(NSString *)soundString soundStringType:(AMapNaviSoundType)soundStringType;
|
||||
|
||||
/**
|
||||
* @brief 模拟导航到达目的地停止导航后的回调函数
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
*/
|
||||
- (void)rideManagerDidEndEmulatorNavi:(AMapNaviEleBikeManager *)eleBikeManager;
|
||||
|
||||
/**
|
||||
* @brief 导航到达目的地后的回调函数
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
*/
|
||||
- (void)rideManagerOnArrivedDestination:(AMapNaviEleBikeManager *)eleBikeManager;
|
||||
|
||||
/**
|
||||
* @brief 卫星定位信号强弱回调函数. since 7.4.0
|
||||
* @param eleBikeManager 电动车骑行导航管理类
|
||||
* @param gpsSignalStrength 卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength .
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager updateGPSSignalStrength:(AMapNaviGPSSignalStrength)gpsSignalStrength;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
51
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviHUDView.h
generated
Normal file
51
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviHUDView.h
generated
Normal file
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// AMapNaviHUDView.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 15/12/28.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
#import "AMapNaviDriveDataRepresentable.h"
|
||||
#import "AMapNaviWalkDataRepresentable.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol AMapNaviHUDViewDelegate;
|
||||
|
||||
///HUD导航界面.该类实现AMapNaviDriveDataRepresentable和AMapNaviWalkDataRepresentable协议,可以展示驾车HUD和步行HUD导航过程.
|
||||
@interface AMapNaviHUDView : UIView<AMapNaviDriveDataRepresentable, AMapNaviWalkDataRepresentable>
|
||||
|
||||
#pragma mark - Delegate
|
||||
|
||||
///实现了 AMapNaviHUDViewDelegate 协议的类指针
|
||||
@property (nonatomic, weak) id<AMapNaviHUDViewDelegate> delegate;
|
||||
|
||||
#pragma mark - Options
|
||||
|
||||
///是否采用横屏布局,默认NO
|
||||
@property (nonatomic, assign) BOOL isLandscape;
|
||||
|
||||
///是否以镜像的方式显示,默认YES
|
||||
@property (nonatomic, assign) BOOL isMirror;
|
||||
|
||||
///是否显示剩余距离,默认YES
|
||||
@property (nonatomic, assign) BOOL showRemainDistance;
|
||||
|
||||
///是否显示剩余时间,默认YES
|
||||
@property (nonatomic, assign) BOOL showRemainTime;
|
||||
|
||||
@end
|
||||
|
||||
@protocol AMapNaviHUDViewDelegate <NSObject>
|
||||
|
||||
/**
|
||||
* @brief HUD导航界面返回按钮点击时的回调函数
|
||||
* @param hudView HUD导航界面
|
||||
*/
|
||||
- (void)hudViewCloseButtonClicked:(AMapNaviHUDView *)hudView;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
25
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviHeaderHandler.h
generated
Normal file
25
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviHeaderHandler.h
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// AMapNaviHeaderHandler.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by eidan on 2018/9/21.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_include(<AMapNaviKit/MAMapKit.h>)
|
||||
#import <AMapNaviKit/MAMapKit.h>
|
||||
#elif __has_include(<MAMapKit/MAMapKit.h>)
|
||||
#import <MAMapKit/MAMapKit.h>
|
||||
#elif __has_include("MAMapKit.h")
|
||||
#import "MAMapKit.h"
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapFoundationKit/AMapFoundationKit.h>)
|
||||
#import <AMapFoundationKit/AMapFoundationKit.h>
|
||||
#elif __has_include(<AMapNaviKit/AMapFoundationKit.h>)
|
||||
#import <AMapNaviKit/AMapFoundationKit.h>
|
||||
#elif __has_include("AMapFoundationKit.h")
|
||||
#import "AMapFoundationKit.h"
|
||||
#endif
|
||||
|
||||
|
||||
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviInfo.h
generated
Normal file
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviInfo.h
generated
Normal file
@@ -0,0 +1,65 @@
|
||||
//
|
||||
// AMapNaviInfo.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 14-8-22.
|
||||
// Copyright (c) 2014年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
///导航过程中的导航信息
|
||||
@interface AMapNaviInfo : NSObject<NSCopying,NSCoding>
|
||||
|
||||
///导航信息更新类型
|
||||
@property (nonatomic, assign) AMapNaviMode naviMode;
|
||||
|
||||
///导航段转向图标类型
|
||||
@property (nonatomic, assign) AMapNaviIconType iconType;
|
||||
|
||||
///当前道路名称
|
||||
@property (nonatomic, strong) NSString *currentRoadName;
|
||||
|
||||
///下条道路名称
|
||||
@property (nonatomic, strong) NSString *nextRoadName;
|
||||
|
||||
///离终点剩余距离(单位:米)
|
||||
@property (nonatomic, assign) NSInteger routeRemainDistance;
|
||||
|
||||
///离终点预估剩余时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger routeRemainTime;
|
||||
|
||||
///当前所在的segment段的index,从0开始
|
||||
@property (nonatomic, assign) NSInteger currentSegmentIndex;
|
||||
|
||||
///当前路段剩余距离(单位:米)
|
||||
@property (nonatomic, assign) NSInteger segmentRemainDistance;
|
||||
|
||||
///当前路段预估剩余时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger segmentRemainTime;
|
||||
|
||||
///当前所在的link段的index,从0开始
|
||||
@property (nonatomic, assign) NSInteger currentLinkIndex;
|
||||
|
||||
///当前自车位置在当前link段所在的point的index,从0开始 since 6.0.0
|
||||
@property (nonatomic, assign) NSInteger currentPointIndex;
|
||||
|
||||
///已经行驶的里程(单位:米). 注意:只在驾车的实时导航下才有效. since 6.0.0
|
||||
@property (nonatomic, assign) NSInteger routeDriveDistance;
|
||||
|
||||
///已经行驶的用时,包括中途停车时间在内(单位:秒). 注意:只在驾车的实时导航下才有效. since 6.0.0
|
||||
@property (nonatomic, assign) NSInteger routeDriveTime;
|
||||
|
||||
///没有避开的设施、禁行标志等信息, 如限高. 注意:只针对驾车. since 6.0.0
|
||||
@property (nonatomic, strong) AMapNaviNotAvoidFacilityAndForbiddenInfo *notAvoidInfo;
|
||||
|
||||
///当前路径剩余的红绿灯数量. 注意:只针对驾车. since 6.3.0
|
||||
@property (nonatomic, assign) NSInteger routeRemainTrafficLightCount;
|
||||
|
||||
///当前自车位置到各途经点的信息. 注意:只针对驾车. since 6.7.0
|
||||
@property (nonatomic, strong) NSArray <AMapNaviToWayPointInfo *> *toWayPointInfos;
|
||||
|
||||
///当前自车所在的高速或城市快速路的出口路牌信息. 注意:只针对驾车. since 6.8.0
|
||||
@property (nonatomic, strong) AMapNaviExitBoardInfo *exitBoardInfo;
|
||||
|
||||
@end
|
||||
61
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviKit.h
generated
Normal file
61
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviKit.h
generated
Normal file
@@ -0,0 +1,61 @@
|
||||
//
|
||||
// AMapNaviKit.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 14-7-4.
|
||||
// Copyright (c) 2014年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <AMapNaviKit/AMapNaviVersion.h>
|
||||
#import <AMapNaviKit/AMapNaviCommonObj.h>
|
||||
|
||||
#import <AMapNaviKit/AMapNaviInfo.h>
|
||||
#import <AMapNaviKit/AMapNaviRoute.h>
|
||||
#import <AMapNaviKit/AMapNaviLocation.h>
|
||||
#import <AMapNaviKit/AMapNaviStatisticsInfo.h>
|
||||
|
||||
#import <AMapNaviKit/AMapNaviBaseManager.h>
|
||||
#import <AMapNaviKit/AMapNaviDriveManager.h>
|
||||
#import <AMapNaviKit/AMapNaviDriveDataRepresentable.h>
|
||||
#import <AMapNaviKit/AMapNaviWalkManager.h>
|
||||
#import <AMapNaviKit/AMapNaviWalkDataRepresentable.h>
|
||||
#import <AMapNaviKit/AMapNaviRideManager.h>
|
||||
#import <AMapNaviKit/AMapNaviRideDataRepresentable.h>
|
||||
#import <AMapNaviKit/AMapNaviEleBikeManager.h>
|
||||
#import <AMapNaviKit/AMapNaviManagerConfig.h>
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviTrafficBarView.h>)
|
||||
#import <AMapNaviKit/AMapNaviTrafficBarView.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviHeaderHandler.h>)
|
||||
#import <AMapNaviKit/AMapNaviHeaderHandler.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviDriveView.h>)
|
||||
#import <AMapNaviKit/AMapNaviDriveView.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviWalkView.h>)
|
||||
#import <AMapNaviKit/AMapNaviWalkView.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviRideView.h>)
|
||||
#import <AMapNaviKit/AMapNaviRideView.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviHUDView.h>)
|
||||
#import <AMapNaviKit/AMapNaviHUDView.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviCompositeManager.h>)
|
||||
#import <AMapNaviKit/AMapNaviCompositeManager.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviCompositeUserConfig.h>)
|
||||
#import <AMapNaviKit/AMapNaviCompositeUserConfig.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<AMapNaviKit/AMapNaviCompositeAnnotation.h>)
|
||||
#import <AMapNaviKit/AMapNaviCompositeAnnotation.h>
|
||||
#endif
|
||||
47
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviLocation.h
generated
Normal file
47
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviLocation.h
generated
Normal file
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// AMapNaviLocation.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by eidan on 2018/1/18.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
///当前的自车位置
|
||||
@interface AMapNaviLocation : NSObject<NSCopying>
|
||||
|
||||
///经纬度
|
||||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||||
|
||||
///精确度
|
||||
@property (nonatomic, assign) double accuracy;
|
||||
|
||||
///高度
|
||||
@property (nonatomic, assign) double altitude;
|
||||
|
||||
///方向
|
||||
@property (nonatomic, assign) double heading;
|
||||
|
||||
///速度(km/h)
|
||||
@property (nonatomic, assign) NSInteger speed;
|
||||
|
||||
///时间戳
|
||||
@property (nonatomic, strong) NSDate *timestamp;
|
||||
|
||||
///是否匹配在道路上
|
||||
@property (nonatomic, assign) BOOL isMatchNaviPath;
|
||||
|
||||
///当前所在的segment段的index,从0开始 since 6.7.0
|
||||
@property (nonatomic, assign) int currentSegmentIndex;
|
||||
|
||||
///当前所在的link段的index,从0开始 since 6.7.0
|
||||
@property (nonatomic, assign) int currentLinkIndex;
|
||||
|
||||
///当前自车位置在当前link段所在的point的index,从0开始 since 6.7.0
|
||||
@property (nonatomic, assign) int currentPointIndex;
|
||||
|
||||
///当前定位点是否为参与导航的网络点. 注意:只针对驾车. since 6.8.0
|
||||
@property (nonatomic, assign) BOOL isNetworkNavi;
|
||||
|
||||
@end
|
||||
48
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviManagerConfig.h
generated
Normal file
48
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviManagerConfig.h
generated
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// AMapNaviManagerConfig.h
|
||||
// AMapNaviManagerConfig
|
||||
//
|
||||
// Created by yuanmenglong on 2021/8/25.
|
||||
// Copyright © 2021 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AMapFoundationKit/AMapServices.h>
|
||||
#import "AMapNaviCommonObj.h"
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface AMapNaviManagerConfig : NSObject
|
||||
/**
|
||||
* @brief AMapNaviManagerConfig单例. since 8.0.1
|
||||
* @return AMapNaviManagerConfig实例
|
||||
*/
|
||||
+ (instancetype)sharedConfig;
|
||||
|
||||
#pragma mark - Privacy 隐私合规
|
||||
/**
|
||||
* @brief 更新App是否显示隐私弹窗的状态,隐私弹窗是否包含高德SDK隐私协议内容的状态,注意:必须在导航任何一个manager实例化之前调用. since 8.1.0
|
||||
* @param showStatus 隐私弹窗状态
|
||||
* @param containStatus 包含高德SDK隐私协议状态
|
||||
*/
|
||||
- (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
|
||||
|
||||
/**
|
||||
* @brief 更新用户授权高德SDK隐私协议状态,注意:必须在导航任何一个manager实例化之前调用. since 8.1.0
|
||||
* @param agreeStatus 用户授权高德SDK隐私协议状态
|
||||
*/
|
||||
- (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - Private
|
||||
|
||||
@interface AMapNaviManagerConfig (Private)
|
||||
|
||||
/**
|
||||
* @brief 设置途径点私有实例接口,外部禁止调用. since 7.9.0
|
||||
*/
|
||||
- (void)setViaPointEtaDisplayEnable:(BOOL )isEnable;
|
||||
@end
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviRideDataRepresentable.h
generated
Normal file
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviRideDataRepresentable.h
generated
Normal file
@@ -0,0 +1,65 @@
|
||||
//
|
||||
// AMapNaviRideDataRepresentable.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by liubo on 9/19/16.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class AMapNaviInfo;
|
||||
@class AMapNaviRoute;
|
||||
@class AMapNaviLocation;
|
||||
@class AMapNaviStatisticsInfo;
|
||||
@class AMapNaviRideManager;
|
||||
|
||||
/**
|
||||
* @brief AMapNaviRideDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviRideManager 的addDataRepresentative:方法进行注册,便可获取导航过程中的导航数据更新.
|
||||
* 可以根据不同需求,选取使用特定的数据进行导航界面自定义.
|
||||
* AMapNaviRideView 即通过该协议实现导航过程展示.也可以依据导航数据的更新进行其他的逻辑处理.
|
||||
*/
|
||||
@protocol AMapNaviRideDataRepresentable <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 导航模式更新回调
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param naviMode 导航模式,参考 AMapNaviMode 值
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager updateNaviMode:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 路径ID更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param naviRouteID 导航路径ID
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager updateNaviRouteID:(NSInteger)naviRouteID;
|
||||
|
||||
/**
|
||||
* @brief 路径信息更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param naviRoute 路径信息,参考 AMapNaviRoute 类
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager updateNaviRoute:(nullable AMapNaviRoute *)naviRoute;
|
||||
|
||||
/**
|
||||
* @brief 导航信息更新回调
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param naviInfo 导航信息,参考 AMapNaviInfo 类
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager updateNaviInfo:(nullable AMapNaviInfo *)naviInfo;
|
||||
|
||||
/**
|
||||
* @brief 自车位置更新回调
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param naviLocation 自车位置信息,参考 AMapNaviLocation 类
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager updateNaviLocation:(nullable AMapNaviLocation *)naviLocation;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
283
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviRideManager.h
generated
Normal file
283
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviRideManager.h
generated
Normal file
@@ -0,0 +1,283 @@
|
||||
//
|
||||
// AMapNaviRideManager.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by liubo on 9/19/16.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviTravelManager.h"
|
||||
#import "AMapNaviRideDataRepresentable.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol AMapNaviRideManagerDelegate;
|
||||
|
||||
#pragma mark - AMapNaviRideManager
|
||||
|
||||
///骑行导航管理类
|
||||
@interface AMapNaviRideManager : AMapNaviTravelManager
|
||||
|
||||
#pragma mark - Singleton
|
||||
|
||||
/**
|
||||
* @brief AMapNaviRideManager单例. since 7.4.0
|
||||
* @return AMapNaviRideManager实例
|
||||
*/
|
||||
+ (AMapNaviRideManager *)sharedInstance;
|
||||
|
||||
/**
|
||||
* @brief 销毁AMapNaviRideManager单例. since 7.4.0
|
||||
* @return 是否销毁成功. 如果返回NO,请检查单例是否被强引用
|
||||
*/
|
||||
+ (BOOL)destroyInstance;
|
||||
|
||||
/**
|
||||
* @brief 请使用单例替代. since 7.4.0 init已被禁止使用,请使用单例 [AMapNaviRideManager sharedInstance] 替代
|
||||
*/
|
||||
- (instancetype)init __attribute__((unavailable("since 7.4.0 init 已被禁止使用,请使用单例 [AMapNaviRideManager sharedInstance] 替代")));
|
||||
|
||||
#pragma mark - Delegate
|
||||
|
||||
///实现了 AMapNaviRideManagerDelegate 协议的类指针
|
||||
@property (nonatomic, weak) id<AMapNaviRideManagerDelegate> delegate;
|
||||
|
||||
#pragma mark - Event Listener
|
||||
|
||||
/**
|
||||
* @brief 增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference). since 8.0.1
|
||||
* @param aListener 实现了 AMapNaviRideManagerDelegate 协议的实例
|
||||
*/
|
||||
- (void)addEventListener:(id<AMapNaviRideManagerDelegate>)aListener;
|
||||
|
||||
/**
|
||||
* @brief 移除用于接收导航回调事件的Listener. since 8.0.1
|
||||
* @param aListener 实现了 AMapNaviRideManagerDelegate 协议的实例
|
||||
*/
|
||||
- (void)removeEventListener:(id<AMapNaviRideManagerDelegate>)aListener;
|
||||
|
||||
#pragma mark - Data Representative
|
||||
|
||||
/**
|
||||
* @brief 增加用于展示导航数据的DataRepresentative.注意:该方法不会增加实例对象的引用计数(Weak Reference)
|
||||
* @param aRepresentative 实现了 AMapNaviRideDataRepresentable 协议的实例
|
||||
*/
|
||||
- (void)addDataRepresentative:(id<AMapNaviRideDataRepresentable>)aRepresentative;
|
||||
|
||||
/**
|
||||
* @brief 移除用于展示导航数据的DataRepresentative
|
||||
* @param aRepresentative 实现了 AMapNaviRideDataRepresentable 协议的实例
|
||||
*/
|
||||
- (void)removeDataRepresentative:(id<AMapNaviRideDataRepresentable>)aRepresentative;
|
||||
|
||||
#pragma mark - Navi Route
|
||||
|
||||
///当前导航路径的ID
|
||||
@property (nonatomic, readonly) NSInteger naviRouteID;
|
||||
|
||||
///当前导航路径的信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时的所有路径信息 since 7.5.0
|
||||
* @return 返回多路径规划时的所有路径ID和路线信息
|
||||
*/
|
||||
- (NSDictionary<NSNumber *,AMapNaviRoute *> *)naviRoutes;
|
||||
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 7.5.0
|
||||
* @return 返回多路径规划时的所有路径ID
|
||||
*/
|
||||
- (NSArray<NSNumber *> *)naviRouteIDs;
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时选择路径.注意:该方法仅限于在开始导航前使用,开始导航后该方法无效 since 7.5.0
|
||||
* @param routeID 路径ID
|
||||
* @return 是否选择路径成功
|
||||
*/
|
||||
- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
|
||||
|
||||
#pragma mark - Options
|
||||
|
||||
///偏航时是否重新计算路径,默认YES(需要联网).
|
||||
@property (nonatomic, assign) BOOL isRecalculateRouteForYaw __attribute__((deprecated("已废弃,默认进行重算,since 7.4.0")));
|
||||
|
||||
///卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength since 7.8.0 只有导航中获取卫星定位信号强弱的值有效
|
||||
@property (nonatomic, assign, readonly) AMapNaviGPSSignalStrength gpsSignalStrength;
|
||||
|
||||
#pragma mark - Calculate Route
|
||||
|
||||
// 以下算路方法需要高德坐标(GCJ02)
|
||||
|
||||
/**
|
||||
* @brief 不带起点的骑行路径规划
|
||||
* @param endPoint 终点坐标.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateRideRouteWithEndPoint:(AMapNaviPoint *)endPoint;
|
||||
|
||||
/**
|
||||
* @brief 带起点的骑行路径规划
|
||||
* @param startPoint 起点坐标.
|
||||
* @param endPoint 终点坐标.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateRideRouteWithStartPoint:(AMapNaviPoint *)startPoint
|
||||
endPoint:(AMapNaviPoint *)endPoint;
|
||||
|
||||
/**
|
||||
* @brief 根据高德POIInfo进行骑行路径规划. since 7.5.0
|
||||
* @param startPOIInfo 起点POIInfo, 参考 AMapNaviPOIInfo. 如果以“我的位置”作为起点,请传nil. 如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点
|
||||
* @param endPOIInfo 终点POIInfo, 参考 AMapNaviPOIInfo. 如果POIID合法,优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空
|
||||
* @param strategy 路径的计算策略,参考 AMapNaviTravelStrategy.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateRideRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
strategy:(AMapNaviTravelStrategy)strategy;
|
||||
|
||||
/**
|
||||
* @brief POI算路。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。 since 9.3.5
|
||||
* @param startPOIInfo 起点POIInfo,如果以“我的位置”作为起点,请传nil。如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点。
|
||||
* @param endPOIInfo 终点POIInfo,如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。
|
||||
* @param wayPOIInfos 途经点POIInfo,最多支持16个途经点,超过16个会取前16个。如果POIID合法,优先使用ID参与算路,否则使用坐标点。 注意:POIID和坐标点不能同时为空。
|
||||
* @param strategy 路径的计算策略。
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否。
|
||||
*/
|
||||
- (BOOL)calculateRideRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
wayPOIInfos:(NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
|
||||
strategy:(AMapNaviTravelStrategy)strategy;
|
||||
/**
|
||||
* @brief 独立算路能力接口,可用于不干扰本次导航的单独算路场景. since 7.7.0
|
||||
* @param startPOIInfo 起点POIInfo, 参考 AMapNaviPOIInfo. 如果以“我的位置”作为起点,请传nil. 如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点
|
||||
* @param endPOIInfo 终点POIInfo, 参考 AMapNaviPOIInfo. 如果POIID合法,优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空
|
||||
* @param strategy 路径的计算策略,参考 AMapNaviTravelStrategy.
|
||||
* @param callback 算路完成的回调. 算路成功时,routeGroup 不为空;算路失败时,error 不为空,error.code参照 AMapNaviCalcRouteState.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)independentCalculateRideRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
strategy:(AMapNaviTravelStrategy)strategy
|
||||
callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
|
||||
|
||||
/**
|
||||
* @brief 独立算路能力接口,可用于不干扰本次导航的单独算路场景。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。since 9.3.5
|
||||
* @param startPOIInfo 起点POIInfo,如果以“我的位置”作为起点,请传nil。如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点。
|
||||
* @param endPOIInfo 终点POIInfo,如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。
|
||||
* @param wayPOIInfos 途经点POIInfo,最多支持16个途经点,超过16个会取前16个。如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。
|
||||
* @param strategy 路径的计算策略。
|
||||
* @param callback 算路完成的回调。算路成功时,routeGroup 不为空,算路失败时,error 不为空,error.code参照 AMapNaviCalcRouteState。
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否。
|
||||
*/
|
||||
- (BOOL)independentCalculateRideRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
wayPOIInfos:(NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
|
||||
strategy:(AMapNaviTravelStrategy)strategy
|
||||
callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
|
||||
|
||||
/**
|
||||
* @brief 导航过程中重新规划路径(起点为当前位置,终点位置不变)
|
||||
* @return 重新规划路径所需条件和参数校验是否成功, 不代表算路成功与否,如非导航状态下调用此方法会返回NO.
|
||||
*/
|
||||
- (BOOL)recalculateRideRoute;
|
||||
|
||||
#pragma mark - Manual
|
||||
|
||||
/**
|
||||
* @brief 设置TTS语音播报每播报一个字需要的时间.根据播报一个字的时间和运行的速度,可以更改语音播报的触发时机.
|
||||
* @param time 每个字的播放时间(范围:[250,500]; 单位:毫秒)
|
||||
*/
|
||||
- (void)setTimeForOneWord:(int)time __attribute__((deprecated("已废弃,使用 setIsPlayingTTS: 替代,since 7.4.0")));
|
||||
|
||||
/**
|
||||
* @brief 开发者请根据实际情况设置外界此时是否正在进行语音播报. since 7.4.0
|
||||
* @param playing 如果外界正在播报语音,传入YES,否则传入NO.
|
||||
*/
|
||||
- (void)setTTSPlaying:(BOOL)playing;
|
||||
|
||||
#pragma mark - Statistics Information
|
||||
|
||||
/**
|
||||
* @brief 获取导航统计信息
|
||||
* @return 导航统计信息,参考 AMapNaviStatisticsInfo 类.
|
||||
*/
|
||||
- (nullable AMapNaviStatisticsInfo *)getNaviStatisticsInfo __attribute__((deprecated("已废弃,since 7.4.0")));
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - AMapNaviRideManagerDelegate
|
||||
|
||||
@protocol AMapNaviRideManagerDelegate <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 发生错误时,会调用代理的此方法
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param error 错误信息
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager error:(NSError *)error;
|
||||
|
||||
/**
|
||||
* @brief 骑行路径规划成功后的回调函数
|
||||
* @param rideManager 骑行导航管理类
|
||||
*/
|
||||
- (void)rideManagerOnCalculateRouteSuccess:(AMapNaviRideManager *)rideManager;
|
||||
|
||||
/**
|
||||
* @brief 骑行路径规划失败后的回调函数. 从6.1.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviRideManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param error 错误信息,error.code参照AMapNaviCalcRouteState
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager onCalculateRouteFailure:(NSError *)error;
|
||||
|
||||
/**
|
||||
* @brief 启动导航后回调函数
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param naviMode 导航类型,参考AMapNaviMode
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager didStartNavi:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 出现偏航需要重新计算路径时的回调函数.偏航后将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理.
|
||||
* @param rideManager 骑行导航管理类
|
||||
*/
|
||||
- (void)rideManagerNeedRecalculateRouteForYaw:(AMapNaviRideManager *)rideManager;
|
||||
|
||||
/**
|
||||
* @brief 导航播报信息回调函数
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param soundString 播报文字
|
||||
* @param soundStringType 播报类型,参考 AMapNaviSoundType. 注意:since 6.0.0 AMapNaviSoundType 只返回 AMapNaviSoundTypeDefault
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager playNaviSoundString:(NSString *)soundString soundStringType:(AMapNaviSoundType)soundStringType;
|
||||
|
||||
/**
|
||||
* @brief 模拟导航到达目的地停止导航后的回调函数
|
||||
* @param rideManager 骑行导航管理类
|
||||
*/
|
||||
- (void)rideManagerDidEndEmulatorNavi:(AMapNaviRideManager *)rideManager;
|
||||
|
||||
/**
|
||||
* @brief 导航到达目的地后的回调函数
|
||||
* @param rideManager 骑行导航管理类
|
||||
*/
|
||||
- (void)rideManagerOnArrivedDestination:(AMapNaviRideManager *)rideManager;
|
||||
|
||||
/**
|
||||
* @brief 卫星定位信号强弱回调函数. since 7.4.0
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param gpsSignalStrength 卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength .
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager updateGPSSignalStrength:(AMapNaviGPSSignalStrength)gpsSignalStrength;
|
||||
|
||||
/**
|
||||
* @brief 骑行导航到达途径点的回调函数 since 9.3.5
|
||||
* @param rideManager 骑行导航管理类
|
||||
* @param wayPointIndex 到达途径点的编号,编号从0开始,依次累加。
|
||||
*/
|
||||
- (void)rideManager:(AMapNaviRideManager *)rideManager onArrivedWayPoint:(int)wayPointIndex;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
218
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviRideView.h
generated
Normal file
218
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviRideView.h
generated
Normal file
@@ -0,0 +1,218 @@
|
||||
//
|
||||
// AMapNaviRideView.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 9/19/16.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviHeaderHandler.h"
|
||||
#import "AMapNaviCommonObj.h"
|
||||
#import "AMapNaviRideDataRepresentable.h"
|
||||
#import "AMapNaviEleBikeDataRepresentable.h"
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
///骑行导航界面显示模式
|
||||
typedef NS_ENUM(NSInteger, AMapNaviRideViewShowMode)
|
||||
{
|
||||
AMapNaviRideViewShowModeCarPositionLocked = 1, ///< 锁车状态
|
||||
AMapNaviRideViewShowModeOverview = 2, ///< 全览状态
|
||||
AMapNaviRideViewShowModeNormal = 3, ///< 普通状态
|
||||
};
|
||||
|
||||
@protocol AMapNaviRideViewDelegate;
|
||||
|
||||
///骑行导航界面.该类实现AMapNaviRideDataRepresentable协议,可通过 AMapNaviRideManager 的addDataRepresentative:方法进行注册展示骑行导航过程.
|
||||
@interface AMapNaviRideView : UIView<AMapNaviRideDataRepresentable,AMapNaviEleBikeDataRepresentable>
|
||||
|
||||
#pragma mark - Delegate
|
||||
|
||||
///实现了 AMapNaviRideViewDelegate 协议的类指针
|
||||
@property (nonatomic, weak) id<AMapNaviRideViewDelegate> delegate;
|
||||
|
||||
#pragma mark - Options
|
||||
|
||||
///目前是否为横屏状态. since 7.4.0 内部会自行监听 UIDeviceOrientationDidChange 进行横竖屏切换,无需再设置此值,但用户要自行保证 AMapNaviRideView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight,让 AMapNaviRideView 能够跟着父View一起变化. 可通过回调 -rideView:didChangeOrientation: 获取横竖屏切换时机
|
||||
@property (nonatomic, assign, readonly) BOOL isLandscape;
|
||||
|
||||
///导航界面跟随模式,默认AMapNaviViewTrackingModeMapNorth
|
||||
@property (nonatomic, assign) AMapNaviViewTrackingMode trackingMode;
|
||||
|
||||
///导航界面显示模式,默认AMapNaviDriveViewShowModeCarPositionLocked
|
||||
@property (nonatomic, assign) AMapNaviRideViewShowMode showMode;
|
||||
|
||||
///是否显示界面元素,默认YES
|
||||
@property (nonatomic, assign) BOOL showUIElements;
|
||||
|
||||
///是否黑夜模式,默认NO. 对应的地图样式为:白天模式MAMapTypeNavi,黑夜模式MAMapTypeStandardNight.
|
||||
@property (nonatomic, assign) BOOL showStandardNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 8.0.0")));
|
||||
|
||||
///是否显示全览按钮,默认YES
|
||||
@property (nonatomic, assign) BOOL showBrowseRouteButton;
|
||||
|
||||
///是否显示更多按钮,默认YES
|
||||
@property (nonatomic, assign) BOOL showMoreButton;
|
||||
|
||||
///是否显示转向箭头,默认YES
|
||||
@property (nonatomic, assign) BOOL showTurnArrow;
|
||||
|
||||
///是否显示传感器方向信息,默认NO.设置为YES后,自车图标方向将显示为设备方向
|
||||
@property (nonatomic, assign) BOOL showSensorHeading;
|
||||
|
||||
///导航界面日夜模式类型, 默认为 AMapNaviViewMapModeTypeDay(白天模式) since 8.0.0
|
||||
@property (nonatomic, assign) AMapNaviViewMapModeType mapViewModeType;
|
||||
|
||||
#pragma mark - MapView
|
||||
|
||||
///是否显示指南针,默认NO
|
||||
@property (nonatomic, assign) BOOL showCompass;
|
||||
|
||||
///锁车状态下地图cameraDegree, 默认30.0, 范围[0,60]
|
||||
@property (nonatomic, assign) CGFloat cameraDegree;
|
||||
|
||||
///当前地图是否显示比例尺,默认NO
|
||||
@property (nonatomic, assign) BOOL showScale;
|
||||
|
||||
///当前地图比例尺的原点位置,默认(10,10)
|
||||
@property (nonatomic, assign) CGPoint scaleOrigin;
|
||||
|
||||
///地图的视图锚点. (0, 0)为左上角,(1, 1)为右下角. 可通过设置此值来改变自车图标的默认显示位置. 注意:只有showUIElements为NO时,设置此值才有效 since 8.0.0
|
||||
@property (nonatomic, assign) CGPoint screenAnchor;
|
||||
|
||||
///指南针原点位置. since 8.0.0
|
||||
@property (nonatomic, assign) CGPoint compassOrigin;
|
||||
|
||||
///当前地图是否开启自定义样式, 默认NO. 设置为YES,将忽略showStandardNightType的设置,并将mapType切换为MAMapTypeStandard. 设置为NO,将根据showStandardNightType恢复mapType. since 5.1.0
|
||||
@property (nonatomic, assign) BOOL customMapStyleEnabled __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 8.0.0")));
|
||||
|
||||
/**
|
||||
* @brief 自定义当前地图样式, 目前仅支持自定义标准类型. 已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0
|
||||
* @param customJson 自定义的JSON格式数据.
|
||||
*/
|
||||
- (void)setCustomMapStyle:(NSData *)customJson __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0")));
|
||||
|
||||
/**
|
||||
* @brief 根据web导出数据设置地图样式, 目前仅支持自定义标准类型. 默认不生效,调用customMapStyleEnabled=YES使生效. since 6.2.0
|
||||
* @param data 高德web端工具导出的地图样式数据.
|
||||
*/
|
||||
- (void)setCustomMapStyleWithWebData:(NSData*)data __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0")));
|
||||
|
||||
/**
|
||||
* @brief 自定义地图样式设置,可以支持分级样式配置,如控制不同级别显示不同的颜色(自6.6.0开始使用新版样式,旧版样式无法在新版接口setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions中使用,请到官网(lbs.amap.com)更新新版样式文件)
|
||||
* @param styleOptions 自定义样式options. since 6.6.0
|
||||
*/
|
||||
- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
|
||||
|
||||
#pragma mark - Polyline Texture
|
||||
|
||||
///路线polyline的宽度,设置0恢复默认宽度
|
||||
@property (nonatomic, assign) CGFloat lineWidth;
|
||||
|
||||
///标准路线Polyline的纹理图片,设置nil恢复默认纹理.纹理图片需满足:长宽相等,且宽度值为2的次幂
|
||||
@property (nonatomic, copy, nullable) UIImage *normalTexture;
|
||||
|
||||
///走过的路线是否置灰,默认为NO. since 7.4.0
|
||||
@property (nonatomic, assign) BOOL showGreyAfterPass;
|
||||
|
||||
///路线纹理部分走过后置灰的纹理图片,设置nil恢复默认纹理. 纹理图片需满足:长宽相等,且宽度值为2的次幂. since 7.4.0
|
||||
@property (nonatomic, copy, nullable) UIImage *greyTexture;
|
||||
|
||||
#pragma mark - Image
|
||||
|
||||
/**
|
||||
* @brief 设置路径起点图标
|
||||
* @param startPointImage 起点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setStartPointImage:(nullable UIImage *)startPointImage;
|
||||
|
||||
/**
|
||||
* @brief 设置路径终点图标
|
||||
* @param endPointImage 终点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setEndPointImage:(nullable UIImage *)endPointImage;
|
||||
|
||||
/**
|
||||
* @brief 设置自车图标
|
||||
* @param carImage 自车图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setCarImage:(nullable UIImage *)carImage;
|
||||
|
||||
/**
|
||||
* @brief 设置自车罗盘图标
|
||||
* @param carCompassImage 自车罗盘图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
|
||||
|
||||
/**
|
||||
* @brief 设置路径途经点图标 since 9.3.5
|
||||
* @param wayPointImage 途经点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
|
||||
#pragma mark - Other
|
||||
|
||||
/**
|
||||
* @brief 在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用此函数. since 8.0.0
|
||||
*/
|
||||
- (void)updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview;
|
||||
|
||||
@end
|
||||
|
||||
@protocol AMapNaviRideViewDelegate <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 导航界面关闭按钮点击时的回调函数
|
||||
* @param rideView 骑行导航界面
|
||||
*/
|
||||
- (void)rideViewCloseButtonClicked:(AMapNaviRideView *)rideView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面更多按钮点击时的回调函数
|
||||
* @param rideView 骑行导航界面
|
||||
*/
|
||||
- (void)rideViewMoreButtonClicked:(AMapNaviRideView *)rideView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面转向指示View点击时的回调函数
|
||||
* @param rideView 骑行导航界面
|
||||
*/
|
||||
- (void)rideViewTrunIndicatorViewTapped:(AMapNaviRideView *)rideView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面显示模式改变后的回调函数
|
||||
* @param rideView 骑行导航界面
|
||||
* @param showMode 显示模式
|
||||
*/
|
||||
- (void)rideView:(AMapNaviRideView *)rideView didChangeShowMode:(AMapNaviRideViewShowMode)showMode;
|
||||
|
||||
/**
|
||||
* @brief 导航界面跟随模式改变后的回调函数. since 7.4.0
|
||||
* @param rideView 骑行导航界面
|
||||
* @param trackMode 跟随模式
|
||||
*/
|
||||
- (void)rideView:(AMapNaviRideView *)rideView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
|
||||
|
||||
/**
|
||||
* @brief 导航界面横竖屏切换后的回调函数. since 7.4.0
|
||||
* @param rideView 骑行导航界面
|
||||
* @param isLandscape 是否是横屏
|
||||
*/
|
||||
- (void)rideView:(AMapNaviRideView *)rideView didChangeOrientation:(BOOL)isLandscape;
|
||||
|
||||
/**
|
||||
* @brief 导航界面白天黑夜模式切换后的回调函数. since 8.0.0
|
||||
* @param rideView 骑行导航界面
|
||||
* @param showStandardNightType 是否为黑夜模式
|
||||
*/
|
||||
- (void)rideView:(AMapNaviRideView *)rideView didChangeDayNightType:(BOOL)showStandardNightType;
|
||||
|
||||
/**
|
||||
* @brief 在showUIElements为NO时,骑行导航界面需要实时的取得可视区域,比如切换成全览时、横竖屏切换时. 注意:此回调只在showUIElements为NO时,才会调用且比较频繁,在获取EdgePadding时请勿进行大量的计算. since 8.0.0
|
||||
* @param rideView 骑行导航界面
|
||||
* @return 如(100, 50, 80, 60)表示的是:rideView.bounds 上边留出100px,左边留出50px,底部留出80px,右边留出60px后的区域为可视区域,一般EdgePadding的值由用户的界面布局决定.
|
||||
*/
|
||||
- (UIEdgeInsets)rideViewEdgePadding:(AMapNaviRideView *)rideView;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
262
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviRoute.h
generated
Normal file
262
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviRoute.h
generated
Normal file
@@ -0,0 +1,262 @@
|
||||
//
|
||||
// AMapNaviRoute.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 14-7-11.
|
||||
// Copyright (c) 2014年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
#pragma mark - AMapNaviRouteGuideSegment
|
||||
|
||||
///路线详情的分段信息. since 7.5.0
|
||||
@interface AMapNaviRouteGuideSegment : NSObject<NSCopying>
|
||||
|
||||
///分段的转向类型
|
||||
@property (nonatomic, assign) AMapNaviIconType iconType;
|
||||
|
||||
///分段的详细描述
|
||||
@property (nonatomic, strong, nullable) NSString *detailedDescription;
|
||||
|
||||
///分段是否到达途径点
|
||||
@property (nonatomic, assign) BOOL isArriveWayPoint;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - AMapNaviRouteGuideGroup
|
||||
|
||||
///路线详情的分组信息. since 7.5.0
|
||||
@interface AMapNaviRouteGuideGroup : NSObject<NSCopying>
|
||||
|
||||
///分组的名称描述
|
||||
@property (nonatomic, strong, nullable) NSString *groupName;
|
||||
|
||||
///分组的长度(单位:米)
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
|
||||
///分组的转向类型和该组中分段的第一个转向类型一致
|
||||
@property (nonatomic, assign) AMapNaviIconType iconType;
|
||||
|
||||
///分组的预估时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger time;
|
||||
|
||||
///分组导航段路口点的坐标
|
||||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||||
|
||||
///分组中的所有分段
|
||||
@property (nonatomic, strong) NSArray <AMapNaviRouteGuideSegment *> *guideSegments;
|
||||
|
||||
///分组的红绿灯数量,注意:只针对驾车.
|
||||
@property (nonatomic, assign) NSInteger trafficLightCount;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
// AMapNaviLink --组成--> AMapNaviSegment --组成--> AMapNaviRoute
|
||||
|
||||
#pragma mark - AMapNaviLink
|
||||
|
||||
///分段的Link信息
|
||||
@interface AMapNaviLink : NSObject<NSCopying>
|
||||
|
||||
///Link的所有坐标
|
||||
@property (nonatomic, strong) NSArray<AMapNaviPoint *> *coordinates;
|
||||
|
||||
///Link的长度(单位:米)
|
||||
@property (nonatomic, assign) NSInteger length;
|
||||
|
||||
///Link的预估时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger time;
|
||||
|
||||
///Link的道路名称
|
||||
@property (nonatomic, strong, nullable) NSString *roadName;
|
||||
|
||||
///Link的道路类型
|
||||
@property (nonatomic, assign) AMapNaviRoadClass roadClass;
|
||||
|
||||
///Link的FormWay信息
|
||||
@property (nonatomic, assign) AMapNaviFormWay formWay;
|
||||
|
||||
///Link是否有红绿灯
|
||||
@property (nonatomic, assign) BOOL isHadTrafficLights;
|
||||
|
||||
///Link的路况信息. 注意:只针对驾车. since 6.3.0
|
||||
@property (nonatomic, assign) AMapNaviRouteStatus trafficStatus;
|
||||
|
||||
/*
|
||||
获取带有深绿路况新的表达方式的交通状态,(获取交通状态, 当前Link无精细数据时有效)
|
||||
畅通状态: 100--200; 而不在 [110,140)深绿、 [160,190)绿内,则路况状态默认为 “畅通”(绿色)
|
||||
缓行状态: 200--300; 而不在 [210,290)内, 则路况状态默认为 “缓行”(黄色)
|
||||
拥堵状态: 300--400; 而不在 [310,340)拥堵、 [360,390)极度拥堵内,则路况状态默认为“拥堵”(红色)
|
||||
无交通流: 900--999; 路况全部为“无交通流”
|
||||
在以上区间之外的,包括0 以及所有其他无效值,均按照“未知”处理。
|
||||
特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.6.0
|
||||
*/
|
||||
@property (nonatomic, assign) NSInteger trafficFineStatus;
|
||||
|
||||
///Link的类型. 注意:只针对驾车. since 6.3.0
|
||||
@property (nonatomic, assign) AMapNaviLinkType linkType;
|
||||
|
||||
///Link的ownership类型. 注意:只针对驾车. since 9.6.0
|
||||
@property (nonatomic, assign) AMapNaviOwnershipType ownershipType;
|
||||
@end
|
||||
|
||||
#pragma mark - AMapNaviSegment
|
||||
|
||||
///路径的分段信息
|
||||
@interface AMapNaviSegment : NSObject<NSCopying>
|
||||
|
||||
///分段的所有坐标
|
||||
@property (nonatomic, strong) NSArray<AMapNaviPoint *> *coordinates;
|
||||
|
||||
///分段的所有Link
|
||||
@property (nonatomic, strong) NSArray<AMapNaviLink *> *links;
|
||||
|
||||
///分段的长度(单位:米)
|
||||
@property (nonatomic, assign) NSInteger length;
|
||||
|
||||
///分段的预估时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger time;
|
||||
|
||||
///分段的转向类型
|
||||
@property (nonatomic, assign) AMapNaviIconType iconType;
|
||||
|
||||
///分段的收费路长度(单位:米). 注意:只针对驾车.
|
||||
@property (nonatomic, assign) NSInteger chargeLength;
|
||||
|
||||
///分段的收费金额. 注意:只针对驾车.
|
||||
@property (nonatomic, assign) NSInteger tollCost;
|
||||
|
||||
///分段的红绿灯数量
|
||||
@property (nonatomic, assign) NSInteger trafficLightCount;
|
||||
|
||||
///分段是否到达途经点. 注意:只针对驾车.
|
||||
@property (nonatomic, assign) BOOL isArriveWayPoint;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - AMapNaviRoute
|
||||
|
||||
///导航路径信息
|
||||
@interface AMapNaviRoute : NSObject<NSCopying>
|
||||
|
||||
///导航路径总长度(单位:米)
|
||||
@property (nonatomic, assign) NSInteger routeLength;
|
||||
|
||||
///导航路径所需的时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger routeTime;
|
||||
|
||||
///导航路线最小坐标点和最大坐标点围成的矩形区域
|
||||
@property (nonatomic, strong) AMapNaviPointBounds *routeBounds;
|
||||
|
||||
///导航路线的中心点,即导航路径的最小外接矩形对角线的交点
|
||||
@property (nonatomic, strong) AMapNaviPoint *routeCenterPoint;
|
||||
|
||||
///导航路线的所有形状点
|
||||
@property (nonatomic, strong) NSArray<AMapNaviPoint *> *routeCoordinates;
|
||||
|
||||
///路线方案的起点坐标
|
||||
@property (nonatomic, strong) AMapNaviPoint *routeStartPoint;
|
||||
|
||||
///路线方案的终点坐标
|
||||
@property (nonatomic, strong) AMapNaviPoint *routeEndPoint;
|
||||
|
||||
///导航路线的所有分段
|
||||
@property (nonatomic, strong) NSArray<AMapNaviSegment *> *routeSegments;
|
||||
|
||||
///导航路线上分段的总数
|
||||
@property (nonatomic, assign) NSInteger routeSegmentCount;
|
||||
|
||||
///导航路线上的所有电子眼. 注意:只针对驾车.
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviCameraInfo *> *routeCameras;
|
||||
|
||||
///导航路线上红绿灯的总数
|
||||
@property (nonatomic, assign) NSInteger routeTrafficLightCount;
|
||||
|
||||
///导航路线上的标签信息. 注意:只针对驾车. since 5.0.0
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteLabel *> *routeLabels;
|
||||
|
||||
///导航路线的花费金额(单位:元). 注意:只针对驾车.
|
||||
@property (nonatomic, assign) NSInteger routeTollCost;
|
||||
|
||||
///路径的途经点坐标
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviPoint *> *wayPoints __attribute__((deprecated("该字段已废弃,使用wayPointsInfo替代,since 6.7.0")));
|
||||
|
||||
///路径的途经点所在segment段的index
|
||||
@property (nonatomic, strong, nullable) NSIndexPath *wayPointsIndexes __attribute__((deprecated("该字段已废弃,使用wayPointsInfo替代,since 6.7.0")));
|
||||
|
||||
///路径的途经点在routeCoordinates上对应的index
|
||||
@property (nonatomic, strong, nullable) NSArray<NSNumber *> *wayPointCoordIndexes __attribute__((deprecated("该字段已废弃,使用wayPointsInfo替代,since 6.7.0")));
|
||||
|
||||
///路径限行信息. 注意:只针对驾车. since 5.0.0
|
||||
@property (nonatomic, strong, nullable) AMapNaviRestrictionInfo *restrictionInfo;
|
||||
|
||||
///路径的路况信息. 注意:只针对驾车. since 5.1.0
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviTrafficStatus *> *routeTrafficStatuses;
|
||||
|
||||
///路径的聚合段信息. 注意:只针对驾车. since 5.1.0
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviGroupSegment *> *routeGroupSegments;
|
||||
|
||||
///路径经过的城市的adcode列表. 注意:只针对驾车. since 5.1.0
|
||||
@property (nonatomic, strong, nullable) NSArray<NSNumber *> *routeCityAdcodes;
|
||||
|
||||
///路径的所有红绿灯坐标. 注意:只针对驾车. since 5.3.0
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviPoint *> *routeTrafficLights;
|
||||
|
||||
///路径上的禁行标示信息. 注意:只针对驾车. since 6.0.0
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteForbiddenInfo *> *forbiddenInfo;
|
||||
|
||||
///道路设施信息. 注意:只针对驾车. since 6.0.0
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviRoadFacilityInfo *> *roadFacilityInfo;
|
||||
|
||||
///路径的扎点. 注意:只针对驾车. since 6.3.0
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviRouteIconPoint *> *routeIconPoints;
|
||||
|
||||
///道路交通事件信息. 注意:只针对驾车. since 6.4.0
|
||||
@property (nonatomic, strong, nullable) NSArray<AMapNaviTrafficIncidentInfo *> *trafficIncidentInfo;
|
||||
|
||||
///路径的途径点相关信息, 具体参考 AMapNaviRouteWayPointInfo . 注意:只针对驾车. since 6.7.0
|
||||
@property (nonatomic, strong, nullable) NSArray <AMapNaviRouteWayPointInfo *> *wayPointsInfo;
|
||||
|
||||
///根据路况生成的纹理索引数组, 可直接用于路线多彩线 MAMultiPolyline 的创建 .注意:只针对驾车. since 6.7.0
|
||||
@property (nonatomic, strong, nullable) NSArray <NSNumber *> *drawStyleIndexes;
|
||||
|
||||
///当前路线的唯一标识ID . since 6.7.0
|
||||
@property (nonatomic, assign) NSUInteger routeUID;
|
||||
|
||||
///路线详情信息. since 7.5.0
|
||||
@property (nonatomic, strong) NSArray <AMapNaviRouteGuideGroup *> *guideGroups;
|
||||
|
||||
@end
|
||||
|
||||
///导航路径信息集合. since 7.7.0
|
||||
@interface AMapNaviRouteGroup : NSObject<NSCopying>
|
||||
|
||||
- (nullable instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
///当前默认选中导航路径的ID
|
||||
@property (nonatomic, readonly) NSInteger naviRouteID;
|
||||
|
||||
///当前默认导航路径的信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
|
||||
|
||||
///多路径规划时的所有路径ID,路径ID为 NSInteger 类型.
|
||||
@property (nonatomic, readonly, nullable) NSArray<NSNumber *> *naviRouteIDs;
|
||||
|
||||
///多路径规划时的所有路径信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) NSDictionary<NSNumber *, AMapNaviRoute *> *naviRoutes;
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时选择路径.注意:该方法仅限于在开始导航前使用,开始导航后该方法无效.
|
||||
* @param routeID 路径ID
|
||||
* @return 是否选择路径成功
|
||||
*/
|
||||
- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
38
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviStatisticsInfo.h
generated
Normal file
38
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviStatisticsInfo.h
generated
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// AMapNaviStatisticsInfo.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 15/12/28.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
///导航统计信息
|
||||
@interface AMapNaviStatisticsInfo : NSObject<NSCopying,NSCoding>
|
||||
|
||||
///实际的行驶用时(包括中途停车时间,单位:秒)
|
||||
@property (nonatomic, assign) NSInteger actualDrivenTime;
|
||||
|
||||
///实际的行驶里程(单位:米)
|
||||
@property (nonatomic, assign) NSInteger actualDrivenDisance;
|
||||
|
||||
///平均速度(实际的行驶里程/实际的行驶用时,单位:公里/小时)
|
||||
@property (nonatomic, assign) NSInteger averageSpeed;
|
||||
|
||||
///最高速度(单位:公里/小时)
|
||||
@property (nonatomic, assign) NSInteger highestSpeed;
|
||||
|
||||
///电子眼播报的超速次数,关闭电子眼播报(AMapNaviDriveManager.updateCameraInfo)则没有计数
|
||||
@property (nonatomic, assign) NSInteger overspeedCount;
|
||||
|
||||
///偏航次数
|
||||
@property (nonatomic, assign) NSInteger rerouteCount;
|
||||
|
||||
///急刹车次数
|
||||
@property (nonatomic, assign) NSInteger brakesCount;
|
||||
|
||||
///等待及拥堵时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger slowTime;
|
||||
|
||||
@end
|
||||
42
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviTrafficBarView.h
generated
Normal file
42
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviTrafficBarView.h
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// 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
|
||||
18
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviTravelManager.h
generated
Normal file
18
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviTravelManager.h
generated
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// AMapNaviTravelManager.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by eidanlin on 2020/3/10.
|
||||
// Copyright © 2020 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviBaseManager.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
///注意:该类为骑步行控制器基类,请不要直接初始化使用
|
||||
@interface AMapNaviTravelManager : AMapNaviBaseManager
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
33
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviVersion.h
generated
Normal file
33
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviVersion.h
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// AMapNaviVersion.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 16/1/7.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "AMapNaviHeaderHandler.h"
|
||||
|
||||
#ifndef AMapNaviVersion_h
|
||||
#define AMapNaviVersion_h
|
||||
|
||||
#define AMapNaviVersionNumber 90600
|
||||
#define AMapNaviFoundationVersionMinRequired 10800
|
||||
#define AMapNavi3DMapVersionMinRequired 90000
|
||||
|
||||
/// 依赖库版本检测
|
||||
#if AMapFoundationVersionNumber < AMapNaviFoundationVersionMinRequired
|
||||
#error "The AMapFoundationKit version is less than minimum required, please update! Any questions please to visit http://lbs.amap.com"
|
||||
#endif
|
||||
|
||||
#ifdef MAMapVersionNumber
|
||||
#if MAMapVersionNumber < AMapNavi3DMapVersionMinRequired
|
||||
#error "The MAMapKit(3D Version) version is less than minimum required, please update! Any questions please to visit http://lbs.amap.com"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
FOUNDATION_EXTERN NSString * const AMapNaviVersion;
|
||||
FOUNDATION_EXTERN NSString * const AMapNaviName;
|
||||
|
||||
#endif /* AMapNaviVersion_h */
|
||||
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviWalkDataRepresentable.h
generated
Normal file
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviWalkDataRepresentable.h
generated
Normal file
@@ -0,0 +1,65 @@
|
||||
//
|
||||
// AMapNaviWalkDataRepresentable.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by 刘博 on 16/1/13.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviCommonObj.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class AMapNaviInfo;
|
||||
@class AMapNaviRoute;
|
||||
@class AMapNaviLocation;
|
||||
@class AMapNaviStatisticsInfo;
|
||||
@class AMapNaviWalkManager;
|
||||
|
||||
/**
|
||||
* @brief AMapNaviWalkDataRepresentable协议.实例对象可以通过实现该协议,并将其通过 AMapNaviWalkManager 的addDataRepresentative:方法进行注册,便可获取导航过程中的导航数据更新.
|
||||
* 可以根据不同需求,选取使用特定的数据进行导航界面自定义.
|
||||
* AMapNaviWalkView 即通过该协议实现导航过程展示.也可以依据导航数据的更新进行其他的逻辑处理.
|
||||
*/
|
||||
@protocol AMapNaviWalkDataRepresentable <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 导航模式更新回调
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param naviMode 导航模式,参考 AMapNaviMode 值
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviMode:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 路径ID更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param naviRouteID 导航路径ID
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviRouteID:(NSInteger)naviRouteID;
|
||||
|
||||
/**
|
||||
* @brief 路径信息更新回调. 注意:请不要在此回调中调用 -selectNaviRouteWithRouteID: 接口,否则会出现死循环调用.
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param naviRoute 路径信息,参考 AMapNaviRoute 类
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviRoute:(nullable AMapNaviRoute *)naviRoute;
|
||||
|
||||
/**
|
||||
* @brief 导航信息更新回调
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param naviInfo 导航信息,参考 AMapNaviInfo 类
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviInfo:(nullable AMapNaviInfo *)naviInfo;
|
||||
|
||||
/**
|
||||
* @brief 自车位置更新回调
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param naviLocation 自车位置信息,参考 AMapNaviLocation 类
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager updateNaviLocation:(nullable AMapNaviLocation *)naviLocation;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
284
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviWalkManager.h
generated
Normal file
284
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviWalkManager.h
generated
Normal file
@@ -0,0 +1,284 @@
|
||||
//
|
||||
// AMapNaviWalkManager.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by 刘博 on 16/1/13.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviTravelManager.h"
|
||||
#import "AMapNaviWalkDataRepresentable.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol AMapNaviWalkManagerDelegate;
|
||||
|
||||
#pragma mark - AMapNaviWalkManager
|
||||
|
||||
///步行导航管理类
|
||||
@interface AMapNaviWalkManager : AMapNaviTravelManager
|
||||
|
||||
#pragma mark - Singleton
|
||||
|
||||
/**
|
||||
* @brief AMapNaviWalkManager单例. since 7.4.0
|
||||
* @return AMapNaviWalkManager实例
|
||||
*/
|
||||
+ (AMapNaviWalkManager *)sharedInstance;
|
||||
|
||||
/**
|
||||
* @brief 销毁AMapNaviWalkManager单例. since 7.4.0
|
||||
* @return 是否销毁成功. 如果返回NO,请检查单例是否被强引用
|
||||
*/
|
||||
+ (BOOL)destroyInstance;
|
||||
|
||||
/**
|
||||
* @brief 请使用单例替代. since 7.4.0 init已被禁止使用,请使用单例 [AMapNaviWalkManager sharedInstance] 替代
|
||||
*/
|
||||
- (instancetype)init __attribute__((unavailable("since 7.4.0 init 已被禁止使用,请使用单例 [AMapNaviWalkManager sharedInstance] 替代")));
|
||||
|
||||
#pragma mark - Delegate
|
||||
|
||||
///实现了 AMapNaviWalkManagerDelegate 协议的类指针
|
||||
@property (nonatomic, weak) id<AMapNaviWalkManagerDelegate> delegate;
|
||||
|
||||
#pragma mark - Event Listener
|
||||
|
||||
/**
|
||||
* @brief 增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference). since 8.0.1
|
||||
* @param aListener 实现了 AMapNaviRideManagerDelegate 协议的实例
|
||||
*/
|
||||
- (void)addEventListener:(id<AMapNaviWalkManagerDelegate>)aListener;
|
||||
|
||||
/**
|
||||
* @brief 移除用于接收导航回调事件的Listener. since 8.0.1
|
||||
* @param aListener 实现了 AMapNaviRideManagerDelegate 协议的实例
|
||||
*/
|
||||
- (void)removeEventListener:(id<AMapNaviWalkManagerDelegate>)aListener;
|
||||
|
||||
#pragma mark - Data Representative
|
||||
|
||||
/**
|
||||
* @brief 增加用于展示导航数据的DataRepresentative.注意:该方法不会增加实例对象的引用计数(Weak Reference)
|
||||
* @param aRepresentative 实现了 AMapNaviWalkDataRepresentable 协议的实例
|
||||
*/
|
||||
- (void)addDataRepresentative:(id<AMapNaviWalkDataRepresentable>)aRepresentative;
|
||||
|
||||
/**
|
||||
* @brief 移除用于展示导航数据的DataRepresentative
|
||||
* @param aRepresentative 实现了 AMapNaviWalkDataRepresentable 协议的实例
|
||||
*/
|
||||
- (void)removeDataRepresentative:(id<AMapNaviWalkDataRepresentable>)aRepresentative;
|
||||
|
||||
#pragma mark - Navi Route
|
||||
|
||||
///当前导航路径的ID
|
||||
@property (nonatomic, readonly) NSInteger naviRouteID;
|
||||
|
||||
///当前导航路径的信息,参考 AMapNaviRoute 类.
|
||||
@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时的所有路径信息 since 7.5.0
|
||||
* @return 返回多路径规划时的所有路径ID和路线信息
|
||||
*/
|
||||
- (NSDictionary<NSNumber *,AMapNaviRoute *> *)naviRoutes;
|
||||
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 7.5.0
|
||||
* @return 返回多路径规划时的所有路径ID
|
||||
*/
|
||||
- (NSArray<NSNumber *> *)naviRouteIDs;
|
||||
|
||||
/**
|
||||
* @brief 多路径规划时选择路径.注意:该方法仅限于在开始导航前使用,开始导航后该方法无效 since 7.5.0
|
||||
* @param routeID 路径ID
|
||||
* @return 是否选择路径成功
|
||||
*/
|
||||
- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
|
||||
|
||||
#pragma mark - Options
|
||||
|
||||
///偏航时是否重新计算路径,默认YES(需要联网).
|
||||
@property (nonatomic, assign) BOOL isRecalculateRouteForYaw __attribute__((deprecated("已废弃,默认进行重算,since 7.4.0")));
|
||||
|
||||
///卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength since 7.8.0 只有导航中获取卫星定位信号强弱的值有效
|
||||
@property (nonatomic, assign, readonly) AMapNaviGPSSignalStrength gpsSignalStrength;
|
||||
|
||||
#pragma mark - Calculate Route
|
||||
|
||||
// 以下算路方法需要高德坐标(GCJ02)
|
||||
|
||||
/**
|
||||
* @brief 不带起点的步行路径规划
|
||||
* @param endPoints 终点坐标.支持多个终点,终点列表的尾点为实时导航终点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateWalkRouteWithEndPoints:(NSArray<AMapNaviPoint *> *)endPoints;
|
||||
|
||||
/**
|
||||
* @brief 带起点的步行路径规划
|
||||
* @param startPoints 起点坐标.支持多个起点,起点列表的尾点为实时导航起点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧.
|
||||
* @param endPoints 终点坐标.支持多个终点,终点列表的尾点为实时导航终点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateWalkRouteWithStartPoints:(NSArray<AMapNaviPoint *> *)startPoints
|
||||
endPoints:(NSArray<AMapNaviPoint *> *)endPoints;
|
||||
|
||||
/**
|
||||
* @brief 根据高德POIInfo进行步行路径规划. since 7.5.0
|
||||
* @param startPOIInfo 起点POIInfo, 参考 AMapNaviPOIInfo. 如果以“我的位置”作为起点,请传nil. 如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点
|
||||
* @param endPOIInfo 终点POIInfo, 参考 AMapNaviPOIInfo. 如果POIID合法,优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空
|
||||
* @param strategy 路径的计算策略,参考 AMapNaviTravelStrategy.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
strategy:(AMapNaviTravelStrategy)strategy;
|
||||
|
||||
/**
|
||||
* @brief POI算路。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。 since 9.3.5
|
||||
* @param startPOIInfo 起点POIInfo,如果以“我的位置”作为起点,请传nil。如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点。
|
||||
* @param endPOIInfo 终点POIInfo,如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。
|
||||
* @param wayPOIInfos 途经点POIInfo,最多支持16个途经点,超过16个会取前16个。如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。
|
||||
* @param strategy 路径的计算策略。
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)calculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
wayPOIInfos:(nullable NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
|
||||
strategy:(AMapNaviTravelStrategy)strategy;
|
||||
|
||||
/**
|
||||
* @brief 独立算路能力接口,可用于不干扰本次导航的单独算路场景. since 7.8.0
|
||||
* @param startPOIInfo 起点POIInfo, 参考 AMapNaviPOIInfo. 如果以“我的位置”作为起点,请传nil. 如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点
|
||||
* @param endPOIInfo 终点POIInfo, 参考 AMapNaviPOIInfo. 如果POIID合法,优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空
|
||||
* @param strategy 路径的计算策略,参考 AMapNaviTravelStrategy.
|
||||
* @param callback 算路完成的回调. 算路成功时,routeGroup 不为空;算路失败时,error 不为空,error.code参照 AMapNaviCalcRouteState.
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否
|
||||
*/
|
||||
- (BOOL)independentCalculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
strategy:(AMapNaviTravelStrategy)strategy
|
||||
callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
|
||||
|
||||
/**
|
||||
* @brief 独立算路能力接口,可用于不干扰本次导航的单独算路场景。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。 since 9.4.0
|
||||
* @param startPOIInfo 起点POIInfo,如果以“我的位置”作为起点,请传nil。如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点。
|
||||
* @param endPOIInfo 终点POIInfo,如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。
|
||||
* @param wayPOIInfos 途经点POIInfo,最多支持16个途经点,超过16个会取前16个。如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。
|
||||
* @param strategy 路径的计算策略。
|
||||
* @param callback 算路完成的回调。算路成功时,routeGroup 不为空;算路失败时,error 不为空,error.code参照 AMapNaviCalcRouteState。
|
||||
* @return 规划路径所需条件和参数校验是否成功,不代表算路成功与否。
|
||||
*/
|
||||
- (BOOL)independentCalculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
|
||||
endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
|
||||
wayPOIInfos:(nullable NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
|
||||
strategy:(AMapNaviTravelStrategy)strategy
|
||||
callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
|
||||
|
||||
/**
|
||||
* @brief 导航过程中重新规划路径(起点为当前位置,终点位置不变)
|
||||
* @return 重新规划路径所需条件和参数校验是否成功, 不代表算路成功与否,如非导航状态下调用此方法会返回NO.
|
||||
*/
|
||||
- (BOOL)recalculateWalkRoute;
|
||||
|
||||
#pragma mark - Manual
|
||||
|
||||
/**
|
||||
* @brief 设置TTS语音播报每播报一个字需要的时间.根据播报一个字的时间和运行的速度,可以更改语音播报的触发时机.
|
||||
* @param time 每个字的播放时间(范围:[250,500]; 单位:毫秒)
|
||||
*/
|
||||
- (void)setTimeForOneWord:(int)time __attribute__((deprecated("已废弃,使用 setIsPlayingTTS: 替代,since 7.4.0")));
|
||||
|
||||
/**
|
||||
* @brief 开发者请根据实际情况设置外界此时是否正在进行语音播报. since 7.4.0
|
||||
* @param playing 如果外界正在播报语音,传入YES,否则传入NO.
|
||||
*/
|
||||
- (void)setTTSPlaying:(BOOL)playing;
|
||||
|
||||
#pragma mark - Statistics Information
|
||||
|
||||
/**
|
||||
* @brief 获取导航统计信息
|
||||
* @return 导航统计信息,参考 AMapNaviStatisticsInfo 类.
|
||||
*/
|
||||
- (nullable AMapNaviStatisticsInfo *)getNaviStatisticsInfo __attribute__((deprecated("已废弃,since 7.4.0")));
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - AMapNaviWalkManagerDelegate
|
||||
|
||||
@protocol AMapNaviWalkManagerDelegate <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 发生错误时,会调用代理的此方法
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param error 错误信息
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager error:(NSError *)error;
|
||||
|
||||
/**
|
||||
* @brief 步行路径规划成功后的回调函数
|
||||
* @param walkManager 步行导航管理类
|
||||
*/
|
||||
- (void)walkManagerOnCalculateRouteSuccess:(AMapNaviWalkManager *)walkManager;
|
||||
|
||||
/**
|
||||
* @brief 步行路径规划失败后的回调函数. 从6.1.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 walkManager:updateNaviMode: 回调; AMapNaviWalkManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param error 错误信息,error.code参照AMapNaviCalcRouteState
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager onCalculateRouteFailure:(NSError *)error;
|
||||
|
||||
/**
|
||||
* @brief 启动导航后回调函数
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param naviMode 导航类型,参考AMapNaviMode
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager didStartNavi:(AMapNaviMode)naviMode;
|
||||
|
||||
/**
|
||||
* @brief 出现偏航需要重新计算路径时的回调函数.偏航后将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理.
|
||||
* @param walkManager 步行导航管理类
|
||||
*/
|
||||
- (void)walkManagerNeedRecalculateRouteForYaw:(AMapNaviWalkManager *)walkManager;
|
||||
|
||||
/**
|
||||
* @brief 导航播报信息回调函数
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param soundString 播报文字
|
||||
* @param soundStringType 播报类型,参考AMapNaviSoundType. 注意:since 6.0.0 AMapNaviSoundType 只返回 AMapNaviSoundTypeDefault
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager playNaviSoundString:(NSString *)soundString soundStringType:(AMapNaviSoundType)soundStringType;
|
||||
|
||||
/**
|
||||
* @brief 模拟导航到达目的地停止导航后的回调函数
|
||||
* @param walkManager 步行导航管理类
|
||||
*/
|
||||
- (void)walkManagerDidEndEmulatorNavi:(AMapNaviWalkManager *)walkManager;
|
||||
|
||||
/**
|
||||
* @brief 导航到达目的地后的回调函数
|
||||
* @param walkManager 步行导航管理类
|
||||
*/
|
||||
- (void)walkManagerOnArrivedDestination:(AMapNaviWalkManager *)walkManager;
|
||||
|
||||
/**
|
||||
* @brief 卫星定位信号强弱回调函数. since 7.4.0
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param gpsSignalStrength 卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength .
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager updateGPSSignalStrength:(AMapNaviGPSSignalStrength)gpsSignalStrength;
|
||||
|
||||
/**
|
||||
* @brief 步行导航到达途径点的回调函数 since 9.3.5
|
||||
* @param walkManager 步行导航管理类
|
||||
* @param wayPointIndex wayPointIndex 到达途径点的编号,编号从0开始,依次累加。
|
||||
*/
|
||||
- (void)walkManager:(AMapNaviWalkManager *)walkManager onArrivedWayPoint:(int)wayPointIndex;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
218
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviWalkView.h
generated
Normal file
218
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/AMapNaviWalkView.h
generated
Normal file
@@ -0,0 +1,218 @@
|
||||
//
|
||||
// AMapNaviWalkView.h
|
||||
// AMapNaviKit
|
||||
//
|
||||
// Created by AutoNavi on 15/12/28.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapNaviHeaderHandler.h"
|
||||
#import "AMapNaviCommonObj.h"
|
||||
#import "AMapNaviWalkDataRepresentable.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
///步行导航界面显示模式
|
||||
typedef NS_ENUM(NSInteger, AMapNaviWalkViewShowMode)
|
||||
{
|
||||
AMapNaviWalkViewShowModeCarPositionLocked = 1, ///< 锁车状态
|
||||
AMapNaviWalkViewShowModeOverview = 2, ///< 全览状态
|
||||
AMapNaviWalkViewShowModeNormal = 3, ///< 普通状态
|
||||
};
|
||||
|
||||
@protocol AMapNaviWalkViewDelegate;
|
||||
|
||||
///步行导航界面.该类实现 AMapNaviWalkDataRepresentable 协议,可通过 AMapNaviWalkManager 的addDataRepresentative:方法进行注册展示步行导航过程.
|
||||
@interface AMapNaviWalkView : UIView<AMapNaviWalkDataRepresentable>
|
||||
|
||||
#pragma mark - Delegate
|
||||
|
||||
///实现了 AMapNaviWalkViewDelegate 协议的类指针
|
||||
@property (nonatomic, weak) id<AMapNaviWalkViewDelegate> delegate;
|
||||
|
||||
#pragma mark - Options
|
||||
|
||||
///目前是否为横屏状态. since 7.4.0 内部会自行监听 UIDeviceOrientationDidChange 进行横竖屏切换,无需再设置此值,但用户要自行保证 AMapNaviWalkView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight,让 AMapNaviWalkView 能够跟着父View一起变化. 可通过回调 -walkView:didChangeOrientation: 获取横竖屏切换时机
|
||||
@property (nonatomic, assign, readonly) BOOL isLandscape;
|
||||
|
||||
///导航界面跟随模式,默认AMapNaviViewTrackingModeMapNorth
|
||||
@property (nonatomic, assign) AMapNaviViewTrackingMode trackingMode;
|
||||
|
||||
///导航界面显示模式,默认AMapNaviDriveViewShowModeCarPositionLocked
|
||||
@property (nonatomic, assign) AMapNaviWalkViewShowMode showMode;
|
||||
|
||||
///是否显示界面元素,默认YES
|
||||
@property (nonatomic, assign) BOOL showUIElements;
|
||||
|
||||
///是否黑夜模式,默认NO. 对应的地图样式为:白天模式MAMapTypeNavi,黑夜模式MAMapTypeStandardNight.
|
||||
@property (nonatomic, assign) BOOL showStandardNightType __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 8.0.0")));
|
||||
|
||||
///是否显示全览按钮,默认YES
|
||||
@property (nonatomic, assign) BOOL showBrowseRouteButton;
|
||||
|
||||
///是否显示更多按钮,默认YES
|
||||
@property (nonatomic, assign) BOOL showMoreButton;
|
||||
|
||||
///是否显示转向箭头,默认YES
|
||||
@property (nonatomic, assign) BOOL showTurnArrow;
|
||||
|
||||
///是否显示传感器方向信息,默认NO.设置为YES后,自车图标方向将显示为设备方向
|
||||
@property (nonatomic, assign) BOOL showSensorHeading;
|
||||
|
||||
///导航界面日夜模式类型, 默认为 AMapNaviViewMapModeTypeDay(白天模式) since 8.0.0
|
||||
@property (nonatomic, assign) AMapNaviViewMapModeType mapViewModeType;
|
||||
|
||||
#pragma mark - MapView
|
||||
|
||||
///是否显示指南针,默认NO
|
||||
@property (nonatomic, assign) BOOL showCompass;
|
||||
|
||||
///锁车状态下地图cameraDegree, 默认30.0, 范围[0,60]
|
||||
@property (nonatomic, assign) CGFloat cameraDegree;
|
||||
|
||||
///当前地图是否显示比例尺,默认NO
|
||||
@property (nonatomic, assign) BOOL showScale;
|
||||
|
||||
///当前地图比例尺的原点位置,默认(10,10)
|
||||
@property (nonatomic, assign) CGPoint scaleOrigin;
|
||||
|
||||
///地图的视图锚点. (0, 0)为左上角,(1, 1)为右下角. 可通过设置此值来改变自车图标的默认显示位置. 注意:只有showUIElements为NO时,设置此值才有效 since 8.0.0
|
||||
@property (nonatomic, assign) CGPoint screenAnchor;
|
||||
|
||||
///指南针原点位置. since 8.0.0
|
||||
@property (nonatomic, assign) CGPoint compassOrigin;
|
||||
|
||||
///当前地图是否开启自定义样式, 默认NO. 设置为YES,将忽略showStandardNightType的设置,并将mapType切换为MAMapTypeStandard. 设置为NO,将根据showStandardNightType恢复mapType. since 5.1.0
|
||||
@property (nonatomic, assign) BOOL customMapStyleEnabled __attribute((deprecated("已废弃, 请使用 mapViewModeType 替代 since 8.0.0")));
|
||||
|
||||
/**
|
||||
* @brief 自定义当前地图样式, 目前仅支持自定义标准类型. 已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0
|
||||
* @param customJson 自定义的JSON格式数据.
|
||||
*/
|
||||
- (void)setCustomMapStyle:(NSData *)customJson __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0")));
|
||||
|
||||
/**
|
||||
* @brief 根据web导出数据设置地图样式, 目前仅支持自定义标准类型. 默认不生效,调用customMapStyleEnabled=YES使生效. since 6.2.0
|
||||
* @param data 高德web端工具导出的地图样式数据.
|
||||
*/
|
||||
- (void)setCustomMapStyleWithWebData:(NSData*)data __attribute((deprecated("已废弃, 请使用 setCustomMapStyleOptions: since 6.6.0")));
|
||||
|
||||
/**
|
||||
* @brief 自定义地图样式设置,可以支持分级样式配置,如控制不同级别显示不同的颜色(自6.6.0开始使用新版样式,旧版样式无法在新版接口setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions中使用,请到官网(lbs.amap.com)更新新版样式文件)
|
||||
* @param styleOptions 自定义样式options. since 6.6.0
|
||||
*/
|
||||
- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
|
||||
|
||||
#pragma mark - Polyline Texture
|
||||
|
||||
///路线polyline的宽度,设置0恢复默认宽度
|
||||
@property (nonatomic, assign) CGFloat lineWidth;
|
||||
|
||||
///标准路线Polyline的纹理图片,设置nil恢复默认纹理.纹理图片需满足:长宽相等,且宽度值为2的次幂
|
||||
@property (nonatomic, copy, nullable) UIImage *normalTexture;
|
||||
|
||||
///走过的路线是否置灰,默认为NO. since 7.4.0
|
||||
@property (nonatomic, assign) BOOL showGreyAfterPass;
|
||||
|
||||
///路线纹理部分走过后置灰的纹理图片,设置nil恢复默认纹理. 纹理图片需满足:长宽相等,且宽度值为2的次幂. since 7.4.0
|
||||
@property (nonatomic, copy, nullable) UIImage *greyTexture;
|
||||
|
||||
#pragma mark - Other
|
||||
|
||||
/**
|
||||
* @brief 在全览状态下调用此函数能够让路线显示在可视区域内(排除EdgePadding后剩余的区域),保证路线不被自定义界面元素遮挡. 比如showUIElements为NO时(自定义界面)横竖屏切换后,可以调用此函数. since 8.0.0
|
||||
*/
|
||||
- (void)updateRoutePolylineInTheVisualRangeWhenTheShowModeIsOverview;
|
||||
|
||||
#pragma mark - Image
|
||||
|
||||
/**
|
||||
* @brief 设置路径起点图标
|
||||
* @param startPointImage 起点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setStartPointImage:(nullable UIImage *)startPointImage;
|
||||
|
||||
/**
|
||||
* @brief 设置路径终点图标
|
||||
* @param endPointImage 终点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setEndPointImage:(nullable UIImage *)endPointImage;
|
||||
|
||||
/**
|
||||
* @brief 设置自车图标
|
||||
* @param carImage 自车图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setCarImage:(nullable UIImage *)carImage;
|
||||
|
||||
/**
|
||||
* @brief 设置自车罗盘图标
|
||||
* @param carCompassImage 自车罗盘图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setCarCompassImage:(nullable UIImage *)carCompassImage;
|
||||
|
||||
/**
|
||||
* @brief 设置路径途经点图标 since 9.3.5
|
||||
* @param wayPointImage 途经点图标,设置nil为默认图标
|
||||
*/
|
||||
- (void)setWayPointImage:(nullable UIImage *)wayPointImage;
|
||||
@end
|
||||
|
||||
@protocol AMapNaviWalkViewDelegate <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
* @brief 导航界面关闭按钮点击时的回调函数
|
||||
* @param walkView 步行导航界面
|
||||
*/
|
||||
- (void)walkViewCloseButtonClicked:(AMapNaviWalkView *)walkView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面更多按钮点击时的回调函数
|
||||
* @param walkView 步行导航界面
|
||||
*/
|
||||
- (void)walkViewMoreButtonClicked:(AMapNaviWalkView *)walkView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面转向指示View点击时的回调函数
|
||||
* @param walkView 步行导航界面
|
||||
*/
|
||||
- (void)walkViewTrunIndicatorViewTapped:(AMapNaviWalkView *)walkView;
|
||||
|
||||
/**
|
||||
* @brief 导航界面显示模式改变后的回调函数
|
||||
* @param walkView 步行导航界面
|
||||
* @param showMode 显示模式
|
||||
*/
|
||||
- (void)walkView:(AMapNaviWalkView *)walkView didChangeShowMode:(AMapNaviWalkViewShowMode)showMode;
|
||||
|
||||
/**
|
||||
* @brief 导航界面跟随模式改变后的回调函数. since 7.4.0
|
||||
* @param walkView 步行导航界面
|
||||
* @param trackMode 跟随模式
|
||||
*/
|
||||
- (void)walkView:(AMapNaviWalkView *)walkView didChangeTrackingMode:(AMapNaviViewTrackingMode)trackMode;
|
||||
|
||||
/**
|
||||
* @brief 导航界面横竖屏切换后的回调函数. since 7.4.0
|
||||
* @param walkView 步行导航界面
|
||||
* @param isLandscape 是否是横屏
|
||||
*/
|
||||
- (void)walkView:(AMapNaviWalkView *)walkView didChangeOrientation:(BOOL)isLandscape;
|
||||
|
||||
/**
|
||||
* @brief 导航界面白天黑夜模式切换后的回调函数. since 8.0.0
|
||||
* @param walkView 步行导航界面
|
||||
* @param showStandardNightType 是否为黑夜模式
|
||||
*/
|
||||
- (void)walkView:(AMapNaviWalkView *)walkView didChangeDayNightType:(BOOL)showStandardNightType;
|
||||
|
||||
/**
|
||||
* @brief 在showUIElements为NO时,步行导航界面需要实时的取得可视区域,比如切换成全览时、横竖屏切换时. 注意:此回调只在showUIElements为NO时,才会调用且比较频繁,在获取EdgePadding时请勿进行大量的计算. since 8.0.0
|
||||
* @param walkView 步行导航界面
|
||||
* @return 如(100, 50, 80, 60)表示的是:walkView.bounds 上边留出100px,左边留出50px,底部留出80px,右边留出60px后的区域为可视区域,一般EdgePadding的值由用户的界面布局决定.
|
||||
*/
|
||||
- (UIEdgeInsets)walkViewEdgePadding:(AMapNaviWalkView *)walkView;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
60
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnimatedAnnotation.h
generated
Normal file
60
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnimatedAnnotation.h
generated
Normal file
@@ -0,0 +1,60 @@
|
||||
//
|
||||
// MAAnimatedAnnotation.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by shaobin on 16/12/8.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import "MAPointAnnotation.h"
|
||||
#import "MAAnnotationMoveAnimation.h"
|
||||
|
||||
///支持动画效果的点标注
|
||||
@interface MAAnimatedAnnotation : MAPointAnnotation<MAAnimatableAnnotation>
|
||||
|
||||
///移动方向. 正北为0度,顺时针方向。即正东90,正南180,正西270。since 4.5.0
|
||||
@property (nonatomic, assign) CLLocationDirection movingDirection;
|
||||
|
||||
/**
|
||||
@brief 添加移动动画, 第一个添加的动画以当前coordinate为起始点,沿传入的coordinates点移动,否则以上一个动画终点为起始点. since 4.5.0
|
||||
@param coordinates c数组,由调用者负责coordinates指向内存的管理
|
||||
@param count coordinates数组大小
|
||||
@param duration 动画时长,0或<0为无动画
|
||||
@param name 名字,如不指定可传nil
|
||||
@param completeCallback 动画完成回调,isFinished: 动画是否执行完成
|
||||
*/
|
||||
- (MAAnnotationMoveAnimation *)addMoveAnimationWithKeyCoordinates:(CLLocationCoordinate2D *)coordinates
|
||||
count:(NSUInteger)count
|
||||
withDuration:(CGFloat)duration
|
||||
withName:(NSString *)name
|
||||
completeCallback:(void(^)(BOOL isFinished))completeCallback;
|
||||
|
||||
/**
|
||||
@brief 添加移动动画, 第一个添加的动画以当前coordinate为起始点,沿传入的coordinates点移动,否则以上一个动画终点为起始点. since 5.4.0
|
||||
@param coordinates c数组,由调用者负责coordinates指向内存的管理
|
||||
@param count coordinates数组大小
|
||||
@param duration 动画时长,0或<0为无动画
|
||||
@param name 名字,如不指定可传nil
|
||||
@param completeCallback 动画完成回调,isFinished: 动画是否执行完成
|
||||
@param stepCallback 动画每一帧回调
|
||||
*/
|
||||
- (MAAnnotationMoveAnimation *)addMoveAnimationWithKeyCoordinates:(CLLocationCoordinate2D *)coordinates
|
||||
count:(NSUInteger)count
|
||||
withDuration:(CGFloat)duration
|
||||
withName:(NSString *)name
|
||||
completeCallback:(void(^)(BOOL isFinished))completeCallback
|
||||
stepCallback:(void(^)(MAAnnotationMoveAnimation* currentAni))stepCallback;
|
||||
|
||||
/**
|
||||
* @brief 获取所有未完成的移动动画, 返回数组内为MAAnnotationMoveAnimation对象. since 4.5.0
|
||||
* @return 返回所有移动动画,数组内元素类型为 MAAnnotationMoveAnimation
|
||||
*/
|
||||
- (NSArray<MAAnnotationMoveAnimation*> *)allMoveAnimations;
|
||||
|
||||
/**
|
||||
* @brief 设置需要开始动画,自定义其他类型动画时需要调用. since 6.0.0
|
||||
*/
|
||||
- (void)setNeedsStart;
|
||||
|
||||
@end
|
||||
71
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnnotation.h
generated
Executable file
71
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnnotation.h
generated
Executable file
@@ -0,0 +1,71 @@
|
||||
//
|
||||
// MAAnnotation.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by yin cai on 11-12-13.
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAGeometry.h"
|
||||
|
||||
///该类为标注点的protocol,提供了标注类的基本信息函数
|
||||
@protocol MAAnnotation <NSObject>
|
||||
|
||||
///标注view中心坐标
|
||||
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
||||
|
||||
@optional
|
||||
|
||||
///annotation标题
|
||||
@property (nonatomic, copy) NSString *title;
|
||||
|
||||
///annotation副标题
|
||||
@property (nonatomic, copy) NSString *subtitle;
|
||||
|
||||
/**
|
||||
* @brief 设置标注的坐标,在拖拽时会被调用.
|
||||
* @param newCoordinate 新的坐标值
|
||||
*/
|
||||
- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate;
|
||||
|
||||
///annotation海拔高度,单位米,默认0
|
||||
@property (nonatomic, assign) double altitude;
|
||||
@end
|
||||
|
||||
/**
|
||||
* 支持动画需要实现的协议. since 4.5.0
|
||||
*/
|
||||
@protocol MAAnimatableAnnotation <NSObject>
|
||||
|
||||
@required
|
||||
/**
|
||||
* @brief 动画帧更新回调接口,实现者可在内部做更新处理,如更新coordinate. (since 4.5.0)
|
||||
* @param timeDelta 时间步长,单位秒
|
||||
*/
|
||||
- (void)step:(CGFloat)timeDelta;
|
||||
|
||||
/**
|
||||
* @brief 动画是否已完成. 通过此方法判断是否需要将动画annotation移出渲染执行过程。(since 4.5.0)
|
||||
* @return YES动画已完成,NO没有完成
|
||||
*/
|
||||
- (BOOL)isAnimationFinished;
|
||||
|
||||
/**
|
||||
* @brief 动画是否可以开始. 通过此方法判断是否需要将动画annotation加入渲染过程,已经start且尚未finish的动画标注才会调用step方法。(since 6.0.0)
|
||||
* @return YES 可以开始,NO 尚未开始。
|
||||
*/
|
||||
- (BOOL)shouldAnimationStart;
|
||||
|
||||
@optional
|
||||
/**
|
||||
* @brief 动画更新时调用此接口,获取annotationView的旋转角度,不实现默认为0. (since 4.5.0)
|
||||
* @return 当前annotation的旋转角度,正北为0度,顺时针方向。即正东90,正南180,正西270。
|
||||
*/
|
||||
- (CLLocationDirection)rotateDegree;
|
||||
|
||||
|
||||
@end
|
||||
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnnotationMoveAnimation.h
generated
Normal file
65
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnnotationMoveAnimation.h
generated
Normal file
@@ -0,0 +1,65 @@
|
||||
//
|
||||
// MAAnnotationMoveAnimation.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by shaobin on 16/11/21.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAAnnotation.h"
|
||||
|
||||
///annotation移动动画. since 4.5.0
|
||||
@interface MAAnnotationMoveAnimation : NSObject
|
||||
|
||||
/**
|
||||
* @brief 获取动画名字
|
||||
* @return 添加动画时传入的名字
|
||||
*/
|
||||
- (NSString *)name;
|
||||
|
||||
/**
|
||||
* @brief 获取经纬度坐标点数组
|
||||
* @return 返回经纬度坐标点数组
|
||||
*/
|
||||
- (CLLocationCoordinate2D *)coordinates;
|
||||
|
||||
/**
|
||||
* @brief 获取coordinates数组内坐标点个数
|
||||
* @return coordinates数组内坐标点个数
|
||||
*/
|
||||
- (NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 获取动画时长
|
||||
* @return 动画时长
|
||||
*/
|
||||
- (CGFloat)duration;
|
||||
|
||||
/**
|
||||
* @brief 获取动画已执行的时长
|
||||
* @return 动画已执行的时长
|
||||
*/
|
||||
- (CGFloat)elapsedTime;
|
||||
|
||||
/**
|
||||
* @brief 取消
|
||||
*/
|
||||
- (void)cancel;
|
||||
|
||||
/**
|
||||
* @brief 是否已取消
|
||||
* @return YES已取消,NO未取消
|
||||
*/
|
||||
- (BOOL)isCancelled;
|
||||
|
||||
/**
|
||||
* @brief 获取当前动画已走过点的总个数
|
||||
* @return 个数
|
||||
*/
|
||||
- (NSInteger)passedPointCount;
|
||||
|
||||
|
||||
@end
|
||||
106
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnnotationView.h
generated
Normal file
106
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAAnnotationView.h
generated
Normal file
@@ -0,0 +1,106 @@
|
||||
//
|
||||
// MAAnnotationView.h
|
||||
// MAMapKitDemo
|
||||
//
|
||||
// Created by songjian on 13-1-7.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MACustomCalloutView.h"
|
||||
|
||||
///MAAnnotationView拖动状态
|
||||
typedef NS_ENUM(NSInteger, MAAnnotationViewDragState)
|
||||
{
|
||||
MAAnnotationViewDragStateNone = 0, ///< 静止状态
|
||||
MAAnnotationViewDragStateStarting, ///< 开始拖动
|
||||
MAAnnotationViewDragStateDragging, ///< 拖动中
|
||||
MAAnnotationViewDragStateCanceling, ///< 取消拖动
|
||||
MAAnnotationViewDragStateEnding ///< 拖动结束
|
||||
};
|
||||
|
||||
@protocol MAAnnotation;
|
||||
|
||||
///标注view
|
||||
@interface MAAnnotationView : UIView
|
||||
|
||||
///复用标识
|
||||
@property (nonatomic, readonly, copy) NSString *reuseIdentifier;
|
||||
|
||||
///z值,大值在上,默认为0。类似CALayer的zPosition。zIndex属性只有在viewForAnnotation或者didAddAnnotationViews回调中设置有效。
|
||||
@property (nonatomic, assign) NSInteger zIndex;
|
||||
|
||||
///关联的annotation
|
||||
@property (nonatomic, strong) id <MAAnnotation> annotation;
|
||||
|
||||
///显示的image
|
||||
@property (nonatomic, strong) UIImage *image;
|
||||
|
||||
///image所对应的UIImageView since 5.0.0
|
||||
@property (nonatomic, strong, readonly) UIImageView *imageView;
|
||||
|
||||
///自定制弹出框view, 用于替换默认弹出框. 注意:此弹出框不会触发-(void)mapView: didAnnotationViewCalloutTapped: since 5.0.0
|
||||
@property (nonatomic, strong) MACustomCalloutView *customCalloutView;
|
||||
|
||||
///annotationView的中心默认位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是屏幕坐标
|
||||
@property (nonatomic) CGPoint centerOffset;
|
||||
|
||||
///弹出框默认位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是屏幕坐标
|
||||
@property (nonatomic) CGPoint calloutOffset;
|
||||
|
||||
///默认为YES,当为NO时view忽略触摸事件
|
||||
@property (nonatomic, getter=isEnabled) BOOL enabled;
|
||||
|
||||
///是否高亮
|
||||
@property (nonatomic, getter=isHighlighted) BOOL highlighted;
|
||||
|
||||
///设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
|
||||
@property (nonatomic, getter=isSelected) BOOL selected;
|
||||
|
||||
///是否允许弹出callout
|
||||
@property (nonatomic) BOOL canShowCallout;
|
||||
|
||||
///显示在默认弹出框左侧的view
|
||||
@property (nonatomic, strong) UIView *leftCalloutAccessoryView;
|
||||
|
||||
///显示在默认弹出框右侧的view
|
||||
@property (nonatomic, strong) UIView *rightCalloutAccessoryView;
|
||||
|
||||
///是否支持拖动
|
||||
@property (nonatomic, getter=isDraggable) BOOL draggable;
|
||||
|
||||
///当前view的拖动状态
|
||||
@property (nonatomic) MAAnnotationViewDragState dragState;
|
||||
|
||||
///弹出默认弹出框时,是否允许地图调整到合适位置来显示弹出框,默认为YES
|
||||
@property (nonatomic) BOOL canAdjustPositon;
|
||||
|
||||
/**
|
||||
* @brief 设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
|
||||
* @param selected 是否选中
|
||||
* @param animated 是否使用动画效果
|
||||
*/
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated;
|
||||
|
||||
/**
|
||||
* @brief 初始化并返回一个annotation view
|
||||
* @param annotation 关联的annotation对象
|
||||
* @param reuseIdentifier 如果要重用view,传入一个字符串,否则设为nil,建议重用view
|
||||
* @return 初始化成功则返回annotation view,否则返回nil
|
||||
*/
|
||||
- (id)initWithAnnotation:(id <MAAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier;
|
||||
|
||||
/**
|
||||
* @brief 当从reuse队列里取出时被调用, 子类重新必须调用super
|
||||
*/
|
||||
- (void)prepareForReuse;
|
||||
|
||||
/**
|
||||
* @brief 设置view的拖动状态
|
||||
* @param newDragState 新的拖动状态
|
||||
* @param animated 是否使用动画动画
|
||||
*/
|
||||
- (void)setDragState:(MAAnnotationViewDragState)newDragState animated:(BOOL)animated;
|
||||
|
||||
@end
|
||||
40
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAArc.h
generated
Normal file
40
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAArc.h
generated
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// MAArc.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by liubo on 2018/4/10.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_ARC
|
||||
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
|
||||
///该类用于定义一个圆弧, 通常MAArc是MAArcRenderer的model
|
||||
@interface MAArc : MAShape <MAOverlay>
|
||||
|
||||
///起点经纬度坐标,无效坐标按照{0,0}处理
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D startCoordinate;
|
||||
|
||||
///途径点经纬度坐标,无效坐标按照{0,0}处理
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D passedCoordinate;
|
||||
|
||||
///终点经纬度坐标,无效坐标按照{0,0}处理
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D endCoordinate;
|
||||
|
||||
/**
|
||||
* @brief 根据起点、途经点和终点生成圆弧
|
||||
* @param startCoordinate 起点的经纬度坐标,无效坐标按照{0,0}处理
|
||||
* @param passedCoordinate 途径点的经纬度坐标,无效坐标按照{0,0}处理
|
||||
* @param endCoordinate 终点的经纬度坐标,无效坐标按照{0,0}处理
|
||||
* @return 新生成的圆弧
|
||||
*/
|
||||
+ (instancetype)arcWithStartCoordinate:(CLLocationCoordinate2D)startCoordinate
|
||||
passedCoordinate:(CLLocationCoordinate2D)passedCoordinate
|
||||
endCoordinate:(CLLocationCoordinate2D)endCoordinate;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
30
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAArcRenderer.h
generated
Normal file
30
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAArcRenderer.h
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// MAArcRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by liubo on 2018/4/10.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_ARC
|
||||
|
||||
#import "MAArc.h"
|
||||
#import "MAOverlayPathRenderer.h"
|
||||
|
||||
///此类用于绘制MAArc,可以通过MAOverlayPathRenderer修改其stroke attributes
|
||||
@interface MAArcRenderer : MAOverlayPathRenderer
|
||||
|
||||
///关联的MAArc model
|
||||
@property (nonatomic, readonly) MAArc *arc;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的MAArc生成一个圆弧Renderer
|
||||
* @param arc 指定MAArc
|
||||
* @return 新生成的圆弧Renderer
|
||||
*/
|
||||
- (instancetype)initWithArc:(MAArc *)arc;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
28
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MABaseOverlay.h
generated
Normal file
28
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MABaseOverlay.h
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// MABaseOverlay.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by cuishaobin on 2020/6/17.
|
||||
// Copyright © 2020 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAOverlay.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MABaseOverlay : NSObject<MAOverlay> {
|
||||
double _altitude; ///<海拔
|
||||
}
|
||||
|
||||
///返回区域中心坐标
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///区域外接矩形
|
||||
@property (nonatomic, assign) MAMapRect boundingMapRect;
|
||||
|
||||
///海拔,单位米,默认0
|
||||
@property (nonatomic, assign) double altitude;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
49
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACircle.h
generated
Executable file
49
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACircle.h
generated
Executable file
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// MACircle.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
#import "MAGeometry.h"
|
||||
|
||||
///该类用于定义一个圆, 通常MACircle是MACircleView的model
|
||||
@interface MACircle : MAShape <MAOverlay>
|
||||
|
||||
///设置中空区域,用来创建中间带空洞的复杂图形。注意:传入的overlay只支持MAPolgon类型和MACircle类型,不支持与此circle边相交或在circle外部,不支持hollowShapes彼此间相交,和空洞顺序有关,不支持嵌套. since 5.5.0
|
||||
@property (nonatomic, strong) NSArray<id<MAOverlay>> *hollowShapes;
|
||||
|
||||
///中心点经纬度坐标,无效坐标按照{0,0}处理
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///半径,单位:米 负数按照0处理
|
||||
@property (nonatomic, assign) CLLocationDistance radius;
|
||||
|
||||
/**
|
||||
* @brief 根据中心点和半径生成圆
|
||||
* @param coord 中心点的经纬度坐标,无效坐标按照{0,0}处理
|
||||
* @param radius 半径,单位:米, 负数按照0处理
|
||||
* @return 新生成的圆
|
||||
*/
|
||||
+ (instancetype)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord
|
||||
radius:(CLLocationDistance)radius;
|
||||
|
||||
/**
|
||||
* @brief 根据map rect生成圆
|
||||
* @param mapRect mapRect 圆的最小外界矩形
|
||||
* @return 新生成的圆
|
||||
*/
|
||||
+ (instancetype)circleWithMapRect:(MAMapRect)mapRect;
|
||||
|
||||
/**
|
||||
* @brief 设置圆的中心点和半径. since 5.0.0
|
||||
* @param coord 中心点的经纬度坐标,无效坐标按照{0,0}处理
|
||||
* @param radius 半径,单位:米 负数按照0处理
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setCircleWithCenterCoordinate:(CLLocationCoordinate2D)coord radius:(CLLocationDistance)radius;
|
||||
|
||||
@end
|
||||
26
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACircleRenderer.h
generated
Executable file
26
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACircleRenderer.h
generated
Executable file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// MACircleRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by yin cai on 11-12-30.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import "MACircle.h"
|
||||
#import "MAOverlayPathRenderer.h"
|
||||
|
||||
///该类是MACircle的显示圆Renderer,可以通过MAOverlayPathRenderer修改其fill和stroke attributes
|
||||
@interface MACircleRenderer : MAOverlayPathRenderer
|
||||
|
||||
///关联的MAcirlce model
|
||||
@property (nonatomic, readonly) MACircle *circle;
|
||||
|
||||
/**
|
||||
* @brief 根据指定圆生成对应的Renderer
|
||||
* @param circle 指定的MACircle model
|
||||
* @return 生成的Renderer
|
||||
*/
|
||||
- (instancetype)initWithCircle:(MACircle *)circle;
|
||||
|
||||
@end
|
||||
133
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAConfig.h
generated
Executable file
133
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAConfig.h
generated
Executable file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* @Author: hunk.lc
|
||||
* @Date: 2022-08-18 11:18:32
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#pragma mark - iOS 平台特有的宏
|
||||
|
||||
#ifndef MA_INCLUDE_OFFLINE
|
||||
#define MA_INCLUDE_OFFLINE 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_TRACE_CORRECT
|
||||
#define MA_INCLUDE_TRACE_CORRECT 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_INDOOR
|
||||
#define MA_INCLUDE_INDOOR 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_CACHE
|
||||
#define MA_INCLUDE_CACHE 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_CUSTOM_MAP_STYLE
|
||||
#define MA_INCLUDE_CUSTOM_MAP_STYLE 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_WORLD_EN_MAP
|
||||
#define MA_INCLUDE_WORLD_EN_MAP 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_TILE
|
||||
#define MA_INCLUDE_OVERLAY_TILE 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_HEATMAP
|
||||
#define MA_INCLUDE_OVERLAY_HEATMAP 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_QUARDTREE
|
||||
#define MA_INCLUDE_QUARDTREE 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_ARC
|
||||
#define MA_INCLUDE_OVERLAY_ARC 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_CUSTOMBUILDING
|
||||
#define MA_INCLUDE_OVERLAY_CUSTOMBUILDING 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_GROUND
|
||||
#define MA_INCLUDE_OVERLAY_GROUND 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_GEODESIC
|
||||
#define MA_INCLUDE_OVERLAY_GEODESIC 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_MAMultiPolyline
|
||||
#define MA_INCLUDE_OVERLAY_MAMultiPolyline 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_MAMultiPoint
|
||||
#define MA_INCLUDE_OVERLAY_MAMultiPoint 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERLAY_ParticleSystem
|
||||
#define MA_INCLUDE_OVERLAY_ParticleSystem 1
|
||||
#endif
|
||||
|
||||
#ifndef MA_INCLUDE_OVERSEA
|
||||
#define MA_INCLUDE_OVERSEA 0
|
||||
#endif
|
||||
|
||||
#ifndef MA_ENABLE_ThirdPartyLog
|
||||
#define MA_ENABLE_ThirdPartyLog 0
|
||||
#endif
|
||||
|
||||
//国际图
|
||||
#ifndef AMC_INCLUDE_Global
|
||||
#define AMC_INCLUDE_Global 1
|
||||
#endif
|
||||
|
||||
#pragma mark - iOS和android 双平台都用到的宏
|
||||
|
||||
#ifndef AMC_INCLUDE_GNaviSearch
|
||||
#define AMC_INCLUDE_GNaviSearch 1
|
||||
#endif
|
||||
|
||||
#ifndef AMC_INCLUDE_MAMapVectorOverlay
|
||||
#define AMC_INCLUDE_MAMapVectorOverlay 1
|
||||
#endif
|
||||
|
||||
//自定义楼块
|
||||
#ifndef AMC_INCLUDE_CustomBuilding
|
||||
#define AMC_INCLUDE_CustomBuilding 1
|
||||
#endif
|
||||
|
||||
//粒子系统
|
||||
#ifndef AMC_INCLUDE_ParticleSystem
|
||||
#define AMC_INCLUDE_ParticleSystem 1
|
||||
#endif
|
||||
|
||||
// 3d模型
|
||||
#ifndef MA_INCLUDE_3DModel
|
||||
#define MA_INCLUDE_3DModel 1
|
||||
#endif
|
||||
|
||||
|
||||
// gltf
|
||||
#ifndef FEATURE_GLTF
|
||||
#define FEATURE_GLTF 0
|
||||
#endif
|
||||
|
||||
// mvt
|
||||
#ifndef FEATURE_MVT
|
||||
#define FEATURE_MVT 0
|
||||
#endif
|
||||
|
||||
// 3dtiles
|
||||
#ifndef FEATURE_3DTiles
|
||||
#define FEATURE_3DTiles 0
|
||||
#endif
|
||||
|
||||
// location
|
||||
#ifndef FEATURE_LOCATION
|
||||
#define FEATURE_LOCATION 1
|
||||
#endif
|
||||
80
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACustomBuildingOverlay.h
generated
Normal file
80
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACustomBuildingOverlay.h
generated
Normal file
@@ -0,0 +1,80 @@
|
||||
//
|
||||
// MACustomBuildingOverlay.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by liubo on 2018/5/23.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_CUSTOMBUILDING
|
||||
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
#import "MAMultiPoint.h"
|
||||
|
||||
#pragma mark - MACustomBuildingOverlayOption
|
||||
|
||||
///该类用于定义一个楼块显示选项. since 6.3.0
|
||||
@interface MACustomBuildingOverlayOption : MAMultiPoint
|
||||
|
||||
///楼块的高度. 修改该属性会使option范围内的所有楼块为同一个高度. (范围 (-1 U [1, 1000]). 默认-1,显示为默认高度.)
|
||||
@property (nonatomic, assign) CGFloat height;
|
||||
|
||||
///楼块的高度缩放比例. 修改该属性会使option范围内的所有楼块高度放大或者缩小heightScale倍. (默认1. 如果指定了height则此值将被忽略.)
|
||||
@property (nonatomic, assign) CGFloat heightScale;
|
||||
|
||||
///楼块的顶面颜色. (默认[UIColor lightGrayColor], 不支持透明度)
|
||||
@property (nonatomic, strong) UIColor *topColor;
|
||||
|
||||
///楼块的侧面颜色. (默认[UIColor darkGrayColor], 不支持透明度)
|
||||
@property (nonatomic, strong) UIColor *sideColor;
|
||||
|
||||
///option选项是否可见. (默认YES)
|
||||
@property (nonatomic, assign) BOOL visibile;
|
||||
|
||||
/**
|
||||
* @brief 根据经纬度坐标数据生成楼块显示选项option
|
||||
* @param coords 经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放
|
||||
* @param count 经纬度坐标点数组个数
|
||||
* @return 新生成的楼块显示选项option
|
||||
*/
|
||||
+ (instancetype)optionWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 重新设置option范围.
|
||||
* @param coords 指定的经纬度坐标点数组, C数组,内部会做copy,调用者负责内存管理
|
||||
* @param count 坐标点的个数
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setOptionWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
#pragma mark - MACustomBuildingOverlay
|
||||
|
||||
///该类用于定义一个自定义楼块MACustomBuildingOverlay, 通常MACustomBuildingOverlay是MACustomBuildingOverlayRenderer的model.(注意: 自定义楼块仅支持在zoomLevel>=15级时显示) since 6.3.0
|
||||
@interface MACustomBuildingOverlay : MAShape<MAOverlay>
|
||||
|
||||
///默认的楼块显示option, 将显示所有的楼块. (如果不需要显示所有的楼块,可以设置defaultOption.visibile = NO)
|
||||
@property (nonatomic, readonly) MACustomBuildingOverlayOption *defaultOption;
|
||||
|
||||
///当前自定义的楼块显示options. (options按添加顺序, 后添加的在最上层显示)
|
||||
@property (nonatomic, readonly) NSArray<MACustomBuildingOverlayOption *> *customOptions;
|
||||
|
||||
/**
|
||||
* @brief 增加自定义楼块显示的option
|
||||
* @param option 要增加的自定义楼块显示option
|
||||
*/
|
||||
- (void)addCustomOption:(MACustomBuildingOverlayOption *)option;
|
||||
|
||||
/**
|
||||
* @brief 移除自定义楼块显示的option
|
||||
* @param option 要移除的自定义楼块显示option
|
||||
*/
|
||||
- (void)removeCustomOption:(MACustomBuildingOverlayOption *)option;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACustomBuildingOverlayRenderer.h
generated
Normal file
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACustomBuildingOverlayRenderer.h
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// MACustomBuildingOverlayRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by liubo on 2018/5/23.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_CUSTOMBUILDING
|
||||
|
||||
#import "MAOverlayRenderer.h"
|
||||
#import "MACustomBuildingOverlay.h"
|
||||
|
||||
///该类是MACustomBuildingOverlay的显示Renderer. since 6.3.0
|
||||
@interface MACustomBuildingOverlayRenderer : MAOverlayRenderer
|
||||
|
||||
///关联的MACustomBuildingOverlay model
|
||||
@property (nonatomic, readonly) MACustomBuildingOverlay *customBuildingOverlay;
|
||||
|
||||
/**
|
||||
* @brief 根据指定MACustomBuildingOverlay生成对应的Renderer
|
||||
* @param customBuildingOverlay 指定的MACustomBuildingOverlay model
|
||||
* @return 生成的Renderer
|
||||
*/
|
||||
- (instancetype)initWithCustomBuildingOverlay:(MACustomBuildingOverlay *)customBuildingOverlay;
|
||||
|
||||
@end
|
||||
#endif
|
||||
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACustomCalloutView.h
generated
Normal file
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MACustomCalloutView.h
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// MACustomCalloutView.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by shaobin on 17/1/6.
|
||||
// Copyright © 2017年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MAConfig.h"
|
||||
|
||||
///自定义annotationView的弹出框. 注意:不会触发-(void)mapView: didAnnotationViewCalloutTapped: since 5.0.0
|
||||
@interface MACustomCalloutView : UIView
|
||||
|
||||
///init时传入的customView since 5.0.0
|
||||
@property (nonatomic, strong, readonly) UIView *customView;
|
||||
|
||||
///用户自定义数据,内部不做处理 since 5.0.0
|
||||
@property (nonatomic, strong) id userData;
|
||||
|
||||
/**
|
||||
* @brief 初始化并返回一个MACustomCalloutView since 5.0.0
|
||||
* @param customView 自定义View,不能为nil
|
||||
* @return 初始化成功则返回MACustomCalloutView,否则返回nil
|
||||
*/
|
||||
- (id)initWithCustomView:(UIView *)customView;
|
||||
|
||||
|
||||
@end
|
||||
51
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGeodesicPolyline.h
generated
Normal file
51
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGeodesicPolyline.h
generated
Normal file
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// MAGeodesicPolyline.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by songjian on 13-10-23.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OVERLAY_GEODESIC
|
||||
|
||||
#import "MAPolyline.h"
|
||||
|
||||
///大地曲线
|
||||
@interface MAGeodesicPolyline : MAPolyline
|
||||
|
||||
/**
|
||||
* @brief 根据MAMapPoints生成大地曲线
|
||||
* @param points MAMapPoint点
|
||||
* @param count 点的个数
|
||||
* @return 生成的大地曲线
|
||||
*/
|
||||
+ (instancetype)polylineWithPoints:(MAMapPoint *)points count:(NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 根据经纬度生成大地曲线
|
||||
* @param coords 经纬度
|
||||
* @param count 点的个数
|
||||
* @return 生成的大地曲线
|
||||
*/
|
||||
+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 重新设置坐标点. since 5.0.0
|
||||
* @param points 指定的直角坐标点数组,C数组,内部会做copy,调用者负责内存管理。
|
||||
* @param count 坐标点的个数
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setPolylineWithPoints:(MAMapPoint *)points count:(NSInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 重新设置坐标点. since 5.0.0
|
||||
* @param coords 指定的经纬度坐标点数组,C数组,内部会做copy,调用者负责内存管理
|
||||
* @param count 坐标点的个数
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger)count;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
490
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGeometry.h
generated
Normal file
490
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGeometry.h
generated
Normal file
@@ -0,0 +1,490 @@
|
||||
//
|
||||
// MAGeometry.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by AutoNavi.
|
||||
// Copyright (c) 2013年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
///东北、西南两个点定义的四边形经纬度范围
|
||||
typedef struct MACoordinateBounds{
|
||||
CLLocationCoordinate2D northEast; ///< 东北角经纬度
|
||||
CLLocationCoordinate2D southWest; ///< 西南角经纬度
|
||||
} MACoordinateBounds;
|
||||
|
||||
///经度、纬度定义的经纬度跨度范围
|
||||
typedef struct MACoordinateSpan{
|
||||
CLLocationDegrees latitudeDelta; ///< 纬度跨度
|
||||
CLLocationDegrees longitudeDelta; ///< 经度跨度
|
||||
} MACoordinateSpan;
|
||||
|
||||
///中心点、跨度范围定义的四边形经纬度范围
|
||||
typedef struct MACoordinateRegion{
|
||||
CLLocationCoordinate2D center; ///< 中心点经纬度
|
||||
MACoordinateSpan span; ///< 跨度范围
|
||||
} MACoordinateRegion;
|
||||
|
||||
///平面投影坐标结构定义
|
||||
typedef struct MAMapPoint{
|
||||
double x; ///<x坐标
|
||||
double y; ///<y坐标
|
||||
} MAMapPoint;
|
||||
|
||||
///平面投影大小结构定义
|
||||
typedef struct MAMapSize{
|
||||
double width; ///<宽度
|
||||
double height; ///<高度
|
||||
} MAMapSize;
|
||||
|
||||
///平面投影矩形结构定义
|
||||
typedef struct MAMapRect{
|
||||
MAMapPoint origin; ///<左上角坐标
|
||||
MAMapSize size; ///<大小
|
||||
} MAMapRect;
|
||||
|
||||
typedef NS_OPTIONS(NSUInteger, MAMapRectCorner) {
|
||||
MAMapRectCornerTopLeft = 1 << 0,
|
||||
MAMapRectCornerTopRight = 1 << 1,
|
||||
MAMapRectCornerBottomLeft = 1 << 2,
|
||||
MAMapRectCornerBottomRight = 1 << 3,
|
||||
MAMapRectCornerAllCorners = ~0UL
|
||||
};
|
||||
|
||||
///比例关系:MAZoomScale = Screen Point / MAMapPoint, 当MAZoomScale = 1时, 1 screen point = 1 MAMapPoint, 当MAZoomScale = 0.5时, 1 screen point = 2 MAMapPoints
|
||||
typedef double MAZoomScale;
|
||||
|
||||
///世界范围大小
|
||||
extern const MAMapSize MAMapSizeWorld;
|
||||
///世界范围四边形
|
||||
extern const MAMapRect MAMapRectWorld;
|
||||
///(MAMapRect){{INFINITY, INFINITY}, {0, 0}};
|
||||
extern const MAMapRect MAMapRectNull;
|
||||
///(MAMapRect){{0, 0}, {0, 0}}
|
||||
extern const MAMapRect MAMapRectZero;
|
||||
|
||||
static inline MACoordinateBounds MACoordinateBoundsMake(CLLocationCoordinate2D northEast,CLLocationCoordinate2D southWest)
|
||||
{
|
||||
return (MACoordinateBounds){northEast, southWest};
|
||||
}
|
||||
|
||||
static inline MACoordinateSpan MACoordinateSpanMake(CLLocationDegrees latitudeDelta, CLLocationDegrees longitudeDelta)
|
||||
{
|
||||
return (MACoordinateSpan){latitudeDelta, longitudeDelta};
|
||||
}
|
||||
|
||||
static inline MACoordinateRegion MACoordinateRegionMake(CLLocationCoordinate2D centerCoordinate, MACoordinateSpan span)
|
||||
{
|
||||
return (MACoordinateRegion){centerCoordinate, span};
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 生成一个新的MACoordinateRegion
|
||||
* @param centerCoordinate 中心点坐标
|
||||
* @param latitudinalMeters 垂直跨度(单位 米)
|
||||
* @param longitudinalMeters 水平跨度(单位 米)
|
||||
* @return 新的MACoordinateRegion
|
||||
*/
|
||||
extern MACoordinateRegion MACoordinateRegionMakeWithDistance(CLLocationCoordinate2D centerCoordinate, CLLocationDistance latitudinalMeters, CLLocationDistance longitudinalMeters);
|
||||
|
||||
/**
|
||||
* @brief 经纬度坐标转平面投影坐标
|
||||
* @param coordinate 要转化的经纬度坐标
|
||||
* @return 平面投影坐标
|
||||
*/
|
||||
extern MAMapPoint MAMapPointForCoordinate(CLLocationCoordinate2D coordinate);
|
||||
|
||||
/**
|
||||
* @brief 平面投影坐标转经纬度坐标
|
||||
* @param mapPoint 要转化的平面投影坐标
|
||||
* @return 经纬度坐标
|
||||
*/
|
||||
extern CLLocationCoordinate2D MACoordinateForMapPoint(MAMapPoint mapPoint);
|
||||
|
||||
/**
|
||||
* @brief 平面投影矩形转region
|
||||
* @param rect 要转化的平面投影矩形
|
||||
* @return region
|
||||
*/
|
||||
extern MACoordinateRegion MACoordinateRegionForMapRect(MAMapRect rect);
|
||||
|
||||
/**
|
||||
* @brief region转平面投影矩形
|
||||
* @param region region 要转化的region
|
||||
* @return 平面投影矩形
|
||||
*/
|
||||
extern MAMapRect MAMapRectForCoordinateRegion(MACoordinateRegion region);
|
||||
|
||||
/**
|
||||
* @brief 单位投影的距离
|
||||
* @param latitude 经纬度
|
||||
* @return 距离
|
||||
*/
|
||||
extern CLLocationDistance MAMetersPerMapPointAtLatitude(CLLocationDegrees latitude);
|
||||
|
||||
/**
|
||||
* @brief 1米对应的投影
|
||||
* @param latitude 经纬度
|
||||
* @return 1米对应的投影
|
||||
*/
|
||||
extern double MAMapPointsPerMeterAtLatitude(CLLocationDegrees latitude);
|
||||
|
||||
/**
|
||||
* @brief 投影两点之间的距离
|
||||
* @param a a点
|
||||
* @param b b点
|
||||
* @return 距离
|
||||
*/
|
||||
extern CLLocationDistance MAMetersBetweenMapPoints(MAMapPoint a, MAMapPoint b);
|
||||
|
||||
/**
|
||||
* @brief 经纬度间的面积(单位 平方米)
|
||||
* @param northEast 东北经纬度
|
||||
* @param southWest 西南经纬度
|
||||
* @return 面积
|
||||
*/
|
||||
extern double MAAreaBetweenCoordinates(CLLocationCoordinate2D northEast, CLLocationCoordinate2D southWest);
|
||||
|
||||
/**
|
||||
* @brief 获取Inset后的MAMapRect
|
||||
* @param rect rect
|
||||
* @param dx x点
|
||||
* @param dy y点
|
||||
* @return MAMapRect
|
||||
*/
|
||||
extern MAMapRect MAMapRectInset(MAMapRect rect, double dx, double dy);
|
||||
|
||||
/**
|
||||
* @brief 合并两个MAMapRect
|
||||
* @param rect1 rect1
|
||||
* @param rect2 rect2
|
||||
* @return 合并后的rect
|
||||
*/
|
||||
extern MAMapRect MAMapRectUnion(MAMapRect rect1, MAMapRect rect2);
|
||||
|
||||
/**
|
||||
* @brief 判断size1是否包含size2
|
||||
* @param size1 size1
|
||||
* @param size2 size2
|
||||
* @return 判断结果
|
||||
*/
|
||||
extern BOOL MAMapSizeContainsSize(MAMapSize size1, MAMapSize size2);
|
||||
|
||||
/**
|
||||
* @brief 判断点是否在矩形内
|
||||
* @param rect 矩形rect
|
||||
* @param point 点
|
||||
* @return 判断结果
|
||||
*/
|
||||
extern BOOL MAMapRectContainsPoint(MAMapRect rect, MAMapPoint point);
|
||||
|
||||
/**
|
||||
* @brief 判断两矩形是否相交
|
||||
* @param rect1 rect1
|
||||
* @param rect2 rect2
|
||||
* @return 判断结果
|
||||
*/
|
||||
extern BOOL MAMapRectIntersectsRect(MAMapRect rect1, MAMapRect rect2);
|
||||
|
||||
/**
|
||||
* @brief 判断矩形rect1是否包含矩形rect2
|
||||
* @param rect1 rect1
|
||||
* @param rect2 rect2
|
||||
* @return 判断结果
|
||||
*/
|
||||
extern BOOL MAMapRectContainsRect(MAMapRect rect1, MAMapRect rect2);
|
||||
|
||||
/**
|
||||
* @brief 判断点是否在圆内
|
||||
* @param point 点
|
||||
* @param center 圆的中心点
|
||||
* @param radius 圆的半径,单位米
|
||||
* @return 判断结果
|
||||
*/
|
||||
extern BOOL MACircleContainsPoint(MAMapPoint point, MAMapPoint center, double radius);
|
||||
|
||||
/**
|
||||
* @brief 判断经纬度点是否在圆内
|
||||
* @param point 经纬度
|
||||
* @param center 圆的中心经纬度
|
||||
* @param radius 圆的半径,单位米
|
||||
* @return 判断结果
|
||||
*/
|
||||
extern BOOL MACircleContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D center, double radius);
|
||||
|
||||
/**
|
||||
* @brief 获取某坐标点距线上最近的坐标点
|
||||
* @param point 点
|
||||
* @param polyline 线
|
||||
* @param count 线里点的数量
|
||||
* @return 某点到线上最近的点
|
||||
*/
|
||||
extern MAMapPoint MAGetNearestMapPointFromPolyline(MAMapPoint point, MAMapPoint *polyline, NSUInteger count);
|
||||
|
||||
/**
|
||||
* @brief 判断点是否在多边形内
|
||||
* @param point 点
|
||||
* @param polygon 多边形
|
||||
* @param count 多边形点的数量
|
||||
* @return 判断结果
|
||||
*/
|
||||
extern BOOL MAPolygonContainsPoint(MAMapPoint point, MAMapPoint *polygon, NSUInteger count);
|
||||
|
||||
/**
|
||||
* @brief 判断经纬度点是否在多边形内
|
||||
* @param point 经纬度点
|
||||
* @param polygon 多边形
|
||||
* @param count 多边形点的数量
|
||||
* @return 判断结果
|
||||
*/
|
||||
extern BOOL MAPolygonContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D *polygon, NSUInteger count);
|
||||
|
||||
/**
|
||||
* @brief 取在lineStart和lineEnd组成的线段上距离point距离最近的点
|
||||
* @param lineStart 线段起点
|
||||
* @param lineEnd 线段终点
|
||||
* @param point 测试点
|
||||
* @return 距离point最近的点坐标
|
||||
*/
|
||||
extern MAMapPoint MAGetNearestMapPointFromLine(MAMapPoint lineStart, MAMapPoint lineEnd, MAMapPoint point);
|
||||
|
||||
/**
|
||||
* @brief 获取墨卡托投影切块回调block,如果是无效的映射,则返回(-1, -1, 0, 0, 0, 0)
|
||||
* @param offsetX 左上点距离所属tile的位移X, 单位像素
|
||||
* @param offsetY 左上点距离所属tile的位移Y, 单位像素
|
||||
* @param minX 覆盖tile的最小x
|
||||
* @param maxX 覆盖tile的最大x
|
||||
* @param minY 覆盖tile的最小y
|
||||
* @param maxY 覆盖tile的最大y
|
||||
*/
|
||||
typedef void (^AMapTileProjectionBlock)(int offsetX, int offsetY, int minX, int maxX, int minY, int maxY);
|
||||
|
||||
/**
|
||||
* @brief 根据所给经纬度区域获取墨卡托投影切块信息
|
||||
* @param bounds 经纬度区域
|
||||
* @param levelOfDetails 对应缩放级别, 取值0-20
|
||||
* @param tileProjection 返回的切块信息block
|
||||
*/
|
||||
extern void MAGetTileProjectionFromBounds(MACoordinateBounds bounds, int levelOfDetails, AMapTileProjectionBlock tileProjection);
|
||||
|
||||
/**
|
||||
* @brief 计算多边形面积,点与点之间按顺序尾部相连, 第一个点与最后一个点相连
|
||||
* @param coordinates 指定的经纬度坐标点数组,C数组,调用者负责内存管理
|
||||
* @param count 坐标点的个数
|
||||
* @return 多边形的面积
|
||||
*/
|
||||
extern double MAAreaForPolygon(CLLocationCoordinate2D *coordinates, int count);
|
||||
|
||||
static inline MAMapPoint MAMapPointMake(double x, double y)
|
||||
{
|
||||
return (MAMapPoint){x, y};
|
||||
}
|
||||
|
||||
static inline MAMapSize MAMapSizeMake(double width, double height)
|
||||
{
|
||||
return (MAMapSize){width, height};
|
||||
}
|
||||
|
||||
static inline MAMapRect MAMapRectMake(double x, double y, double width, double height)
|
||||
{
|
||||
return (MAMapRect){MAMapPointMake(x, y), MAMapSizeMake(width, height)};
|
||||
}
|
||||
|
||||
static inline double MAMapRectGetMinX(MAMapRect rect)
|
||||
{
|
||||
return rect.origin.x;
|
||||
}
|
||||
|
||||
static inline double MAMapRectGetMinY(MAMapRect rect)
|
||||
{
|
||||
return rect.origin.y;
|
||||
}
|
||||
|
||||
static inline double MAMapRectGetMidX(MAMapRect rect)
|
||||
{
|
||||
return rect.origin.x + rect.size.width / 2.0;
|
||||
}
|
||||
|
||||
static inline double MAMapRectGetMidY(MAMapRect rect)
|
||||
{
|
||||
return rect.origin.y + rect.size.height / 2.0;
|
||||
}
|
||||
|
||||
static inline double MAMapRectGetMaxX(MAMapRect rect)
|
||||
{
|
||||
return rect.origin.x + rect.size.width;
|
||||
}
|
||||
|
||||
static inline double MAMapRectGetMaxY(MAMapRect rect)
|
||||
{
|
||||
return rect.origin.y + rect.size.height;
|
||||
}
|
||||
|
||||
static inline double MAMapRectGetWidth(MAMapRect rect)
|
||||
{
|
||||
return rect.size.width;
|
||||
}
|
||||
|
||||
static inline double MAMapRectGetHeight(MAMapRect rect)
|
||||
{
|
||||
return rect.size.height;
|
||||
}
|
||||
|
||||
static inline BOOL MAMapPointEqualToPoint(MAMapPoint point1, MAMapPoint point2) {
|
||||
return point1.x == point2.x && point1.y == point2.y;
|
||||
}
|
||||
|
||||
static inline BOOL MAMapSizeEqualToSize(MAMapSize size1, MAMapSize size2) {
|
||||
return size1.width == size2.width && size1.height == size2.height;
|
||||
}
|
||||
|
||||
static inline BOOL MAMapRectEqualToRect(MAMapRect rect1, MAMapRect rect2) {
|
||||
return
|
||||
MAMapPointEqualToPoint(rect1.origin, rect2.origin) &&
|
||||
MAMapSizeEqualToSize(rect1.size, rect2.size);
|
||||
}
|
||||
|
||||
static inline BOOL MAMapRectIsNull(MAMapRect rect) {
|
||||
return isinf(rect.origin.x) || isinf(rect.origin.y);
|
||||
}
|
||||
|
||||
static inline BOOL MAMapRectIsEmpty(MAMapRect rect) {
|
||||
return MAMapRectIsNull(rect) || (rect.size.width == 0.0 && rect.size.height == 0.0);
|
||||
}
|
||||
|
||||
static inline NSString *MAStringFromMapPoint(MAMapPoint point) {
|
||||
return [NSString stringWithFormat:@"{%.1f, %.1f}", point.x, point.y];
|
||||
}
|
||||
|
||||
static inline NSString *MAStringFromMapSize(MAMapSize size) {
|
||||
return [NSString stringWithFormat:@"{%.1f, %.1f}", size.width, size.height];
|
||||
}
|
||||
|
||||
static inline NSString *MAStringFromMapRect(MAMapRect rect) {
|
||||
return [NSString stringWithFormat:@"{%@, %@}", MAStringFromMapPoint(rect.origin), MAStringFromMapSize(rect.size)];
|
||||
}
|
||||
|
||||
///坐标系类型枚举
|
||||
typedef NS_ENUM(NSUInteger, MACoordinateType)
|
||||
{
|
||||
MACoordinateTypeBaidu = 0, ///< Baidu
|
||||
MACoordinateTypeMapBar, ///< MapBar
|
||||
MACoordinateTypeMapABC, ///< MapABC
|
||||
MACoordinateTypeSoSoMap, ///< SoSoMap
|
||||
MACoordinateTypeAliYun, ///< AliYun
|
||||
MACoordinateTypeGoogle, ///< Google
|
||||
MACoordinateTypeGPS, ///< GPS
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief 转换目标经纬度为高德坐标系
|
||||
* @param coordinate 待转换的经纬度
|
||||
* @param type 坐标系类型
|
||||
* @return 高德坐标系经纬度
|
||||
*/
|
||||
extern CLLocationCoordinate2D MACoordinateConvert(CLLocationCoordinate2D coordinate, MACoordinateType type) __attribute((deprecated("已废弃,使用AMapFoundation中关于坐标转换的接口")));
|
||||
|
||||
/**
|
||||
* @brief 获取矢量坐标方向
|
||||
* @param fromCoord 矢量坐标起点
|
||||
* @param toCoord 矢量坐标终点
|
||||
* @return 方向,详情参考系统 CLLocationDirection
|
||||
*/
|
||||
extern CLLocationDirection MAGetDirectionFromCoords(CLLocationCoordinate2D fromCoord, CLLocationCoordinate2D toCoord);
|
||||
|
||||
/**
|
||||
* @brief 获取矢量坐标方向
|
||||
* @param fromPoint 矢量坐标起点
|
||||
* @param toPoint 矢量坐标终点
|
||||
* @return 方向,详情参考系统 CLLocationDirection
|
||||
*/
|
||||
extern CLLocationDirection MAGetDirectionFromPoints(MAMapPoint fromPoint, MAMapPoint toPoint);
|
||||
|
||||
/**
|
||||
* @brief 获取点到线的垂直距离
|
||||
* @param point 起点
|
||||
* @param lineBegin 线的起点
|
||||
* @param lineEnd 线的终点
|
||||
* @return 距离,单位米
|
||||
*/
|
||||
extern double MAGetDistanceFromPointToLine(MAMapPoint point, MAMapPoint lineBegin, MAMapPoint lineEnd);
|
||||
|
||||
/**
|
||||
* @brief 判断线是否被点击选中
|
||||
* @param linePoints 构成线的点
|
||||
* @param count 点的个数
|
||||
* @param tappedPoint 点击点
|
||||
* @param lineWidth 线宽,单位:MAMapPoint点
|
||||
* @return 是否选中
|
||||
*/
|
||||
extern BOOL MAPolylineHitTest(MAMapPoint *linePoints, NSUInteger count, MAMapPoint tappedPoint, CGFloat lineWidth);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
///utils方法,方便c结构体对象和NSValue对象间相互转化
|
||||
@interface NSValue (NSValueMAGeometryExtensions)
|
||||
|
||||
/**
|
||||
* @brief 创建 MAMapPoint 的NSValue对象
|
||||
* @param mapPoint MAMapPoint结构体对象
|
||||
* @return NSValue对象
|
||||
*/
|
||||
+ (NSValue *)valueWithMAMapPoint:(MAMapPoint)mapPoint;
|
||||
|
||||
/**
|
||||
* @brief 创建 MAMapSize 的NSValue对象
|
||||
* @param mapSize MAMapSize结构体对象
|
||||
* @return NSValue对象
|
||||
*/
|
||||
+ (NSValue *)valueWithMAMapSize:(MAMapSize)mapSize;
|
||||
|
||||
/**
|
||||
* @brief 创建 MAMapRect 的NSValue对象
|
||||
* @param mapRect MAMapRect结构体对象
|
||||
* @return NSValue对象
|
||||
*/
|
||||
+ (NSValue *)valueWithMAMapRect:(MAMapRect)mapRect;
|
||||
|
||||
/**
|
||||
* @brief 创建 CLLocationCoordinate2D 的NSValue对象
|
||||
* @param coordinate CLLocationCoordinate2D结构体对象
|
||||
* @return NSValue对象
|
||||
*/
|
||||
+ (NSValue *)valueWithMACoordinate:(CLLocationCoordinate2D)coordinate;
|
||||
|
||||
/**
|
||||
@brief 返回NSValue对象包含的MAMapPoint结构体对象
|
||||
@return 当前对象包含的MAMapPoint结构体对象
|
||||
*/
|
||||
- (MAMapPoint)MAMapPointValue;
|
||||
|
||||
/**
|
||||
@brief 返回NSValue对象包含的MAMapSize结构体对象
|
||||
@return 当前对象包含的MAMapSize结构体对象
|
||||
*/
|
||||
- (MAMapSize)MAMapSizeValue;
|
||||
|
||||
/**
|
||||
@brief 返回NSValue对象包含的MAMapRect结构体对象
|
||||
@return 当前对象包含的MAMapRect结构体对象
|
||||
*/
|
||||
- (MAMapRect)MAMapRectValue;
|
||||
|
||||
/**
|
||||
@brief 返回NSValue对象包含的CLLocationCoordinate2D结构体对象
|
||||
@return 当前对象包含的CLLocationCoordinate2D结构体对象
|
||||
*/
|
||||
- (CLLocationCoordinate2D)MACoordinateValue;
|
||||
|
||||
@end
|
||||
57
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGltfOverlay.h
generated
Normal file
57
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGltfOverlay.h
generated
Normal file
@@ -0,0 +1,57 @@
|
||||
//
|
||||
// MAGltfOverlay.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if FEATURE_GLTF
|
||||
|
||||
#import "MABaseOverlay.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
///该类用于定义一个glTF模型Overlay, 通常MAGltfOverlay是MAGltfOverlayRenderer的model,@since 9.5.0
|
||||
@interface MAGltfOverlay : MABaseOverlay
|
||||
|
||||
///模型的中心点经纬度坐标,无效坐标按照{0,0}处理。
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///模型的缩放倍数,默认1。
|
||||
@property (nonatomic, assign) CGFloat scale;
|
||||
|
||||
///dragEnable 是否支持拖拽, 默认为YES
|
||||
@property (nonatomic, assign) BOOL draggEnable;
|
||||
|
||||
///touchEnable 是否支持点击, 默认为YES
|
||||
@property (nonatomic, assign) BOOL touchEnable;
|
||||
|
||||
///图标
|
||||
@property (nonatomic, strong) UIImage *image;
|
||||
|
||||
///当前执行动画的索引,取值必须小于模型支持动画的个数。默认0,执行第一个动画
|
||||
@property (nonatomic, assign) NSInteger currentAnimationIndex;
|
||||
|
||||
///最小显示级别 default 3
|
||||
@property (nonatomic, assign) CGFloat minZoom;
|
||||
|
||||
///最大显示级别 default 20
|
||||
@property (nonatomic, assign) CGFloat maxZoom;
|
||||
|
||||
/**
|
||||
* @brief 根据中心点、模型文件data以及纹理图生成MAGltfOverlay
|
||||
* @param coordinate 中心点的经纬度坐标,无效坐标按照{0,0}处理
|
||||
* @param glTFModelData obj类型的模型文件data(Overlay内部不会保存)
|
||||
* @param uriResources glTF对应uri资源,包括纹理图片,bin文件等
|
||||
* @return 新生成的MAGltfOverlay
|
||||
*/
|
||||
+ (instancetype)glTFModelOverlayWithCoordinate:(CLLocationCoordinate2D)coordinate glTFModelData:(NSData *)glTFModelData uriResources:(NSDictionary* _Nullable)uriResources;
|
||||
|
||||
///设置模型绕坐标轴的旋转角度,单位度。
|
||||
- (void)setRotationDegreeX:(double)degreeX Y:(double)degreeY Z:(double)degreeZ;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
#endif
|
||||
34
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGltfOverlayRenderer.h
generated
Normal file
34
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGltfOverlayRenderer.h
generated
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// MAGltfOverlayRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by JZ on 2022/5/17.
|
||||
// Copyright © 2022 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if FEATURE_GLTF
|
||||
|
||||
#import "MAGltfOverlay.h"
|
||||
#import "MAOverlayRenderer.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MAGltfOverlayRenderer : MAOverlayRenderer
|
||||
|
||||
///关联的MAObjModelOverlay model
|
||||
@property (nonatomic, readonly) MAGltfOverlay *glTFOverlay;
|
||||
|
||||
///是否固定显示大小,默认NO
|
||||
@property (nonatomic, assign) BOOL fixedDisplaySize;
|
||||
|
||||
/**
|
||||
* @brief 根据指定MAObjModelOverlay生成对应的Renderer
|
||||
* @param objModelOverlay 指定的MAObjModelOverlay model
|
||||
* @return 生成的Renderer
|
||||
*/
|
||||
- (instancetype)initWithGlTFModelOverlay:(MAGltfOverlay *)glTFModelOverlay;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
#endif
|
||||
73
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGroundOverlay.h
generated
Normal file
73
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGroundOverlay.h
generated
Normal file
@@ -0,0 +1,73 @@
|
||||
//
|
||||
// MAGroundOverlay.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by Li Fei on 11/12/13.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OVERLAY_GROUND
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
|
||||
///该类用于确定覆盖在地图上的图片,及其覆盖区域, 通常MAGroundOverlay是MAGroundOverlayRenderer的model
|
||||
@interface MAGroundOverlay : MAShape<MAOverlay>
|
||||
|
||||
///绘制在地图上的覆盖图片
|
||||
@property (nonatomic, readonly) UIImage *icon;
|
||||
|
||||
///透明度. 最终透明度 = 纹理透明度 * alpha. 有效范围为[0.f, 1.f], 默认为1.f
|
||||
@property (nonatomic, assign) CGFloat alpha __attribute((deprecated("已废弃,since 7.7.0,请使用MAGroundOverlayRenderer中的alpha")));
|
||||
|
||||
///覆盖图片在地图尺寸等同于其像素的zoom值
|
||||
@property (nonatomic, readonly) CGFloat zoomLevel;
|
||||
|
||||
///图片在地图中的覆盖范围
|
||||
@property (nonatomic, readonly) MACoordinateBounds bounds;
|
||||
|
||||
/**
|
||||
* @brief 根据bounds值和icon生成GroundOverlay
|
||||
* @param bounds 图片的在地图的覆盖范围
|
||||
* @param icon 覆盖图片
|
||||
* @return 以bounds和icon 新生成GroundOverlay
|
||||
*/
|
||||
+ (instancetype)groundOverlayWithBounds:(MACoordinateBounds)bounds
|
||||
icon:(UIImage *)icon;
|
||||
|
||||
/**
|
||||
* @brief 根据coordinate,icon,zoomLevel生成GroundOverlay
|
||||
* @param coordinate 图片的在地图上的中心点
|
||||
* @param zoomLevel 图片在地图尺寸等同于像素的zoom值
|
||||
* @param icon 覆盖图片
|
||||
* @return 以coordinate,icon,zoomLevel 新生成GroundOverlay
|
||||
*/
|
||||
+ (instancetype)groundOverlayWithCoordinate:(CLLocationCoordinate2D)coordinate
|
||||
zoomLevel:(CGFloat)zoomLevel
|
||||
icon:(UIImage *)icon;
|
||||
|
||||
/**
|
||||
* @brief 更新GroundOverlay. since 5.0.0
|
||||
* @param bounds 图片的在地图的覆盖范围
|
||||
* @param icon 覆盖图片
|
||||
* @return 返回是否成功
|
||||
*/
|
||||
- (BOOL)setGroundOverlayWithBounds:(MACoordinateBounds)bounds icon:(UIImage *)icon;
|
||||
|
||||
/**
|
||||
* @brief 更新GroundOverlay, 内部会自动计算覆盖物大小,以满足zoomLevel下显示大小为icon大小. since 5.0.0
|
||||
* @param coordinate 图片在地图上的中心点
|
||||
* @param zoomLevel 图片在地图尺寸等同于像素的zoom值
|
||||
* @param icon 覆盖图片
|
||||
* @return 返回是否成功
|
||||
*/
|
||||
- (BOOL)setGroundOverlayWithCoordinate:(CLLocationCoordinate2D)coordinate
|
||||
zoomLevel:(CGFloat)zoomLevel
|
||||
icon:(UIImage *)icon;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
31
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGroundOverlayRenderer.h
generated
Normal file
31
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAGroundOverlayRenderer.h
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// MAGroundOverlayRenderer.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by Li Fei on 11/13/13.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OVERLAY_GROUND
|
||||
|
||||
#import "MAOverlayRenderer.h"
|
||||
#import "MAGroundOverlay.h"
|
||||
|
||||
///此类是将MAGroundOverlay中的覆盖图片显示在地图上的renderer
|
||||
@interface MAGroundOverlayRenderer : MAOverlayRenderer
|
||||
|
||||
///具有覆盖图片,以及图片覆盖的区域
|
||||
@property (nonatomic ,readonly) MAGroundOverlay *groundOverlay;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的GroundOverlay生成将图片显示在地图上Renderer
|
||||
* @param groundOverlay 制定了覆盖图片,以及图片的覆盖区域的groundOverlay
|
||||
* @return 以GroundOverlay新生成Renderer
|
||||
*/
|
||||
- (instancetype)initWithGroundOverlay:(MAGroundOverlay *)groundOverlay;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
69
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapTileOverlay.h
generated
Normal file
69
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapTileOverlay.h
generated
Normal file
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// MAHeatMapTileOverlay.h
|
||||
// test2D
|
||||
//
|
||||
// Created by xiaoming han on 15/4/21.
|
||||
// Copyright (c) 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OVERLAY_HEATMAP
|
||||
|
||||
#import "MATileOverlay.h"
|
||||
|
||||
///热力图节点
|
||||
@interface MAHeatMapNode : NSObject
|
||||
|
||||
///经纬度
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///强度
|
||||
@property (nonatomic, assign) float intensity;
|
||||
|
||||
@end
|
||||
|
||||
///热力图渐变属性
|
||||
@interface MAHeatMapGradient : NSObject<NSCopying>
|
||||
|
||||
///颜色变化数组。 default [blue,green,red]
|
||||
@property (nonatomic, readonly) NSArray<UIColor *> *colors;
|
||||
|
||||
///颜色变化起点,需为递增数组,区间为(0, 1)。default[@(0.2),@(0.5),@(0,9)]
|
||||
@property (nonatomic, readonly) NSArray<NSNumber *> *startPoints;
|
||||
|
||||
/**
|
||||
* @brief 重新设置gradient的时候,需要执行 MATileOverlayRenderer 的 reloadData 方法重刷新渲染缓存。
|
||||
* @param colors 颜色
|
||||
* @param startPoints startPoints
|
||||
* @return instance
|
||||
*/
|
||||
- (instancetype)initWithColor:(NSArray<UIColor *> *)colors andWithStartPoints:(NSArray<NSNumber *> *)startPoints;
|
||||
|
||||
@end
|
||||
|
||||
///热力图tileOverlay
|
||||
@interface MAHeatMapTileOverlay : MATileOverlay
|
||||
|
||||
///MAHeatMapNode array
|
||||
@property (nonatomic, strong) NSArray<MAHeatMapNode *> *data;
|
||||
|
||||
///热力图半径,默认为12,范围:0-100 screen point
|
||||
@property (nonatomic, assign) NSInteger radius;
|
||||
|
||||
///透明度,默认为0.6,范围:0-1
|
||||
@property (nonatomic, assign) CGFloat opacity;
|
||||
|
||||
///热力图梯度
|
||||
@property (nonatomic, strong) MAHeatMapGradient *gradient;
|
||||
|
||||
///是否开启高清热力图,默认关闭
|
||||
@property (nonatomic, assign) BOOL allowRetinaAdapting;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
67
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapVectorGridOverlay.h
generated
Normal file
67
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapVectorGridOverlay.h
generated
Normal file
@@ -0,0 +1,67 @@
|
||||
//
|
||||
// MAHeatMapVectorGridOverlay.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by ldj on 2019/7/25.
|
||||
// Copyright © 2019 Amap. All rights reserved.
|
||||
// 热力图网格覆盖物(通过顶点直接绘制)
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_HEATMAP
|
||||
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
#import "MAHeatMapVectorOverlay.h"
|
||||
|
||||
///单个点对象
|
||||
@interface MAHeatMapVectorGridNode : NSObject
|
||||
///经纬度
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
@end
|
||||
|
||||
///单个网格
|
||||
@interface MAHeatMapVectorGrid : NSObject
|
||||
/// 网格顶点
|
||||
@property (nonatomic, copy) NSArray<MAHeatMapVectorGridNode *> *inputNodes;
|
||||
|
||||
/// 网格颜色
|
||||
@property (nonatomic, strong) UIColor *color;
|
||||
@end
|
||||
|
||||
/// 该类用于定义热力图属性.
|
||||
@interface MAHeatMapVectorGridOverlayOptions : NSObject
|
||||
|
||||
/// 热力图类型 (默认为蜂窝类型MAHeatMapTypeHoneycomb)
|
||||
@property (nonatomic, assign) MAHeatMapType type;
|
||||
|
||||
/// option选项是否可见. (默认YES)
|
||||
@property (nonatomic, assign) BOOL visible;
|
||||
|
||||
/// 网格数据
|
||||
@property (nonatomic, copy) NSArray<MAHeatMapVectorGrid *> *inputGrids;
|
||||
|
||||
/// 最小显示级别 default 3
|
||||
@property (nonatomic, assign) CGFloat minZoom;
|
||||
|
||||
/// 最大显示级别 default 20
|
||||
@property (nonatomic, assign) CGFloat maxZoom;
|
||||
|
||||
@end
|
||||
|
||||
///矢量热力图,支持类型详见MAHeatMapType
|
||||
@interface MAHeatMapVectorGridOverlay : MAShape<MAOverlay>
|
||||
|
||||
|
||||
///热力图的配置属性
|
||||
@property (nonatomic, strong) MAHeatMapVectorGridOverlayOptions *option;
|
||||
|
||||
/**
|
||||
* @brief 根据配置属性option生成MAHeatMapVectorGridOverlay
|
||||
* @param option 热力图配置属性option
|
||||
* @return 新生成的热力图MAHeatMapVectorGridOverlay
|
||||
*/
|
||||
+ (instancetype)heatMapOverlayWithOption:(MAHeatMapVectorGridOverlayOptions *)option;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
28
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapVectorGridOverlayRenderer.h
generated
Normal file
28
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapVectorGridOverlayRenderer.h
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// MAHeatMapVectorGridOverlayRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by ldj on 2019/7/26.
|
||||
// Copyright © 2019 Amap. All rights reserved.
|
||||
//
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_HEATMAP
|
||||
|
||||
#import "MAOverlayRenderer.h"
|
||||
#import "MAHeatMapVectorGridOverlay.h"
|
||||
|
||||
///矢量热力图绘制类
|
||||
@interface MAHeatMapVectorGridOverlayRenderer : MAOverlayRenderer
|
||||
|
||||
///关联的MAHeatMapVectorOverlay
|
||||
@property (nonatomic, readonly) MAHeatMapVectorGridOverlay *heatOverlay;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的MAHeatMapVectorOverlay生成一个Renderer
|
||||
* @param heatOverlay 指定MAHeatMapVectorOverlay
|
||||
* @return 新生成的MAHeatMapVectorOverlayRender
|
||||
*/
|
||||
- (instancetype)initWithHeatOverlay:(MAHeatMapVectorGridOverlay *)heatOverlay;
|
||||
@end
|
||||
|
||||
#endif
|
||||
111
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapVectorOverlay.h
generated
Normal file
111
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapVectorOverlay.h
generated
Normal file
@@ -0,0 +1,111 @@
|
||||
//
|
||||
// MAHeatMapVectorOverlay.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by ldj on 2019/7/25.
|
||||
// Copyright © 2019 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_HEATMAP
|
||||
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
|
||||
///热力图类型
|
||||
typedef NS_ENUM(NSInteger, MAHeatMapType)
|
||||
{
|
||||
MAHeatMapTypeSquare = 1, ///< 网格热力图
|
||||
MAHeatMapTypeHoneycomb = 2 ///< 蜂窝热力图
|
||||
};
|
||||
|
||||
///单个点对象
|
||||
@interface MAHeatMapVectorNode : NSObject
|
||||
|
||||
///经纬度
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///权重
|
||||
@property (nonatomic, assign) float weight;
|
||||
|
||||
@end
|
||||
|
||||
///热力图展示节点(用以描述一个蜂窝或一个网格)
|
||||
@interface MAHeatMapVectorItem : NSObject
|
||||
|
||||
///中心点坐标
|
||||
@property (nonatomic, readonly) MAMapPoint center;
|
||||
|
||||
///当前热力值,求和后的权重
|
||||
@property (nonatomic, readonly) float intensity;
|
||||
|
||||
///落在此节点区域内的所有热力点的索引数组
|
||||
@property (nonatomic, readonly) NSArray<NSNumber *> *nodeIndices;
|
||||
|
||||
@end
|
||||
|
||||
///该类用于定义热力图属性.
|
||||
@interface MAHeatMapVectorOverlayOptions : NSObject
|
||||
|
||||
///热力图类型 (默认为蜂窝类型MAHeatMapTypeHoneycomb)
|
||||
@property (nonatomic, assign) MAHeatMapType type;
|
||||
|
||||
///option选项是否可见. (默认YES)
|
||||
@property (nonatomic, assign) BOOL visible;
|
||||
|
||||
///MAHeatMapVectorNode array
|
||||
@property (nonatomic, strong) NSArray<MAHeatMapVectorNode *> *inputNodes;
|
||||
|
||||
/**
|
||||
@verbatim
|
||||
节点的宽 单位:米 负数按照0处理 default 2000
|
||||
—— —— —— ——
|
||||
丨 丨 丨 丨
|
||||
丨 丨 丨 丨
|
||||
—— —— —— ——
|
||||
|
||||
每个方框的宽就是 size(六边形同理)
|
||||
两个方框之间的间隔就是 gap (六边形同理)
|
||||
@endverbatim
|
||||
*/
|
||||
@property (nonatomic, assign) CLLocationDistance size;
|
||||
|
||||
///节点之间的间隔 单位:米 负数按照0处理。注意:改变gap可能会改变热力节点的计算,内部会用size+gap来计算热力,最终用size来画方框。
|
||||
@property (nonatomic, assign) CGFloat gap;
|
||||
|
||||
///颜色变化数组。 注意:colors和startPoints两数组长度必须一致且不能为0,
|
||||
@property (nonatomic, strong) NSArray<UIColor *> *colors;
|
||||
|
||||
///颜色变化起点,需为递增数组,区间为[0, 1]。 注意:colors和startPoints两数组长度必须一致且不能为0。例如:startPoints @[@(0), @(0.3),@(0.7)] 表示区间 [0,0.3)使用第一个颜色,区间[0.3,0.7)使用第二个颜色,区间[0.7,1]使用第三个颜色。注意:startPoints首位需设置成0,如果首位不是0,内部也会把首位当成0来处理。
|
||||
@property (nonatomic, strong) NSArray<NSNumber *> *startPoints;
|
||||
|
||||
///透明度,取值范围[0,1] ,default为1不透明
|
||||
@property (nonatomic, assign) CGFloat opacity __attribute((deprecated("已废弃,since 7.9.0,请使用MAHeatMapVectorOverlayRender中的alpha")));;
|
||||
|
||||
///权重的最大值,default为0,表示不填,不填则取数组inputNodes中权重的最大值
|
||||
@property (nonatomic, assign) int maxIntensity;
|
||||
|
||||
///最小显示级别 default 3
|
||||
@property (nonatomic, assign) CGFloat minZoom;
|
||||
|
||||
///最大显示级别 default 20
|
||||
@property (nonatomic, assign) CGFloat maxZoom;
|
||||
|
||||
@end
|
||||
|
||||
///矢量热力图,支持类型详见MAHeatMapType
|
||||
@interface MAHeatMapVectorOverlay : MAShape<MAOverlay>
|
||||
|
||||
///热力图的配置属性
|
||||
@property (nonatomic, strong) MAHeatMapVectorOverlayOptions *option;
|
||||
|
||||
/**
|
||||
* @brief 根据配置属性option生成MAHeatMapVectorOverlay
|
||||
* @param option 热力图配置属性option
|
||||
* @return 新生成的热力图MAHeatMapVectorOverlay
|
||||
*/
|
||||
+ (instancetype)heatMapOverlayWithOption:(MAHeatMapVectorOverlayOptions *)option;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
36
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapVectorOverlayRender.h
generated
Normal file
36
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAHeatMapVectorOverlayRender.h
generated
Normal file
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// MAHeatMapVectorOverlayRender.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by ldj on 2019/7/26.
|
||||
// Copyright © 2019 Amap. All rights reserved.
|
||||
//
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_HEATMAP
|
||||
|
||||
#import "MAOverlayRenderer.h"
|
||||
#import "MAHeatMapVectorOverlay.h"
|
||||
|
||||
///矢量热力图绘制类
|
||||
@interface MAHeatMapVectorOverlayRender : MAOverlayRenderer
|
||||
|
||||
///关联的MAHeatMapVectorOverlay
|
||||
@property (nonatomic, readonly) MAHeatMapVectorOverlay *heatOverlay;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的MAHeatMapVectorOverlay生成一个Renderer
|
||||
* @param heatOverlay 指定MAHeatMapVectorOverlay
|
||||
* @return 新生成的MAHeatMapVectorOverlayRender
|
||||
*/
|
||||
- (instancetype)initWithHeatOverlay:(MAHeatMapVectorOverlay *)heatOverlay;
|
||||
|
||||
|
||||
/**
|
||||
* @brief 根据经纬度获取对应的热力节点信息MAHeatMapVectorItem
|
||||
* @param coordinate 经纬度
|
||||
*/
|
||||
- (MAHeatMapVectorItem *)getHeatMapItem:(CLLocationCoordinate2D )coordinate;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
49
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAIndoorInfo.h
generated
Normal file
49
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAIndoorInfo.h
generated
Normal file
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// MAIndoorInfo.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by 翁乐 on 5/6/16.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_INDOOR
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
///室内楼层信息
|
||||
@interface MAIndoorFloorInfo : NSObject
|
||||
///楼层名
|
||||
@property (nonatomic, readonly) NSString *floorName;
|
||||
///楼层index
|
||||
@property (nonatomic, readonly) int floorIndex;
|
||||
///楼层别名
|
||||
@property (nonatomic, readonly) NSString *floorNona;
|
||||
///是否属于停车场
|
||||
@property (nonatomic, readonly) BOOL isPark;
|
||||
@end
|
||||
|
||||
///室内图信息
|
||||
@interface MAIndoorInfo : NSObject
|
||||
///室内地图中文名
|
||||
@property (nonatomic, readonly) NSString *cnName;
|
||||
///室内地图英文名
|
||||
@property (nonatomic, readonly) NSString *enName;
|
||||
///室内地图poiID
|
||||
@property (nonatomic, readonly) NSString *poiID;
|
||||
///建筑类型
|
||||
@property (nonatomic, readonly) NSString *buildingType;
|
||||
///当前楼层index,和floorInfo内部的index相关
|
||||
@property (nonatomic, readonly) int activeFloorIndex;
|
||||
///当前激活的楼层,只和floorInfo相关,与floorInfo内部元素的index无关
|
||||
@property (nonatomic, readonly) int activeFloorInfoIndex;
|
||||
///由 MAIndoorFloorInfo 组成,可直接通过 activeFloorInfoIndex 取出当前楼层
|
||||
@property (nonatomic, readonly) NSArray *floorInfo;
|
||||
///楼层数量
|
||||
@property (nonatomic, readonly) int numberOfFloor;
|
||||
///停车场楼层数量
|
||||
@property (nonatomic, readonly) int numberOfParkFloor;
|
||||
@end
|
||||
|
||||
#endif
|
||||
40
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MALineDrawType.h
generated
Normal file
40
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MALineDrawType.h
generated
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// MALineDrawType.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by yi chen on 14-7-30.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#ifndef MapKit_static_MALineDrawType_h
|
||||
#define MapKit_static_MALineDrawType_h
|
||||
|
||||
enum MALineJoinType
|
||||
{
|
||||
kMALineJoinBevel, ///< 斜面连接点
|
||||
kMALineJoinMiter, ///< 斜接连接点
|
||||
kMALineJoinRound ///< 圆角连接点
|
||||
};
|
||||
typedef enum MALineJoinType MALineJoinType;
|
||||
|
||||
enum MALineCapType
|
||||
{
|
||||
kMALineCapButt, ///< 普通头
|
||||
kMALineCapSquare, ///< 扩展头
|
||||
kMALineCapArrow, ///< 箭头
|
||||
kMALineCapRound ///< 圆形头
|
||||
};
|
||||
typedef enum MALineCapType MALineCapType;
|
||||
|
||||
///虚线类型
|
||||
enum MALineDashType
|
||||
{
|
||||
kMALineDashTypeNone = 0, ///<不画虚线
|
||||
kMALineDashTypeSquare, ///<方块样式
|
||||
kMALineDashTypeDot, ///<圆点样式
|
||||
};
|
||||
typedef enum MALineDashType MALineDashType;
|
||||
|
||||
#endif
|
||||
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMVTTileOverlay.h
generated
Normal file
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMVTTileOverlay.h
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// MAMVTTileOverlay.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by Li Fei on 11/22/13.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_TILE
|
||||
#if FEATURE_MVT
|
||||
#import "MATileOverlay.h"
|
||||
#import "MABaseOverlay.h"
|
||||
|
||||
@interface MAMVTTileOverlayOptions : NSObject
|
||||
@property (nonatomic, copy) NSString *url; // URL
|
||||
@property (nonatomic, copy) NSString *key; // key
|
||||
@property (nonatomic, copy) NSString *Id; // id
|
||||
@property (nonatomic, assign) BOOL visible; // 是否可见 默认YES
|
||||
@end
|
||||
|
||||
/// MVT瓦片数据
|
||||
@interface MAMVTTileOverlay : MATileOverlay
|
||||
/// MVT配置选项
|
||||
@property (nonatomic, strong, readonly) MAMVTTileOverlayOptions *option;
|
||||
+ (instancetype)mvtTileOverlayWithOption:(MAMVTTileOverlayOptions *)option;
|
||||
@end
|
||||
#endif
|
||||
#endif
|
||||
21
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMVTTileOverlayRenderer.h
generated
Normal file
21
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMVTTileOverlayRenderer.h
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// MAMVTTileOverlayRenderer.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by Li Fei on 11/25/13.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OVERLAY_TILE
|
||||
#if FEATURE_MVT
|
||||
#import "MATileOverlayRenderer.h"
|
||||
#import "MAMVTTileOverlay.h"
|
||||
|
||||
/// 此类是将MAMVTOverlayRenderer中的覆盖tiles显示在地图上的Renderer
|
||||
@interface MAMVTTileOverlayRenderer : MATileOverlayRenderer
|
||||
@end
|
||||
|
||||
#endif
|
||||
#endif
|
||||
27
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapAccessibilityIdentifier.h
generated
Normal file
27
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapAccessibilityIdentifier.h
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// MAMapAccessibilityIdentifier.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by hanxiaoming on 17/1/9.
|
||||
// Copyright © 2017年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef MAMapAccessibilityIdentifier_h
|
||||
#define MAMapAccessibilityIdentifier_h
|
||||
|
||||
#define kMAAcceIdForMapView @"mamapview"
|
||||
#define kMAAcceIdForRender @"marender"
|
||||
#define kMAAcceIdForLogoView @"malogo"
|
||||
|
||||
#define kMAAcceIdForAnnotationContainer @"maannotationcontainer"
|
||||
#define kMAAcceIdForOverlayContainer @"maoverlaycontainer"
|
||||
#define kMAAcceIdForAnnotationView @"maannotationview"
|
||||
#define kMAAcceIdForCalloutView @"macalloutview"
|
||||
|
||||
#define kMAAcceIdForUserLocationView @"mauserlocationview"
|
||||
|
||||
#define kMAAcceIdForScaleView @"mascaleview"
|
||||
#define kMAAcceIdForCompassView @"macompassview"
|
||||
#define kMAAcceIdForIndoorView @"maindoorview"
|
||||
|
||||
#endif /* MAMapAccessibilityIdentifier_h */
|
||||
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapCustomStyleOptions.h
generated
Normal file
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapCustomStyleOptions.h
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// MAMapCustomStyleOptions.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by ldj on 2018/11/27.
|
||||
// Copyright © 2018 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MAMapCustomStyleOptions : NSObject
|
||||
|
||||
///自定义样式二进制
|
||||
@property (nonatomic, strong) NSData *styleData;
|
||||
|
||||
///海外自定义样式文件路径
|
||||
@property (nonatomic, strong) NSString *styleDataOverseaPath;
|
||||
|
||||
///设置地图自定义样式对应的styleID,从官网获取
|
||||
@property (nonatomic, strong) NSString *styleId;
|
||||
|
||||
///设置自定义纹理文件二进制
|
||||
@property (nonatomic, strong) NSData *styleTextureData;
|
||||
|
||||
///样式额外的配置,比如路况,背景颜色等 since 6.7.0
|
||||
@property (nonatomic, strong) NSData *styleExtraData;
|
||||
|
||||
@end
|
||||
|
||||
77
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapKit.h
generated
Normal file
77
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapKit.h
generated
Normal file
@@ -0,0 +1,77 @@
|
||||
//
|
||||
// MAMapKit.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by 翁乐 on 12/2/15.
|
||||
// Copyright © 2015 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import "MAMapAccessibilityIdentifier.h"
|
||||
|
||||
#import "MAMapVersion.h"
|
||||
#import "MAMapView.h"
|
||||
#import "MAMapStatus.h"
|
||||
#import "MAGeometry.h"
|
||||
#import "MAAnnotation.h"
|
||||
#import "MAAnnotationView.h"
|
||||
#import "MAAnnotationMoveAnimation.h"
|
||||
#import "MAPointAnnotation.h"
|
||||
#import "MAAnimatedAnnotation.h"
|
||||
#import "MAPinAnnotationView.h"
|
||||
#import "MAUserLocation.h"
|
||||
#import "MAOverlay.h"
|
||||
#import "MAOverlayPathRenderer.h"
|
||||
#import "MAOverlayRenderer.h"
|
||||
#import "MAShape.h"
|
||||
#import "MACircle.h"
|
||||
#import "MACircleRenderer.h"
|
||||
#import "MAArc.h"
|
||||
#import "MAArcRenderer.h"
|
||||
#import "MAPolygon.h"
|
||||
#import "MAPolygonRenderer.h"
|
||||
#import "MAPolyline.h"
|
||||
#import "MAPolylineRenderer.h"
|
||||
#import "MAGeodesicPolyline.h"
|
||||
#import "MAMultiPoint.h"
|
||||
#import "MAMultiPolyline.h"
|
||||
#import "MAMultiTexturePolylineRenderer.h"
|
||||
#import "MAMultiColoredPolylineRenderer.h"
|
||||
#import "MAGroundOverlay.h"
|
||||
#import "MAGroundOverlayRenderer.h"
|
||||
#import "MATileOverlay.h"
|
||||
#import "MATileOverlayRenderer.h"
|
||||
#import "MACustomBuildingOverlay.h"
|
||||
#import "MACustomBuildingOverlayRenderer.h"
|
||||
#import "MAParticleOverlayOptions.h"
|
||||
#import "MAParticleOverlay.h"
|
||||
#import "MAParticleOverlayRenderer.h"
|
||||
|
||||
#import "MAHeatMapVectorOverlay.h"
|
||||
#import "MAHeatMapVectorOverlayRender.h"
|
||||
|
||||
#import "MAMultiPointOverlay.h"
|
||||
#import "MAMultiPointOverlayRenderer.h"
|
||||
|
||||
#import "MAHeatMapTileOverlay.h"
|
||||
#import "MATouchPoi.h"
|
||||
#import "MAIndoorInfo.h"
|
||||
#import "MAOfflineMap.h"
|
||||
#import "MAOfflineItem.h"
|
||||
#import "MAOfflineCity.h"
|
||||
#import "MAOfflineItemCommonCity.h"
|
||||
#import "MAOfflineItemMunicipality.h"
|
||||
#import "MAOfflineItemNationWide.h"
|
||||
#import "MAOfflineProvince.h"
|
||||
#import "MAOfflineMapViewController.h"
|
||||
|
||||
#import "MAUserLocationRepresentation.h"
|
||||
#import "MACustomCalloutView.h"
|
||||
#import "MATraceLocation.h"
|
||||
#import "MATraceManager.h"
|
||||
#import "MALineDrawType.h"
|
||||
|
||||
#import "MAHeatMapVectorGridOverlay.h"
|
||||
#import "MAHeatMapVectorGridOverlayRenderer.h"
|
||||
#import "MAMVTTileOverlay.h"
|
||||
#import "MAMVTTileOverlayRenderer.h"
|
||||
63
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapStatus.h
generated
Normal file
63
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapStatus.h
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
//
|
||||
// MAMapStatus.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by yi chen on 1/27/15.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <CoreLocation/CLLocation.h>
|
||||
|
||||
///地图状态对象
|
||||
@interface MAMapStatus : NSObject
|
||||
|
||||
///地图的中心点,改变该值时,地图的比例尺级别不会发生变化
|
||||
@property (nonatomic) CLLocationCoordinate2D centerCoordinate;
|
||||
|
||||
///缩放级别
|
||||
@property (nonatomic) CGFloat zoomLevel;
|
||||
|
||||
///设置地图旋转角度(逆时针为正向), 单位度, [0,360)
|
||||
@property (nonatomic) CGFloat rotationDegree;
|
||||
|
||||
///设置地图相机角度(范围为[0.f, 45.f])
|
||||
@property (nonatomic) CGFloat cameraDegree;
|
||||
|
||||
///地图的视图锚点。坐标系归一化,(0, 0)为MAMapView左上角,(1, 1)为右下角。默认为(0.5, 0.5),即当前地图的视图中心
|
||||
@property (nonatomic) CGPoint screenAnchor;
|
||||
|
||||
/**
|
||||
* @brief 根据指定参数生成对应的status
|
||||
* @param coordinate 地图的中心点,改变该值时,地图的比例尺级别不会发生变化
|
||||
* @param zoomLevel 缩放级别
|
||||
* @param rotationDegree 设置地图旋转角度(逆时针为正向)
|
||||
* @param cameraDegree 设置地图相机角度(范围为[0.f, 45.f])
|
||||
* @param screenAnchor 地图的视图锚点。坐标系归一化,(0, 0)为MAMapView左上角,(1, 1)为右下角。默认为(0.5, 0.5),即当前地图的视图中心
|
||||
* @return 生成的Status
|
||||
*/
|
||||
+ (instancetype)statusWithCenterCoordinate:(CLLocationCoordinate2D)coordinate
|
||||
zoomLevel:(CGFloat)zoomLevel
|
||||
rotationDegree:(CGFloat)rotationDegree
|
||||
cameraDegree:(CGFloat)cameraDegree
|
||||
screenAnchor:(CGPoint)screenAnchor;
|
||||
|
||||
/**
|
||||
* @brief 根据指定参数初始化对应的status
|
||||
* @param coordinate 地图的中心点,改变该值时,地图的比例尺级别不会发生变化
|
||||
* @param zoomLevel 缩放级别
|
||||
* @param rotationDegree 设置地图旋转角度(逆时针为正向)
|
||||
* @param cameraDegree 设置地图相机角度(范围为[0.f, 45.f])
|
||||
* @param screenAnchor 地图的视图锚点。坐标系归一化,(0, 0)为MAMapView左上角,(1, 1)为右下角。默认为(0.5, 0.5),即当前地图的视图中心
|
||||
* @return 生成的Status
|
||||
*/
|
||||
- (id)initWithCenterCoordinate:(CLLocationCoordinate2D)coordinate
|
||||
zoomLevel:(CGFloat)zoomLevel
|
||||
rotationDegree:(CGFloat)rotationDegree
|
||||
cameraDegree:(CGFloat)cameraDegree
|
||||
screenAnchor:(CGPoint)screenAnchor;
|
||||
|
||||
@end
|
||||
27
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapVersion.h
generated
Normal file
27
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapVersion.h
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// MAMapVersion.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by yi chen on 2/24/16.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <AMapFoundationKit/AMapFoundationVersion.h>
|
||||
|
||||
#ifndef MAMapVersion_h
|
||||
#define MAMapVersion_h
|
||||
|
||||
#define MAMapVersionNumber 90600
|
||||
#define MAMapMinRequiredFoundationVersion 10800
|
||||
|
||||
// 依赖库版本检测
|
||||
#if AMapFoundationVersionNumber < MAMapMinRequiredFoundationVersion
|
||||
#error "The AMapFoundationKit version is less than minimum required, please update! Any questions please to visit http://lbs.amap.com"
|
||||
#endif
|
||||
|
||||
FOUNDATION_EXTERN NSString * const MAMapKitVersion;
|
||||
FOUNDATION_EXTERN NSString * const MAMapKitName;
|
||||
|
||||
|
||||
#endif /* MAMapVersion_h */
|
||||
1091
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapView.h
generated
Normal file
1091
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMapView.h
generated
Normal file
File diff suppressed because it is too large
Load Diff
36
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiColoredPolylineRenderer.h
generated
Normal file
36
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiColoredPolylineRenderer.h
generated
Normal file
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// MAMultiColoredPolylineRenderer.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by yi chen on 12/11/15.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_MAMultiPolyline
|
||||
|
||||
#import "MAPolylineRenderer.h"
|
||||
#import "MAMultiPolyline.h"
|
||||
|
||||
///此类用于绘制 MAMultiPolyline 对应的多彩线,支持分段颜色绘制
|
||||
@interface MAMultiColoredPolylineRenderer : MAPolylineRenderer
|
||||
|
||||
///关联的MAMultiPolyline model
|
||||
@property (nonatomic, readonly) MAMultiPolyline *multiPolyline;
|
||||
|
||||
///分段绘制的颜色,需要分段颜色绘制时,必须设置(内容必须为UIColor)。根据multiPolyline.drawStyleIndexes属性指示的索引进行渲染。
|
||||
@property (nonatomic, strong) NSArray<UIColor *> *strokeColors;
|
||||
|
||||
///颜色是否渐变, 默认为NO。如果设置为YES,则为多彩渐变线。
|
||||
@property (nonatomic, getter=isGradient) BOOL gradient;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的MAPolyline生成一个多段线Renderer
|
||||
* @param multiPolyline 指定MAMultiPolyline
|
||||
* @return 新生成的多段线Renderer
|
||||
*/
|
||||
- (instancetype)initWithMultiPolyline:(MAMultiPolyline *)multiPolyline;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
33
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPoint.h
generated
Executable file
33
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPoint.h
generated
Executable file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// MAMultiPoint.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAShape.h"
|
||||
#import "MAGeometry.h"
|
||||
|
||||
///该类是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类MAPolyline,MAPolygon来实例化
|
||||
@interface MAMultiPoint : MAShape
|
||||
|
||||
///坐标点数组
|
||||
@property (nonatomic, readonly) MAMapPoint *points;
|
||||
|
||||
///坐标点的个数
|
||||
@property (nonatomic, readonly) NSUInteger pointCount;
|
||||
|
||||
///是否跨越180度经度线,默认NO since 6.4.0
|
||||
@property (nonatomic, assign, readonly) BOOL cross180Longitude;
|
||||
|
||||
/**
|
||||
* @brief 将内部的坐标点数据转化为经纬度坐标并拷贝到coords内存中
|
||||
* @param coords 调用者提供的内存空间, 该空间长度必须大于等于要拷贝的坐标点的个数(range.length)
|
||||
* @param range 要拷贝的数据范围
|
||||
*/
|
||||
- (void)getCoordinates:(CLLocationCoordinate2D *)coords range:(NSRange)range;
|
||||
|
||||
@end
|
||||
44
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPointOverlay.h
generated
Normal file
44
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPointOverlay.h
generated
Normal file
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// MAMultiPointOverlay.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by hanxiaoming on 2017/4/11.
|
||||
// Copyright © 2017年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_MAMultiPoint
|
||||
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
|
||||
///海量点overlay单个点对象(since 5.1.0)
|
||||
@interface MAMultiPointItem : NSObject<NSCopying, MAAnnotation>
|
||||
|
||||
///经纬度
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///唯一标识,默认为nil。
|
||||
@property (nonatomic, copy) NSString *customID;
|
||||
|
||||
///标题
|
||||
@property (nonatomic, copy) NSString *title;
|
||||
|
||||
///副标题
|
||||
@property (nonatomic, copy) NSString *subtitle;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
///海量点overlay(since 5.1.0)
|
||||
@interface MAMultiPointOverlay : MAShape<MAOverlay>
|
||||
|
||||
///点对象集合(注意:MAMultiPointItem属性不支持动态更新)
|
||||
@property (nonatomic, readonly) NSArray<MAMultiPointItem *> *items;
|
||||
|
||||
///初始化方法
|
||||
- (instancetype)initWithMultiPointItems:(NSArray<MAMultiPointItem *> *)items;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
54
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPointOverlayRenderer.h
generated
Normal file
54
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPointOverlayRenderer.h
generated
Normal file
@@ -0,0 +1,54 @@
|
||||
//
|
||||
// MAMultiPointOverlayRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by hanxiaoming on 2017/4/11.
|
||||
// Copyright © 2017年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_MAMultiPoint
|
||||
|
||||
#import "MAMultiPointOverlay.h"
|
||||
#import "MAOverlayRenderer.h"
|
||||
|
||||
@class MAMultiPointOverlayRenderer;
|
||||
|
||||
///MAMultiPointOverlayRenderer代理(since 5.1.0)
|
||||
@protocol MAMultiPointOverlayRendererDelegate <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
@brief 点击海量点图层回调
|
||||
|
||||
@param renderer 海量点图层渲染器
|
||||
@param item 被点击的单个点对象
|
||||
*/
|
||||
- (void)multiPointOverlayRenderer:(MAMultiPointOverlayRenderer *)renderer didItemTapped:(MAMultiPointItem *)item;
|
||||
|
||||
@end
|
||||
|
||||
///海量点渲染renderer(since 5.1.0)。 注意:为了保证渲染效率,纹理不受alpha参数影响,如果需要设置透明度,请更换icon。
|
||||
@interface MAMultiPointOverlayRenderer : MAOverlayRenderer
|
||||
|
||||
///MAMultiPointOverlayRendererDelegate代理对象
|
||||
@property (nonatomic, weak) id<MAMultiPointOverlayRendererDelegate> delegate;
|
||||
|
||||
///标注纹理图片
|
||||
@property (nonatomic, strong) UIImage *icon;
|
||||
|
||||
///纹理渲染大小,默认为icon图片大小
|
||||
@property (nonatomic, assign) CGSize pointSize;
|
||||
|
||||
///经纬度对应图片中的位置,默认为(0.5,0.5),范围[0-1] 负值自动取其绝对值 左上角为 (0,0) 右下角为 (1,1)
|
||||
@property (nonatomic, assign) CGPoint anchor;
|
||||
|
||||
///对应的overlay
|
||||
@property (nonatomic, readonly) MAMultiPointOverlay *multiPointOverlay;
|
||||
|
||||
///初始化方法
|
||||
- (instancetype)initWithMultiPointOverlay:(MAMultiPointOverlay *)multiPointOverlay;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
77
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPolyline.h
generated
Normal file
77
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiPolyline.h
generated
Normal file
@@ -0,0 +1,77 @@
|
||||
//
|
||||
// MAMultiPolyline.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by yi chen on 12/11/15.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_MAMultiPolyline
|
||||
|
||||
#import "MAPolyline.h"
|
||||
|
||||
///多彩线model类。此类用于定义一个由多个点相连的多段线,绘制时支持分段采用不同颜色(纹理)绘制,点与点之间尾部相连但第一点与最后一个点不相连, 通常MAMultiPolyline是MAMultiColoredPolylineRenderer(分段颜色绘制)或MAMultiTexturePolylineRenderer(分段纹理绘制)的model
|
||||
@interface MAMultiPolyline : MAPolyline
|
||||
|
||||
/**
|
||||
绘制索引数组(纹理、颜色索引数组), 成员为NSNumber, 且为非负数。
|
||||
例子:[1,3,6] 表示 0-1使用第一种颜色\纹理,1-3使用第二种,3-6使用第三种,6-最后使用第四种。
|
||||
在渐变模式下(MAMultiColoredPolylineRenderer.gradient = YES),0-1使用第一种颜色,3使用第二种,6-最后使用第四种,1-3,3-6使用渐变色进行填充。
|
||||
|
||||
注意:polyline在渲染时会进行抽稀以提高渲染效率,但是如果是设置为drawIndex的点,则不会被抽稀。
|
||||
在每一个点都是索引点的极端情况下,则抽稀过程不会生效,点数量很多时会极大的影响渲染效率。所以请尽量少的设置索引点的数量。
|
||||
*/
|
||||
@property (nonatomic, strong) NSArray<NSNumber *> *drawStyleIndexes;
|
||||
|
||||
/**
|
||||
* @brief 多彩线,根据MAMapPoint数据生成多彩线
|
||||
*
|
||||
* 分段纹理绘制:其对应的MAMultiTexturePolylineRenderer必须设置strokeTextureImages属性; 否则使用默认的灰色纹理绘制。
|
||||
* 分段颜色绘制:其对应的MAMultiColoredPolylineRenderer必须设置strokeColors属性
|
||||
*
|
||||
* @param points 指定的直角坐标点数组,注意:如果有连续重复点,需要去重处理,只保留一个,否则会导致绘制有问题。
|
||||
* @param count 坐标点的个数
|
||||
* @param drawStyleIndexes 纹理索引数组(颜色索引数组)
|
||||
* @return 生成的折线对象
|
||||
*/
|
||||
+ (instancetype)polylineWithPoints:(MAMapPoint *)points count:(NSUInteger)count drawStyleIndexes:(NSArray<NSNumber *> *) drawStyleIndexes;
|
||||
|
||||
/**
|
||||
* @brief 多彩线,根据经纬度坐标数据生成多彩线
|
||||
*
|
||||
* 分段纹理绘制:其对应的MAMultiTexturePolylineRenderer必须设置strokeTextureImages属性; 否则使用默认的灰色纹理绘制。
|
||||
* 分段颜色绘制:其对应的MAMultiColoredPolylineRenderer必须设置strokeColors属性。
|
||||
*
|
||||
* @param coords 指定的经纬度坐标点数组,注意:如果有连续重复点,需要去重处理,只保留一个,否则会导致绘制有问题。
|
||||
* @param count 坐标点的个数
|
||||
* @param drawStyleIndexes 纹理索引数组(颜色索引数组), 成员为NSNumber, 且为非负数。
|
||||
* @return 生成的折线对象
|
||||
*/
|
||||
+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count drawStyleIndexes:(NSArray<NSNumber *> *) drawStyleIndexes;
|
||||
|
||||
/**
|
||||
* @brief 重新设置坐标点. since 5.0.0
|
||||
* @param points 指定的直角坐标点数组,C数组,内部会做copy,调用者负责内存管理。注意:如果有连续重复点,需要去重处理,只保留一个,否则会导致绘制有问题。
|
||||
* @param count 坐标点的个数
|
||||
* @param drawStyleIndexes 纹理索引数组(颜色索引数组), 成员为NSNumber, 且为非负数。
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setPolylineWithPoints:(MAMapPoint *)points
|
||||
count:(NSUInteger)count
|
||||
drawStyleIndexes:(NSArray<NSNumber *> *)drawStyleIndexes;
|
||||
|
||||
/**
|
||||
* @brief 重新设置坐标点. since 5.0.0
|
||||
* @param coords 指定的经纬度坐标点数组,C数组,内部会做copy,调用者负责内存管理。注意:如果有连续重复点,需要去重处理,只保留一个,否则会导致绘制有问题。
|
||||
* @param count 坐标点的个数
|
||||
* @param drawStyleIndexes 纹理索引数组(颜色索引数组), 成员为NSNumber, 且为非负数。
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords
|
||||
count:(NSUInteger)count
|
||||
drawStyleIndexes:(NSArray<NSNumber *> *)drawStyleIndexes;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
33
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiTexturePolylineRenderer.h
generated
Normal file
33
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAMultiTexturePolylineRenderer.h
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// MAMultiTexturePolylineRenderer.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by yi chen on 12/11/15.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_MAMultiPolyline
|
||||
|
||||
#import "MAPolylineRenderer.h"
|
||||
#import "MAMultiPolyline.h"
|
||||
|
||||
///此类用于绘制MAMultiPolyline对应的多彩线,支持分段纹理绘制
|
||||
@interface MAMultiTexturePolylineRenderer : MAPolylineRenderer
|
||||
|
||||
///关联的MAMultiPolyline model
|
||||
@property (nonatomic, readonly) MAMultiPolyline *multiPolyline;
|
||||
|
||||
///分段纹理图片数组, 支持非PowerOfTwo图片
|
||||
@property (nonatomic, strong) NSArray<UIImage*> *strokeTextureImages;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的MAMultiPolyline生成一个多段线Renderer
|
||||
* @param multiPolyline 指定MAMultiPolyline
|
||||
* @return 新生成的多段线Renderer
|
||||
*/
|
||||
- (instancetype)initWithMultiPolyline:(MAMultiPolyline *)multiPolyline;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
22
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineCity.h
generated
Normal file
22
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineCity.h
generated
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// MAOfflineCity.h
|
||||
//
|
||||
// Copyright (c) 2013年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OFFLINE
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAOfflineItem.h"
|
||||
|
||||
///离线地图,城市信息
|
||||
@interface MAOfflineCity : MAOfflineItem
|
||||
|
||||
///城市编码
|
||||
@property (nonatomic, copy, readonly) NSString *cityCode;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
51
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineItem.h
generated
Normal file
51
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineItem.h
generated
Normal file
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// MAOfflineItem.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by songjian on 14-4-23.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OFFLINE
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
///离线地图item状态
|
||||
typedef NS_ENUM(NSInteger, MAOfflineItemStatus)
|
||||
{
|
||||
MAOfflineItemStatusNone = 0, ///<不存在
|
||||
MAOfflineItemStatusCached, ///<缓存状态
|
||||
MAOfflineItemStatusInstalled, ///<已安装
|
||||
MAOfflineItemStatusExpired ///<已过期
|
||||
};
|
||||
|
||||
@interface MAOfflineItem : NSObject
|
||||
|
||||
///名字
|
||||
@property (nonatomic, copy, readonly) NSString *name;
|
||||
|
||||
///简拼
|
||||
@property (nonatomic, copy, readonly) NSString *jianpin;
|
||||
|
||||
///拼音
|
||||
@property (nonatomic, copy, readonly) NSString *pinyin;
|
||||
|
||||
///区域编码
|
||||
@property (nonatomic, copy, readonly) NSString *adcode;
|
||||
|
||||
///离线数据大小
|
||||
@property (nonatomic, assign, readonly) long long size;
|
||||
|
||||
///状态
|
||||
@property (nonatomic, assign, readonly) MAOfflineItemStatus itemStatus;
|
||||
|
||||
///已下载大小(当itemStatus == MAOfflineItemStatusCached 时有效)
|
||||
@property (nonatomic, assign, readonly) long long downloadedSize;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
23
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineItemCommonCity.h
generated
Normal file
23
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineItemCommonCity.h
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// MAOfflineItemCommonCity.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by songjian on 14-4-23.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OFFLINE
|
||||
|
||||
#import "MAOfflineCity.h"
|
||||
|
||||
///普通城市
|
||||
@interface MAOfflineItemCommonCity : MAOfflineCity
|
||||
|
||||
///所属省份
|
||||
@property (nonatomic, weak) MAOfflineItem *province;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
20
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineItemMunicipality.h
generated
Normal file
20
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineItemMunicipality.h
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// MAOfflineItemMunicipality.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by songjian on 14-4-23.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OFFLINE
|
||||
|
||||
#import "MAOfflineCity.h"
|
||||
|
||||
///直辖市
|
||||
@interface MAOfflineItemMunicipality : MAOfflineCity
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
20
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineItemNationWide.h
generated
Normal file
20
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineItemNationWide.h
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// MAOfflineItemNationWide.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by songjian on 14-4-23.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OFFLINE
|
||||
|
||||
#import "MAOfflineCity.h"
|
||||
|
||||
///全国概要
|
||||
@interface MAOfflineItemNationWide : MAOfflineCity
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
143
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineMap.h
generated
Normal file
143
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineMap.h
generated
Normal file
@@ -0,0 +1,143 @@
|
||||
//
|
||||
// MAOfflineMap.h
|
||||
//
|
||||
// Copyright (c) 2013年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OFFLINE
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAOfflineProvince.h"
|
||||
#import "MAOfflineItemNationWide.h"
|
||||
#import "MAOfflineItemMunicipality.h"
|
||||
|
||||
///离线地图下载状态
|
||||
typedef NS_ENUM(NSInteger, MAOfflineMapDownloadStatus)
|
||||
{
|
||||
MAOfflineMapDownloadStatusWaiting = 0, //!< 以插入队列,等待中
|
||||
MAOfflineMapDownloadStatusStart, //!< 开始下载
|
||||
MAOfflineMapDownloadStatusProgress, //!< 下载过程中
|
||||
MAOfflineMapDownloadStatusCompleted, //!< 下载成功
|
||||
MAOfflineMapDownloadStatusCancelled, //!< 取消
|
||||
MAOfflineMapDownloadStatusUnzip, //!< 解压缩
|
||||
MAOfflineMapDownloadStatusFinished, //!< 全部顺利完成
|
||||
MAOfflineMapDownloadStatusError //!< 发生错误
|
||||
};
|
||||
|
||||
///离线下载错误domain
|
||||
extern NSString * const MAOfflineMapErrorDomain;
|
||||
|
||||
///离线地图下载错误类型
|
||||
typedef NS_ENUM(NSInteger, MAOfflineMapError)
|
||||
{
|
||||
MAOfflineMapErrorUnknown = -1, //!< 未知的错误
|
||||
MAOfflineMapErrorCannotWriteToTmp = -2, //!< 写入临时目录失败
|
||||
MAOfflineMapErrorCannotOpenZipFile = -3, //!< 打开归档文件失败
|
||||
MAOfflineMapErrorCannotExpand = -4 //!< 解归档文件失败
|
||||
};
|
||||
|
||||
/**
|
||||
* 当downloadStatus == MAOfflineMapDownloadStatusProgress 时, info参数是个NSDictionary,
|
||||
* 如下两个key用来获取已下载和总和的数据大小(单位byte), 对应的是NSNumber(long long) 类型.
|
||||
* 当downloadStatus == MAOfflineMapDownloadStatusError 时, info参数是NSError
|
||||
*/
|
||||
|
||||
///下载过程info的key,表示已下载数据大小
|
||||
extern NSString * const MAOfflineMapDownloadReceivedSizeKey;
|
||||
|
||||
///下载过程info的key,表示总的数据大小
|
||||
extern NSString * const MAOfflineMapDownloadExpectedSizeKey;
|
||||
|
||||
/**
|
||||
* @brief 离线地图下载过程回调block
|
||||
* @param downloadItem 下载的item
|
||||
* @param downloadStatus 下载状态
|
||||
* @param info 下载过程中的附加信息
|
||||
*/
|
||||
typedef void(^MAOfflineMapDownloadBlock)(MAOfflineItem * downloadItem, MAOfflineMapDownloadStatus downloadStatus, id info);
|
||||
|
||||
/**
|
||||
* @brief 离线地图检查更新回调block
|
||||
* @param hasNewestVersion 是否有新版本的布尔值
|
||||
*/
|
||||
typedef void(^MAOfflineMapNewestVersionBlock)(BOOL hasNewestVersion);
|
||||
|
||||
///离线地图管理类
|
||||
@interface MAOfflineMap : NSObject
|
||||
|
||||
/**
|
||||
* @brief 获取MAOfflineMap 单例
|
||||
* @return MAOfflineMap
|
||||
*/
|
||||
+ (MAOfflineMap *)sharedOfflineMap;
|
||||
|
||||
///省份数组(每个元素均是MAOfflineProvince类型)
|
||||
@property (nonatomic, readonly) NSArray<MAOfflineProvince *> *provinces;
|
||||
|
||||
///直辖市数组(每个元素均是MAOfflineItemMunicipality类型)
|
||||
@property (nonatomic, readonly) NSArray<MAOfflineItemMunicipality *> *municipalities;
|
||||
|
||||
///全国概要图
|
||||
@property (nonatomic, readonly) MAOfflineItemNationWide *nationWide;
|
||||
|
||||
///城市数组, 包括普通城市与直辖市
|
||||
@property (nonatomic, readonly) NSArray<MAOfflineCity *> *cities;
|
||||
|
||||
///离线数据的版本号(由年月日组成, 如@"20130715")
|
||||
@property (nonatomic, readonly) NSString *version;
|
||||
|
||||
/**
|
||||
* @brief 初始化离线地图数据,如果第一次运行且offlinePackage.plist文件不存在,则需要首先执行此方法。否则MAOfflineMap中的省、市、版本号等数据都为空。
|
||||
* @param block 初始化完成回调
|
||||
*/
|
||||
- (void)setupWithCompletionBlock:(void(^)(BOOL setupSuccess))block;
|
||||
|
||||
/**
|
||||
* @brief 启动下载
|
||||
* @param item 数据
|
||||
* @param shouldContinueWhenAppEntersBackground 进入后台是否允许继续下载
|
||||
* @param downloadBlock 下载过程block
|
||||
*/
|
||||
- (void)downloadItem:(MAOfflineItem *)item shouldContinueWhenAppEntersBackground:(BOOL)shouldContinueWhenAppEntersBackground downloadBlock:(MAOfflineMapDownloadBlock)downloadBlock;
|
||||
|
||||
/**
|
||||
* @brief 监测是否正在下载
|
||||
* @param item 条目
|
||||
* @return 是否在下载
|
||||
*/
|
||||
- (BOOL)isDownloadingForItem:(MAOfflineItem *)item;
|
||||
|
||||
/**
|
||||
* @brief 暂停下载
|
||||
* @param item 条目
|
||||
* @return 是否在执行了cancel,如果该item并未在下载中,则返回NO
|
||||
*/
|
||||
- (BOOL)pauseItem:(MAOfflineItem *)item;
|
||||
|
||||
/**
|
||||
* @brief 删除item对应离线地图数据
|
||||
* @param item 条目
|
||||
*/
|
||||
- (void)deleteItem:(MAOfflineItem *)item;
|
||||
|
||||
/**
|
||||
* @brief 取消全部下载
|
||||
*/
|
||||
- (void)cancelAll;
|
||||
|
||||
/**
|
||||
* @brief 清除所有在磁盘上的离线地图数据, 之后调用[mapView reloadMap]会使其立即生效
|
||||
*/
|
||||
- (void)clearDisk;
|
||||
|
||||
/**
|
||||
* @brief 监测新版本。注意:如果有新版本,会重建所有的数据,包括provinces、municipalities、nationWide、cities,外部使用应当在newestVersionBlock中更新所持有的对象。
|
||||
* @param newestVersionBlock 回调block
|
||||
*/
|
||||
- (void)checkNewestVersion:(MAOfflineMapNewestVersionBlock)newestVersionBlock;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
26
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineMapViewController.h
generated
Normal file
26
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineMapViewController.h
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// MAOfflineMapViewController.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by hanxiaoming on 2017/12/14.
|
||||
// Copyright © 2017年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OFFLINE
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MAOfflineMap.h"
|
||||
|
||||
///离线地图ViewController(since 5.7.0)
|
||||
@interface MAOfflineMapViewController : UIViewController
|
||||
|
||||
/// MAOfflineMapViewController单例,请使用单例以保证离线地图状态正确同步。
|
||||
+ (instancetype)sharedInstance;
|
||||
|
||||
///MAOfflineMap实例
|
||||
@property (nonatomic, readonly) MAOfflineMap *offlineMap;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
24
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineProvince.h
generated
Normal file
24
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOfflineProvince.h
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// MAOfflineProvince.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by songjian on 14-4-24.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_OFFLINE
|
||||
|
||||
#import "MAOfflineItem.h"
|
||||
#import "MAOfflineItemCommonCity.h"
|
||||
|
||||
///离线地图,省地图信息
|
||||
@interface MAOfflineProvince : MAOfflineItem
|
||||
|
||||
///包含的城市数组(都是MAOfflineItemCommonCity类型)
|
||||
@property (nonatomic, strong, readonly) NSArray *cities;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
23
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOverlay.h
generated
Executable file
23
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOverlay.h
generated
Executable file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// MAOverlay.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import "MAAnnotation.h"
|
||||
#import "MAGeometry.h"
|
||||
|
||||
///该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
|
||||
@protocol MAOverlay <MAAnnotation>
|
||||
@required
|
||||
|
||||
///返回区域中心坐标
|
||||
- (CLLocationCoordinate2D)coordinate;
|
||||
|
||||
///区域外接矩形
|
||||
- (MAMapRect)boundingMapRect;
|
||||
|
||||
@end
|
||||
38
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOverlayPathRenderer.h
generated
Executable file
38
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOverlayPathRenderer.h
generated
Executable file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// MAOverlayPathRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MAOverlayRenderer.h"
|
||||
#import "MAPathShowRange.h"
|
||||
|
||||
///该类设置overlay绘制的属性,可以使用该类的子类MACircleRenderer, MAPolylineRenderer, MAPolygonRenderer或者继承该类
|
||||
@interface MAOverlayPathRenderer : MAOverlayRenderer
|
||||
|
||||
///填充颜色,默认是kMAOverlayRendererDefaultFillColor
|
||||
@property (nonatomic, retain) UIColor *fillColor;
|
||||
|
||||
///笔触颜色,默认是kMAOverlayRendererDefaultStrokeColor
|
||||
@property (nonatomic, retain) UIColor *strokeColor;
|
||||
|
||||
///笔触宽度, 单位屏幕点坐标,默认是0
|
||||
@property (nonatomic, assign) CGFloat lineWidth;
|
||||
|
||||
///LineJoin,默认是kMALineJoinBevel
|
||||
@property (nonatomic, assign) MALineJoinType lineJoinType;
|
||||
|
||||
///LineCap,默认是kMALineCapButt
|
||||
@property (nonatomic, assign) MALineCapType lineCapType;
|
||||
|
||||
///MiterLimit,默认是2.f
|
||||
@property (nonatomic, assign) CGFloat miterLimit;
|
||||
|
||||
///虚线类型, since 5.5.0
|
||||
@property (nonatomic, assign) MALineDashType lineDashType;
|
||||
|
||||
@end
|
||||
128
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOverlayRenderer.h
generated
Executable file
128
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAOverlayRenderer.h
generated
Executable file
@@ -0,0 +1,128 @@
|
||||
//
|
||||
// MAOverlayRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MAOverlay.h"
|
||||
#import "MALineDrawType.h"
|
||||
|
||||
#define kMAOverlayRendererDefaultStrokeColor [UIColor colorWithRed:0.3 green:0.63 blue:0.89 alpha:0.8]
|
||||
#define kMAOverlayRendererDefaultFillColor [UIColor colorWithRed:0.77 green:0.88 blue:0.94 alpha:0.8]
|
||||
|
||||
@protocol MAOverlayRenderDelegate,MTLRenderCommandEncoder;
|
||||
|
||||
///该类是地图覆盖物Renderer的基类, 提供绘制overlay的接口但并无实际的实现(render相关方法只能在重写后的glRender方法中使用)
|
||||
@interface MAOverlayRenderer : NSObject {
|
||||
@protected
|
||||
GLuint _strokeTextureID;
|
||||
CGSize _strokeTextureSize;
|
||||
BOOL _needsUpdate;
|
||||
BOOL _needsLoadStrokeTexture;
|
||||
}
|
||||
|
||||
///由地图添加时,不要手动设置。如果不是使用mapview进行添加,则需要手动设置。(since 5.1.0)
|
||||
@property (nonatomic, weak) id<MAOverlayRenderDelegate> rendererDelegate;
|
||||
|
||||
///关联的overlay对象
|
||||
@property (nonatomic, readonly, retain) id <MAOverlay> overlay;
|
||||
|
||||
///用于生成笔触纹理id的图片(支持非PowerOfTwo图片; 如果您需要减轻绘制产生的锯齿,您可以参考AMap.bundle中的traffic_texture_blue.png的方式,在image两边增加部分透明像素.)。(since 5.3.0)
|
||||
@property (nonatomic, strong) UIImage *strokeImage;
|
||||
|
||||
///笔触纹理id, 修改纹理id参考, 如果strokeImage未指定、尚未加载或加载失败返回0. 注意:仅使用gles环境
|
||||
@property (nonatomic, readonly) GLuint strokeTextureID __attribute((deprecated("已废弃,since 7.9.0")));
|
||||
|
||||
///透明度[0,1],默认为1. 使用MAOverlayRenderer类提供的渲染接口会自动应用此属性。(since 5.1.0)
|
||||
@property (nonatomic, assign) CGFloat alpha;
|
||||
|
||||
///overlay渲染的scale。(since 5.1.0)
|
||||
@property (nonatomic, readonly) CGFloat contentScale;
|
||||
|
||||
/**
|
||||
* @brief 初始化并返回一个Overlay Renderer
|
||||
* @param overlay 关联的overlay对象
|
||||
* @return 初始化成功则返回overlay view,否则返回nil
|
||||
*/
|
||||
- (instancetype)initWithOverlay:(id<MAOverlay>)overlay;
|
||||
|
||||
/**
|
||||
* @brief 获取当前地图view矩阵,数组长度为16,无需外界释放. 需要添加至地图后,才能获取有效矩阵数据,否则返回NULL
|
||||
* @return 矩阵数组
|
||||
*/
|
||||
- (float *)getViewMatrix;
|
||||
|
||||
/**
|
||||
* @brief 获取当前地图projection矩阵,数组长度为16,无需外界释放. 需要添加至地图后,才能获取有效矩阵数据,否则返回NULL
|
||||
* @return 矩阵数组
|
||||
*/
|
||||
- (float *)getProjectionMatrix;
|
||||
|
||||
/**
|
||||
* @brief 获取当前地图中心点偏移,用以把地图坐标转换为gl坐标。需要添加到地图获取才有效。(since 5.1.0)
|
||||
* @return 偏移
|
||||
*/
|
||||
- (MAMapPoint)getOffsetPoint;
|
||||
|
||||
/**
|
||||
* @brief 获取Metal渲染MTLRenderCommandEncoder对象。注意:打开地图MetalEnable时有效,否则为nil(since 7.9.0)
|
||||
* @return 偏移
|
||||
*/
|
||||
- (id<MTLRenderCommandEncoder>)getCommandEncoder;
|
||||
|
||||
/**
|
||||
* @brief 获取当前地图缩放级别,需要添加到地图获取才有效。(since 5.1.0)
|
||||
* @return 缩放级别
|
||||
*/
|
||||
- (CGFloat)getMapZoomLevel;
|
||||
|
||||
/**
|
||||
* @brief 将MAMapPoint转换为opengles可以直接使用的坐标
|
||||
* @param mapPoint MAMapPoint坐标
|
||||
* @return 直接支持的坐标
|
||||
*/
|
||||
- (CGPoint)glPointForMapPoint:(MAMapPoint)mapPoint;
|
||||
|
||||
/**
|
||||
* @brief 批量将MAMapPoint转换为opengles可以直接使用的坐标
|
||||
* @param mapPoints MAMapPoint坐标数据指针
|
||||
* @param count 个数
|
||||
* @return 直接支持的坐标数据指针(需要调用者手动释放)
|
||||
*/
|
||||
- (CGPoint *)glPointsForMapPoints:(MAMapPoint *)mapPoints count:(NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 将屏幕尺寸转换为OpenGLES尺寸
|
||||
* @param windowWidth 屏幕尺寸
|
||||
* @return OpenGLES尺寸
|
||||
*/
|
||||
- (CGFloat)glWidthForWindowWidth:(CGFloat)windowWidth;
|
||||
|
||||
/**
|
||||
* @brief 绘制函数(子类需要重载来实现)
|
||||
*/
|
||||
- (void)glRender;
|
||||
|
||||
/**
|
||||
* @brief 加载纹理图片. 注意:仅使用gles环境(since 5.1.0)
|
||||
* @param textureImage 纹理图片(需满足:长宽相等,且宽度值为2的次幂)
|
||||
* @return openGL纹理ID, 若纹理加载失败返回0
|
||||
*/
|
||||
- (GLuint)loadTexture:(UIImage *)textureImage __attribute((deprecated("已废弃,since 7.9.0")));
|
||||
|
||||
/**
|
||||
@brief 删除纹理. 注意:仅使用gles环境(since 5.1.0)
|
||||
@param textureId 纹理ID
|
||||
*/
|
||||
- (void)deleteTexture:(GLuint)textureId __attribute((deprecated("已废弃,since 7.9.0")));
|
||||
|
||||
/**
|
||||
* @brief 当关联overlay对象有更新时,调用此接口刷新. since 5.0.0
|
||||
*/
|
||||
- (void)setNeedsUpdate;
|
||||
|
||||
@end
|
||||
39
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAParticleOverlay.h
generated
Normal file
39
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAParticleOverlay.h
generated
Normal file
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// MAParticleOverlay.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by liubo on 2018/9/19.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_ParticleSystem
|
||||
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
#import "MAParticleOverlayOptions.h"
|
||||
|
||||
#pragma mark - MAParticleOverlay
|
||||
|
||||
///该类用于定义一个粒子MAParticleOverlay, 通常MAParticleOverlay是MAParticleOverlayRenderer的model. since 6.5.0
|
||||
@interface MAParticleOverlay : MAShape <MAOverlay>
|
||||
|
||||
/**
|
||||
* @brief 根据粒子覆盖物选项option生成MAParticleOverlay
|
||||
* @param option 粒子覆盖物选项option
|
||||
* @return 新生成的粒子覆盖物MAParticleOverlay
|
||||
*/
|
||||
+ (instancetype)particleOverlayWithOption:(MAParticleOverlayOptions *)option;
|
||||
|
||||
///当前粒子覆盖物的option,如果需要修改option的配置,需要修改后重新调用setOverlayOption:方法。
|
||||
@property (nonatomic, strong, readonly) MAParticleOverlayOptions *overlayOption;
|
||||
|
||||
/**
|
||||
* @brief 更新粒子覆盖物选项option
|
||||
* @param overlayOption 要更新的粒子覆盖物选项
|
||||
*/
|
||||
- (void)updateOverlayOption:(MAParticleOverlayOptions *)overlayOption;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
297
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAParticleOverlayOptions.h
generated
Normal file
297
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAParticleOverlayOptions.h
generated
Normal file
@@ -0,0 +1,297 @@
|
||||
//
|
||||
// MAParticleOverlayOptions.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by liubo on 2018/9/18.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_ParticleSystem
|
||||
|
||||
#import "MAShape.h"
|
||||
#import "MAOverlay.h"
|
||||
|
||||
#pragma mark - MAParticleOverlayType
|
||||
|
||||
///天气类型
|
||||
typedef NS_ENUM(NSInteger, MAParticleOverlayType)
|
||||
{
|
||||
MAParticleOverlayTypeSunny = 1, ///<晴天
|
||||
MAParticleOverlayTypeRain, ///<雨天
|
||||
MAParticleOverlayTypeSnowy, ///<雪天
|
||||
MAParticleOverlayTypeHaze, ///<雾霾
|
||||
};
|
||||
|
||||
#pragma mark - MAParticleVelocityGenerate
|
||||
|
||||
///粒子的速度生成类. since 6.5.0
|
||||
@protocol MAParticleVelocityGenerate <NSObject>
|
||||
@required
|
||||
|
||||
///X轴方向上的速度变化率
|
||||
- (CGFloat)getX;
|
||||
|
||||
///Y轴方向上的速度变化率
|
||||
- (CGFloat)getY;
|
||||
|
||||
///Z轴方向上的速度变化率
|
||||
- (CGFloat)getZ;
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleRandomVelocityGenerate
|
||||
|
||||
///粒子的随机速度生成类. since 6.5.0
|
||||
@interface MAParticleRandomVelocityGenerate : NSObject <MAParticleVelocityGenerate>
|
||||
|
||||
/**
|
||||
* @brief 根据速度范围值生成粒子的速度变化类
|
||||
* @param x1 起始的速度x值
|
||||
* @param y1 起始的速度y值
|
||||
* @param z1 起始的速度z值
|
||||
* @param x2 结束的速度x值
|
||||
* @param y2 结束的速度y值
|
||||
* @param z2 结束的速度z值
|
||||
* @return 生成粒子的颜色变化类
|
||||
*/
|
||||
- (instancetype)initWithBoundaryValueX1:(float)x1 Y1:(float)y1 Z1:(float)z1 X2:(float)x2 Y2:(float)y2 Z2:(float)z2;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleColorGenerate
|
||||
|
||||
///粒子的颜色生成类. since 6.5.0
|
||||
@protocol MAParticleColorGenerate <NSObject>
|
||||
@required
|
||||
///生成的颜色值,需为包含四个float值的数组。
|
||||
- (float *)getColor;
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleRandomColorGenerate
|
||||
|
||||
///粒子的随机颜色生成类. since 6.5.0
|
||||
@interface MAParticleRandomColorGenerate : NSObject <MAParticleColorGenerate>
|
||||
|
||||
/**
|
||||
* @brief 根据颜色范围值生成粒子的颜色变化类
|
||||
* @param r1 起始的颜色r值
|
||||
* @param g1 起始的颜色g值
|
||||
* @param b1 起始的颜色b值
|
||||
* @param a1 起始的颜色a值
|
||||
* @param r2 结束的颜色r值
|
||||
* @param g2 结束的颜色g值
|
||||
* @param b2 结束的颜色b值
|
||||
* @param a2 结束的颜色a值
|
||||
* @return 生成粒子的颜色变化类
|
||||
*/
|
||||
- (instancetype)initWithBoundaryColorR1:(float)r1 G1:(float)g1 B1:(float)b1 A1:(float)a1 R2:(float)r2 G2:(float)g2 B2:(float)b2 A2:(float)a2;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleRotationGenerate
|
||||
|
||||
///粒子的角度生成类. since 6.5.0
|
||||
@protocol MAParticleRotationGenerate <NSObject>
|
||||
@required
|
||||
///生成的角度值
|
||||
- (float)getRotate;
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleConstantRotationGenerate
|
||||
|
||||
///粒子的固定角度生成类. since 6.5.0
|
||||
@interface MAParticleConstantRotationGenerate : NSObject <MAParticleRotationGenerate>
|
||||
|
||||
/**
|
||||
* @brief 根据角度生成粒子的角度变化类
|
||||
* @param rotate 固定的角度
|
||||
* @return 生成粒子的角度变化类
|
||||
*/
|
||||
- (instancetype)initWithRotate:(float)rotate;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleSizeGenerate
|
||||
|
||||
///粒子的大小生成类. since 6.5.0
|
||||
@protocol MAParticleSizeGenerate <NSObject>
|
||||
@required
|
||||
|
||||
///X轴上变化比例
|
||||
- (float)getSizeX:(float)timeFrame;
|
||||
|
||||
///Y轴上变化比例
|
||||
- (float)getSizeY:(float)timeFrame;
|
||||
|
||||
///Z轴上变化比例
|
||||
- (float)getSizeZ:(float)timeFrame;
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleCurveSizeGenerate
|
||||
|
||||
///粒子的大小变化类. since 6.5.0
|
||||
@interface MAParticleCurveSizeGenerate : NSObject <MAParticleSizeGenerate>
|
||||
|
||||
/**
|
||||
* @brief 根据三个轴上的变化比例生成粒子的大小变化类
|
||||
* @param x X轴上变化比例
|
||||
* @param y Y轴上变化比例
|
||||
* @param z Z轴上变化比例
|
||||
* @return 生成粒子的大小变化类
|
||||
*/
|
||||
- (instancetype)initWithCurveX:(float)x Y:(float)y Z:(float)z;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleEmissionModuleOC
|
||||
|
||||
///粒子的发射率类,每隔多少时间发射粒子数量,越多会越密集. since 6.5.0
|
||||
@interface MAParticleEmissionModuleOC : NSObject
|
||||
|
||||
/**
|
||||
* @brief 根据发射数量和发射间隔生成粒子的发射率类。关系为:"发射数量为rate粒子->等待rateTime间隔->发射数量为rate粒子->等待rateTime间隔"循环
|
||||
* @param rate 发射数量(不能为0)
|
||||
* @param rateTime 发射间隔
|
||||
* @return 生成粒子的发射率类
|
||||
*/
|
||||
- (instancetype)initWithEmissionRate:(int)rate rateTime:(int)rateTime;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleShapeModule
|
||||
|
||||
///粒子的发射区域模型协议. since 6.5.0
|
||||
@protocol MAParticleShapeModule <NSObject>
|
||||
@required
|
||||
|
||||
///新生成的发射点坐标,需为包含三个float值的数组。
|
||||
- (float *)getPoint;
|
||||
|
||||
///坐标是否按比例生成
|
||||
- (BOOL)isRatioEnable;
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleSinglePointShapeModule
|
||||
|
||||
///粒子的发射单个点区域模型. since 6.5.0
|
||||
@interface MAParticleSinglePointShapeModule : NSObject <MAParticleShapeModule>
|
||||
|
||||
/**
|
||||
* @brief 生成粒子的发射矩形区域模型,以比例的形式设置发射区域
|
||||
* @param x x坐标比例
|
||||
* @param y y坐标比例
|
||||
* @param z z坐标比例
|
||||
* @param isUseRatio 是否按比例
|
||||
* @return 新生成的粒子发射单个点区域模型
|
||||
*/
|
||||
- (instancetype)initWithShapeX:(float)x Y:(float)y Z:(float)z useRatio:(BOOL)isUseRatio;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleRectShapeModule
|
||||
|
||||
///粒子的发射矩形区域模型. since 6.5.0
|
||||
@interface MAParticleRectShapeModule : NSObject <MAParticleShapeModule>
|
||||
|
||||
/**
|
||||
* @brief 生成粒子的发射矩形区域模型,以比例的形式设置发射区域。
|
||||
* @param left 左边距比例
|
||||
* @param top 上边距比例
|
||||
* @param right 右边距比例
|
||||
* @param bottom 下边距比例
|
||||
* @param isUseRatio 是否按比例
|
||||
* @return 新生成的粒子发射矩形区域模型
|
||||
*/
|
||||
- (instancetype)initWithLeft:(float)left top:(float)top right:(float)right bottom:(float)bottom useRatio:(BOOL)isUseRatio;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleOverLifeModuleOC
|
||||
|
||||
///粒子生命周期过程中状态变化,包含速度、旋转和颜色的变化. since 6.5.0
|
||||
@interface MAParticleOverLifeModuleOC : NSObject
|
||||
|
||||
/**
|
||||
* @brief 设置粒子生命周期过程中速度的变化
|
||||
* @param velocity 遵循MAParticleVelocityGenerate协议的速度生成类
|
||||
*/
|
||||
- (void)setVelocityOverLife:(id<MAParticleVelocityGenerate>)velocity;
|
||||
|
||||
/**
|
||||
* @brief 设置粒子生命周期过程中角度的变化
|
||||
* @param rotation 遵循MAParticleRotationGenerate协议的角度生成类
|
||||
*/
|
||||
- (void)setRotationOverLife:(id<MAParticleRotationGenerate>)rotation;
|
||||
|
||||
/**
|
||||
* @brief 设置粒子生命周期过程中大小的变化
|
||||
* @param size 遵循MAParticleSizeGenerate协议的大小生成类
|
||||
*/
|
||||
- (void)setSizeOverLife:(id<MAParticleSizeGenerate>)size;
|
||||
|
||||
/**
|
||||
* @brief 设置粒子生命周期过程中颜色的变化
|
||||
* @param color 遵循MAParticleColorGenerate协议的颜色生成类
|
||||
*/
|
||||
- (void)setColorOverLife:(id<MAParticleColorGenerate>)color;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleOverlayOptions
|
||||
|
||||
///该类用于定义一个粒子覆盖物显示选项. since 6.5.0
|
||||
@interface MAParticleOverlayOptions : NSObject
|
||||
|
||||
///option选项是否可见. (默认YES)
|
||||
@property (nonatomic, assign) BOOL visibile;
|
||||
|
||||
///粒子系统存活时间. (默认5000,单位毫秒)
|
||||
@property (nonatomic, assign) NSTimeInterval duration;
|
||||
|
||||
///粒子系统是否循环. (默认YES)
|
||||
@property (nonatomic, assign) BOOL loop;
|
||||
|
||||
///粒子系统的粒子最大数量. (默认100)
|
||||
@property (nonatomic, assign) NSInteger maxParticles;
|
||||
|
||||
///粒子系统的粒子图标. (默认nil)
|
||||
@property (nonatomic, strong) UIImage *icon;
|
||||
|
||||
///每个粒子的初始大小. (默认(32.f*[[UIScreen mainScreen] nativeScale], 32.f*[[UIScreen mainScreen] nativeScale]),单位:OpenGLESPixels数量,计算方式为: OpenGLESPixels = ScreenPoint数量 * [[UIScreen mainScreen] nativeScale])
|
||||
@property (nonatomic, assign) CGSize startParticleSize;
|
||||
|
||||
///每个粒子的存活时间. (默认5000,单位毫秒)
|
||||
@property (nonatomic, assign) NSTimeInterval particleLifeTime;
|
||||
|
||||
///每个粒子的初始颜色. (默认nil)
|
||||
@property (nonatomic, strong) id<MAParticleColorGenerate> particleStartColor;
|
||||
|
||||
///每个粒子的初始速度. (默认nil)
|
||||
@property (nonatomic, strong) id<MAParticleVelocityGenerate> particleStartSpeed;
|
||||
|
||||
///粒子的发射率,参考 MAParticleEmissionModuleOC 类. (默认nil)
|
||||
@property (nonatomic, strong) MAParticleEmissionModuleOC *particleEmissionModule;
|
||||
|
||||
///粒子的发射区域模型. (默认nil)
|
||||
@property (nonatomic, strong) id<MAParticleShapeModule> particleShapeModule;
|
||||
|
||||
///粒子生命周期过程,参考 MAParticleOverLifeModuleOC 类. (默认nil)
|
||||
@property (nonatomic, strong) MAParticleOverLifeModuleOC *particleOverLifeModule;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark - MAParticleOverlayOptionsFactory
|
||||
|
||||
///该类用于根据指定的天气类型,生成SDK内置的天气粒子覆盖物显示选项option. since 6.5.0
|
||||
@interface MAParticleOverlayOptionsFactory : NSObject
|
||||
|
||||
/**
|
||||
* @brief 根据指定的天气类型生成粒子覆盖物显示选项option
|
||||
* @param particleType 天气类型
|
||||
* @return 新生成的粒子覆盖物显示选项option
|
||||
*/
|
||||
+ (NSArray<MAParticleOverlayOptions *> *)particleOverlayOptionsWithType:(MAParticleOverlayType)particleType;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
31
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAParticleOverlayRenderer.h
generated
Normal file
31
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAParticleOverlayRenderer.h
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// MAParticleOverlayRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by liubo on 2018/9/19.
|
||||
// Copyright © 2018年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_ParticleSystem
|
||||
|
||||
#import "MAOverlayRenderer.h"
|
||||
#import "MAParticleOverlayOptions.h"
|
||||
#import "MAParticleOverlay.h"
|
||||
|
||||
///该类是MAParticleOverlay的显示Renderer. since 6.5.0
|
||||
@interface MAParticleOverlayRenderer : MAOverlayRenderer
|
||||
|
||||
///关联的MAParticleOverlay model
|
||||
@property (nonatomic, readonly) MAParticleOverlay *particleOverlay;
|
||||
|
||||
/**
|
||||
* @brief 根据指定MAParticleOverlay生成对应的Renderer
|
||||
* @param particleOverlay 指定的MAParticleOverlay model
|
||||
* @return 生成的Renderer
|
||||
*/
|
||||
- (instancetype)initWithParticleOverlay:(MAParticleOverlay *)particleOverlay;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
24
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPathShowRange.h
generated
Normal file
24
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPathShowRange.h
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// MAPathShowRange.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by shaobin on 2019/12/31.
|
||||
// Copyright © 2019 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef MAPathShowRange_h
|
||||
#define MAPathShowRange_h
|
||||
|
||||
struct MAPathShowRange {
|
||||
float begin; ///<起点位置,整数部分表示起点索引,小数部分表示在线段上的位置
|
||||
float end; ///<终点位置,整数部分表示起点索引,小数部分表示在线段上的位置
|
||||
};
|
||||
|
||||
typedef struct MAPathShowRange MAPathShowRange;
|
||||
|
||||
static inline MAPathShowRange MAPathShowRangeMake(float begin, float end) {
|
||||
return (MAPathShowRange){begin, end};
|
||||
}
|
||||
|
||||
|
||||
#endif /* MAPathShowRange_h */
|
||||
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPinAnnotationView.h
generated
Normal file
29
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPinAnnotationView.h
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// MAPinAnnotationView.h
|
||||
// MAMapKitDemo
|
||||
//
|
||||
// Created by songjian on 13-1-7.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import "MAMapView.h"
|
||||
#import "MAAnnotationView.h"
|
||||
|
||||
///MAPinAnnotationColor
|
||||
typedef NS_ENUM(NSInteger, MAPinAnnotationColor){
|
||||
MAPinAnnotationColorRed = 0, ///< 红色大头针
|
||||
MAPinAnnotationColorGreen, ///< 绿色大头针
|
||||
MAPinAnnotationColorPurple ///< 紫色大头针
|
||||
};
|
||||
|
||||
///提供类似大头针效果的annotation view
|
||||
@interface MAPinAnnotationView : MAAnnotationView
|
||||
|
||||
///大头针的颜色
|
||||
@property (nonatomic) MAPinAnnotationColor pinColor;
|
||||
|
||||
///添加到地图时是否使用下落动画效果
|
||||
@property (nonatomic) BOOL animatesDrop;
|
||||
|
||||
@end
|
||||
25
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPointAnnotation.h
generated
Normal file
25
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPointAnnotation.h
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// MAPointAnnotation.h
|
||||
// MAMapKitDemo
|
||||
//
|
||||
// Created by songjian on 13-1-7.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import "MAShape.h"
|
||||
#import <CoreLocation/CLLocation.h>
|
||||
|
||||
///点标注数据
|
||||
@interface MAPointAnnotation : MAShape
|
||||
|
||||
///经纬度
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///是否固定在屏幕一点, 注意,拖动或者手动改变经纬度,都会导致设置失效
|
||||
@property (nonatomic, assign, getter = isLockedToScreen) BOOL lockedToScreen;
|
||||
|
||||
///固定屏幕点的坐标
|
||||
@property (nonatomic, assign) CGPoint lockedScreenPoint;
|
||||
|
||||
@end
|
||||
51
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolygon.h
generated
Executable file
51
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolygon.h
generated
Executable file
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// MAPolygon.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAMultiPoint.h"
|
||||
#import "MAOverlay.h"
|
||||
|
||||
///此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常MAPolygon是MAPolygonView的model
|
||||
@interface MAPolygon : MAMultiPoint <MAOverlay>
|
||||
|
||||
///设置中空区域,用来创建中间带空洞的复杂图形。注意:传入的overlay只支持MAPolgon类型和MACircle类型,不支持与polygon边相交或在polygon外部,不支持hollowShapes彼此间相交,和空洞顺序有关,不支持嵌套. since 5.5.0
|
||||
@property (nonatomic, strong) NSArray<id<MAOverlay>> *hollowShapes;
|
||||
|
||||
/**
|
||||
* @brief 根据经纬度坐标数据生成闭合多边形
|
||||
* @param coords 经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放
|
||||
* @param count 经纬度坐标点数组个数
|
||||
* @return 新生成的多边形
|
||||
*/
|
||||
+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 根据map point数据生成多边形
|
||||
* @param points map point数据,points对应的内存会拷贝,调用者负责该内存的释放
|
||||
* @param count 点的个数
|
||||
* @return 新生成的多边形
|
||||
*/
|
||||
+ (instancetype)polygonWithPoints:(MAMapPoint *)points count:(NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 重新设置多边形顶点. since 5.0.0
|
||||
* @param points 指定的直角坐标点数组, C数组,内部会做copy,调用者负责内存管理
|
||||
* @param count 坐标点的个数
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setPolygonWithPoints:(MAMapPoint *)points count:(NSInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 重新设置多边形顶点. since 5.0.0
|
||||
* @param coords 指定的经纬度坐标点数组, C数组,内部会做copy,调用者负责内存管理
|
||||
* @param count 坐标点的个数
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setPolygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger)count;
|
||||
|
||||
@end
|
||||
27
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolygonRenderer.h
generated
Executable file
27
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolygonRenderer.h
generated
Executable file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// MAPolygonRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MAPolygon.h"
|
||||
#import "MAOverlayPathRenderer.h"
|
||||
|
||||
///此类用于绘制MAPolygon,可以通过MAOverlayPathRenderer修改其fill和stroke attributes
|
||||
@interface MAPolygonRenderer : MAOverlayPathRenderer
|
||||
|
||||
///关联的MAPolygon model
|
||||
@property (nonatomic, readonly) MAPolygon *polygon;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的多边形生成一个多边形Renderer
|
||||
* @param polygon polygon 指定的多边形数据对象
|
||||
* @return 新生成的多边形Renderer
|
||||
*/
|
||||
- (instancetype)initWithPolygon:(MAPolygon *)polygon;
|
||||
|
||||
@end
|
||||
48
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolyline.h
generated
Executable file
48
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolyline.h
generated
Executable file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// MAPolyline.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import "MAMultiPoint.h"
|
||||
#import "MAOverlay.h"
|
||||
|
||||
///此类用于定义一个由多个点相连的多段线,点与点之间尾部相连但第一点与最后一个点不相连, 通常MAPolyline是MAPolylineView的model
|
||||
@interface MAPolyline : MAMultiPoint <MAOverlay>
|
||||
|
||||
/**
|
||||
* @brief 根据map point数据生成多段线
|
||||
* @param points map point数据,points对应的内存会拷贝,调用者负责该内存的释放
|
||||
* @param count map point个数
|
||||
* @return 生成的多段线
|
||||
*/
|
||||
+ (instancetype)polylineWithPoints:(MAMapPoint *)points count:(NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 根据经纬度坐标数据生成多段线
|
||||
* @param coords 经纬度坐标数据,coords对应的内存会拷贝,调用者负责该内存的释放
|
||||
* @param count 经纬度坐标个数
|
||||
* @return 生成的多段线
|
||||
*/
|
||||
+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 重新设置折线坐标点. since 5.0.0
|
||||
* @param points 指定的直角坐标点数组, C数组,内部会做copy,调用者负责内存管理
|
||||
* @param count 坐标点的个数
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setPolylineWithPoints:(MAMapPoint *)points count:(NSInteger)count;
|
||||
|
||||
/**
|
||||
* @brief 重新设置折线坐标点. since 5.0.0
|
||||
* @param coords 指定的经纬度坐标点数组, C数组,内部会做copy,调用者负责内存管理
|
||||
* @param count 坐标点的个数
|
||||
* @return 是否设置成功
|
||||
*/
|
||||
- (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger)count;
|
||||
|
||||
@end
|
||||
46
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolylineRenderer.h
generated
Executable file
46
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAPolylineRenderer.h
generated
Executable file
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// MAPolylineRenderer.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MAPolyline.h"
|
||||
#import "MAOverlayPathRenderer.h"
|
||||
#import "MAPathShowRange.h"
|
||||
|
||||
///此类用于绘制MAPolyline,可以通过MAOverlayPathRenderer修改其fill和stroke attributes
|
||||
@interface MAPolylineRenderer : MAOverlayPathRenderer
|
||||
|
||||
///关联的MAPolyline model
|
||||
@property (nonatomic, readonly) MAPolyline *polyline;
|
||||
|
||||
///设置是否显示3d箭头线, 默认为NO。如果设置为YES,则为3d箭头线。since 6.7.0
|
||||
@property (nonatomic, assign) BOOL is3DArrowLine;
|
||||
|
||||
///设置为立体3d箭头的侧边颜色(当is3DArrowLine为YES时有效)顶部颜色使用strokeColor。since 6.7.0
|
||||
@property (nonatomic, strong) UIColor *sideColor;
|
||||
|
||||
///是否开启点击选中功能,默认NO. since 7.1.0
|
||||
@property (nonatomic, assign) BOOL userInteractionEnabled;
|
||||
|
||||
///用于调整点击选中热区大小,默认为0. 负值增大热区,正值减小热区. since 7.1.0
|
||||
@property (nonatomic, assign) CGFloat hitTestInset;
|
||||
|
||||
///是否启用显示范围,YES启用,不启用时展示全路径 since 7.5.0
|
||||
@property (nonatomic, assign) BOOL showRangeEnabled;
|
||||
|
||||
///显示范围 since 7.5.0
|
||||
@property (nonatomic, assign) MAPathShowRange showRange;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的MAPolyline生成一个多段线Renderer
|
||||
* @param polyline 指定MAPolyline
|
||||
* @return 新生成的多段线Renderer
|
||||
*/
|
||||
- (instancetype)initWithPolyline:(MAPolyline *)polyline;
|
||||
|
||||
@end
|
||||
27
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAShape.h
generated
Executable file
27
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAShape.h
generated
Executable file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// MAShape.h
|
||||
// MAMapKit
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2011年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAAnnotation.h"
|
||||
#import "MABaseOverlay.h"
|
||||
|
||||
///该类为一个抽象类,定义了基于MAAnnotation的MAShape类的基本属性和行为,不能直接使用,必须子类化之后才能使用
|
||||
@interface MAShape : MABaseOverlay <MAAnnotation> {
|
||||
|
||||
NSString *_title; ///<标题
|
||||
NSString *_subtitle; ///<副标题
|
||||
}
|
||||
|
||||
///标题
|
||||
@property (nonatomic, copy) NSString *title;
|
||||
|
||||
///副标题
|
||||
@property (nonatomic, copy) NSString *subtitle;
|
||||
|
||||
@end
|
||||
81
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATileOverlay.h
generated
Normal file
81
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATileOverlay.h
generated
Normal file
@@ -0,0 +1,81 @@
|
||||
//
|
||||
// MATileOverlay.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by Li Fei on 11/22/13.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_TILE
|
||||
|
||||
#import "MAOverlay.h"
|
||||
#import "MABaseOverlay.h"
|
||||
|
||||
///该类是覆盖在球面墨卡托投影上的图片tiles的数据源
|
||||
@interface MATileOverlay : MABaseOverlay
|
||||
|
||||
///瓦片大小,默认是256x256, 最小支持64*64
|
||||
@property (nonatomic, assign) CGSize tileSize;
|
||||
|
||||
///tileOverlay的可见最小Zoom值
|
||||
@property NSInteger minimumZ __attribute((deprecated("已废弃, 调用不起任何作用。since 9.6.0")));
|
||||
|
||||
///tileOverlay的可见最大Zoom值
|
||||
@property NSInteger maximumZ __attribute((deprecated("已废弃, 调用不起任何作用。since 9.6.0")));
|
||||
|
||||
///同initWithURLTemplate:中的URLTemplate
|
||||
@property (readonly) NSString *URLTemplate;
|
||||
|
||||
///暂未开放
|
||||
@property (nonatomic) BOOL canReplaceMapContent;
|
||||
|
||||
///是否停止不在显示区域内的瓦片下载,默认NO. since 5.3.0
|
||||
@property (nonatomic, assign) BOOL disableOffScreenTileLoading;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的URLTemplate生成tileOverlay
|
||||
* @param URLTemplate URLTemplate是一个包含"{x}","{y}","{z}","{scale}"的字符串,"{x}","{y}","{z}","{scale}"会被tile path的值所替换,并生成用来加载tile图片数据的URL 。例如 http://server/path?x={x}&y={y}&z={z}&scale={scale}
|
||||
* @return 以指定的URLTemplate字符串生成tileOverlay
|
||||
*/
|
||||
- (id)initWithURLTemplate:(NSString *)URLTemplate;
|
||||
|
||||
@end
|
||||
|
||||
///MATileOverlayPath
|
||||
struct MATileOverlayPath{
|
||||
NSInteger x; ///< x坐标
|
||||
NSInteger y; ///< y坐标
|
||||
NSInteger z; ///< 缩放级别
|
||||
CGFloat contentScaleFactor; ///< 屏幕的scale factor
|
||||
NSInteger index; ///< 对应的下载url
|
||||
NSInteger requestId; ///<资源下载唯一标识,用于记录
|
||||
};
|
||||
typedef struct MATileOverlayPath MATileOverlayPath;
|
||||
|
||||
///子类可覆盖CustomLoading中的方法来自定义加载MATileOverlay的行为。
|
||||
@interface MATileOverlay (CustomLoading)
|
||||
|
||||
/**
|
||||
* @brief 以tile path生成URL。用于加载tile,此方法默认填充URLTemplate
|
||||
* @param path tile path
|
||||
* @return 以tile path生成tileOverlay
|
||||
*/
|
||||
- (NSURL *)URLForTilePath:(MATileOverlayPath)path;
|
||||
|
||||
/**
|
||||
* @brief 加载被请求的tile,并以tile数据或加载tile失败error访问回调block;默认实现为首先用URLForTilePath去获取URL,然后用异步NSURLConnection加载tile
|
||||
* @param path tile path
|
||||
* @param result 用来传入tile数据或加载tile失败的error访问的回调block
|
||||
*/
|
||||
- (void)loadTileAtPath:(MATileOverlayPath)path result:(void (^)(NSData *tileData, NSError *error))result;
|
||||
|
||||
/**
|
||||
* @brief 取消请求瓦片,当地图显示区域发生变化时,会取消显示区域外的瓦片的下载, 当disableOffScreenTileLoading=YES时会被调用。since 5.3.0
|
||||
* @param path tile path
|
||||
*/
|
||||
- (void)cancelLoadOfTileAtPath:(MATileOverlayPath)path;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
35
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATileOverlayRenderer.h
generated
Normal file
35
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATileOverlayRenderer.h
generated
Normal file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// MATileOverlayRenderer.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by Li Fei on 11/25/13.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#if MA_INCLUDE_OVERLAY_TILE
|
||||
|
||||
#import "MAOverlayRenderer.h"
|
||||
#import "MATileOverlay.h"
|
||||
|
||||
///此类是将MAOverlayRenderer中的覆盖tiles显示在地图上的Renderer
|
||||
@interface MATileOverlayRenderer : MAOverlayRenderer
|
||||
|
||||
///覆盖在球面墨卡托投影上的图片tiles的数据源
|
||||
@property (nonatomic ,readonly) MATileOverlay *tileOverlay;
|
||||
|
||||
/**
|
||||
* @brief 根据指定的tileOverlay生成将tiles显示在地图上的Renderer
|
||||
* @param tileOverlay 制定了覆盖图片
|
||||
* @return 以tileOverlay新生成Renderer
|
||||
*/
|
||||
- (instancetype)initWithTileOverlay:(MATileOverlay *)tileOverlay;
|
||||
|
||||
/**
|
||||
* @brief 清除所有tile的缓存,并刷新overlay
|
||||
*/
|
||||
- (void)reloadData;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
25
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATouchPoi.h
generated
Normal file
25
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATouchPoi.h
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// MATouchPoi.h
|
||||
// MapKit_static
|
||||
//
|
||||
// Created by songjian on 13-7-17.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
///MATouchPoi 定义
|
||||
@interface MATouchPoi : NSObject
|
||||
|
||||
///名称
|
||||
@property (nonatomic, copy, readonly) NSString *name;
|
||||
|
||||
///经纬度坐标
|
||||
@property (nonatomic, assign, readonly) CLLocationCoordinate2D coordinate;
|
||||
|
||||
///poi的ID
|
||||
@property (nonatomic, copy, readonly) NSString *uid;
|
||||
|
||||
@end
|
||||
42
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATraceLocation.h
generated
Normal file
42
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATraceLocation.h
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// MATraceLocation.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by shaobin on 16/9/1.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_TRACE_CORRECT
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
///返回轨迹点定义
|
||||
@interface MATracePoint : NSObject<NSCoding>
|
||||
|
||||
///纬度坐标
|
||||
@property (nonatomic, assign) CLLocationDegrees latitude;
|
||||
///经度坐标
|
||||
@property (nonatomic, assign) CLLocationDegrees longitude;
|
||||
|
||||
@end
|
||||
|
||||
///传入轨迹点定义
|
||||
@interface MATraceLocation : NSObject
|
||||
|
||||
///经纬度坐标
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D loc;
|
||||
///角度, 标识移动方向,单位度
|
||||
@property (nonatomic, assign) double angle;
|
||||
///速度,单位km/h
|
||||
@property (nonatomic, assign) double speed;
|
||||
///时间,单位毫秒
|
||||
@property (nonatomic, assign) double time;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
104
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATraceManager.h
generated
Normal file
104
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MATraceManager.h
generated
Normal file
@@ -0,0 +1,104 @@
|
||||
//
|
||||
// MATraceManager.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by shaobin on 16/9/1.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
#import "MAConfig.h"
|
||||
|
||||
#if MA_INCLUDE_TRACE_CORRECT
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AMapFoundationKit/AMapFoundationKit.h>
|
||||
#import "MATraceLocation.h"
|
||||
|
||||
@class MATraceManager;
|
||||
|
||||
///处理中回调, index: 批次编号,0 based
|
||||
typedef void(^MAProcessingCallback)(int index, NSArray<MATracePoint *> *points);
|
||||
|
||||
///成功回调,distance:距离,单位米
|
||||
typedef void(^MAFinishCallback)(NSArray<MATracePoint *> *points, double distance);
|
||||
|
||||
///失败回调
|
||||
typedef void(^MAFailedCallback)(int errorCode, NSString *errorDesc);
|
||||
|
||||
///定位回调, locations: 原始定位点; tracePoints: 纠偏后的点,如果纠偏失败返回nil; distance:距离; error: 纠偏失败时的错误信息
|
||||
typedef void(^MATraceLocationCallback)(NSArray<CLLocation *> *locations, NSArray<MATracePoint *> *tracePoints, double distance, NSError *error);
|
||||
|
||||
/**
|
||||
* @brief 轨迹定位的代理协议,since v6.2.0
|
||||
*/
|
||||
@protocol MATraceDelegate <NSObject>
|
||||
|
||||
@required
|
||||
|
||||
/**
|
||||
* @brief 轨迹定位纠偏的回调方法,since v6.2.0
|
||||
* @param manager 轨迹定位管理对象
|
||||
* @param locations 已经完成纠偏的原始定位数据
|
||||
* @param tracePoints 已经完成纠偏处理后的轨迹点
|
||||
* @param distance 距离,单位米
|
||||
* @param error 如果成功的话为nil,否则为失败原因
|
||||
*/
|
||||
- (void)traceManager:(MATraceManager *)manager
|
||||
didTrace:(NSArray<CLLocation *> *)locations
|
||||
correct:(NSArray<MATracePoint *> *)tracePoints
|
||||
distance:(double)distance
|
||||
withError:(NSError *)error;
|
||||
|
||||
@optional
|
||||
/**
|
||||
* @brief 当plist配置NSLocationAlwaysUsageDescription或者NSLocationAlwaysAndWhenInUseUsageDescription,并且[CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined,会调用代理的此方法。
|
||||
此方法实现调用后台权限API即可( 该回调必须实现 [locationManager requestAlwaysAuthorization] ); since 6.8.1
|
||||
* @param locationManager 地图的CLLocationManager。
|
||||
*/
|
||||
- (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
|
||||
|
||||
@end
|
||||
|
||||
///轨迹纠偏管理类
|
||||
@interface MATraceManager : NSObject
|
||||
|
||||
/**
|
||||
* @brief 单例方法
|
||||
*/
|
||||
+ (instancetype)sharedInstance;
|
||||
|
||||
/**
|
||||
* @brief 获取纠偏后的经纬度点集
|
||||
* @param locations 待纠偏处理的点集, 顺序即为传入的顺序
|
||||
* @param type loctions经纬度坐标的类型, 如果已经是高德坐标系,传 -1
|
||||
* @param processingCallback 如果一次传入点过多,内部会分批处理。每处理完一批就调用此回调
|
||||
* @param finishCallback 全部处理完毕调用此回调
|
||||
* @param failedCallback 失败调用此回调
|
||||
* @return 返回一个NSOperation对象,可调用cancel取消
|
||||
*/
|
||||
- (NSOperation *)queryProcessedTraceWith:(NSArray<MATraceLocation *>*)locations
|
||||
type:(AMapCoordinateType)type
|
||||
processingCallback:(MAProcessingCallback)processingCallback
|
||||
finishCallback:(MAFinishCallback)finishCallback
|
||||
failedCallback:(MAFailedCallback)failedCallback;
|
||||
|
||||
/**
|
||||
* @brief 轨迹定位的代理回调对象,配合start和stop方法使用,since v6.2.0
|
||||
*/
|
||||
@property (nonatomic, weak) id<MATraceDelegate> delegate;
|
||||
|
||||
/**
|
||||
* @brief 开始轨迹定位, 内部使用系统CLLocationManager,distanceFilter,desiredAccuracy均为系统默认值,since v6.2.0
|
||||
*/
|
||||
- (void)start;
|
||||
|
||||
/**
|
||||
* @brief 停止轨迹定位,since v6.2.0
|
||||
*/
|
||||
- (void)stop;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
28
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAUserLocation.h
generated
Executable file
28
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAUserLocation.h
generated
Executable file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// MAUserLocation.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by yin cai on 12-1-4.
|
||||
// Copyright © 2016 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MAAnimatedAnnotation.h"
|
||||
|
||||
@class CLLocation;
|
||||
@class CLHeading;
|
||||
|
||||
///定位信息类
|
||||
@interface MAUserLocation : MAAnimatedAnnotation
|
||||
|
||||
///位置更新状态,如果正在更新位置信息,则该值为YES
|
||||
@property (readonly, nonatomic, getter = isUpdating) BOOL updating;
|
||||
|
||||
///位置信息,如果MAMapView的showsUserLocation为NO,或者尚未定位成功,则该值为nil
|
||||
@property (readonly, nonatomic, strong) CLLocation *location;
|
||||
|
||||
///heading信息
|
||||
@property (readonly, nonatomic, strong) CLHeading *heading;
|
||||
|
||||
@end
|
||||
38
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAUserLocationRepresentation.h
generated
Normal file
38
Pods/AMapNavi-NO-IDFA/AMapNaviKit.framework/Headers/MAUserLocationRepresentation.h
generated
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// MAUserLocationRepresentation.h
|
||||
// MAMapKit
|
||||
//
|
||||
// Created by shaobin on 16/12/27.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAConfig.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#define kAccuracyCircleDefaultColor [UIColor colorWithRed:136/255.0 green:166/255.0 blue:227/255.0 alpha:.3]
|
||||
|
||||
///用户位置显示样式控制
|
||||
@interface MAUserLocationRepresentation : NSObject
|
||||
|
||||
///精度圈是否显示,默认YES
|
||||
@property (nonatomic, assign) BOOL showsAccuracyRing;
|
||||
///是否显示方向指示(MAUserTrackingModeFollowWithHeading模式开启)。默认为YES
|
||||
@property (nonatomic, assign) BOOL showsHeadingIndicator;
|
||||
///精度圈 填充颜色, 默认 kAccuracyCircleDefaultColor
|
||||
@property (nonatomic, strong) UIColor *fillColor;
|
||||
///精度圈 边线颜色, 默认 kAccuracyCircleDefaultColor
|
||||
@property (nonatomic, strong) UIColor *strokeColor;
|
||||
///精度圈 边线宽度,默认0
|
||||
@property (nonatomic, assign) CGFloat lineWidth;
|
||||
|
||||
///定位点背景色,不设置默认白色
|
||||
@property (nonatomic, strong) UIColor *locationDotBgColor;
|
||||
///定位点蓝色圆点颜色,不设置默认蓝色
|
||||
@property (nonatomic, strong) UIColor *locationDotFillColor;
|
||||
///内部蓝色圆点是否使用律动效果, 默认YES
|
||||
@property (nonatomic, assign) BOOL enablePulseAnnimation;
|
||||
///定位图标, 与蓝色原点互斥
|
||||
@property (nonatomic, strong) UIImage* image;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user