Skip to content

Commit

Permalink
fix overlay bounds confliction from array (react-native-maps#3438)
Browse files Browse the repository at this point in the history
* fix overlay bounds confliction from array

* removed auto generated files that are unnecessary

Co-authored-by: Ismail Sener <[email protected]>
  • Loading branch information
isener and Ismail Sener authored Oct 1, 2020
1 parent 87e343b commit f5d730a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5d730a

Please sign in to comment.