From f5d730a64dd9585af47c3feca966604aa9aaf50d Mon Sep 17 00:00:00 2001 From: Ismail Sener Date: Thu, 1 Oct 2020 11:37:16 +0100 Subject: [PATCH] fix overlay bounds confliction from array (#3438) * fix overlay bounds confliction from array * removed auto generated files that are unnecessary Co-authored-by: Ismail Sener --- .../java/com/airbnb/android/react/maps/AirMapOverlay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapOverlay.java b/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapOverlay.java index 31c6786ea..7143d52e5 100644 --- a/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapOverlay.java +++ b/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapOverlay.java @@ -35,8 +35,8 @@ public AirMapOverlay(Context context) { } public void setBounds(ReadableArray bounds) { - LatLng sw = new LatLng(bounds.getArray(1).getDouble(0), bounds.getArray(0).getDouble(1)); - LatLng ne = new LatLng(bounds.getArray(0).getDouble(0), bounds.getArray(1).getDouble(1)); + LatLng sw = new LatLng(bounds.getArray(0).getDouble(0), bounds.getArray(0).getDouble(1)); + LatLng ne = new LatLng(bounds.getArray(1).getDouble(0), bounds.getArray(1).getDouble(1)); this.bounds = new LatLngBounds(sw, ne); if (this.groundOverlay != null) { this.groundOverlay.setPositionFromBounds(this.bounds);