react-native-maps 1.21.0-alpha.36 → 1.21.0-alpha.37
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.
|
@@ -363,15 +363,15 @@ id regionAsJSON(MKCoordinateRegion region) {
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
- (NSDictionary *) getCameraDic {
|
|
366
|
-
|
|
366
|
+
GMSCameraPosition *camera = [self camera];
|
|
367
367
|
return @{
|
|
368
368
|
@"center": @{
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
@"pitch": @(camera.
|
|
373
|
-
@"heading": @(camera.
|
|
374
|
-
@"
|
|
369
|
+
@"latitude": @(camera.target.latitude),
|
|
370
|
+
@"longitude": @(camera.target.longitude),
|
|
371
|
+
},
|
|
372
|
+
@"pitch": @(camera.viewingAngle),
|
|
373
|
+
@"heading": @(camera.bearing),
|
|
374
|
+
@"zoom": @(camera.zoom),
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
377
|
|
|
@@ -525,7 +525,7 @@ using namespace facebook::react;
|
|
|
525
525
|
[_view setMinZoom:newViewProps.minZoom maxZoom:newViewProps.maxZoom];
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
|
|
528
|
+
[_view setShowsCompass:newViewProps.showsCompass];
|
|
529
529
|
REMAP_MAPVIEW_PROP(showsTraffic)
|
|
530
530
|
REMAP_MAPVIEW_PROP(showsUserLocation)
|
|
531
531
|
REMAP_MAPVIEW_PROP(zoomEnabled)
|
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.21.0-alpha.
|
|
8
|
+
"version": "1.21.0-alpha.37",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|