react-native-maps 1.1.0-beta.4 → 1.1.0
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.
|
@@ -829,7 +829,11 @@ public class AirMapView extends MapView implements GoogleMap.InfoWindowAdapter,
|
|
|
829
829
|
|
|
830
830
|
public void animateToRegion(LatLngBounds bounds, int duration) {
|
|
831
831
|
if (map == null) return;
|
|
832
|
-
|
|
832
|
+
if(duration <= 0) {
|
|
833
|
+
map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0));
|
|
834
|
+
} else {
|
|
835
|
+
map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0), duration, null);
|
|
836
|
+
}
|
|
833
837
|
}
|
|
834
838
|
|
|
835
839
|
public void fitToElements(ReadableMap edgePadding, boolean animated) {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.1.0
|
|
8
|
+
"version": "1.1.0",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|