react-native-maps 1.21.0-alpha.37 → 1.21.0-alpha.39
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/AirMaps/AIRMap.h
CHANGED
|
@@ -44,7 +44,7 @@ extern const NSInteger AIRMapMaxZoomLevel;
|
|
|
44
44
|
@property (nonatomic, assign) CGFloat maxDelta;
|
|
45
45
|
@property (nonatomic, assign) UIEdgeInsets legalLabelInsets;
|
|
46
46
|
@property (nonatomic, assign) MKCoordinateRegion initialRegion;
|
|
47
|
-
@property (nonatomic,
|
|
47
|
+
@property (nonatomic, retain) MKMapCamera *initialCamera;
|
|
48
48
|
@property (nonatomic, assign) CGFloat minZoom;
|
|
49
49
|
@property (nonatomic, assign) CGFloat maxZoom;
|
|
50
50
|
@property (nonatomic, assign) CGPoint compassOffset;
|
package/ios/AirMaps/AIRMap.m
CHANGED
|
@@ -599,9 +599,12 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
599
599
|
|
|
600
600
|
|
|
601
601
|
- (void)setInitialCamera:(MKMapCamera*)initialCamera {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
602
|
+
_initialCamera = initialCamera;
|
|
603
|
+
if (initialCamera){
|
|
604
|
+
if (!_initialCameraSet && _loadingStarted) {
|
|
605
|
+
_initialCameraSet = YES;
|
|
606
|
+
[self setCamera:initialCamera animated:NO];
|
|
607
|
+
}
|
|
605
608
|
}
|
|
606
609
|
}
|
|
607
610
|
|
|
@@ -820,8 +823,9 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
820
823
|
}
|
|
821
824
|
}
|
|
822
825
|
_loadingStarted = YES;
|
|
823
|
-
//
|
|
826
|
+
// display initialRegion/Camera
|
|
824
827
|
[self setInitialRegion:_initialRegion];
|
|
828
|
+
[self setInitialCamera:_initialCamera];
|
|
825
829
|
}
|
|
826
830
|
|
|
827
831
|
- (void)finishLoading {
|
|
@@ -459,6 +459,7 @@ MKMapCamera* camera = [[MKMapCamera alloc] init]; \
|
|
|
459
459
|
camera.centerCoordinate = center; \
|
|
460
460
|
camera.heading = newViewProps.name.heading; \
|
|
461
461
|
camera.pitch = newViewProps.name.pitch; \
|
|
462
|
+
camera.centerCoordinateDistance = newViewProps.name.altitude; \
|
|
462
463
|
_view.name = camera; \
|
|
463
464
|
}
|
|
464
465
|
|
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.39",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|