react-native-maps 2.0.0-beta.5 → 2.0.0-beta.7
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/android/src/main/java/com/rnmaps/maps/MapCalloutManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapCircleManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapGradientPolyline.java +4 -4
- package/android/src/main/java/com/rnmaps/maps/MapGradientPolylineManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapHeatmapManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapLiteManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapLocalTile.java +4 -4
- package/android/src/main/java/com/rnmaps/maps/MapLocalTileManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapManager.java +1 -56
- package/android/src/main/java/com/rnmaps/maps/MapMarker.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapMarkerManager.java +9 -26
- package/android/src/main/java/com/rnmaps/maps/MapOverlayManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapPolygonManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapPolylineManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapTileProvider.java +4 -4
- package/android/src/main/java/com/rnmaps/maps/MapUrlTileManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapView.java +24 -131
- package/android/src/main/java/com/rnmaps/maps/MapViewModule.java +598 -0
- package/android/src/main/java/com/rnmaps/maps/MapWMSTile.java +6 -6
- package/android/src/main/java/com/rnmaps/maps/MapWMSTileManager.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapsPackage.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/SizeReportingShadowNode.java +1 -1
- package/ios/{AirGoogleMaps/AIRDummyView.h → GoogleMaps/RNMDummyView.h} +3 -3
- package/ios/{AirGoogleMaps/AIRDummyView.m → GoogleMaps/RNMDummyView.m} +4 -4
- package/ios/{AirGoogleMaps/AIRGMSMarker.h → GoogleMaps/RNMGMSMarker.h} +6 -6
- package/ios/{AirGoogleMaps/AIRGMSMarker.m → GoogleMaps/RNMGMSMarker.m} +4 -4
- package/ios/{AirGoogleMaps/AIRGMSPolygon.h → GoogleMaps/RNMGMSPolygon.h} +4 -4
- package/ios/{AirGoogleMaps/AIRGMSPolygon.m → GoogleMaps/RNMGMSPolygon.m} +4 -4
- package/ios/{AirGoogleMaps/AIRGMSPolyline.h → GoogleMaps/RNMGMSPolyline.h} +4 -4
- package/ios/{AirGoogleMaps/AIRGMSPolyline.m → GoogleMaps/RNMGMSPolyline.m} +4 -4
- package/ios/{AirGoogleMaps/AIRGoogleMap.h → GoogleMaps/RNMGoogleMap.h} +5 -5
- package/ios/{AirGoogleMaps/AIRGoogleMap.m → GoogleMaps/RNMGoogleMap.m} +77 -77
- package/ios/{AirGoogleMaps/AIRGoogleMapCallout.h → GoogleMaps/RNMGoogleMapCallout.h} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapCallout.m → GoogleMaps/RNMGoogleMapCallout.m} +4 -4
- package/ios/{AirGoogleMaps/AIRGoogleMapCalloutManager.h → GoogleMaps/RNMGoogleMapCalloutManager.h} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapCalloutManager.m → GoogleMaps/RNMGoogleMapCalloutManager.m} +7 -7
- package/ios/{AirGoogleMaps/AIRGoogleMapCalloutSubview.h → GoogleMaps/RNMGoogleMapCalloutSubview.h} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapCalloutSubview.m → GoogleMaps/RNMGoogleMapCalloutSubview.m} +4 -4
- package/ios/{AirGoogleMaps/AIRGoogleMapCalloutSubviewManager.h → GoogleMaps/RNMGoogleMapCalloutSubviewManager.h} +3 -3
- package/ios/GoogleMaps/RNMGoogleMapCalloutSubviewManager.m +28 -0
- package/ios/{AirGoogleMaps/AIRGoogleMapCircle.h → GoogleMaps/RNMGoogleMapCircle.h} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapCircle.m → GoogleMaps/RNMGoogleMapCircle.m} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapCircleManager.h → GoogleMaps/RNMGoogleMapCircleManager.h} +2 -2
- package/ios/{AirGoogleMaps/AIRGoogleMapCircleManager.m → GoogleMaps/RNMGoogleMapCircleManager.m} +7 -7
- package/ios/{AirGoogleMaps/AIRGoogleMapHeatmap.h → GoogleMaps/RNMGoogleMapHeatmap.h} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapHeatmap.m → GoogleMaps/RNMGoogleMapHeatmap.m} +4 -4
- package/ios/GoogleMaps/RNMGoogleMapHeatmapManager.h +11 -0
- package/ios/{AirGoogleMaps/AIRGoogleMapHeatmapManager.m → GoogleMaps/RNMGoogleMapHeatmapManager.m} +9 -9
- package/ios/{AirGoogleMaps/AIRGoogleMapManager.h → GoogleMaps/RNMGoogleMapManager.h} +3 -3
- package/ios/GoogleMaps/RNMGoogleMapManager.m +274 -0
- package/ios/{AirGoogleMaps/AIRGoogleMapMarker.h → GoogleMaps/RNMGoogleMapMarker.h} +15 -15
- package/ios/{AirGoogleMaps/AIRGoogleMapMarker.m → GoogleMaps/RNMGoogleMapMarker.m} +22 -22
- package/ios/{AirGoogleMaps/AIRGoogleMapMarkerManager.h → GoogleMaps/RNMGoogleMapMarkerManager.h} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapMarkerManager.m → GoogleMaps/RNMGoogleMapMarkerManager.m} +20 -20
- package/ios/{AirGoogleMaps/AIRGoogleMapOverlay.h → GoogleMaps/RNMGoogleMapOverlay.h} +4 -4
- package/ios/{AirGoogleMaps/AIRGoogleMapOverlay.m → GoogleMaps/RNMGoogleMapOverlay.m} +4 -4
- package/ios/{AirGoogleMaps/AIRGoogleMapOverlayManager.h → GoogleMaps/RNMGoogleMapOverlayManager.h} +2 -2
- package/ios/{AirGoogleMaps/AIRGoogleMapOverlayManager.m → GoogleMaps/RNMGoogleMapOverlayManager.m} +6 -6
- package/ios/{AirGoogleMaps/AIRGoogleMapPolygon.h → GoogleMaps/RNMGoogleMapPolygon.h} +7 -7
- package/ios/{AirGoogleMaps/AIRGoogleMapPolygon.m → GoogleMaps/RNMGoogleMapPolygon.m} +7 -7
- package/ios/{AirGoogleMaps/AIRGoogleMapPolylineManager.h → GoogleMaps/RNMGoogleMapPolygonManager.h} +2 -2
- package/ios/{AirGoogleMaps/AIRGoogleMapPolygonManager.m → GoogleMaps/RNMGoogleMapPolygonManager.m} +10 -10
- package/ios/{AirGoogleMaps/AIRGoogleMapPolyline.h → GoogleMaps/RNMGoogleMapPolyline.h} +7 -7
- package/ios/{AirGoogleMaps/AIRGoogleMapPolyline.m → GoogleMaps/RNMGoogleMapPolyline.m} +9 -9
- package/ios/{AirGoogleMaps/AIRGoogleMapPolygonManager.h → GoogleMaps/RNMGoogleMapPolylineManager.h} +2 -2
- package/ios/{AirGoogleMaps/AIRGoogleMapPolylineManager.m → GoogleMaps/RNMGoogleMapPolylineManager.m} +9 -9
- package/ios/{AirGoogleMaps/AIRGoogleMapUrlTile.h → GoogleMaps/RNMGoogleMapUrlTile.h} +2 -2
- package/ios/{AirGoogleMaps/AIRGoogleMapUrlTile.m → GoogleMaps/RNMGoogleMapUrlTile.m} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapUrlTileManager.h → GoogleMaps/RNMGoogleMapUrlTileManager.h} +2 -2
- package/ios/{AirGoogleMaps/AIRGoogleMapURLTileManager.m → GoogleMaps/RNMGoogleMapUrlTileManager.m} +7 -7
- package/ios/GoogleMaps/RNMGoogleMapViewModule.h +5 -0
- package/ios/GoogleMaps/RNMGoogleMapViewModule.m +380 -0
- package/ios/{AirGoogleMaps/AIRGoogleMapWMSTile.h → GoogleMaps/RNMGoogleMapWMSTile.h} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapWMSTile.m → GoogleMaps/RNMGoogleMapWMSTile.m} +4 -4
- package/ios/{AirGoogleMaps/AIRGoogleMapWMSTileManager.h → GoogleMaps/RNMGoogleMapWMSTileManager.h} +3 -3
- package/ios/{AirGoogleMaps/AIRGoogleMapWMSTileManager.m → GoogleMaps/RNMGoogleMapWMSTileManager.m} +8 -8
- package/ios/{AirMaps → Maps}/Callout/SMCalloutView.h +4 -4
- package/ios/{AirMaps/RCTConvert+AirMap.h → Maps/RCTConvert+RNMMap.h} +1 -1
- package/ios/{AirMaps/RCTConvert+AirMap.m → Maps/RCTConvert+RNMMap.m} +8 -8
- package/ios/{AirMaps/AIRMap.h → Maps/RNMMap.h} +8 -8
- package/ios/{AirMaps/AIRMap.m → Maps/RNMMap.m} +56 -56
- package/ios/{AirMaps/AIRMapCallout.h → Maps/RNMMapCallout.h} +1 -1
- package/ios/{AirMaps/AIRMapCallout.m → Maps/RNMMapCallout.m} +2 -2
- package/ios/{AirMaps/AIRMapCircleManager.h → Maps/RNMMapCalloutManager.h} +2 -2
- package/ios/{AirMaps/AIRMapCalloutManager.m → Maps/RNMMapCalloutManager.m} +7 -7
- package/ios/{AirMaps/AIRMapCalloutSubview.h → Maps/RNMMapCalloutSubview.h} +3 -3
- package/ios/{AirMaps/AIRMapCalloutSubview.m → Maps/RNMMapCalloutSubview.m} +4 -4
- package/ios/Maps/RNMMapCalloutSubviewManager.h +14 -0
- package/ios/Maps/RNMMapCalloutSubviewManager.m +24 -0
- package/ios/{AirMaps/AIRMapCircle.h → Maps/RNMMapCircle.h} +5 -5
- package/ios/{AirMaps/AIRMapCircle.m → Maps/RNMMapCircle.m} +3 -3
- package/ios/{AirMaps/AIRMapCalloutManager.h → Maps/RNMMapCircleManager.h} +2 -2
- package/ios/{AirMaps/AIRMapCircleManager.m → Maps/RNMMapCircleManager.m} +7 -7
- package/ios/{AirMaps/AIRMapCoordinate.h → Maps/RNMMapCoordinate.h} +2 -2
- package/ios/{AirMaps/AIRMapCoordinate.m → Maps/RNMMapCoordinate.m} +3 -3
- package/ios/{AirMaps/AIRMapLocalTile.h → Maps/RNMMapLocalTile.h} +7 -7
- package/ios/{AirMaps/AIRMapLocalTile.m → Maps/RNMMapLocalTile.m} +6 -6
- package/ios/{AirMaps/AIRMapLocalTileManager.h → Maps/RNMMapLocalTileManager.h} +3 -3
- package/ios/{AirMaps/AIRMapLocalTileManager.m → Maps/RNMMapLocalTileManager.m} +9 -9
- package/ios/{AirMaps/AIRMapLocalTileOverlay.h → Maps/RNMMapLocalTileOverlay.h} +2 -2
- package/ios/{AirMaps/AIRMapLocalTileOverlay.m → Maps/RNMMapLocalTileOverlay.m} +5 -5
- package/ios/{AirMaps/AIRMapManager.h → Maps/RNMMapManager.h} +6 -6
- package/ios/Maps/RNMMapManager.m +857 -0
- package/ios/{AirMaps/AIRMapMarker.h → Maps/RNMMapMarker.h} +8 -8
- package/ios/{AirMaps/AIRMapMarker.m → Maps/RNMMapMarker.m} +13 -13
- package/ios/{AirMaps/AIRMapMarkerManager.h → Maps/RNMMapMarkerManager.h} +1 -1
- package/ios/{AirMaps/AIRMapMarkerManager.m → Maps/RNMMapMarkerManager.m} +14 -14
- package/ios/{AirMaps/AIRMapOverlay.h → Maps/RNMMapOverlay.h} +7 -7
- package/ios/{AirMaps/AIRMapOverlay.m → Maps/RNMMapOverlay.m} +4 -4
- package/ios/Maps/RNMMapOverlayManager.h +5 -0
- package/ios/{AirMaps/AIRMapOverlayManager.m → Maps/RNMMapOverlayManager.m} +6 -6
- package/ios/{AirMaps/AIRMapOverlayRenderer.h → Maps/RNMMapOverlayRenderer.h} +1 -1
- package/ios/{AirMaps/AIRMapOverlayRenderer.m → Maps/RNMMapOverlayRenderer.m} +5 -5
- package/ios/{AirMaps/AIRMapPolygon.h → Maps/RNMMapPolygon.h} +7 -7
- package/ios/{AirMaps/AIRMapPolygon.m → Maps/RNMMapPolygon.m} +4 -4
- package/ios/{AirMaps/AIRMapPolygonManager.h → Maps/RNMMapPolygonManager.h} +2 -2
- package/ios/{AirMaps/AIRMapPolygonManager.m → Maps/RNMMapPolygonManager.m} +10 -10
- package/ios/{AirMaps/AIRMapPolyline.h → Maps/RNMMapPolyline.h} +6 -6
- package/ios/{AirMaps/AIRMapPolyline.m → Maps/RNMMapPolyline.m} +11 -11
- package/ios/{AirMaps/AIRMapPolylineManager.h → Maps/RNMMapPolylineManager.h} +2 -2
- package/ios/{AirMaps/AIRMapPolylineManager.m → Maps/RNMMapPolylineManager.m} +9 -9
- package/ios/{AirMaps/AIRMapPolylineRenderer.h → Maps/RNMMapPolylineRenderer.h} +2 -2
- package/ios/{AirMaps/AIRMapPolylineRenderer.m → Maps/RNMMapPolylineRenderer.m} +10 -10
- package/ios/{AirMaps/AIRMapSnapshot.h → Maps/RNMMapSnapshot.h} +6 -6
- package/ios/{AirMaps/AIRMapUrlTile.h → Maps/RNMMapUrlTile.h} +18 -18
- package/ios/{AirMaps/AIRMapUrlTile.m → Maps/RNMMapUrlTile.m} +7 -7
- package/ios/{AirMaps/AIRMapUrlTileCachedOverlay.h → Maps/RNMMapUrlTileCachedOverlay.h} +3 -3
- package/ios/{AirMaps/AIRMapUrlTileCachedOverlay.m → Maps/RNMMapUrlTileCachedOverlay.m} +10 -10
- package/ios/{AirMaps/AIRMapUrlTileManager.h → Maps/RNMMapUrlTileManager.h} +3 -3
- package/ios/{AirMaps/AIRMapUrlTileManager.m → Maps/RNMMapUrlTileManager.m} +9 -9
- package/ios/Maps/RNMMapViewModule.h +5 -0
- package/ios/Maps/RNMMapViewModule.m +459 -0
- package/ios/{AirMaps/AIRMapWMSTile.h → Maps/RNMMapWMSTile.h} +11 -11
- package/ios/{AirMaps/AIRMapWMSTile.m → Maps/RNMMapWMSTile.m} +15 -15
- package/ios/{AirMaps/AIRMapWMSTileManager.h → Maps/RNMMapWMSTileManager.h} +3 -3
- package/ios/{AirMaps/AIRMapWMSTileManager.m → Maps/RNMMapWMSTileManager.m} +9 -9
- package/ios/RNMaps.xcodeproj/project.pbxproj +647 -0
- package/lib/MapCallout.js +2 -2
- package/lib/MapCalloutSubview.js +2 -2
- package/lib/MapCircle.js +2 -2
- package/lib/MapHeatmap.js +2 -2
- package/lib/MapLocalTile.js +2 -2
- package/lib/MapMarker.js +2 -2
- package/lib/MapOverlay.js +2 -2
- package/lib/MapPolygon.js +2 -2
- package/lib/MapPolyline.js +2 -2
- package/lib/MapUrlTile.js +2 -2
- package/lib/MapView.d.ts +7 -8
- package/lib/MapView.js +89 -97
- package/lib/MapView.types.d.ts +8 -2
- package/lib/MapViewNativeComponent.d.ts +2 -7
- package/lib/MapViewNativeComponent.js +0 -5
- package/lib/MapWMSTile.js +2 -2
- package/lib/NativeGoogleMapViewModule.d.ts +25 -0
- package/lib/NativeGoogleMapViewModule.js +4 -0
- package/lib/NativeMapViewModule.d.ts +29 -0
- package/lib/NativeMapViewModule.js +4 -0
- package/lib/decorateMapComponent.d.ts +1 -1
- package/lib/decorateMapComponent.js +3 -3
- package/package.json +1 -1
- package/react-native-google-maps.podspec +1 -1
- package/react-native-maps.podspec +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapModule.java +0 -380
- package/ios/AirGoogleMaps/AIRGoogleMapCalloutSubviewManager.m +0 -28
- package/ios/AirGoogleMaps/AIRGoogleMapHeatmapManager.h +0 -11
- package/ios/AirGoogleMaps/AIRGoogleMapManager.m +0 -597
- package/ios/AirMaps/AIRMapCalloutSubviewManager.h +0 -14
- package/ios/AirMaps/AIRMapCalloutSubviewManager.m +0 -24
- package/ios/AirMaps/AIRMapManager.m +0 -1253
- package/ios/AirMaps/AIRMapOverlayManager.h +0 -5
- package/ios/AirMaps/AIRWeakMapReference.h +0 -24
- package/ios/AirMaps/AIRWeakMapReference.m +0 -23
- package/ios/AirMaps/AIRWeakTimerReference.h +0 -21
- package/ios/AirMaps/AIRWeakTimerReference.m +0 -42
- package/ios/AirMaps.xcodeproj/project.pbxproj +0 -587
- /package/ios/{AirGoogleMaps → GoogleMaps}/RCTConvert+GMSMapViewType.h +0 -0
- /package/ios/{AirGoogleMaps → GoogleMaps}/RCTConvert+GMSMapViewType.m +0 -0
- /package/ios/{AirMaps → Maps}/Callout/SMCalloutView.m +0 -0
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
#import "
|
|
10
|
+
#import "RNMMap.h"
|
|
11
11
|
|
|
12
12
|
#import <React/RCTEventDispatcher.h>
|
|
13
13
|
#import <React/UIView+React.h>
|
|
14
|
-
#import "
|
|
15
|
-
#import "
|
|
16
|
-
#import "
|
|
17
|
-
#import "
|
|
14
|
+
#import "RNMMapMarker.h"
|
|
15
|
+
#import "RNMMapPolyline.h"
|
|
16
|
+
#import "RNMMapPolygon.h"
|
|
17
|
+
#import "RNMMapCircle.h"
|
|
18
18
|
#import <QuartzCore/QuartzCore.h>
|
|
19
|
-
#import "
|
|
20
|
-
#import "
|
|
21
|
-
#import "
|
|
22
|
-
#import "
|
|
19
|
+
#import "RNMMapUrlTile.h"
|
|
20
|
+
#import "RNMMapWMSTile.h"
|
|
21
|
+
#import "RNMMapLocalTile.h"
|
|
22
|
+
#import "RNMMapOverlay.h"
|
|
23
23
|
|
|
24
|
-
const NSTimeInterval
|
|
25
|
-
const CGFloat
|
|
26
|
-
const NSInteger
|
|
24
|
+
const NSTimeInterval RNMMapRegionChangeObserveInterval = 0.1;
|
|
25
|
+
const CGFloat RNMMapZoomBoundBuffer = 0.01;
|
|
26
|
+
const NSInteger RNMMapMaxZoomLevel = 20;
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
@interface MKMapView (UIGestureRecognizer)
|
|
@@ -33,7 +33,7 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
33
33
|
|
|
34
34
|
@end
|
|
35
35
|
|
|
36
|
-
@interface
|
|
36
|
+
@interface RNMMap ()
|
|
37
37
|
|
|
38
38
|
@property (nonatomic, strong) UIActivityIndicatorView *activityIndicatorView;
|
|
39
39
|
@property (nonatomic, assign) NSNumber *shouldZoomEnabled;
|
|
@@ -44,7 +44,7 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
44
44
|
|
|
45
45
|
@end
|
|
46
46
|
|
|
47
|
-
@implementation
|
|
47
|
+
@implementation RNMMap
|
|
48
48
|
{
|
|
49
49
|
UIView *_legalLabel;
|
|
50
50
|
BOOL _initialRegionSet;
|
|
@@ -52,7 +52,7 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
52
52
|
|
|
53
53
|
// Array to manually track RN subviews
|
|
54
54
|
//
|
|
55
|
-
//
|
|
55
|
+
// RNMMap implicitly creates subviews that aren't regular RN children
|
|
56
56
|
// (SMCalloutView injects an overlay subview), which otherwise confuses RN
|
|
57
57
|
// during component re-renders:
|
|
58
58
|
// https://github.com/facebook/react-native/blob/v0.16.0/React/Modules/RCTUIManager.m#L657
|
|
@@ -84,14 +84,14 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
84
84
|
self.calloutView.delegate = self;
|
|
85
85
|
|
|
86
86
|
self.minZoomLevel = 0;
|
|
87
|
-
self.maxZoomLevel =
|
|
87
|
+
self.maxZoomLevel = RNMMapMaxZoomLevel;
|
|
88
88
|
self.compassOffset = CGPointMake(0, 0);
|
|
89
89
|
}
|
|
90
90
|
return self;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
-(void)addSubview:(UIView *)view {
|
|
94
|
-
if([view isKindOfClass:[
|
|
94
|
+
if([view isKindOfClass:[RNMMapMarker class]]) {
|
|
95
95
|
[self addAnnotation:(id <MKAnnotation>)view];
|
|
96
96
|
} else {
|
|
97
97
|
[super addSubview:view];
|
|
@@ -103,28 +103,28 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
103
103
|
- (void)insertReactSubview:(id<RCTComponent>)subview atIndex:(NSInteger)atIndex {
|
|
104
104
|
// Our desired API is to pass up markers/overlays as children to the mapview component.
|
|
105
105
|
// This is where we intercept them and do the appropriate underlying mapview action.
|
|
106
|
-
if ([subview isKindOfClass:[
|
|
106
|
+
if ([subview isKindOfClass:[RNMMapMarker class]]) {
|
|
107
107
|
[self addAnnotation:(id <MKAnnotation>) subview];
|
|
108
|
-
} else if ([subview isKindOfClass:[
|
|
109
|
-
((
|
|
108
|
+
} else if ([subview isKindOfClass:[RNMMapPolyline class]]) {
|
|
109
|
+
((RNMMapPolyline *)subview).map = self;
|
|
110
110
|
[self addOverlay:(id<MKOverlay>)subview];
|
|
111
|
-
} else if ([subview isKindOfClass:[
|
|
112
|
-
((
|
|
111
|
+
} else if ([subview isKindOfClass:[RNMMapPolygon class]]) {
|
|
112
|
+
((RNMMapPolygon *)subview).map = self;
|
|
113
113
|
[self addOverlay:(id<MKOverlay>)subview];
|
|
114
|
-
} else if ([subview isKindOfClass:[
|
|
115
|
-
((
|
|
114
|
+
} else if ([subview isKindOfClass:[RNMMapCircle class]]) {
|
|
115
|
+
((RNMMapCircle *)subview).map = self;
|
|
116
116
|
[self addOverlay:(id<MKOverlay>)subview];
|
|
117
|
-
} else if ([subview isKindOfClass:[
|
|
118
|
-
((
|
|
117
|
+
} else if ([subview isKindOfClass:[RNMMapUrlTile class]]) {
|
|
118
|
+
((RNMMapUrlTile *)subview).map = self;
|
|
119
119
|
[self addOverlay:(id<MKOverlay>)subview];
|
|
120
|
-
}else if ([subview isKindOfClass:[
|
|
121
|
-
((
|
|
120
|
+
}else if ([subview isKindOfClass:[RNMMapWMSTile class]]) {
|
|
121
|
+
((RNMMapWMSTile *)subview).map = self;
|
|
122
122
|
[self addOverlay:(id<MKOverlay>)subview];
|
|
123
|
-
} else if ([subview isKindOfClass:[
|
|
124
|
-
((
|
|
123
|
+
} else if ([subview isKindOfClass:[RNMMapLocalTile class]]) {
|
|
124
|
+
((RNMMapLocalTile *)subview).map = self;
|
|
125
125
|
[self addOverlay:(id<MKOverlay>)subview];
|
|
126
|
-
} else if ([subview isKindOfClass:[
|
|
127
|
-
((
|
|
126
|
+
} else if ([subview isKindOfClass:[RNMMapOverlay class]]) {
|
|
127
|
+
((RNMMapOverlay *)subview).map = self;
|
|
128
128
|
[self addOverlay:(id<MKOverlay>)subview];
|
|
129
129
|
} else {
|
|
130
130
|
NSArray<id<RCTComponent>> *childSubviews = [subview reactSubviews];
|
|
@@ -141,21 +141,21 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
141
141
|
- (void)removeReactSubview:(id<RCTComponent>)subview {
|
|
142
142
|
// similarly, when the children are being removed we have to do the appropriate
|
|
143
143
|
// underlying mapview action here.
|
|
144
|
-
if ([subview isKindOfClass:[
|
|
144
|
+
if ([subview isKindOfClass:[RNMMapMarker class]]) {
|
|
145
145
|
[self removeAnnotation:(id<MKAnnotation>)subview];
|
|
146
|
-
} else if ([subview isKindOfClass:[
|
|
146
|
+
} else if ([subview isKindOfClass:[RNMMapPolyline class]]) {
|
|
147
147
|
[self removeOverlay:(id <MKOverlay>) subview];
|
|
148
|
-
} else if ([subview isKindOfClass:[
|
|
148
|
+
} else if ([subview isKindOfClass:[RNMMapPolygon class]]) {
|
|
149
149
|
[self removeOverlay:(id <MKOverlay>) subview];
|
|
150
|
-
} else if ([subview isKindOfClass:[
|
|
150
|
+
} else if ([subview isKindOfClass:[RNMMapCircle class]]) {
|
|
151
151
|
[self removeOverlay:(id <MKOverlay>) subview];
|
|
152
|
-
} else if ([subview isKindOfClass:[
|
|
152
|
+
} else if ([subview isKindOfClass:[RNMMapUrlTile class]]) {
|
|
153
153
|
[self removeOverlay:(id <MKOverlay>) subview];
|
|
154
|
-
} else if ([subview isKindOfClass:[
|
|
154
|
+
} else if ([subview isKindOfClass:[RNMMapWMSTile class]]) {
|
|
155
155
|
[self removeOverlay:(id <MKOverlay>) subview];
|
|
156
|
-
} else if ([subview isKindOfClass:[
|
|
156
|
+
} else if ([subview isKindOfClass:[RNMMapLocalTile class]]) {
|
|
157
157
|
[self removeOverlay:(id <MKOverlay>) subview];
|
|
158
|
-
} else if ([subview isKindOfClass:[
|
|
158
|
+
} else if ([subview isKindOfClass:[RNMMapOverlay class]]) {
|
|
159
159
|
[self removeOverlay:(id <MKOverlay>) subview];
|
|
160
160
|
} else {
|
|
161
161
|
NSArray<id<RCTComponent>> *childSubviews = [subview reactSubviews];
|
|
@@ -178,17 +178,17 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
178
178
|
|
|
179
179
|
- (NSArray*) markers {
|
|
180
180
|
NSPredicate *filterMarkers = [NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) {
|
|
181
|
-
|
|
182
|
-
return [marker isKindOfClass:[
|
|
181
|
+
RNMMapMarker *marker = (RNMMapMarker *)evaluatedObject;
|
|
182
|
+
return [marker isKindOfClass:[RNMMapMarker class]];
|
|
183
183
|
}];
|
|
184
184
|
NSArray *filteredMarkers = [self.annotations filteredArrayUsingPredicate:filterMarkers];
|
|
185
185
|
return filteredMarkers;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
- (
|
|
189
|
-
|
|
188
|
+
- (RNMMapMarker*) markerForCallout:(RNMMapCallout*)callout {
|
|
189
|
+
RNMMapMarker* marker = nil;
|
|
190
190
|
NSArray* markers = [self markers];
|
|
191
|
-
for (
|
|
191
|
+
for (RNMMapMarker* mrk in markers) {
|
|
192
192
|
if (mrk.calloutView == callout) {
|
|
193
193
|
marker = mrk;
|
|
194
194
|
break;
|
|
@@ -197,7 +197,7 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
197
197
|
return marker;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
- (CGRect) frameForMarker:(
|
|
200
|
+
- (CGRect) frameForMarker:(RNMMapMarker*) mrkAnn {
|
|
201
201
|
MKAnnotationView* mrkView = [self viewForAnnotation: mrkAnn];
|
|
202
202
|
CGRect mrkFrame = mrkView.frame;
|
|
203
203
|
return mrkFrame;
|
|
@@ -205,7 +205,7 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
205
205
|
|
|
206
206
|
- (NSDictionary*) getMarkersFramesWithOnlyVisible:(BOOL)onlyVisible {
|
|
207
207
|
NSMutableDictionary* markersFrames = [NSMutableDictionary new];
|
|
208
|
-
for (
|
|
208
|
+
for (RNMMapMarker* mrkAnn in self.markers) {
|
|
209
209
|
CGRect frame = [self frameForMarker:mrkAnn];
|
|
210
210
|
CGPoint point = [self convertCoordinate:mrkAnn.coordinate toPointToView:self];
|
|
211
211
|
NSDictionary* frameDict = @{
|
|
@@ -227,9 +227,9 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
227
227
|
return markersFrames;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
- (
|
|
231
|
-
|
|
232
|
-
for (
|
|
230
|
+
- (RNMMapMarker*) markerAtPoint:(CGPoint)point {
|
|
231
|
+
RNMMapMarker* mrk = nil;
|
|
232
|
+
for (RNMMapMarker* mrkAnn in self.markers) {
|
|
233
233
|
CGRect frame = [self frameForMarker:mrkAnn];
|
|
234
234
|
if (CGRectContainsPoint(frame, point)) {
|
|
235
235
|
mrk = mrkAnn;
|
|
@@ -260,17 +260,17 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
260
260
|
|
|
261
261
|
if (touchedView) {
|
|
262
262
|
UIWindow* win = [[[UIApplication sharedApplication] windows] firstObject];
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
263
|
+
RNMMapCalloutSubview* calloutSubview = nil;
|
|
264
|
+
RNMMapCallout* callout = nil;
|
|
265
|
+
RNMMapMarker* marker = nil;
|
|
266
266
|
|
|
267
267
|
UIView* tmp = touchedView;
|
|
268
268
|
while (tmp && tmp != win && tmp != self.calloutView) {
|
|
269
269
|
if ([tmp respondsToSelector:@selector(onPress)]) {
|
|
270
|
-
calloutSubview = (
|
|
270
|
+
calloutSubview = (RNMMapCalloutSubview*) tmp;
|
|
271
271
|
}
|
|
272
|
-
if ([tmp isKindOfClass:[
|
|
273
|
-
callout = (
|
|
272
|
+
if ([tmp isKindOfClass:[RNMMapCallout class]]) {
|
|
273
|
+
callout = (RNMMapCallout*) tmp;
|
|
274
274
|
break;
|
|
275
275
|
}
|
|
276
276
|
tmp = tmp.superview;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
// Copyright (c) 2015 Facebook. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
-
#import "
|
|
6
|
+
#import "RNMMapCallout.h"
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
@implementation
|
|
9
|
+
@implementation RNMMapCallout
|
|
10
10
|
|
|
11
11
|
- (BOOL) isPointInside:(CGPoint)pointInCallout {
|
|
12
12
|
if (!self.alphaHitTest)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
#import "
|
|
10
|
+
#import "RNMMapCalloutManager.h"
|
|
11
11
|
|
|
12
12
|
#import <React/RCTBridge.h>
|
|
13
13
|
#import <React/RCTConvert.h>
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
#import <React/RCTEventDispatcher.h>
|
|
16
16
|
#import <React/RCTViewManager.h>
|
|
17
17
|
#import <React/UIView+React.h>
|
|
18
|
-
#import "
|
|
19
|
-
#import "
|
|
18
|
+
#import "RNMMapMarker.h"
|
|
19
|
+
#import "RNMMapCallout.h"
|
|
20
20
|
|
|
21
|
-
@interface
|
|
21
|
+
@interface RNMMapCalloutManager()
|
|
22
22
|
|
|
23
23
|
@end
|
|
24
24
|
|
|
25
|
-
@implementation
|
|
25
|
+
@implementation RNMMapCalloutManager
|
|
26
26
|
|
|
27
|
-
RCT_EXPORT_MODULE()
|
|
27
|
+
RCT_EXPORT_MODULE(RNMMapCallout)
|
|
28
28
|
|
|
29
29
|
- (UIView *)view
|
|
30
30
|
{
|
|
31
|
-
return [
|
|
31
|
+
return [RNMMapCallout new];
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
RCT_EXPORT_VIEW_PROPERTY(tooltip, BOOL)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
2
|
+
// RNMMapCalloutSubview.h
|
|
3
|
+
// RNMaps
|
|
4
4
|
//
|
|
5
5
|
// Created by Denis Oblogin on 10/8/18.
|
|
6
6
|
//
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#import <UIKit/UIKit.h>
|
|
10
10
|
#import <React/RCTView.h>
|
|
11
11
|
|
|
12
|
-
@interface
|
|
12
|
+
@interface RNMMapCalloutSubview : UIView
|
|
13
13
|
@property (nonatomic, copy) RCTBubblingEventBlock onPress;
|
|
14
14
|
@end
|
|
15
15
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
2
|
+
// RNMMapCalloutSubview.m
|
|
3
|
+
// RNMaps
|
|
4
4
|
//
|
|
5
5
|
// Created by Denis Oblogin on 10/8/18.
|
|
6
6
|
//
|
|
7
7
|
//
|
|
8
8
|
|
|
9
|
-
#import "
|
|
9
|
+
#import "RNMMapCalloutSubview.h"
|
|
10
10
|
#import <React/RCTUtils.h>
|
|
11
11
|
#import <React/RCTView.h>
|
|
12
12
|
#import <React/RCTBridge.h>
|
|
13
13
|
|
|
14
|
-
@implementation
|
|
14
|
+
@implementation RNMMapCalloutSubview
|
|
15
15
|
@end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RNMMapCalloutSubviewManager.m
|
|
3
|
+
// RNMaps
|
|
4
|
+
//
|
|
5
|
+
// Created by Denis Oblogin on 10/8/18.
|
|
6
|
+
//
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "RNMMapCalloutSubviewManager.h"
|
|
10
|
+
#import "RNMMapCalloutSubview.h"
|
|
11
|
+
#import <React/RCTView.h>
|
|
12
|
+
|
|
13
|
+
@implementation RNMMapCalloutSubviewManager
|
|
14
|
+
RCT_EXPORT_MODULE(RNMMapCalloutSubview)
|
|
15
|
+
|
|
16
|
+
- (UIView *)view
|
|
17
|
+
{
|
|
18
|
+
RNMMapCalloutSubview *calloutSubview = [RNMMapCalloutSubview new];
|
|
19
|
+
return calloutSubview;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
RCT_EXPORT_VIEW_PROPERTY(onPress, RCTBubblingEventBlock)
|
|
23
|
+
|
|
24
|
+
@end
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
#import <React/RCTComponent.h>
|
|
12
12
|
#import <React/RCTView.h>
|
|
13
13
|
|
|
14
|
-
#import "
|
|
15
|
-
#import "
|
|
16
|
-
#import "RCTConvert+
|
|
14
|
+
#import "RNMMapCoordinate.h"
|
|
15
|
+
#import "RNMMap.h"
|
|
16
|
+
#import "RCTConvert+RNMMap.h"
|
|
17
17
|
|
|
18
|
-
@interface
|
|
18
|
+
@interface RNMMapCircle: MKAnnotationView <MKOverlay>
|
|
19
19
|
|
|
20
|
-
@property (nonatomic, weak)
|
|
20
|
+
@property (nonatomic, weak) RNMMap *map;
|
|
21
21
|
|
|
22
22
|
@property (nonatomic, strong) MKCircle *circle;
|
|
23
23
|
@property (nonatomic, strong) MKCircleRenderer *renderer;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
// Copyright (c) 2015 Facebook. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
-
#import "
|
|
6
|
+
#import "RNMMapCircle.h"
|
|
7
7
|
#import <React/UIView+React.h>
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
@implementation
|
|
10
|
+
@implementation RNMMapCircle {
|
|
11
11
|
BOOL _radiusSet;
|
|
12
12
|
BOOL _centerSet;
|
|
13
13
|
}
|
|
@@ -166,4 +166,4 @@
|
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
|
|
169
|
-
@end
|
|
169
|
+
@end
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
#import "
|
|
10
|
+
#import "RNMMapCircleManager.h"
|
|
11
11
|
|
|
12
12
|
#import <React/RCTBridge.h>
|
|
13
13
|
#import <React/RCTConvert.h>
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
#import <React/RCTEventDispatcher.h>
|
|
16
16
|
#import <React/RCTViewManager.h>
|
|
17
17
|
#import <React/UIView+React.h>
|
|
18
|
-
#import "
|
|
19
|
-
#import "
|
|
18
|
+
#import "RNMMapMarker.h"
|
|
19
|
+
#import "RNMMapCircle.h"
|
|
20
20
|
|
|
21
|
-
@interface
|
|
21
|
+
@interface RNMMapCircleManager()
|
|
22
22
|
|
|
23
23
|
@end
|
|
24
24
|
|
|
25
|
-
@implementation
|
|
25
|
+
@implementation RNMMapCircleManager
|
|
26
26
|
|
|
27
|
-
RCT_EXPORT_MODULE()
|
|
27
|
+
RCT_EXPORT_MODULE(RNMMapCircle)
|
|
28
28
|
|
|
29
29
|
- (UIView *)view
|
|
30
30
|
{
|
|
31
|
-
|
|
31
|
+
RNMMapCircle *circle = [RNMMapCircle new];
|
|
32
32
|
return circle;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
2
|
+
// RNMMapLocalTile.h
|
|
3
|
+
// RNMaps
|
|
4
4
|
//
|
|
5
5
|
// Created by Peter Zavadsky on 01/12/2017.
|
|
6
6
|
// Copyright © 2017 Christopher. All rights reserved.
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
#import <React/RCTComponent.h>
|
|
14
14
|
#import <React/RCTView.h>
|
|
15
|
-
#import "
|
|
16
|
-
#import "
|
|
17
|
-
#import "RCTConvert+
|
|
15
|
+
#import "RNMMapCoordinate.h"
|
|
16
|
+
#import "RNMMap.h"
|
|
17
|
+
#import "RCTConvert+RNMMap.h"
|
|
18
18
|
|
|
19
|
-
@interface
|
|
19
|
+
@interface RNMMapLocalTile : MKAnnotationView <MKOverlay>
|
|
20
20
|
|
|
21
|
-
@property (nonatomic, weak)
|
|
21
|
+
@property (nonatomic, weak) RNMMap *map;
|
|
22
22
|
|
|
23
23
|
@property (nonatomic, strong) MKTileOverlay *tileOverlay;
|
|
24
24
|
@property (nonatomic, strong) MKTileOverlayRenderer *renderer;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
2
|
+
// RNMMapLocalTile.m
|
|
3
|
+
// RNMaps
|
|
4
4
|
//
|
|
5
5
|
// Created by Peter Zavadsky on 01/12/2017.
|
|
6
6
|
// Copyright © 2017 Christopher. All rights reserved.
|
|
7
7
|
//
|
|
8
8
|
|
|
9
|
-
#import "
|
|
9
|
+
#import "RNMMapLocalTile.h"
|
|
10
10
|
#import <React/UIView+React.h>
|
|
11
|
-
#import "
|
|
11
|
+
#import "RNMMapLocalTileOverlay.h"
|
|
12
12
|
|
|
13
|
-
@implementation
|
|
13
|
+
@implementation RNMMapLocalTile {
|
|
14
14
|
BOOL _pathTemplateSet;
|
|
15
15
|
BOOL _tileSizeSet;
|
|
16
16
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
- (void) createTileOverlayAndRendererIfPossible
|
|
34
34
|
{
|
|
35
35
|
if (!_pathTemplateSet || !_tileSizeSet) return;
|
|
36
|
-
self.tileOverlay = [[
|
|
36
|
+
self.tileOverlay = [[RNMMapLocalTileOverlay alloc] initWithURLTemplate:self.pathTemplate];
|
|
37
37
|
self.tileOverlay.canReplaceMapContent = YES;
|
|
38
38
|
self.tileOverlay.tileSize = CGSizeMake(_tileSize, _tileSize);
|
|
39
39
|
self.renderer = [[MKTileOverlayRenderer alloc] initWithTileOverlay:self.tileOverlay];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
2
|
+
// RNMMapLocalTileManager.h
|
|
3
|
+
// RNMaps
|
|
4
4
|
//
|
|
5
5
|
// Created by Peter Zavadsky on 01/12/2017.
|
|
6
6
|
// Copyright © 2017 Christopher. All rights reserved.
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
#import <React/RCTViewManager.h>
|
|
10
10
|
|
|
11
|
-
@interface
|
|
11
|
+
@interface RNMMapLocalTileManager : RCTViewManager
|
|
12
12
|
|
|
13
13
|
@end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
2
|
+
// RNMMapLocalTileManager.m
|
|
3
|
+
// RNMaps
|
|
4
4
|
//
|
|
5
5
|
// Created by Peter Zavadsky on 01/12/2017.
|
|
6
6
|
// Copyright © 2017 Christopher. All rights reserved.
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
#import <React/RCTEventDispatcher.h>
|
|
13
13
|
#import <React/RCTViewManager.h>
|
|
14
14
|
#import <React/UIView+React.h>
|
|
15
|
-
#import "
|
|
16
|
-
#import "
|
|
15
|
+
#import "RNMMapMarker.h"
|
|
16
|
+
#import "RNMMapLocalTile.h"
|
|
17
17
|
|
|
18
|
-
#import "
|
|
18
|
+
#import "RNMMapLocalTileManager.h"
|
|
19
19
|
|
|
20
|
-
@interface
|
|
20
|
+
@interface RNMMapLocalTileManager()
|
|
21
21
|
|
|
22
22
|
@end
|
|
23
23
|
|
|
24
|
-
@implementation
|
|
24
|
+
@implementation RNMMapLocalTileManager
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
RCT_EXPORT_MODULE()
|
|
27
|
+
RCT_EXPORT_MODULE(RNMMapLocalTile)
|
|
28
28
|
|
|
29
29
|
- (UIView *)view
|
|
30
30
|
{
|
|
31
|
-
|
|
31
|
+
RNMMapLocalTile *tile = [RNMMapLocalTile new];
|
|
32
32
|
return tile;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// RNMMapLocalTileOverlay.h
|
|
3
3
|
// Pods
|
|
4
4
|
//
|
|
5
5
|
// Created by Peter Zavadsky on 04/12/2017.
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
#import <MapKit/MapKit.h>
|
|
9
9
|
|
|
10
|
-
@interface
|
|
10
|
+
@interface RNMMapLocalTileOverlay : MKTileOverlay
|
|
11
11
|
|
|
12
12
|
@end
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
2
|
+
// RNMMapLocalTileOverlay.m
|
|
3
|
+
// RNMaps
|
|
4
4
|
//
|
|
5
5
|
// Created by Peter Zavadsky on 04/12/2017.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
-
#import "
|
|
8
|
+
#import "RNMMapLocalTileOverlay.h"
|
|
9
9
|
|
|
10
|
-
@interface
|
|
10
|
+
@interface RNMMapLocalTileOverlay ()
|
|
11
11
|
|
|
12
12
|
@end
|
|
13
13
|
|
|
14
|
-
@implementation
|
|
14
|
+
@implementation RNMMapLocalTileOverlay
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
-(void)loadTileAtPath:(MKTileOverlayPath)path result:(void (^)(NSData *, NSError *))result {
|