react-native-maps 1.0.0 → 1.0.3
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.
|
@@ -801,7 +801,11 @@ public class AirMapView extends MapView implements GoogleMap.InfoWindowAdapter,
|
|
|
801
801
|
|
|
802
802
|
public void animateToRegion(LatLngBounds bounds, int duration) {
|
|
803
803
|
if (map == null) return;
|
|
804
|
-
|
|
804
|
+
if(duration <= 0) {
|
|
805
|
+
map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0));
|
|
806
|
+
} else {
|
|
807
|
+
map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0), duration, null);
|
|
808
|
+
}
|
|
805
809
|
}
|
|
806
810
|
|
|
807
811
|
public void fitToElements(ReadableMap edgePadding, boolean animated) {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@property (nonatomic, assign) MKCoordinateRegion initialRegion;
|
|
23
23
|
@property (nonatomic, assign) MKCoordinateRegion region;
|
|
24
24
|
@property (nonatomic, assign) GMSCameraPosition *cameraProp; // Because the base class already has a "camera" prop.
|
|
25
|
-
@property (nonatomic,
|
|
25
|
+
@property (nonatomic, strong) GMSCameraPosition *initialCamera;
|
|
26
26
|
@property (nonatomic, assign) NSString *customMapStyleString;
|
|
27
27
|
@property (nonatomic, assign) UIEdgeInsets mapPadding;
|
|
28
28
|
@property (nonatomic, assign) NSString *paddingAdjustmentBehaviorString;
|
package/lib/MapView.types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-maps",
|
|
3
3
|
"description": "React Native Mapview component for iOS + Android",
|
|
4
|
+
"source": "src/index",
|
|
4
5
|
"main": "lib/index.js",
|
|
5
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
6
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
7
|
-
"version": "1.0.
|
|
8
|
+
"version": "1.0.3",
|
|
8
9
|
"license": "MIT",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"lint": "eslint . --max-warnings 0",
|
|
11
12
|
"tscheck": "tsc --noEmit",
|
|
12
|
-
"build": "tsc",
|
|
13
|
+
"build": "tsc --project tsconfig.build.json",
|
|
13
14
|
"test": "jest",
|
|
14
15
|
"prepare": "husky install",
|
|
15
|
-
"release": "semantic-release"
|
|
16
|
+
"release": "semantic-release",
|
|
17
|
+
"bootstrap": "yarn --cwd example && yarn && (cd example && cd ios && pod install)"
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
18
20
|
"lib",
|