@lugg/maps 0.2.0-alpha.20 → 0.2.0-alpha.21

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.
@@ -172,10 +172,13 @@ using namespace luggmaps::events;
172
172
 
173
173
  [_mapWrapperView addSubview:_mapView];
174
174
 
175
- [self setCameraWithLatitude:viewProps.initialCoordinate.latitude
176
- longitude:viewProps.initialCoordinate.longitude
177
- zoom:viewProps.initialZoom
178
- animated:NO];
175
+ CLLocationCoordinate2D center =
176
+ CLLocationCoordinate2DMake(viewProps.initialCoordinate.latitude,
177
+ viewProps.initialCoordinate.longitude);
178
+ MKCoordinateRegion region =
179
+ [_mapView regionForCenterCoordinate:center
180
+ zoomLevel:viewProps.initialZoom];
181
+ [_mapView setRegion:region animated:NO];
179
182
 
180
183
  // Add annotations for any markers that were mounted before map was ready
181
184
  for (UIView *subview in self.subviews) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lugg/maps",
3
- "version": "0.2.0-alpha.20",
3
+ "version": "0.2.0-alpha.21",
4
4
  "description": "Universal maps for React Native.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",