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
- MKMapCamera *camera = [self camera];
366
+ GMSCameraPosition *camera = [self camera];
367
367
  return @{
368
368
  @"center": @{
369
- @"latitude": @(camera.centerCoordinate.latitude),
370
- @"longitude": @(camera.centerCoordinate.longitude),
371
- },
372
- @"pitch": @(camera.pitch),
373
- @"heading": @(camera.heading),
374
- @"altitude": @(camera.altitude),
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
- REMAP_MAPVIEW_PROP(showsCompass)
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.36",
8
+ "version": "1.21.0-alpha.37",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",