react-native-maps 1.0.0-beta.8 → 1.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -671,12 +671,11 @@ RCT_EXPORT_METHOD(getAddressFromCoordinates:(nonnull NSNumber *)reactTag
671
671
  }
672
672
 
673
673
  if (nearestDistance <= maxMeters) {
674
- AIRMapCoordinate *firstCoord = nearestPolyline.coordinates.firstObject;
675
674
  id event = @{
676
675
  @"action": @"polyline-press",
677
676
  @"coordinate": @{
678
- @"latitude": @(firstCoord.coordinate.latitude),
679
- @"longitude": @(firstCoord.coordinate.longitude)
677
+ @"latitude": @(tapCoordinate.latitude),
678
+ @"longitude": @(tapCoordinate.longitude)
680
679
  }
681
680
  };
682
681
  nearestPolyline.onPress(event);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "React Native Mapview component for iOS + Android",
4
4
  "main": "lib/index.js",
5
5
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
6
- "version": "1.0.0-beta.8",
6
+ "version": "1.0.0-beta.9",
7
7
  "license": "MIT",
8
8
  "scripts": {
9
9
  "lint": "eslint . --max-warnings 0",