From 98168c167e72eea289fe8eca3af93f7e4acfee45 Mon Sep 17 00:00:00 2001 From: stewen Date: Mon, 14 Aug 2023 18:51:27 +0800 Subject: [PATCH] fix map sdk --- .../Util/Map/FATExtChoosePoiViewController.m | 17 ++++++++--------- .../Common/Util/Map/FATExtSliderView.m | 16 ++++++++-------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/ios/Classes/FinAppletExt/Common/Util/Map/FATExtChoosePoiViewController.m b/ios/Classes/FinAppletExt/Common/Util/Map/FATExtChoosePoiViewController.m index 3e20486..771581a 100644 --- a/ios/Classes/FinAppletExt/Common/Util/Map/FATExtChoosePoiViewController.m +++ b/ios/Classes/FinAppletExt/Common/Util/Map/FATExtChoosePoiViewController.m @@ -169,15 +169,14 @@ static NSString *kUserAnnotationId = @"FATUserAnnotationViewId"; }else { [localSearch startWithCompletionHandler:^(MKLocalSearchResponse *_Nullable response, NSError *_Nullable error) { //NSMutableArray *placeArrayM = [NSMutableArray array]; - if (placemark) { - FATMapPlace *place = [[FATMapPlace alloc] init]; - place.name = placemark.name; - place.address = placemark.thoroughfare; - place.location = placemark.location; - place.selected = YES; - [self.dataArray addObject:place]; - } - +// if (placemark) { +// FATMapPlace *place = [[FATMapPlace alloc] init]; +// place.name = placemark.name; +// place.address = placemark.thoroughfare; +// place.location = placemark.location; +// place.selected = YES; +// [self.dataArray addObject:place]; +// } for (MKMapItem *item in response.mapItems) { if (!item.isCurrentLocation) { FATMapPlace *place = [[FATMapPlace alloc] init]; diff --git a/ios/Classes/FinAppletExt/Common/Util/Map/FATExtSliderView.m b/ios/Classes/FinAppletExt/Common/Util/Map/FATExtSliderView.m index d7e5bec..c359229 100644 --- a/ios/Classes/FinAppletExt/Common/Util/Map/FATExtSliderView.m +++ b/ios/Classes/FinAppletExt/Common/Util/Map/FATExtSliderView.m @@ -106,14 +106,14 @@ [FATExtUtil getNearbyPlacesByCategory:@"All" coordinates:destCenter radius:1000 token:@"" completion:^(NSDictionary * _Nonnull dict) { NSMutableArray *placeArrayM = [NSMutableArray array]; - if (placemark) { - FATMapPlace *place = [[FATMapPlace alloc] init]; - place.name = placemark.name; - place.address = placemark.thoroughfare; - place.location = placemark.location; - place.selected = YES; - [placeArrayM addObject:place]; - } +// if (placemark) { +// FATMapPlace *place = [[FATMapPlace alloc] init]; +// place.name = placemark.name; +// place.address = placemark.thoroughfare; +// place.location = placemark.location; +// place.selected = YES; +// [placeArrayM addObject:place]; +// } [placeArrayM addObjectsFromArray:[FATExtUtil convertPlaceDictToArray:dict]]; self.poiInfoListArray = [[NSMutableArray alloc] initWithArray: placeArrayM];