react-native-maps 0.29.4 → 0.31.0-beta.1
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/README.md +12 -5
- package/index.d.ts +21 -5
- package/index.js +1 -3
- package/lib/android/build.gradle +3 -1
- package/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapTileProvider.java +515 -0
- package/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapTileWorker.java +122 -0
- package/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapUrlTile.java +124 -55
- package/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapUrlTileManager.java +34 -0
- package/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapView.java +19 -4
- package/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapWMSTile.java +31 -87
- package/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapWMSTileManager.java +22 -2
- package/lib/components/AnimatedRegion.js +67 -101
- package/lib/components/Geojson.js +67 -40
- package/lib/components/MapCallout.js +3 -5
- package/lib/components/MapCalloutSubview.js +3 -5
- package/lib/components/MapCircle.js +6 -6
- package/lib/components/MapHeatmap.js +5 -7
- package/lib/components/MapLocalTile.js +2 -6
- package/lib/components/MapMarker.js +9 -9
- package/lib/components/MapOverlay.js +3 -2
- package/lib/components/MapPolygon.js +6 -6
- package/lib/components/MapPolyline.js +6 -7
- package/lib/components/MapUrlTile.js +56 -8
- package/lib/components/MapView.js +16 -16
- package/lib/components/MapWMSTile.js +51 -8
- package/lib/components/decorateMapComponent.js +1 -1
- package/lib/ios/AirGoogleMaps/AIRGoogleMapMarker.h +1 -0
- package/lib/ios/AirGoogleMaps/AIRGoogleMapMarker.m +8 -0
- package/lib/ios/AirGoogleMaps/AIRGoogleMapMarkerManager.m +1 -0
- package/lib/ios/AirMaps/AIRMapManager.m +21 -3
- package/lib/ios/AirMaps/AIRMapMarkerManager.m +1 -0
- package/lib/ios/AirMaps/AIRMapPolyline.h +1 -0
- package/lib/ios/AirMaps/AIRMapPolyline.m +14 -1
- package/lib/ios/AirMaps/AIRMapPolylineManager.m +1 -0
- package/lib/ios/AirMaps/AIRMapUrlTile.h +22 -4
- package/lib/ios/AirMaps/AIRMapUrlTile.m +124 -34
- package/lib/ios/AirMaps/AIRMapUrlTileCachedOverlay.h +17 -0
- package/lib/ios/AirMaps/AIRMapUrlTileCachedOverlay.m +235 -0
- package/lib/ios/AirMaps/AIRMapUrlTileManager.m +6 -1
- package/lib/ios/AirMaps/AIRMapWMSTile.h +10 -16
- package/lib/ios/AirMaps/AIRMapWMSTile.m +68 -101
- package/lib/ios/AirMaps/AIRMapWMSTileManager.m +6 -1
- package/lib/ios/AirMaps.xcodeproj/project.pbxproj +7 -1
- package/package.json +44 -6
- package/react-native-google-maps.podspec +3 -3
- package/react-native-maps.podspec +1 -1
- package/.eslintrc +0 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -111
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -32
- package/.github/ISSUE_TEMPLATE.md +0 -5
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -53
- package/.github/stale.yml +0 -17
- package/.github/workflows/base.yml +0 -21
- package/.prettierrc +0 -4
- package/CHANGELOG.md +0 -761
- package/docs/callout.md +0 -38
- package/docs/circle.md +0 -28
- package/docs/examples-setup.md +0 -17
- package/docs/geojson.md +0 -50
- package/docs/heatmap.md +0 -32
- package/docs/installation.md +0 -347
- package/docs/mapview.md +0 -252
- package/docs/marker.md +0 -84
- package/docs/overlay.md +0 -27
- package/docs/polygon.md +0 -34
- package/docs/polyline.md +0 -65
- package/enable-google-maps +0 -15
|
@@ -9,141 +9,108 @@
|
|
|
9
9
|
#import "AIRMapWMSTile.h"
|
|
10
10
|
#import <React/UIView+React.h>
|
|
11
11
|
|
|
12
|
-
@implementation AIRMapWMSTile
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
- (void)setShouldReplaceMapContent:(BOOL)shouldReplaceMapContent
|
|
17
|
-
{
|
|
18
|
-
_shouldReplaceMapContent = shouldReplaceMapContent;
|
|
19
|
-
if(self.tileOverlay) {
|
|
20
|
-
self.tileOverlay.canReplaceMapContent = _shouldReplaceMapContent;
|
|
21
|
-
}
|
|
22
|
-
[self update];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
- (void)setMaximumZ:(NSUInteger)maximumZ
|
|
12
|
+
@implementation AIRMapWMSTile
|
|
13
|
+
|
|
14
|
+
- (void)createTileOverlayAndRendererIfPossible
|
|
26
15
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
if (!_urlTemplateSet) return;
|
|
17
|
+
if (_tileCachePathSet || _maximumNativeZSet) {
|
|
18
|
+
NSLog(@"tileCache new overlay dir %@", self.tileCachePath);
|
|
19
|
+
NSLog(@"tileCache %d", _tileCachePathSet);
|
|
20
|
+
NSLog(@"tileCache %d", _maximumNativeZSet);
|
|
21
|
+
self.tileOverlay = [[AIRMapWMSTileCachedOverlay alloc] initWithURLTemplate:self.urlTemplate];
|
|
22
|
+
_cachedOverlayCreated = YES;
|
|
23
|
+
if (_tileCachePathSet) {
|
|
24
|
+
NSURL *urlPath = [NSURL URLWithString:[self.tileCachePath stringByAppendingString:@"/"]];
|
|
25
|
+
if (urlPath.fileURL) {
|
|
26
|
+
self.tileOverlay.tileCachePath = urlPath;
|
|
27
|
+
} else {
|
|
28
|
+
NSURL *filePath = [NSURL fileURLWithPath:self.tileCachePath isDirectory:YES];
|
|
29
|
+
self.tileOverlay.tileCachePath = filePath;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (_tileCacheMaxAgeSet) {
|
|
33
|
+
self.tileOverlay.tileCacheMaxAge = self.tileCacheMaxAge;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
NSLog(@"tileCache normal overlay");
|
|
38
|
+
self.tileOverlay = [[AIRMapWMSTileOverlay alloc] initWithURLTemplate:self.urlTemplate];
|
|
39
|
+
_cachedOverlayCreated = NO;
|
|
40
|
+
}
|
|
33
41
|
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
_minimumZ = minimumZ;
|
|
37
|
-
if(self.tileOverlay) {
|
|
38
|
-
self.tileOverlay.minimumZ = _minimumZ;
|
|
39
|
-
}
|
|
40
|
-
[self update];
|
|
41
|
-
}
|
|
42
|
+
[self updateProperties];
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
if(self.tileOverlay) {
|
|
47
|
-
self.tileOverlay.tileSize = CGSizeMake(tileSize, tileSize);
|
|
44
|
+
self.renderer = [[MKTileOverlayRenderer alloc] initWithTileOverlay:self.tileOverlay];
|
|
45
|
+
if (_opacitySet) {
|
|
46
|
+
self.renderer.alpha = self.opacity;
|
|
48
47
|
}
|
|
49
|
-
[self update];
|
|
50
|
-
}
|
|
51
|
-
- (void)setUrlTemplate:(NSString *)urlTemplate{
|
|
52
|
-
_urlTemplate = urlTemplate;
|
|
53
|
-
_urlTemplateSet = YES;
|
|
54
|
-
[self createTileOverlayAndRendererIfPossible];
|
|
55
|
-
[self update];
|
|
56
48
|
}
|
|
57
49
|
|
|
58
|
-
|
|
59
|
-
{
|
|
60
|
-
if (!_urlTemplateSet) return;
|
|
61
|
-
self.tileOverlay = [[TileOverlay alloc] initWithURLTemplate:self.urlTemplate];
|
|
62
|
-
self.tileOverlay.canReplaceMapContent = self.shouldReplaceMapContent;
|
|
50
|
+
@end
|
|
63
51
|
|
|
64
|
-
if(self.minimumZ) {
|
|
65
|
-
self.tileOverlay.minimumZ = self.minimumZ;
|
|
66
|
-
}
|
|
67
|
-
if (self.maximumZ) {
|
|
68
|
-
self.tileOverlay.maximumZ = self.maximumZ;
|
|
69
|
-
}
|
|
70
|
-
if (self.tileSize) {
|
|
71
|
-
self.tileOverlay.tileSize = CGSizeMake(self.tileSize, self.tileSize);;
|
|
72
|
-
}
|
|
73
|
-
self.renderer = [[MKTileOverlayRenderer alloc] initWithTileOverlay:self.tileOverlay];
|
|
74
|
-
}
|
|
75
52
|
|
|
76
|
-
|
|
53
|
+
@implementation AIRMapWMSTileOverlay
|
|
54
|
+
|
|
55
|
+
- (id)initWithURLTemplate:(NSString *)URLTemplate
|
|
77
56
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (_map == nil) return;
|
|
81
|
-
[_map removeOverlay:self];
|
|
82
|
-
[_map addOverlay:self level:MKOverlayLevelAboveLabels];
|
|
83
|
-
for (id<MKOverlay> overlay in _map.overlays) {
|
|
84
|
-
if ([overlay isKindOfClass:[AIRMapWMSTile class]]) {
|
|
85
|
-
continue;
|
|
86
|
-
}
|
|
87
|
-
[_map removeOverlay:overlay];
|
|
88
|
-
[_map addOverlay:overlay];
|
|
89
|
-
}
|
|
57
|
+
self = [super initWithURLTemplate:URLTemplate];
|
|
58
|
+
return self;
|
|
90
59
|
}
|
|
91
60
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
- (CLLocationCoordinate2D) coordinate
|
|
61
|
+
- (NSURL *)URLForTilePath:(MKTileOverlayPath)path
|
|
95
62
|
{
|
|
96
|
-
|
|
63
|
+
return [AIRMapWMSTileHelper URLForTilePath:path withURLTemplate:self.URLTemplate withTileSize:self.tileSize.width];
|
|
97
64
|
}
|
|
98
65
|
|
|
99
|
-
|
|
66
|
+
@end
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@implementation AIRMapWMSTileCachedOverlay
|
|
70
|
+
|
|
71
|
+
- (id)initWithURLTemplate:(NSString *)URLTemplate
|
|
100
72
|
{
|
|
101
|
-
|
|
73
|
+
self = [super initWithURLTemplate:URLTemplate];
|
|
74
|
+
return self;
|
|
102
75
|
}
|
|
103
76
|
|
|
104
|
-
- (
|
|
77
|
+
- (NSURL *)URLForTilePath:(MKTileOverlayPath)path
|
|
105
78
|
{
|
|
106
|
-
|
|
79
|
+
return [AIRMapWMSTileHelper URLForTilePath:path withURLTemplate:self.URLTemplate withTileSize:self.tileSize.width];
|
|
107
80
|
}
|
|
108
81
|
|
|
109
82
|
@end
|
|
110
83
|
|
|
111
|
-
@implementation TileOverlay
|
|
112
|
-
@synthesize MapX;
|
|
113
|
-
@synthesize MapY;
|
|
114
|
-
@synthesize FULL;
|
|
115
|
-
|
|
116
|
-
-(id) initWithURLTemplate:(NSString *)URLTemplate {
|
|
117
|
-
self = [super initWithURLTemplate:URLTemplate];
|
|
118
|
-
MapX = -20037508.34789244;
|
|
119
|
-
MapY = 20037508.34789244;
|
|
120
|
-
FULL = 20037508.34789244 * 2;
|
|
121
|
-
return self ;
|
|
122
|
-
}
|
|
123
84
|
|
|
124
|
-
|
|
85
|
+
@implementation AIRMapWMSTileHelper
|
|
86
|
+
+ (NSURL *)URLForTilePath:(MKTileOverlayPath)path withURLTemplate:(NSString *)URLTemplate withTileSize:(NSInteger)tileSize
|
|
87
|
+
{
|
|
125
88
|
NSArray *bb = [self getBoundBox:path.x yAxis:path.y zoom:path.z];
|
|
126
|
-
NSMutableString *url = [
|
|
89
|
+
NSMutableString *url = [URLTemplate mutableCopy];
|
|
127
90
|
[url replaceOccurrencesOfString: @"{minX}" withString:[NSString stringWithFormat:@"%@", bb[0]] options:0 range:NSMakeRange(0, url.length)];
|
|
128
91
|
[url replaceOccurrencesOfString: @"{minY}" withString:[NSString stringWithFormat:@"%@", bb[1]] options:0 range:NSMakeRange(0, url.length)];
|
|
129
92
|
[url replaceOccurrencesOfString: @"{maxX}" withString:[NSString stringWithFormat:@"%@", bb[2]] options:0 range:NSMakeRange(0, url.length)];
|
|
130
93
|
[url replaceOccurrencesOfString: @"{maxY}" withString:[NSString stringWithFormat:@"%@", bb[3]] options:0 range:NSMakeRange(0, url.length)];
|
|
131
|
-
[url replaceOccurrencesOfString: @"{width}" withString:[NSString stringWithFormat:@"%d", (int)
|
|
132
|
-
[url replaceOccurrencesOfString: @"{height}" withString:[NSString stringWithFormat:@"%d", (int)
|
|
94
|
+
[url replaceOccurrencesOfString: @"{width}" withString:[NSString stringWithFormat:@"%d", (int)tileSize] options:0 range:NSMakeRange(0, url.length)];
|
|
95
|
+
[url replaceOccurrencesOfString: @"{height}" withString:[NSString stringWithFormat:@"%d", (int)tileSize] options:0 range:NSMakeRange(0, url.length)];
|
|
133
96
|
return [NSURL URLWithString:url];
|
|
134
97
|
}
|
|
135
98
|
|
|
136
|
-
|
|
99
|
+
+ (NSArray *)getBoundBox:(NSInteger)x yAxis:(NSInteger)y zoom:(NSInteger)zoom
|
|
100
|
+
{
|
|
101
|
+
double MapX = -20037508.34789244;
|
|
102
|
+
double MapY = 20037508.34789244;
|
|
103
|
+
double FULL = 20037508.34789244 * 2;
|
|
137
104
|
double tile = FULL / pow(2.0, (double)zoom);
|
|
138
105
|
|
|
139
106
|
NSArray *result =[[NSArray alloc] initWithObjects:
|
|
140
|
-
[NSNumber numberWithDouble:MapX + (double)x * tile
|
|
141
|
-
[NSNumber numberWithDouble:MapY - (double)(y+1) * tile
|
|
142
|
-
[NSNumber numberWithDouble:MapX + (double)(x+1) * tile
|
|
143
|
-
[NSNumber numberWithDouble:MapY - (double)y * tile
|
|
107
|
+
[NSNumber numberWithDouble:MapX + (double)x * tile],
|
|
108
|
+
[NSNumber numberWithDouble:MapY - (double)(y + 1) * tile],
|
|
109
|
+
[NSNumber numberWithDouble:MapX + (double)(x + 1) * tile],
|
|
110
|
+
[NSNumber numberWithDouble:MapY - (double)y * tile],
|
|
144
111
|
nil];
|
|
145
112
|
|
|
146
|
-
return result;
|
|
147
|
-
|
|
113
|
+
return result;
|
|
148
114
|
}
|
|
149
|
-
|
|
115
|
+
|
|
116
|
+
@end
|
|
@@ -35,8 +35,13 @@ RCT_EXPORT_MODULE()
|
|
|
35
35
|
|
|
36
36
|
RCT_EXPORT_VIEW_PROPERTY(urlTemplate, NSString)
|
|
37
37
|
RCT_EXPORT_VIEW_PROPERTY(maximumZ, NSInteger)
|
|
38
|
+
RCT_EXPORT_VIEW_PROPERTY(maximumNativeZ, NSInteger)
|
|
38
39
|
RCT_EXPORT_VIEW_PROPERTY(minimumZ, NSInteger)
|
|
39
|
-
RCT_EXPORT_VIEW_PROPERTY(tileSize, NSInteger)
|
|
40
40
|
RCT_EXPORT_VIEW_PROPERTY(shouldReplaceMapContent, BOOL)
|
|
41
|
+
RCT_EXPORT_VIEW_PROPERTY(tileSize, NSInteger)
|
|
42
|
+
RCT_EXPORT_VIEW_PROPERTY(tileCachePath, NSString)
|
|
43
|
+
RCT_EXPORT_VIEW_PROPERTY(tileCacheMaxAge, NSInteger)
|
|
44
|
+
RCT_EXPORT_VIEW_PROPERTY(offlineMode, BOOL)
|
|
45
|
+
RCT_EXPORT_VIEW_PROPERTY(opacity, CGFloat)
|
|
41
46
|
|
|
42
47
|
@end
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
A8494E2E218891180092506D /* AIRGoogleMapWMSTileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = A8494E2A218891180092506D /* AIRGoogleMapWMSTileManager.m */; };
|
|
58
58
|
A8494E2F218891180092506D /* AIRGoogleMapWMSTile.m in Sources */ = {isa = PBXBuildFile; fileRef = A8494E2D218891180092506D /* AIRGoogleMapWMSTile.m */; };
|
|
59
59
|
B5EA3BA92098E22B000E7AFD /* AIRDummyView.m in Sources */ = {isa = PBXBuildFile; fileRef = B5EA3BA72098E22B000E7AFD /* AIRDummyView.m */; };
|
|
60
|
+
BE2E4EC92621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.m in Sources */ = {isa = PBXBuildFile; fileRef = BE2E4EC82621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.m */; };
|
|
60
61
|
DA6C26381C9E2AFE0035349F /* AIRMapUrlTile.m in Sources */ = {isa = PBXBuildFile; fileRef = DA6C26371C9E2AFE0035349F /* AIRMapUrlTile.m */; };
|
|
61
62
|
DA6C263E1C9E324A0035349F /* AIRMapUrlTileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = DA6C263D1C9E324A0035349F /* AIRMapUrlTileManager.m */; };
|
|
62
63
|
/* End PBXBuildFile section */
|
|
@@ -175,6 +176,8 @@
|
|
|
175
176
|
A8494E2D218891180092506D /* AIRGoogleMapWMSTile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIRGoogleMapWMSTile.m; path = AirGoogleMaps/AIRGoogleMapWMSTile.m; sourceTree = "<group>"; };
|
|
176
177
|
B5EA3BA72098E22B000E7AFD /* AIRDummyView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIRDummyView.m; path = AirGoogleMaps/AIRDummyView.m; sourceTree = "<group>"; };
|
|
177
178
|
B5EA3BA82098E22B000E7AFD /* AIRDummyView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AIRDummyView.h; path = AirGoogleMaps/AIRDummyView.h; sourceTree = "<group>"; };
|
|
179
|
+
BE2E4EC72621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AIRMapUrlTileCachedOverlay.h; path = AirMaps/AIRMapUrlTileCachedOverlay.h; sourceTree = SOURCE_ROOT; };
|
|
180
|
+
BE2E4EC82621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIRMapUrlTileCachedOverlay.m; path = AirMaps/AIRMapUrlTileCachedOverlay.m; sourceTree = SOURCE_ROOT; };
|
|
178
181
|
DA6C26361C9E2AFE0035349F /* AIRMapUrlTile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRMapUrlTile.h; sourceTree = "<group>"; };
|
|
179
182
|
DA6C26371C9E2AFE0035349F /* AIRMapUrlTile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AIRMapUrlTile.m; sourceTree = "<group>"; };
|
|
180
183
|
DA6C263C1C9E324A0035349F /* AIRMapUrlTileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AIRMapUrlTileManager.h; sourceTree = "<group>"; };
|
|
@@ -214,6 +217,8 @@
|
|
|
214
217
|
11FA5C531C4A1296003AC2EE /* AirMaps */ = {
|
|
215
218
|
isa = PBXGroup;
|
|
216
219
|
children = (
|
|
220
|
+
BE2E4EC72621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.h */,
|
|
221
|
+
BE2E4EC82621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.m */,
|
|
217
222
|
1125B2BD1C4AD3DA007D0023 /* AIRMap.h */,
|
|
218
223
|
1125B2BE1C4AD3DA007D0023 /* AIRMap.m */,
|
|
219
224
|
1125B2BF1C4AD3DA007D0023 /* AIRMapCallout.h */,
|
|
@@ -402,7 +407,7 @@
|
|
|
402
407
|
9B9498CE2017EFB800158761 /* AIRGMSMarker.m in Sources */,
|
|
403
408
|
9B9498D72017EFB800158761 /* AIRGoogleMapManager.m in Sources */,
|
|
404
409
|
19DABC7F1E7C9D3C00F41150 /* RCTConvert+AirMap.m in Sources */,
|
|
405
|
-
|
|
410
|
+
A8494E2E218891180092506D /* AIRGoogleMapWMSTileManager.m in Sources */,
|
|
406
411
|
8B19A3C82257BBDF00BB8735 /* AIRMapCalloutSubview.m in Sources */,
|
|
407
412
|
1125B2E51C4AD3DA007D0023 /* AIRMapPolyline.m in Sources */,
|
|
408
413
|
4C99C9E12226D8C400A8693E /* AIRWeakMapReference.m in Sources */,
|
|
@@ -410,6 +415,7 @@
|
|
|
410
415
|
9B9498CF2017EFB800158761 /* AIRGMSPolyline.m in Sources */,
|
|
411
416
|
9B9498D42017EFB800158761 /* RCTConvert+GMSMapViewType.m in Sources */,
|
|
412
417
|
9B9498D32017EFB800158761 /* AIRGoogleMap.m in Sources */,
|
|
418
|
+
BE2E4EC92621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.m in Sources */,
|
|
413
419
|
DA6C263E1C9E324A0035349F /* AIRMapUrlTileManager.m in Sources */,
|
|
414
420
|
9B9498DB2017EFB800158761 /* AIRGoogleMapMarker.m in Sources */,
|
|
415
421
|
628F81201FD16DF80058313A /* AIRMapLocalTile.m in Sources */,
|
package/package.json
CHANGED
|
@@ -3,11 +3,26 @@
|
|
|
3
3
|
"description": "React Native Mapview component for iOS + Android",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.31.0-beta.1",
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"scripts": {
|
|
8
|
-
"lint": "
|
|
9
|
-
"
|
|
9
|
+
"lint": "eslint .",
|
|
10
|
+
"test": "jest",
|
|
11
|
+
"prepare": "husky install",
|
|
12
|
+
"release": "semantic-release"
|
|
10
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"index.d.ts",
|
|
16
|
+
"lib",
|
|
17
|
+
"react-native-google-maps.podspec",
|
|
18
|
+
"react-native-maps.podspec",
|
|
19
|
+
"react-native.config.js",
|
|
20
|
+
"!lib/android/build",
|
|
21
|
+
"!lib/ios/build",
|
|
22
|
+
"!**/__tests__",
|
|
23
|
+
"!**/__fixtures__",
|
|
24
|
+
"!**/__mocks__"
|
|
25
|
+
],
|
|
11
26
|
"repository": {
|
|
12
27
|
"type": "git",
|
|
13
28
|
"url": "https://github.com/react-native-maps/react-native-maps"
|
|
@@ -27,10 +42,33 @@
|
|
|
27
42
|
"react-native-web": ">= 0.11"
|
|
28
43
|
},
|
|
29
44
|
"devDependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
45
|
+
"@commitlint/cli": "16.2.3",
|
|
46
|
+
"@commitlint/config-conventional": "16.2.1",
|
|
47
|
+
"@react-native-community/eslint-config": "^3.0.1",
|
|
48
|
+
"babel-jest": "^27.3.1",
|
|
49
|
+
"eslint": "7.32.0",
|
|
50
|
+
"husky": "7.0.4",
|
|
51
|
+
"jest": "^27.3.1",
|
|
52
|
+
"react": "^17.0.2",
|
|
53
|
+
"react-native": "^0.66.3",
|
|
54
|
+
"semantic-release": "19.0.2",
|
|
55
|
+
"typescript": "^4.4.3"
|
|
32
56
|
},
|
|
33
57
|
"dependencies": {
|
|
34
|
-
"@types/geojson": "^7946.0.7"
|
|
58
|
+
"@types/geojson": "^7946.0.7",
|
|
59
|
+
"deprecated-react-native-prop-types": "^2.3.0"
|
|
60
|
+
},
|
|
61
|
+
"jest": {
|
|
62
|
+
"preset": "react-native",
|
|
63
|
+
"testRegex": "<rootDir>/__tests__/.*|(\\.|/)(test|spec)\\.jsx?$",
|
|
64
|
+
"transform": {
|
|
65
|
+
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
|
|
66
|
+
},
|
|
67
|
+
"moduleFileExtensions": [
|
|
68
|
+
"js"
|
|
69
|
+
],
|
|
70
|
+
"transformIgnorePatterns": [
|
|
71
|
+
"node_modules/(?!@react-native|react-native)"
|
|
72
|
+
]
|
|
35
73
|
}
|
|
36
74
|
}
|
|
@@ -10,13 +10,13 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.authors = { "intelligibabble" => "leland.m.richardson@gmail.com" }
|
|
11
11
|
s.homepage = "https://github.com/react-native-maps/react-native-maps#readme"
|
|
12
12
|
s.license = "MIT"
|
|
13
|
-
s.platform = :ios, "
|
|
13
|
+
s.platform = :ios, "12.0"
|
|
14
14
|
|
|
15
15
|
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
|
|
16
16
|
s.source_files = "lib/ios/AirGoogleMaps/**/*.{h,m}"
|
|
17
17
|
s.compiler_flags = '-DHAVE_GOOGLE_MAPS=1', '-DHAVE_GOOGLE_MAPS_UTILS=1', '-fno-modules'
|
|
18
18
|
|
|
19
19
|
s.dependency 'React-Core'
|
|
20
|
-
s.dependency 'GoogleMaps', '
|
|
21
|
-
s.dependency 'Google-Maps-iOS-Utils', '
|
|
20
|
+
s.dependency 'GoogleMaps', '6.0.1'
|
|
21
|
+
s.dependency 'Google-Maps-iOS-Utils', '4.0.0'
|
|
22
22
|
end
|
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.authors = { "intelligibabble" => "leland.m.richardson@gmail.com" }
|
|
11
11
|
s.homepage = "https://github.com/react-native-maps/react-native-maps#readme"
|
|
12
12
|
s.license = "MIT"
|
|
13
|
-
s.platform = :ios, "
|
|
13
|
+
s.platform = :ios, "12.0"
|
|
14
14
|
|
|
15
15
|
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
|
|
16
16
|
s.source_files = "lib/ios/AirMaps/**/*.{h,m}"
|
package/.eslintrc
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "\U0001F41B Bug report"
|
|
3
|
-
about: Report a reproducible bug or regression in this library.
|
|
4
|
-
title: ''
|
|
5
|
-
labels: bug
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Bug report
|
|
11
|
-
|
|
12
|
-
<!--
|
|
13
|
-
👋 Hi!
|
|
14
|
-
|
|
15
|
-
🚨 Please read the following carefully before opening a new issue. Your issue may
|
|
16
|
-
be closed if it doesn't provide the required pieces of information. 🚨
|
|
17
|
-
|
|
18
|
-
We expect that it will take you about 30 minutes to produce a high-quality bug report.
|
|
19
|
-
While this may seem like a lot, putting care into issues helps us fix them faster.
|
|
20
|
-
For bug reports, it is REQUIRED to fill the rest of this template, or the issue will be closed.
|
|
21
|
-
|
|
22
|
-
Before submitting a new issue, please:
|
|
23
|
-
|
|
24
|
-
- Test using the latest release of the library, as maybe your bug has been already fixed.
|
|
25
|
-
- Check the existing [Issues](https://github.com/react-community/react-native-maps/issues?utf8=%E2%9C%93&q=) or on StackOverflow if there isn't a fix already for your problem.
|
|
26
|
-
|
|
27
|
-
Make sure you have followed the [Installation Instructions](https://github.com/react-community/react-native-maps/blob/master/docs/installation.md) too.
|
|
28
|
-
|
|
29
|
-
Still ready? Fill the template. 👇
|
|
30
|
-
-->
|
|
31
|
-
|
|
32
|
-
## Summary
|
|
33
|
-
|
|
34
|
-
<!--
|
|
35
|
-
Provide a clear and concise description of what the bug is.
|
|
36
|
-
-->
|
|
37
|
-
|
|
38
|
-
## Environment info
|
|
39
|
-
|
|
40
|
-
<!--
|
|
41
|
-
Please specify the react, react-native, react-native-maps versions, eg:
|
|
42
|
-
|
|
43
|
-
react-native: 0.51.0
|
|
44
|
-
react: 16.0.0
|
|
45
|
-
react-native-maps: 0.19.0 or "git+ssh://git@github.com/react-native-maps/react-native-maps.git"
|
|
46
|
-
|
|
47
|
-
***Make sure you are on v0.48.0 or greater of react-native, otherwise you may get this error:
|
|
48
|
-
|
|
49
|
-
Target Platform: eg: iOS - 11.2 Simulator/iPhone 6, Android 7.1.1/Galaxy S6/Genymotion etc
|
|
50
|
-
|
|
51
|
-
***If your target is iOS , please specify if you are using AppleMaps or GoogleMaps
|
|
52
|
-
-->
|
|
53
|
-
|
|
54
|
-
`react-native info` output:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
# paste your react, react-native, react-native-maps versions here
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Steps to reproduce
|
|
61
|
-
|
|
62
|
-
<!--
|
|
63
|
-
- You must provide a clear list of steps and code to reproduce the problem.
|
|
64
|
-
- Keep the code reproducing the bug as simple as possible, with the minimum amount of code required to reproduce the issue. See https://stackoverflow.com/help/mcve.
|
|
65
|
-
- If this library has additional install steps, describe them (e.g., pod install? jetify? etc).
|
|
66
|
-
- Either re-create the bug using the repository's example app or link to a GitHub repository with code that reproduces the bug.
|
|
67
|
-
- Explain the steps we need to take to reproduce the issue:
|
|
68
|
-
-->
|
|
69
|
-
|
|
70
|
-
1. …
|
|
71
|
-
2. …
|
|
72
|
-
|
|
73
|
-
Describe what you expected to happen:
|
|
74
|
-
|
|
75
|
-
<!--
|
|
76
|
-
How did you expect your project to behave?
|
|
77
|
-
It’s fine if you’re not sure your understanding is correct.
|
|
78
|
-
Just write down what you thought would happen.
|
|
79
|
-
-->
|
|
80
|
-
|
|
81
|
-
1. …
|
|
82
|
-
2. …
|
|
83
|
-
|
|
84
|
-
Describe what you actually happens:
|
|
85
|
-
|
|
86
|
-
<!--
|
|
87
|
-
Did something go wrong?
|
|
88
|
-
Is something broken, or not behaving as you expected?
|
|
89
|
-
Describe this section in detail, and attach screenshots if possible.
|
|
90
|
-
Don't just say "it doesn't work"!
|
|
91
|
-
-->
|
|
92
|
-
|
|
93
|
-
1. …
|
|
94
|
-
2. …
|
|
95
|
-
|
|
96
|
-
## Reproducible sample code
|
|
97
|
-
|
|
98
|
-
<!--
|
|
99
|
-
Please add minimal runnable repro as explained above so that the bug can be tested in isolation.
|
|
100
|
-
If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc.
|
|
101
|
-
|
|
102
|
-
Here are two ways to do it:
|
|
103
|
-
|
|
104
|
-
* Create a new app using https://snack.expo.io/ and try to reproduce the issue in it.
|
|
105
|
-
This is useful if you roughly know where the problem is, or can’t share the real code.
|
|
106
|
-
|
|
107
|
-
* Or, copy your app and remove things until you’re left with the minimal reproducible demo.
|
|
108
|
-
This is useful for finding the root cause. You may then optionally create a Snack.
|
|
109
|
-
|
|
110
|
-
Once you’re done, copy and paste the link to the Snack or a public GitHub repository below:
|
|
111
|
-
-->
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "\U0001F4A1 Feature request"
|
|
3
|
-
about: Submit your idea for a change in the codebase.
|
|
4
|
-
title: ''
|
|
5
|
-
labels: Feature Request
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Feature request
|
|
11
|
-
|
|
12
|
-
<!--
|
|
13
|
-
This issue should serve for you to present or pitch an idea to the maintainers - but remember that it would be better if you were to submit a PR instead 🤗
|
|
14
|
-
-->
|
|
15
|
-
|
|
16
|
-
## Why it is needed
|
|
17
|
-
|
|
18
|
-
<!--
|
|
19
|
-
Please tell us a bit more of why you want this feature to be added, what's its origin.
|
|
20
|
-
-->
|
|
21
|
-
|
|
22
|
-
## Possible implementation
|
|
23
|
-
|
|
24
|
-
<!--
|
|
25
|
-
It really helps if you could describe from a technical POV how this new feature would work, which code it rely on, etc.
|
|
26
|
-
-->
|
|
27
|
-
|
|
28
|
-
### Code sample
|
|
29
|
-
|
|
30
|
-
<!--
|
|
31
|
-
Please show how the new code could work, if doable.
|
|
32
|
-
-->
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
PLEASE DON'T DELETE THIS TEMPLATE UNTIL YOU HAVE READ THE FIRST SECTION.
|
|
3
|
-
|
|
4
|
-
**What happens if you SKIP this step?**
|
|
5
|
-
|
|
6
|
-
Your pull request will NOT be evaluated!
|
|
7
|
-
|
|
8
|
-
PLEASE NOTE THAT PRs WITHOUT THE TEMPLATE IN PLACE WILL BE CLOSED RIGHT FROM THE START.
|
|
9
|
-
|
|
10
|
-
Thanks for helping us help you!
|
|
11
|
-
-->
|
|
12
|
-
|
|
13
|
-
### Does any other open PR do the same thing?
|
|
14
|
-
|
|
15
|
-
<!--
|
|
16
|
-
**Please keep in mind that we apply the FIFO rule for PRs, so if your PR comes after an existing one and there is no compelling reason to merge it instead of the existing one it will be discarded!**
|
|
17
|
-
|
|
18
|
-
If another PR exists that has similar scope to yours, please specify why you opened yours.
|
|
19
|
-
This could be one of the following (but not limited to)
|
|
20
|
-
|
|
21
|
-
- the previous PR is stalled, as it's really old and the author didn't continue working on it
|
|
22
|
-
- there are conflicts with the `master` branch and the author didn't fix them
|
|
23
|
-
- the PR doesn't apply anymore (please specify why)
|
|
24
|
-
- my PR is better (please specify why)
|
|
25
|
-
-->
|
|
26
|
-
|
|
27
|
-
(please answer here)
|
|
28
|
-
|
|
29
|
-
### What issue is this PR fixing?
|
|
30
|
-
|
|
31
|
-
(please link the issue here)
|
|
32
|
-
|
|
33
|
-
### How did you test this PR?
|
|
34
|
-
|
|
35
|
-
<!--
|
|
36
|
-
Please let us know how you have verified that your changes work.
|
|
37
|
-
|
|
38
|
-
Ideally, your PR should contain a step-by-step test plan, so that reviewers can easily verify your changes.
|
|
39
|
-
|
|
40
|
-
Your PR will have much better chances of being merged if it is straightforward to verify.
|
|
41
|
-
|
|
42
|
-
Some questions you might want to think about:
|
|
43
|
-
|
|
44
|
-
- Which platform (eg. Android/iOS) & Maps API (eg. Google/Apple) does this change affect, if any?
|
|
45
|
-
- Did you test this on a real device, or in a simulator?
|
|
46
|
-
- Are there any platforms you were not able to test?
|
|
47
|
-
-->
|
|
48
|
-
|
|
49
|
-
(please answer here)
|
|
50
|
-
|
|
51
|
-
<!--
|
|
52
|
-
Thanks for your contribution :)
|
|
53
|
-
-->
|
package/.github/stale.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Number of days of inactivity before an issue becomes stale
|
|
2
|
-
daysUntilStale: 120
|
|
3
|
-
# Number of days of inactivity before a stale issue is closed
|
|
4
|
-
daysUntilClose: 7
|
|
5
|
-
# Issues with these labels will never be considered stale
|
|
6
|
-
exemptLabels:
|
|
7
|
-
- security
|
|
8
|
-
- bug
|
|
9
|
-
# Label to use when marking an issue as stale
|
|
10
|
-
staleLabel: stale
|
|
11
|
-
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
12
|
-
markComment: >
|
|
13
|
-
This issue has been automatically marked as stale because it has not had
|
|
14
|
-
recent activity. It will be closed if no further activity occurs. Thank you
|
|
15
|
-
for your contributions.
|
|
16
|
-
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
17
|
-
closeComment: false
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ master ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ master ]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build:
|
|
11
|
-
# The type of runner that the job will run on
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v2
|
|
16
|
-
|
|
17
|
-
- name: Yarn
|
|
18
|
-
run: yarn install
|
|
19
|
-
|
|
20
|
-
- name: Yarn CI
|
|
21
|
-
run: yarn ci
|
package/.prettierrc
DELETED