react-native-map4d-map-dtqg 0.1.0 → 0.1.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.
Files changed (183) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +88 -41
  3. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  4. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  5. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  6. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  7. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  8. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  9. package/android/.gradle/8.9/gc.properties +0 -0
  10. package/android/.gradle/9.0-milestone-1/checksums/checksums.lock +0 -0
  11. package/android/.gradle/9.0-milestone-1/checksums/md5-checksums.bin +0 -0
  12. package/android/.gradle/9.0-milestone-1/checksums/sha1-checksums.bin +0 -0
  13. package/android/.gradle/9.0-milestone-1/fileChanges/last-build.bin +0 -0
  14. package/android/.gradle/9.0-milestone-1/fileHashes/fileHashes.lock +0 -0
  15. package/android/.gradle/9.0-milestone-1/gc.properties +0 -0
  16. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  17. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  18. package/android/.gradle/config.properties +2 -0
  19. package/android/.gradle/vcs-1/gc.properties +0 -0
  20. package/android/.idea/AndroidProjectSystem.xml +6 -0
  21. package/android/.idea/caches/deviceStreaming.xml +1570 -0
  22. package/android/.idea/copilot.data.migration.ask2agent.xml +6 -0
  23. package/android/.idea/gradle.xml +12 -0
  24. package/android/.idea/migrations.xml +10 -0
  25. package/android/.idea/misc.xml +10 -0
  26. package/android/.idea/runConfigurations.xml +17 -0
  27. package/android/.idea/vcs.xml +6 -0
  28. package/android/build.gradle +60 -60
  29. package/android/local.properties +8 -0
  30. package/android/src/main/AndroidManifest.xml +4 -4
  31. package/android/src/main/java/com/reactnativemap4dmap/ImageUtils.java +87 -87
  32. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapModule.java +298 -298
  33. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapPackage.java +35 -35
  34. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapViewManager.java +31 -31
  35. package/android/src/main/java/com/reactnativemap4dmap/RMFBuilding.java +167 -167
  36. package/android/src/main/java/com/reactnativemap4dmap/RMFBuildingManager.java +121 -121
  37. package/android/src/main/java/com/reactnativemap4dmap/RMFCircle.java +105 -105
  38. package/android/src/main/java/com/reactnativemap4dmap/RMFCircleManager.java +121 -121
  39. package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRenderer.java +502 -502
  40. package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRendererManager.java +143 -143
  41. package/android/src/main/java/com/reactnativemap4dmap/RMFFeature.java +17 -17
  42. package/android/src/main/java/com/reactnativemap4dmap/RMFMapView.java +1172 -1172
  43. package/android/src/main/java/com/reactnativemap4dmap/RMFMapViewManager.java +226 -226
  44. package/android/src/main/java/com/reactnativemap4dmap/RMFMarker.java +412 -412
  45. package/android/src/main/java/com/reactnativemap4dmap/RMFMarkerManager.java +211 -211
  46. package/android/src/main/java/com/reactnativemap4dmap/RMFPOI.java +222 -222
  47. package/android/src/main/java/com/reactnativemap4dmap/RMFPOIManager.java +119 -119
  48. package/android/src/main/java/com/reactnativemap4dmap/RMFPolygon.java +172 -172
  49. package/android/src/main/java/com/reactnativemap4dmap/RMFPolygonManager.java +147 -147
  50. package/android/src/main/java/com/reactnativemap4dmap/RMFPolyline.java +146 -146
  51. package/android/src/main/java/com/reactnativemap4dmap/RMFPolylineManager.java +137 -137
  52. package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlay.java +95 -95
  53. package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlayManager.java +64 -64
  54. package/android/src/main/java/com/reactnativemap4dmap/SizeReportingShadowNode.java +31 -31
  55. package/android/src/main/java/com/reactnativemap4dmap/ViewAttacherGroup.java +31 -31
  56. package/android/src/main/java/com/reactnativemap4dmap/ViewChangesTracker.java +70 -70
  57. package/android/src/main/java/vn/map4d/map/annotations/RMFBitmapDescriptor.java +9 -9
  58. package/ios/Map4dMap.h +7 -7
  59. package/ios/Map4dMap.m +14 -14
  60. package/ios/Map4dMapViewManager.m +34 -34
  61. package/ios/RCTConvert+Map4dMap.h +33 -33
  62. package/ios/RCTConvert+Map4dMap.m +112 -112
  63. package/ios/RMFCircle.h +37 -37
  64. package/ios/RMFCircle.m +100 -100
  65. package/ios/RMFCircleManager.h +18 -18
  66. package/ios/RMFCircleManager.m +155 -155
  67. package/ios/RMFCircleMap4d.h +23 -23
  68. package/ios/RMFCircleMap4d.m +13 -13
  69. package/ios/RMFCoordinate.h +22 -22
  70. package/ios/RMFCoordinate.m +13 -13
  71. package/ios/RMFDirectionsMarkerOptions.h +24 -24
  72. package/ios/RMFDirectionsMarkerOptions.m +23 -23
  73. package/ios/RMFDirectionsRenderer.h +47 -47
  74. package/ios/RMFDirectionsRenderer.m +182 -182
  75. package/ios/RMFDirectionsRendererManager.h +17 -17
  76. package/ios/RMFDirectionsRendererManager.m +84 -84
  77. package/ios/RMFDirectionsRendererMap4d.h +21 -21
  78. package/ios/RMFDirectionsRendererMap4d.m +12 -12
  79. package/ios/RMFDummyView.h +6 -6
  80. package/ios/RMFDummyView.m +12 -12
  81. package/ios/RMFEventResponse.h +39 -39
  82. package/ios/RMFEventResponse.m +98 -98
  83. package/ios/RMFIcon.h +24 -24
  84. package/ios/RMFIcon.m +35 -35
  85. package/ios/RMFMapView.h +84 -84
  86. package/ios/RMFMapView.m +376 -376
  87. package/ios/RMFMapViewManager.h +17 -17
  88. package/ios/RMFMapViewManager.m +493 -493
  89. package/ios/RMFMarker.h +57 -57
  90. package/ios/RMFMarker.m +267 -267
  91. package/ios/RMFMarkerManager.h +17 -17
  92. package/ios/RMFMarkerManager.m +156 -156
  93. package/ios/RMFMarkerMap4d.h +19 -19
  94. package/ios/RMFMarkerMap4d.m +13 -13
  95. package/ios/RMFPOI.h +38 -38
  96. package/ios/RMFPOI.m +123 -123
  97. package/ios/RMFPOIManager.h +18 -18
  98. package/ios/RMFPOIManager.m +168 -168
  99. package/ios/RMFPOIMap4d.h +22 -22
  100. package/ios/RMFPOIMap4d.m +12 -12
  101. package/ios/RMFPolygon.h +41 -41
  102. package/ios/RMFPolygon.m +106 -106
  103. package/ios/RMFPolygonManager.h +18 -18
  104. package/ios/RMFPolygonManager.m +141 -141
  105. package/ios/RMFPolygonMap4d.h +23 -23
  106. package/ios/RMFPolygonMap4d.m +15 -15
  107. package/ios/RMFPolyline.h +38 -38
  108. package/ios/RMFPolyline.m +101 -101
  109. package/ios/RMFPolylineManager.h +18 -18
  110. package/ios/RMFPolylineManager.m +139 -139
  111. package/ios/RMFPolylineMap4d.h +22 -22
  112. package/ios/RMFPolylineMap4d.m +15 -15
  113. package/ios/building/RMFBuilding.h +41 -41
  114. package/ios/building/RMFBuilding.m +104 -104
  115. package/ios/building/RMFBuildingManager.h +19 -19
  116. package/ios/building/RMFBuildingManager.m +133 -133
  117. package/ios/building/RMFBuildingMap4d.h +23 -23
  118. package/ios/building/RMFBuildingMap4d.m +15 -15
  119. package/ios/overlays/RMFTileOverlay.h +36 -36
  120. package/ios/overlays/RMFTileOverlay.m +64 -64
  121. package/ios/overlays/RMFTileOverlayManager.h +17 -17
  122. package/ios/overlays/RMFTileOverlayManager.m +27 -27
  123. package/lib/commonjs/components/MFBuilding.js +26 -26
  124. package/lib/commonjs/components/MFBuilding.js.map +1 -1
  125. package/lib/commonjs/components/MFCircle.js +20 -20
  126. package/lib/commonjs/components/MFCircle.js.map +1 -1
  127. package/lib/commonjs/components/MFDirectionsRenderer.js +32 -32
  128. package/lib/commonjs/components/MFDirectionsRenderer.js.map +1 -1
  129. package/lib/commonjs/components/MFMapView.js +133 -71
  130. package/lib/commonjs/components/MFMapView.js.map +1 -1
  131. package/lib/commonjs/components/MFMarker.js +35 -35
  132. package/lib/commonjs/components/MFMarker.js.map +1 -1
  133. package/lib/commonjs/components/MFPOI.js +20 -20
  134. package/lib/commonjs/components/MFPOI.js.map +1 -1
  135. package/lib/commonjs/components/MFPolygon.js +22 -22
  136. package/lib/commonjs/components/MFPolygon.js.map +1 -1
  137. package/lib/commonjs/components/MFPolyline.js +18 -18
  138. package/lib/commonjs/components/MFPolyline.js.map +1 -1
  139. package/lib/commonjs/components/MFTileOverlay.js +9 -9
  140. package/lib/commonjs/components/MFTileOverlay.js.map +1 -1
  141. package/lib/commonjs/components/Map4dMapView.js.map +1 -1
  142. package/lib/commonjs/components/extends/AreaFocuser.js +311 -0
  143. package/lib/commonjs/components/extends/AreaFocuser.js.map +1 -0
  144. package/lib/commonjs/index.js +8 -0
  145. package/lib/commonjs/index.js.map +1 -1
  146. package/lib/module/components/MFBuilding.js +26 -26
  147. package/lib/module/components/MFBuilding.js.map +1 -1
  148. package/lib/module/components/MFCircle.js +20 -20
  149. package/lib/module/components/MFCircle.js.map +1 -1
  150. package/lib/module/components/MFDirectionsRenderer.js +32 -32
  151. package/lib/module/components/MFDirectionsRenderer.js.map +1 -1
  152. package/lib/module/components/MFMapView.js +131 -71
  153. package/lib/module/components/MFMapView.js.map +1 -1
  154. package/lib/module/components/MFMarker.js +35 -35
  155. package/lib/module/components/MFMarker.js.map +1 -1
  156. package/lib/module/components/MFPOI.js +20 -20
  157. package/lib/module/components/MFPOI.js.map +1 -1
  158. package/lib/module/components/MFPolygon.js +22 -22
  159. package/lib/module/components/MFPolygon.js.map +1 -1
  160. package/lib/module/components/MFPolyline.js +18 -18
  161. package/lib/module/components/MFPolyline.js.map +1 -1
  162. package/lib/module/components/MFTileOverlay.js +9 -9
  163. package/lib/module/components/MFTileOverlay.js.map +1 -1
  164. package/lib/module/components/Map4dMapView.js.map +1 -1
  165. package/lib/module/components/extends/AreaFocuser.js +302 -0
  166. package/lib/module/components/extends/AreaFocuser.js.map +1 -0
  167. package/lib/module/index.js +2 -1
  168. package/lib/module/index.js.map +1 -1
  169. package/lib/typescript/components/Map4dMapView.d.ts +7 -7
  170. package/package.json +152 -152
  171. package/react-native-map4d-map.podspec +20 -20
  172. package/src/components/MFBuilding.js +187 -187
  173. package/src/components/MFCircle.js +173 -173
  174. package/src/components/MFDirectionsRenderer.js +237 -237
  175. package/src/components/MFMapView.js +447 -373
  176. package/src/components/MFMarker.js +246 -246
  177. package/src/components/MFPOI.js +184 -184
  178. package/src/components/MFPolygon.js +186 -186
  179. package/src/components/MFPolyline.js +172 -172
  180. package/src/components/MFTileOverlay.js +45 -45
  181. package/src/components/Map4dMapView.tsx +26 -26
  182. package/src/components/extends/AreaFocuser.js +339 -0
  183. package/src/index.js +23 -21
@@ -1,23 +1,23 @@
1
- //
2
- // RMFBuildingMap4d.h
3
- // react-native-map4d-map
4
- //
5
- // Created by Huy Dang on 6/10/25.
6
- // Copyright © 2025 IOTLink. All rights reserved.
7
- //
8
-
9
- #ifndef RMFBuildingMap4d_h
10
- #define RMFBuildingMap4d_h
11
-
12
- #import <Map4dMap/Map4dMap.h>
13
-
14
- @class RMFBuilding;
15
-
16
- @interface RMFBuildingMap4d : MFBuilding
17
-
18
- @property (nonatomic, weak) RMFBuilding *reactBuilding;
19
-
20
- @end
21
-
22
-
23
- #endif /* RMFBuildingMap4d_h */
1
+ //
2
+ // RMFBuildingMap4d.h
3
+ // react-native-map4d-map
4
+ //
5
+ // Created by Huy Dang on 6/10/25.
6
+ // Copyright © 2025 IOTLink. All rights reserved.
7
+ //
8
+
9
+ #ifndef RMFBuildingMap4d_h
10
+ #define RMFBuildingMap4d_h
11
+
12
+ #import <Map4dMap/Map4dMap.h>
13
+
14
+ @class RMFBuilding;
15
+
16
+ @interface RMFBuildingMap4d : MFBuilding
17
+
18
+ @property (nonatomic, weak) RMFBuilding *reactBuilding;
19
+
20
+ @end
21
+
22
+
23
+ #endif /* RMFBuildingMap4d_h */
@@ -1,15 +1,15 @@
1
- //
2
- // RMFBuildingMap4d.m
3
- // react-native-map4d-map
4
- //
5
- // Created by Huy Dang on 6/10/25.
6
- // Copyright © 2025 IOTLink. All rights reserved.
7
- //
8
-
9
- #import "RMFBuildingMap4d.h"
10
-
11
- @implementation RMFBuildingMap4d
12
-
13
-
14
-
15
- @end
1
+ //
2
+ // RMFBuildingMap4d.m
3
+ // react-native-map4d-map
4
+ //
5
+ // Created by Huy Dang on 6/10/25.
6
+ // Copyright © 2025 IOTLink. All rights reserved.
7
+ //
8
+
9
+ #import "RMFBuildingMap4d.h"
10
+
11
+ @implementation RMFBuildingMap4d
12
+
13
+
14
+
15
+ @end
@@ -1,36 +1,36 @@
1
- //
2
- // RMFTileOverlay.h
3
- // react-native-map4d-map
4
- //
5
- // Created by Huy Dang on 12/15/21.
6
- //
7
-
8
- #ifndef RMFTileOverlay_h
9
- #define RMFTileOverlay_h
10
-
11
- #import <React/UIView+React.h>
12
- #import <Map4dMap/Map4dMap.h>
13
- #import "RMFMapView.h"
14
-
15
- @class RMFTileOverlay;
16
-
17
- @interface RMFTileURLConstructor : NSObject<MFTileURLConstructor>
18
- @property(nonatomic, weak, nullable) RMFTileOverlay *reactTileOverlay;
19
- @end
20
-
21
- #pragma mark - RMFTileOverlay
22
-
23
- @interface RMFTileOverlay : UIView
24
-
25
- @property(nonatomic, strong, nullable) MFURLTileLayer* urlTileLayer;
26
-
27
- @property(nonatomic, strong, nullable) NSString *urlTemplate;
28
- @property(nonatomic, assign) float zIndex;
29
- @property(nonatomic, assign) BOOL visible;
30
-
31
- - (void)setMapView:(RMFMapView* _Nullable)mapView;
32
-
33
- @end
34
-
35
-
36
- #endif /* RMFTileOverlay_h */
1
+ //
2
+ // RMFTileOverlay.h
3
+ // react-native-map4d-map
4
+ //
5
+ // Created by Huy Dang on 12/15/21.
6
+ //
7
+
8
+ #ifndef RMFTileOverlay_h
9
+ #define RMFTileOverlay_h
10
+
11
+ #import <React/UIView+React.h>
12
+ #import <Map4dMap/Map4dMap.h>
13
+ #import "RMFMapView.h"
14
+
15
+ @class RMFTileOverlay;
16
+
17
+ @interface RMFTileURLConstructor : NSObject<MFTileURLConstructor>
18
+ @property(nonatomic, weak, nullable) RMFTileOverlay *reactTileOverlay;
19
+ @end
20
+
21
+ #pragma mark - RMFTileOverlay
22
+
23
+ @interface RMFTileOverlay : UIView
24
+
25
+ @property(nonatomic, strong, nullable) MFURLTileLayer* urlTileLayer;
26
+
27
+ @property(nonatomic, strong, nullable) NSString *urlTemplate;
28
+ @property(nonatomic, assign) float zIndex;
29
+ @property(nonatomic, assign) BOOL visible;
30
+
31
+ - (void)setMapView:(RMFMapView* _Nullable)mapView;
32
+
33
+ @end
34
+
35
+
36
+ #endif /* RMFTileOverlay_h */
@@ -1,64 +1,64 @@
1
- //
2
- // RMFTileOverlay.m
3
- // react-native-map4d-map
4
- //
5
- // Created by Huy Dang on 12/15/21.
6
- //
7
-
8
- #import "RMFTileOverlay.h"
9
-
10
- @implementation RMFTileURLConstructor
11
-
12
- - (NSURL * _Nullable)getTileUrlWithX:(NSUInteger)x y:(NSUInteger)y zoom:(NSUInteger)zoom {
13
- if (_reactTileOverlay.urlTemplate == nil) {
14
- return nil;
15
- }
16
-
17
- NSString* url = _reactTileOverlay.urlTemplate;
18
- if ([url containsString:@"{z}"]) {
19
- url = [url stringByReplacingOccurrencesOfString:@"{z}" withString:[@(zoom) stringValue]];
20
- }
21
- else {
22
- url = [url stringByReplacingOccurrencesOfString:@"{zoom}" withString:[@(zoom) stringValue]];
23
- }
24
- url = [url stringByReplacingOccurrencesOfString:@"{x}" withString:[@(x) stringValue]];
25
- url = [url stringByReplacingOccurrencesOfString:@"{y}" withString:[@(y) stringValue]];
26
- return [NSURL URLWithString:url];
27
- }
28
-
29
- @end
30
-
31
- @implementation RMFTileOverlay
32
-
33
- - (instancetype)init {
34
- if (self = [super init]) {
35
- RMFTileURLConstructor* constructor = [[RMFTileURLConstructor alloc] init];
36
- constructor.reactTileOverlay = self;
37
-
38
- _urlTileLayer = [MFURLTileLayer tileLayerWithURLConstructor:constructor];
39
- }
40
- return self;
41
- }
42
-
43
- - (void)setMapView:(RMFMapView *)mapView {
44
- _urlTileLayer.map = mapView;
45
- }
46
-
47
- - (void)setUrlTemplate:(NSString *)urlTemplate {
48
- _urlTemplate = urlTemplate;
49
- if (_urlTileLayer.map != nil) {
50
- [_urlTileLayer clearTileCache];
51
- }
52
- }
53
-
54
- - (void)setVisible:(BOOL)visible {
55
- _visible = visible;
56
- _urlTileLayer.isHidden = !visible;
57
- }
58
-
59
- - (void)setZIndex:(float)zIndex {
60
- _zIndex = zIndex;
61
- _urlTileLayer.zIndex = zIndex;
62
- }
63
-
64
- @end
1
+ //
2
+ // RMFTileOverlay.m
3
+ // react-native-map4d-map
4
+ //
5
+ // Created by Huy Dang on 12/15/21.
6
+ //
7
+
8
+ #import "RMFTileOverlay.h"
9
+
10
+ @implementation RMFTileURLConstructor
11
+
12
+ - (NSURL * _Nullable)getTileUrlWithX:(NSUInteger)x y:(NSUInteger)y zoom:(NSUInteger)zoom {
13
+ if (_reactTileOverlay.urlTemplate == nil) {
14
+ return nil;
15
+ }
16
+
17
+ NSString* url = _reactTileOverlay.urlTemplate;
18
+ if ([url containsString:@"{z}"]) {
19
+ url = [url stringByReplacingOccurrencesOfString:@"{z}" withString:[@(zoom) stringValue]];
20
+ }
21
+ else {
22
+ url = [url stringByReplacingOccurrencesOfString:@"{zoom}" withString:[@(zoom) stringValue]];
23
+ }
24
+ url = [url stringByReplacingOccurrencesOfString:@"{x}" withString:[@(x) stringValue]];
25
+ url = [url stringByReplacingOccurrencesOfString:@"{y}" withString:[@(y) stringValue]];
26
+ return [NSURL URLWithString:url];
27
+ }
28
+
29
+ @end
30
+
31
+ @implementation RMFTileOverlay
32
+
33
+ - (instancetype)init {
34
+ if (self = [super init]) {
35
+ RMFTileURLConstructor* constructor = [[RMFTileURLConstructor alloc] init];
36
+ constructor.reactTileOverlay = self;
37
+
38
+ _urlTileLayer = [MFURLTileLayer tileLayerWithURLConstructor:constructor];
39
+ }
40
+ return self;
41
+ }
42
+
43
+ - (void)setMapView:(RMFMapView *)mapView {
44
+ _urlTileLayer.map = mapView;
45
+ }
46
+
47
+ - (void)setUrlTemplate:(NSString *)urlTemplate {
48
+ _urlTemplate = urlTemplate;
49
+ if (_urlTileLayer.map != nil) {
50
+ [_urlTileLayer clearTileCache];
51
+ }
52
+ }
53
+
54
+ - (void)setVisible:(BOOL)visible {
55
+ _visible = visible;
56
+ _urlTileLayer.isHidden = !visible;
57
+ }
58
+
59
+ - (void)setZIndex:(float)zIndex {
60
+ _zIndex = zIndex;
61
+ _urlTileLayer.zIndex = zIndex;
62
+ }
63
+
64
+ @end
@@ -1,17 +1,17 @@
1
- //
2
- // RMFTileOverlayManager.h
3
- // react-native-map4d-map
4
- //
5
- // Created by Huy Dang on 12/15/21.
6
- //
7
-
8
- #ifndef RMFTileOverlayManager_h
9
- #define RMFTileOverlayManager_h
10
-
11
- #import <React/RCTViewManager.h>
12
-
13
- @interface RMFTileOverlayManager : RCTViewManager
14
-
15
- @end
16
-
17
- #endif /* RMFTileOverlayManager_h */
1
+ //
2
+ // RMFTileOverlayManager.h
3
+ // react-native-map4d-map
4
+ //
5
+ // Created by Huy Dang on 12/15/21.
6
+ //
7
+
8
+ #ifndef RMFTileOverlayManager_h
9
+ #define RMFTileOverlayManager_h
10
+
11
+ #import <React/RCTViewManager.h>
12
+
13
+ @interface RMFTileOverlayManager : RCTViewManager
14
+
15
+ @end
16
+
17
+ #endif /* RMFTileOverlayManager_h */
@@ -1,27 +1,27 @@
1
- //
2
- // RMFTileOverlayManager.m
3
- // react-native-map4d-map
4
- //
5
- // Created by Huy Dang on 12/15/21.
6
- //
7
-
8
- #import "RMFTileOverlayManager.h"
9
- #import "RMFTileOverlay.h"
10
- #import <React/RCTConvert+CoreLocation.h>
11
- #import <React/RCTBridge.h>
12
- #import <React/RCTUIManager.h>
13
-
14
- @implementation RMFTileOverlayManager
15
-
16
- RCT_EXPORT_MODULE(RMFTileOverlay)
17
-
18
- - (UIView *)view {
19
- RMFTileOverlay * overlay = [[RMFTileOverlay alloc] init];
20
- return overlay;
21
- }
22
-
23
- RCT_EXPORT_VIEW_PROPERTY(urlTemplate, NSString)
24
- RCT_EXPORT_VIEW_PROPERTY(zIndex, float)
25
- RCT_EXPORT_VIEW_PROPERTY(visible, BOOL)
26
-
27
- @end
1
+ //
2
+ // RMFTileOverlayManager.m
3
+ // react-native-map4d-map
4
+ //
5
+ // Created by Huy Dang on 12/15/21.
6
+ //
7
+
8
+ #import "RMFTileOverlayManager.h"
9
+ #import "RMFTileOverlay.h"
10
+ #import <React/RCTConvert+CoreLocation.h>
11
+ #import <React/RCTBridge.h>
12
+ #import <React/RCTUIManager.h>
13
+
14
+ @implementation RMFTileOverlayManager
15
+
16
+ RCT_EXPORT_MODULE(RMFTileOverlay)
17
+
18
+ - (UIView *)view {
19
+ RMFTileOverlay * overlay = [[RMFTileOverlay alloc] init];
20
+ return overlay;
21
+ }
22
+
23
+ RCT_EXPORT_VIEW_PROPERTY(urlTemplate, NSString)
24
+ RCT_EXPORT_VIEW_PROPERTY(zIndex, float)
25
+ RCT_EXPORT_VIEW_PROPERTY(visible, BOOL)
26
+
27
+ @end
@@ -21,69 +21,69 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
21
21
  const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
22
22
  const propTypes = { ...viewPropTypes,
23
23
 
24
- /**
25
- * The name of the building.
24
+ /**
25
+ * The name of the building.
26
26
  */
27
27
  name: _propTypes.default.string,
28
28
 
29
- /**
30
- * The position of the building
29
+ /**
30
+ * The position of the building
31
31
  */
32
32
  coordinate: _propTypes.default.shape({
33
- /**
34
- * Position for the building.
33
+ /**
34
+ * Position for the building.
35
35
  */
36
36
  latitude: _propTypes.default.number.isRequired,
37
37
  longitude: _propTypes.default.number.isRequired
38
38
  }),
39
39
 
40
- /**
41
- * The model URL for the building.
40
+ /**
41
+ * The model URL for the building.
42
42
  */
43
43
  modelUrl: _propTypes.default.string,
44
44
 
45
- /**
46
- * The texture URL for the building.
45
+ /**
46
+ * The texture URL for the building.
47
47
  */
48
48
  textureUrl: _propTypes.default.string,
49
49
 
50
- /**
51
- * The scale of the building.
50
+ /**
51
+ * The scale of the building.
52
52
  */
53
53
  scale: _propTypes.default.number,
54
54
 
55
- /**
56
- * The bearing of the building.
55
+ /**
56
+ * The bearing of the building.
57
57
  */
58
58
  bearing: _propTypes.default.number,
59
59
 
60
- /**
61
- * The elevation of the building.
60
+ /**
61
+ * The elevation of the building.
62
62
  */
63
63
  elevation: _propTypes.default.number,
64
64
 
65
- /**
66
- * Is the building selectable by the user ?
65
+ /**
66
+ * Is the building selectable by the user ?
67
67
  */
68
68
  selected: _propTypes.default.bool,
69
69
 
70
- /**
71
- * touchable
70
+ /**
71
+ * touchable
72
72
  */
73
73
  touchable: _propTypes.default.bool,
74
74
 
75
- /**
76
- * visible
75
+ /**
76
+ * visible
77
77
  */
78
78
  visible: _propTypes.default.bool,
79
79
 
80
- /**
81
- * userData
80
+ /**
81
+ * userData
82
82
  */
83
83
  userData: _propTypes.default.object,
84
84
 
85
- /**
86
- * Callback that is called when the user presses on the building
85
+ /**
86
+ * Callback that is called when the user presses on the building
87
87
  */
88
88
  onPress: _propTypes.default.func
89
89
  };
@@ -1 +1 @@
1
- {"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","name","PropTypes","string","coordinate","shape","latitude","number","isRequired","longitude","modelUrl","textureUrl","scale","bearing","elevation","selected","bool","touchable","visible","userData","object","onPress","func","MFBuilding","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","building","setName","_runCommand","setScale","setBearing","setElevation","setSelected","setTouchable","setVisible","setUserData","_getHandle","findNodeHandle","args","Platform","OS","NativeModules","UIManager","dispatchViewManagerCommand","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","render","RMFBuilding","requireNativeComponent"],"sources":["MFBuilding.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {ViewPropTypes} from 'deprecated-react-native-prop-types';\nimport {\n requireNativeComponent,\n Platform,\n NativeModules,\n findNodeHandle\n} from 'react-native';\n\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\nconst viewPropTypes = ViewPropTypes || View.propTypes;\n\nconst propTypes = {\n ...viewPropTypes,\n\n /**\n * The name of the building.\n */\n name: PropTypes.string,\n\n /**\n * The position of the building\n */\n coordinate: PropTypes.shape({\n /**\n * Position for the building.\n */\n latitude: PropTypes.number.isRequired,\n longitude: PropTypes.number.isRequired,\n }),\n\n /**\n * The model URL for the building.\n */\n modelUrl: PropTypes.string,\n\n /**\n * The texture URL for the building.\n */\n textureUrl: PropTypes.string,\n\n /**\n * The scale of the building.\n */\n scale: PropTypes.number,\n\n /**\n * The bearing of the building.\n */\n bearing: PropTypes.number,\n\n /**\n * The elevation of the building.\n */\n elevation: PropTypes.number,\n\n /**\n * Is the building selectable by the user ?\n */\n selected: PropTypes.bool,\n\n /**\n * touchable\n */\n touchable: PropTypes.bool,\n\n /**\n * visible\n */\n visible: PropTypes.bool,\n\n /**\n * userData\n */\n userData:PropTypes.object,\n\n /**\n * Callback that is called when the user presses on the building\n */\n onPress: PropTypes.func,\n};\n\n\nclass MFBuilding extends React.Component {\n constructor(props) {\n super(props);\n this._onPress = this._onPress.bind(this)\n this._ref = this._ref.bind(this)\n }\n\n _onPress(event) {\n event.stopPropagation();\n if (this.props.onPress) {\n this.props.onPress(event);\n }\n }\n\n _ref(ref) {\n this.building = ref;\n }\n\n setName(name) {\n this._runCommand(\"setName\", [name])\n }\n\n setScale(scale) {\n this._runCommand(\"setScale\", [scale])\n }\n\n setBearing(bearing) {\n this._runCommand(\"setBearing\", [bearing])\n }\n\n setElevation(elevation) {\n this._runCommand(\"setElevation\", [elevation])\n }\n\n setSelected(selected) {\n this._runCommand(\"setSelected\", [selected])\n }\n\n setTouchable(touchable) {\n this._runCommand(\"setTouchable\", [touchable])\n }\n\n setVisible(visible) {\n this._runCommand(\"setVisible\", [visible])\n }\n\n setUserData(userData) {\n this._runCommand(\"setUserData\", [userData])\n }\n\n _getHandle() {\n return findNodeHandle(this.building);\n }\n\n _runCommand(name, args) {\n switch (Platform.OS) {\n case 'android':\n NativeModules.UIManager.dispatchViewManagerCommand(\n this._getHandle(),\n this._uiManagerCommand(name),\n args\n );\n break;\n\n case 'ios':\n this._mapManagerCommand(name)(this._getHandle(), ...args);\n break;\n\n default:\n break;\n }\n }\n\n _uiManagerCommand(name) {\n const UIManager = NativeModules.UIManager;\n const componentName = \"RMFBuilding\";\n\n if (!UIManager.getViewManagerConfig) {\n // RN < 0.58\n return UIManager[componentName].Commands[name];\n }\n\n // RN >= 0.58\n return UIManager.getViewManagerConfig(componentName).Commands[name];\n }\n\n _mapManagerCommand(name) {\n return NativeModules[`RMFBuilding`][name];\n }\n\n render() {\n return <RMFBuilding\n {...this.props}\n ref={this._ref}\n onPress={this._onPress}\n />;\n }\n}\n\nMFBuilding.propTypes = propTypes;\n\nvar RMFBuilding = requireNativeComponent(`RMFBuilding`, MFBuilding);\n\nexport { MFBuilding }"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAOA;AACA,MAAMA,aAAa,GAAGC,6CAAA,IAAiBC,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGH,aADa;;EAGhB;AACF;AACA;EACEI,IAAI,EAAEC,kBAAA,CAAUC,MANA;;EAQhB;AACF;AACA;EACEC,UAAU,EAAEF,kBAAA,CAAUG,KAAV,CAAgB;IAC1B;AACJ;AACA;IACIC,QAAQ,EAAEJ,kBAAA,CAAUK,MAAV,CAAiBC,UAJD;IAK1BC,SAAS,EAAEP,kBAAA,CAAUK,MAAV,CAAiBC;EALF,CAAhB,CAXI;;EAmBhB;AACF;AACA;EACEE,QAAQ,EAAER,kBAAA,CAAUC,MAtBJ;;EAwBhB;AACF;AACA;EACEQ,UAAU,EAAET,kBAAA,CAAUC,MA3BN;;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AAkCvD,IAAlC,CAAP;IACD,CAPqB,CAStB;;;IACA,OAAOiD,SAAS,CAACK,oBAAV,CAA+BD,aAA/B,EAA8CE,QAA9C,CAAuDvD,IAAvD,CAAP;EACD;;EAEDoD,kBAAkB,CAACpD,IAAD,EAAO;IACvB,OAAOgD,0BAAA,CAAe,aAAf,EAA6BhD,IAA7B,CAAP;EACD;;EAEDwD,MAAM,GAAG;IACP,oBAAO,6BAAC,WAAD,eACD,KAAK9B,KADJ;MAEL,GAAG,EAAE,KAAKG,IAFL;MAGL,OAAO,EAAE,KAAKF;IAHT,GAAP;EAKD;;AAhGsC;;;AAmGzCL,UAAU,CAACvB,SAAX,GAAuBA,SAAvB;AAEA,IAAI0D,WAAW,GAAG,IAAAC,mCAAA,EAAwB,aAAxB,EAAsCpC,UAAtC,CAAlB"}
1
+ {"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","name","PropTypes","string","coordinate","shape","latitude","number","isRequired","longitude","modelUrl","textureUrl","scale","bearing","elevation","selected","bool","touchable","visible","userData","object","onPress","func","MFBuilding","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","building","setName","_runCommand","setScale","setBearing","setElevation","setSelected","setTouchable","setVisible","setUserData","_getHandle","findNodeHandle","args","Platform","OS","NativeModules","UIManager","dispatchViewManagerCommand","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","render","RMFBuilding","requireNativeComponent"],"sources":["MFBuilding.js"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport {ViewPropTypes} from 'deprecated-react-native-prop-types';\r\nimport {\r\n requireNativeComponent,\r\n Platform,\r\n NativeModules,\r\n findNodeHandle\r\n} from 'react-native';\r\n\r\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\r\nconst viewPropTypes = ViewPropTypes || View.propTypes;\r\n\r\nconst propTypes = {\r\n ...viewPropTypes,\r\n\r\n /**\r\n * The name of the building.\r\n */\r\n name: PropTypes.string,\r\n\r\n /**\r\n * The position of the building\r\n */\r\n coordinate: PropTypes.shape({\r\n /**\r\n * Position for the building.\r\n */\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }),\r\n\r\n /**\r\n * The model URL for the building.\r\n */\r\n modelUrl: PropTypes.string,\r\n\r\n /**\r\n * The texture URL for the building.\r\n */\r\n textureUrl: PropTypes.string,\r\n\r\n /**\r\n * The scale of the building.\r\n */\r\n scale: PropTypes.number,\r\n\r\n /**\r\n * The bearing of the building.\r\n */\r\n bearing: PropTypes.number,\r\n\r\n /**\r\n * The elevation of the building.\r\n */\r\n elevation: PropTypes.number,\r\n\r\n /**\r\n * Is the building selectable by the user ?\r\n */\r\n selected: PropTypes.bool,\r\n\r\n /**\r\n * touchable\r\n */\r\n touchable: PropTypes.bool,\r\n\r\n /**\r\n * visible\r\n */\r\n visible: PropTypes.bool,\r\n\r\n /**\r\n * userData\r\n */\r\n userData:PropTypes.object,\r\n\r\n /**\r\n * Callback that is called when the user presses on the building\r\n */\r\n onPress: PropTypes.func,\r\n};\r\n\r\n\r\nclass MFBuilding extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this._onPress = this._onPress.bind(this)\r\n this._ref = this._ref.bind(this)\r\n }\r\n\r\n _onPress(event) {\r\n event.stopPropagation();\r\n if (this.props.onPress) {\r\n this.props.onPress(event);\r\n }\r\n }\r\n\r\n _ref(ref) {\r\n this.building = ref;\r\n }\r\n\r\n setName(name) {\r\n this._runCommand(\"setName\", [name])\r\n }\r\n\r\n setScale(scale) {\r\n this._runCommand(\"setScale\", [scale])\r\n }\r\n\r\n setBearing(bearing) {\r\n this._runCommand(\"setBearing\", [bearing])\r\n }\r\n\r\n setElevation(elevation) {\r\n this._runCommand(\"setElevation\", [elevation])\r\n }\r\n\r\n setSelected(selected) {\r\n this._runCommand(\"setSelected\", [selected])\r\n }\r\n\r\n setTouchable(touchable) {\r\n this._runCommand(\"setTouchable\", [touchable])\r\n }\r\n\r\n setVisible(visible) {\r\n this._runCommand(\"setVisible\", [visible])\r\n }\r\n\r\n setUserData(userData) {\r\n this._runCommand(\"setUserData\", [userData])\r\n }\r\n\r\n _getHandle() {\r\n return findNodeHandle(this.building);\r\n }\r\n\r\n _runCommand(name, args) {\r\n switch (Platform.OS) {\r\n case 'android':\r\n NativeModules.UIManager.dispatchViewManagerCommand(\r\n this._getHandle(),\r\n this._uiManagerCommand(name),\r\n args\r\n );\r\n break;\r\n\r\n case 'ios':\r\n this._mapManagerCommand(name)(this._getHandle(), ...args);\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n _uiManagerCommand(name) {\r\n const UIManager = NativeModules.UIManager;\r\n const componentName = \"RMFBuilding\";\r\n\r\n if (!UIManager.getViewManagerConfig) {\r\n // RN < 0.58\r\n return UIManager[componentName].Commands[name];\r\n }\r\n\r\n // RN >= 0.58\r\n return UIManager.getViewManagerConfig(componentName).Commands[name];\r\n }\r\n\r\n _mapManagerCommand(name) {\r\n return NativeModules[`RMFBuilding`][name];\r\n }\r\n\r\n render() {\r\n return <RMFBuilding\r\n {...this.props}\r\n ref={this._ref}\r\n onPress={this._onPress}\r\n />;\r\n }\r\n}\r\n\r\nMFBuilding.propTypes = propTypes;\r\n\r\nvar RMFBuilding = requireNativeComponent(`RMFBuilding`, MFBuilding);\r\n\r\nexport { MFBuilding }"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAOA;AACA,MAAMA,aAAa,GAAGC,6CAAA,IAAiBC,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGH,aADa;;EAGhB;AACF;AACA;EACEI,IAAI,EAAEC,kBAAA,CAAUC,MANA;;EAQhB;AACF;AACA;EACEC,UAAU,EAAEF,kBAAA,CAAUG,KAAV,CAAgB;IAC1B;AACJ;AACA;IACIC,QAAQ,EAAEJ,kBAAA,CAAUK,MAAV,CAAiBC,UAJD;IAK1BC,SAAS,EAAEP,kBAAA,CAAUK,MAAV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AAcC,SAAhC;IACA,MAAMI,aAAa,GAAG,aAAtB;;IAEA,IAAI,CAACJ,SAAS,CAACK,oBAAf,EAAqC;MACnC;MACA,OAAOL,SAAS,CAACI,aAAD,CAAT,CAAyBE,QAAzB,CAAkCvD,IAAlC,CAAP;IACD,CAPqB,CAStB;;;IACA,OAAOiD,SAAS,CAACK,oBAAV,CAA+BD,aAA/B,EAA8CE,QAA9C,CAAuDvD,IAAvD,CAAP;EACD;;EAEDoD,kBAAkB,CAACpD,IAAD,EAAO;IACvB,OAAOgD,0BAAA,CAAe,aAAf,EAA6BhD,IAA7B,CAAP;EACD;;EAEDwD,MAAM,GAAG;IACP,oBAAO,6BAAC,WAAD,eACD,KAAK9B,KADJ;MAEL,GAAG,EAAE,KAAKG,IAFL;MAGL,OAAO,EAAE,KAAKF;IAHT,GAAP;EAKD;;AAhGsC;;;AAmGzCL,UAAU,CAACvB,SAAX,GAAuBA,SAAvB;AAEA,IAAI0D,WAAW,GAAG,IAAAC,mCAAA,EAAwB,aAAxB,EAAsCpC,UAAtC,CAAlB"}
@@ -21,54 +21,54 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
21
21
  const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
22
22
  const propTypes = { ...viewPropTypes,
23
23
 
24
- /**
25
- * The coordinate of the center of the circle
24
+ /**
25
+ * The coordinate of the center of the circle
26
26
  */
27
27
  center: _propTypes.default.shape({
28
- /**
29
- * Coordinates for the center of the circle.
28
+ /**
29
+ * Coordinates for the center of the circle.
30
30
  */
31
31
  latitude: _propTypes.default.number.isRequired,
32
32
  longitude: _propTypes.default.number.isRequired
33
33
  }).isRequired,
34
34
 
35
- /**
36
- * The radius of the circle to be drawn (in meters)
35
+ /**
36
+ * The radius of the circle to be drawn (in meters)
37
37
  */
38
38
  radius: _propTypes.default.number.isRequired,
39
39
 
40
- /**
41
- * The stroke width to use for the circle.
40
+ /**
41
+ * The stroke width to use for the circle.
42
42
  */
43
43
  strokeWidth: _propTypes.default.number,
44
44
 
45
- /**
46
- * The stroke color to use for the circle.
45
+ /**
46
+ * The stroke color to use for the circle.
47
47
  */
48
48
  strokeColor: _deprecatedReactNativePropTypes.ColorPropType,
49
49
 
50
- /**
51
- * The fill color to use for the circle.
50
+ /**
51
+ * The fill color to use for the circle.
52
52
  */
53
53
  fillColor: _deprecatedReactNativePropTypes.ColorPropType,
54
54
 
55
- /**
56
- * zIndex
55
+ /**
56
+ * zIndex
57
57
  */
58
58
  zIndex: _propTypes.default.number,
59
59
 
60
- /**
61
- * visible
60
+ /**
61
+ * visible
62
62
  */
63
63
  visible: _propTypes.default.bool,
64
64
 
65
- /**
66
- * userData
65
+ /**
66
+ * userData
67
67
  */
68
68
  userData: _propTypes.default.object,
69
69
 
70
- /**
71
- * Callback that is called when the user presses on the circle
70
+ /**
71
+ * Callback that is called when the user presses on the circle
72
72
  */
73
73
  onPress: _propTypes.default.func
74
74
  }; // const defaultProps = {
@@ -1 +1 @@
1
- {"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","center","PropTypes","shape","latitude","number","isRequired","longitude","radius","strokeWidth","strokeColor","ColorPropType","fillColor","zIndex","visible","bool","userData","object","onPress","func","MFCircle","React","Component","constructor","props","_onPress","bind","_ref","setCenter","_runCommand","setRadius","setFillColor","color","processColor","setStrokeColor","setStrokeWidth","width","setUserData","setZIndex","setVisible","_getHandle","findNodeHandle","circle","name","args","Platform","OS","NativeModules","UIManager","dispatchViewManagerCommand","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","event","stopPropagation","ref","render","RMFCircle","requireNativeComponent"],"sources":["MFCircle.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\nimport {\n requireNativeComponent,\n Platform,\n NativeModules,\n findNodeHandle,\n processColor\n} from 'react-native';\n\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\nconst viewPropTypes = ViewPropTypes || View.propTypes;\n\nconst propTypes = {\n ...viewPropTypes,\n\n /**\n * The coordinate of the center of the circle\n */\n center: PropTypes.shape({\n /**\n * Coordinates for the center of the circle.\n */\n latitude: PropTypes.number.isRequired,\n longitude: PropTypes.number.isRequired,\n }).isRequired,\n\n /**\n * The radius of the circle to be drawn (in meters)\n */\n radius: PropTypes.number.isRequired,\n\n /**\n * The stroke width to use for the circle.\n */\n strokeWidth: PropTypes.number,\n\n /**\n * The stroke color to use for the circle.\n */\n strokeColor: ColorPropType,\n\n /**\n * The fill color to use for the circle.\n */\n fillColor: ColorPropType,\n\n /**\n * zIndex\n */\n zIndex: PropTypes.number,\n\n /**\n * visible\n */\n visible: PropTypes.bool,\n\n /**\n * userData\n */\n userData:PropTypes.object,\n\n /**\n * Callback that is called when the user presses on the circle\n */\n onPress: PropTypes.func,\n};\n\n// const defaultProps = {\n// strokeColor: '#000',\n// strokeWidth: 1,\n// };\n\nclass MFCircle extends React.Component {\n constructor(props) {\n super(props);\n this._onPress = this._onPress.bind(this)\n this._ref = this._ref.bind(this)\n }\n\n setCenter(center) {\n this._runCommand(\"setCenter\", [center])\n }\n setRadius(radius) {\n this._runCommand(\"setRadius\", [radius])\n }\n setFillColor(color) {\n this._runCommand(\"setFillColor\", [processColor(color)])\n }\n setStrokeColor(color) {\n this._runCommand(\"setStrokeColor\", [processColor(color)])\n }\n setStrokeWidth(width) {\n this._runCommand(\"setStrokeWidth\", [width])\n }\n setUserData(userData) {\n this._runCommand(\"setUserData\", [userData])\n }\n setZIndex(zIndex) {\n this._runCommand(\"setZIndex\", [zIndex])\n }\n setVisible(visible) {\n this._runCommand(\"setVisible\", [visible])\n }\n\n _getHandle() {\n return findNodeHandle(this.circle);\n }\n\n\n _runCommand(name, args) {\n switch (Platform.OS) {\n case 'android':\n NativeModules.UIManager.dispatchViewManagerCommand(\n this._getHandle(),\n this._uiManagerCommand(name),\n args\n );\n break;\n\n case 'ios':\n this._mapManagerCommand(name)(this._getHandle(), ...args);\n break;\n\n default:\n break;\n }\n }\n\n _uiManagerCommand(name) {\n const UIManager = NativeModules.UIManager;\n const componentName = \"RMFCircle\";\n\n if (!UIManager.getViewManagerConfig) {\n // RN < 0.58\n return UIManager[componentName].Commands[name];\n }\n\n // RN >= 0.58 \n return UIManager.getViewManagerConfig(componentName).Commands[name];\n }\n \n _mapManagerCommand(name) {\n return NativeModules[`RMFCircle`][name];\n }\n\n _onPress(event) {\n event.stopPropagation();\n if (this.props.onPress) {\n this.props.onPress(event);\n }\n }\n\n _ref(ref) {\n this.circle = ref;\n }\n\n render() {\n return <RMFCircle\n {...this.props}\n ref={this._ref}\n onPress={this._onPress}\n />;\n }\n}\n\nMFCircle.propTypes = propTypes;\n// MFCircle.defaultProps = defaultProps;\n\nvar RMFCircle = requireNativeComponent(`RMFCircle`, MFCircle);\n\nexport {MFCircle}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAQA;AACA,MAAMA,aAAa,GAAGC,6CAAA,IAAiBC,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGH,aADa;;EAGhB;AACF;AACA;EACEI,MAAM,EAAEC,kBAAA,CAAUC,KAAV,CAAgB;IACtB;AACJ;AACA;IACIC,QAAQ,EAAEF,kBAAA,CAAUG,MAAV,CAAiBC,UAJL;IAKtBC,SAAS,EAAEL,kBAAA,CAAUG,MAAV,CAAiBC;EALN,CAAhB,EAMLA,UAZa;;EAchB;AACF;AACA;EACEE,MAAM,EAAEN,kBAAA,CAAUG,MAAV,CAAiBC,UAjBT;;EAmBhB;AACF;AACA;EACEG,WAAW,EAAEP,kBAAA,CAAUG,MAtBP;;EAwBhB;AACF;AACA;EACEK,WAAW,EAAEC,6CA3BG;;EA6BhB;AACF;AACA;EACEC,SAAS,EAAED,6CAhCK;;EAkChB;AACF;AACA;EACEE,MAAM,EAAEX,kBAAA,CAAUG,MArCF;;EAuChB;AACF;AACA;EACES,OAAO,EAAEZ,kBAAA,CA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,GAAG,EAAE,KAAKG,IAFL;MAGL,OAAO,EAAE,KAAKF;IAHT,GAAP;EAKD;;AA1FoC;;;AA6FvCL,QAAQ,CAACpB,SAAT,GAAqBA,SAArB,C,CACA;;AAEA,IAAI2D,SAAS,GAAG,IAAAC,mCAAA,EAAwB,WAAxB,EAAoCxC,QAApC,CAAhB"}
1
+ {"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","center","PropTypes","shape","latitude","number","isRequired","longitude","radius","strokeWidth","strokeColor","ColorPropType","fillColor","zIndex","visible","bool","userData","object","onPress","func","MFCircle","React","Component","constructor","props","_onPress","bind","_ref","setCenter","_runCommand","setRadius","setFillColor","color","processColor","setStrokeColor","setStrokeWidth","width","setUserData","setZIndex","setVisible","_getHandle","findNodeHandle","circle","name","args","Platform","OS","NativeModules","UIManager","dispatchViewManagerCommand","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","event","stopPropagation","ref","render","RMFCircle","requireNativeComponent"],"sources":["MFCircle.js"],"sourcesContent":["import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\r\nimport {\r\n requireNativeComponent,\r\n Platform,\r\n NativeModules,\r\n findNodeHandle,\r\n processColor\r\n} from 'react-native';\r\n\r\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\r\nconst viewPropTypes = ViewPropTypes || View.propTypes;\r\n\r\nconst propTypes = {\r\n ...viewPropTypes,\r\n\r\n /**\r\n * The coordinate of the center of the circle\r\n */\r\n center: PropTypes.shape({\r\n /**\r\n * Coordinates for the center of the circle.\r\n */\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }).isRequired,\r\n\r\n /**\r\n * The radius of the circle to be drawn (in meters)\r\n */\r\n radius: PropTypes.number.isRequired,\r\n\r\n /**\r\n * The stroke width to use for the circle.\r\n */\r\n strokeWidth: PropTypes.number,\r\n\r\n /**\r\n * The stroke color to use for the circle.\r\n */\r\n strokeColor: ColorPropType,\r\n\r\n /**\r\n * The fill color to use for the circle.\r\n */\r\n fillColor: ColorPropType,\r\n\r\n /**\r\n * zIndex\r\n */\r\n zIndex: PropTypes.number,\r\n\r\n /**\r\n * visible\r\n */\r\n visible: PropTypes.bool,\r\n\r\n /**\r\n * userData\r\n */\r\n userData:PropTypes.object,\r\n\r\n /**\r\n * Callback that is called when the user presses on the circle\r\n */\r\n onPress: PropTypes.func,\r\n};\r\n\r\n// const defaultProps = {\r\n// strokeColor: '#000',\r\n// strokeWidth: 1,\r\n// };\r\n\r\nclass MFCircle extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this._onPress = this._onPress.bind(this)\r\n this._ref = this._ref.bind(this)\r\n }\r\n\r\n setCenter(center) {\r\n this._runCommand(\"setCenter\", [center])\r\n }\r\n setRadius(radius) {\r\n this._runCommand(\"setRadius\", [radius])\r\n }\r\n setFillColor(color) {\r\n this._runCommand(\"setFillColor\", [processColor(color)])\r\n }\r\n setStrokeColor(color) {\r\n this._runCommand(\"setStrokeColor\", [processColor(color)])\r\n }\r\n setStrokeWidth(width) {\r\n this._runCommand(\"setStrokeWidth\", [width])\r\n }\r\n setUserData(userData) {\r\n this._runCommand(\"setUserData\", [userData])\r\n }\r\n setZIndex(zIndex) {\r\n this._runCommand(\"setZIndex\", [zIndex])\r\n }\r\n setVisible(visible) {\r\n this._runCommand(\"setVisible\", [visible])\r\n }\r\n\r\n _getHandle() {\r\n return findNodeHandle(this.circle);\r\n }\r\n\r\n\r\n _runCommand(name, args) {\r\n switch (Platform.OS) {\r\n case 'android':\r\n NativeModules.UIManager.dispatchViewManagerCommand(\r\n this._getHandle(),\r\n this._uiManagerCommand(name),\r\n args\r\n );\r\n break;\r\n\r\n case 'ios':\r\n this._mapManagerCommand(name)(this._getHandle(), ...args);\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n _uiManagerCommand(name) {\r\n const UIManager = NativeModules.UIManager;\r\n const componentName = \"RMFCircle\";\r\n\r\n if (!UIManager.getViewManagerConfig) {\r\n // RN < 0.58\r\n return UIManager[componentName].Commands[name];\r\n }\r\n\r\n // RN >= 0.58 \r\n return UIManager.getViewManagerConfig(componentName).Commands[name];\r\n }\r\n \r\n _mapManagerCommand(name) {\r\n return NativeModules[`RMFCircle`][name];\r\n }\r\n\r\n _onPress(event) {\r\n event.stopPropagation();\r\n if (this.props.onPress) {\r\n this.props.onPress(event);\r\n }\r\n }\r\n\r\n _ref(ref) {\r\n this.circle = ref;\r\n }\r\n\r\n render() {\r\n return <RMFCircle\r\n {...this.props}\r\n ref={this._ref}\r\n onPress={this._onPress}\r\n />;\r\n }\r\n}\r\n\r\nMFCircle.propTypes = propTypes;\r\n// MFCircle.defaultProps = defaultProps;\r\n\r\nvar RMFCircle = requireNativeComponent(`RMFCircle`, MFCircle);\r\n\r\nexport {MFCircle}\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAQA;AACA,MAAMA,aAAa,GAAGC,6CAAA,IAAiBC,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGH,aADa;;EAGhB;AACF;AACA;EACEI,MAAM,EAAEC,kBAAA,CAAUC,KAAV,CAAgB;IACtB;AACJ;AACA;IACIC,QAAQ,EAAEF,kBAAA,CAAUG,MAAV,CAAiBC,UAJL;IAKtBC,SAAS,EAAEL,kBAAA,CAAUG,MAAV,CAAiBC;EALN,CAAhB,EAMLA,UAZa;;EAchB;AACF;AACA;EACEE,MAAM,EAAEN,kBAAA,CAAUG,MAAV,CAAiBC,UAjBT;;EAmBhB;AACF;AACA;EACEG,WAAW,EAAEP,kBAAA,CAAUG,MAtBP;;EAwBhB;AACF;AACA;EACEK,WAAW,EAAEC,6CA3BG;;EA6BhB;AACF;AACA;EACEC,SAAS,EAAED,6CAhCK;;EAkChB;AACF;AACA;EACEE,MAAM,EAAEX,kBAAA,CAAUG,MArCF;;EAuChB;AACF;AACA;EACES,O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