@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.
- package/ios/LuggAppleMapView.mm +7 -4
- package/package.json +1 -1
package/ios/LuggAppleMapView.mm
CHANGED
|
@@ -172,10 +172,13 @@ using namespace luggmaps::events;
|
|
|
172
172
|
|
|
173
173
|
[_mapWrapperView addSubview:_mapView];
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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) {
|