react-native-maps 1.21.0-alpha.143 → 1.21.0-alpha.144
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.
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#import <React/UIView+React.h>
|
|
11
11
|
|
|
12
12
|
@implementation AIRMapWMSTile
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
- (void)createTileOverlayAndRendererIfPossible
|
|
15
15
|
{
|
|
16
16
|
if (!_urlTemplateSet) return;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
@implementation AIRMapWMSTileOverlay
|
|
54
54
|
|
|
55
|
-
- (id)initWithURLTemplate:(NSString *)URLTemplate
|
|
55
|
+
- (id)initWithURLTemplate:(NSString *)URLTemplate
|
|
56
56
|
{
|
|
57
57
|
self = [super initWithURLTemplate:URLTemplate];
|
|
58
58
|
return self;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
@implementation AIRMapWMSTileCachedOverlay
|
|
70
70
|
|
|
71
|
-
- (id)initWithURLTemplate:(NSString *)URLTemplate
|
|
71
|
+
- (id)initWithURLTemplate:(NSString *)URLTemplate
|
|
72
72
|
{
|
|
73
73
|
self = [super initWithURLTemplate:URLTemplate];
|
|
74
74
|
return self;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
@end
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
@implementation AIRMapWMSTileHelper
|
|
85
|
+
@implementation AIRMapWMSTileHelper
|
|
86
86
|
+ (NSURL *)URLForTilePath:(MKTileOverlayPath)path withURLTemplate:(NSString *)URLTemplate withTileSize:(NSInteger)tileSize
|
|
87
87
|
{
|
|
88
88
|
NSArray *bb = [self getBoundBox:path.x yAxis:path.y zoom:path.z];
|
|
@@ -102,15 +102,15 @@
|
|
|
102
102
|
double MapY = 20037508.34789244;
|
|
103
103
|
double FULL = 20037508.34789244 * 2;
|
|
104
104
|
double tile = FULL / pow(2.0, (double)zoom);
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
NSArray *result =[[NSArray alloc] initWithObjects:
|
|
107
107
|
[NSNumber numberWithDouble:MapX + (double)x * tile],
|
|
108
108
|
[NSNumber numberWithDouble:MapY - (double)(y + 1) * tile],
|
|
109
109
|
[NSNumber numberWithDouble:MapX + (double)(x + 1) * tile],
|
|
110
110
|
[NSNumber numberWithDouble:MapY - (double)y * tile],
|
|
111
111
|
nil];
|
|
112
|
-
|
|
113
|
-
return result;
|
|
112
|
+
|
|
113
|
+
return result;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
@end
|
|
116
|
+
@end
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "src/index.ts",
|
|
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.144",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -23,7 +23,6 @@ Pod::Spec.new do |s|
|
|
|
23
23
|
s.module_name = 'ReactNativeMaps'
|
|
24
24
|
s.compiler_flags = folly_compiler_flags
|
|
25
25
|
s.dependency 'react-native-maps-generated'
|
|
26
|
-
s.dependency "React-Core"
|
|
27
26
|
install_modules_dependencies(s)
|
|
28
27
|
|
|
29
28
|
# Add script phase to detect Google Maps
|
|
@@ -61,11 +60,5 @@ Pod::Spec.new do |s|
|
|
|
61
60
|
}
|
|
62
61
|
]
|
|
63
62
|
|
|
64
|
-
s.pod_target_xcconfig = {
|
|
65
|
-
'HEADER_SEARCH_PATHS' => [
|
|
66
|
-
'$(PODS_ROOT)/Headers/Public/React-Core',
|
|
67
|
-
'$(PODS_TARGET_SRCROOT)/../../../node_modules/react-native/React'
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
63
|
|
|
71
64
|
end
|