fix map sdk
parent
f2077784db
commit
98168c167e
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue