Skip to content

Commit

Permalink
判断编码为空的情况, issues: react-native-component#14
Browse files Browse the repository at this point in the history
  • Loading branch information
simman committed Aug 22, 2017
1 parent 0be9984 commit cbe337f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ios/RCTAMapLocation/RCTAMapLocation/RCTAMapLocation.m
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,17 @@ - (NSDictionary*)setSuccessResult:(CLLocation *)location regeocode:(AMapLocation
@"latitude": @(location.coordinate.latitude),
@"longitude": @(location.coordinate.longitude),
},
@"formattedAddress": regeocode.formattedAddress,
@"country": regeocode.country,
@"province": regeocode.province,
@"city": regeocode.city,
@"district": regeocode.district,
@"citycode": regeocode.citycode,
@"adcode": regeocode.adcode,
@"street": regeocode.street,
@"number": regeocode.number,
@"POIName": regeocode.POIName,
@"AOIName": regeocode.AOIName
@"formattedAddress": regeocode.formattedAddress ? : [NSNull null],
@"country": regeocode.country ? : [NSNull null],
@"province": regeocode.province ? : [NSNull null],
@"city": regeocode.city ? : [NSNull null],
@"district": regeocode.district ? : [NSNull null],
@"citycode": regeocode.citycode ? : [NSNull null],
@"adcode": regeocode.adcode ? : [NSNull null],
@"street": regeocode.street ? : [NSNull null],
@"number": regeocode.number ? : [NSNull null],
@"POIName": regeocode.POIName ? : [NSNull null],
@"AOIName": regeocode.AOIName ? : [NSNull null]
};
}
else {
Expand Down

0 comments on commit cbe337f

Please sign in to comment.