Skip to content

Commit 8ea4502

Browse files
danielgindirborn
authored andcommitted
coordinateForPoint/pointForCoordinate worked with coordinate shorthands on AirMaps (react-native-maps#2445)
1 parent e3cc67a commit 8ea4502

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/ios/AirMaps/AIRMapManager.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ - (UIView *)view
354354
} else {
355355
CGPoint touchPoint = [mapView convertCoordinate:
356356
CLLocationCoordinate2DMake(
357-
[coordinate[@"lat"] doubleValue],
358-
[coordinate[@"lng"] doubleValue]
357+
[coordinate[@"latitude"] doubleValue],
358+
[coordinate[@"longitude"] doubleValue]
359359
)
360360
toPointToView:mapView];
361361

@@ -386,8 +386,8 @@ - (UIView *)view
386386
toCoordinateFromView:mapView];
387387

388388
resolve(@{
389-
@"lat": @(coordinate.latitude),
390-
@"lng": @(coordinate.longitude),
389+
@"latitude": @(coordinate.latitude),
390+
@"longitude": @(coordinate.longitude),
391391
});
392392
}
393393
}];

0 commit comments

Comments
 (0)