From 4d194ae2749775fa81028f7309d40fb7f4681faf Mon Sep 17 00:00:00 2001 From: chenyu Date: Thu, 5 Jan 2023 14:13:24 +0800 Subject: [PATCH] NEMapKit Bug Fix --- NEMapKit/NEMapKit/Classes/NEMapClient.m | 2 +- NEMapKit/NEMapKit/Classes/NEMapService.m | 1 - Podfile | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NEMapKit/NEMapKit/Classes/NEMapClient.m b/NEMapKit/NEMapKit/Classes/NEMapClient.m index a64b90e0..01a8b56d 100644 --- a/NEMapKit/NEMapKit/Classes/NEMapClient.m +++ b/NEMapKit/NEMapKit/Classes/NEMapClient.m @@ -64,7 +64,7 @@ - (void)setupMapClientWithAppkey:(NSString *)appkey { - (void)setupMapSdkConfigWithAppkey:(NSString *)appkey { // 初始化高德SDK - [[AMapServices sharedServices] setApiKey:@"46a3a36bb9d26934a26c6ce2b04aab6f"]; + [[AMapServices sharedServices] setApiKey:appkey]; [AMapServices sharedServices].enableHTTPS = YES; [AMapSearchAPI updatePrivacyShow:AMapPrivacyShowStatusDidShow privacyInfo:AMapPrivacyInfoStatusDidContain]; diff --git a/NEMapKit/NEMapKit/Classes/NEMapService.m b/NEMapKit/NEMapKit/Classes/NEMapService.m index f99f4a98..19f2bd90 100644 --- a/NEMapKit/NEMapKit/Classes/NEMapService.m +++ b/NEMapKit/NEMapKit/Classes/NEMapService.m @@ -42,7 +42,6 @@ - (void)setupMapClient { - (void)setupMapSdkConfig { // 初始化高德SDK - [[AMapServices sharedServices] setApiKey:@"46a3a36bb9d26934a26c6ce2b04aab6f"]; [AMapServices sharedServices].enableHTTPS = YES; } diff --git a/Podfile b/Podfile index cb8fc1c0..4b5b3cc0 100644 --- a/Podfile +++ b/Podfile @@ -31,7 +31,7 @@ target 'app' do pod 'NECoreKit', '9.3.0' #扩展库 - pod 'NEMapKit', '9.3.0' + pod 'NEMapKit', '9.3.1' # 如果需要查看UI部分源码请注释掉以上在线依赖,打开下面的本地依赖