react-native-map4d-map-dtqg 0.1.4 → 0.1.6

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 (217) hide show
  1. package/README.md +58 -0
  2. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  3. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  4. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/android/build.gradle +23 -2
  6. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapModule.java +39 -27
  7. package/ios/Map4dMap.h +12 -3
  8. package/ios/Map4dMap.m +108 -3
  9. package/ios/Map4dMapTurbo.mm +16 -0
  10. package/ios/RMFCircleManager.m +40 -68
  11. package/ios/RMFDirectionsRendererManager.m +26 -24
  12. package/ios/RMFMapViewManager.m +64 -149
  13. package/ios/RMFMarkerManager.m +36 -64
  14. package/ios/RMFPOIManager.m +40 -74
  15. package/ios/RMFPolygonManager.m +38 -60
  16. package/ios/RMFPolylineManager.m +36 -58
  17. package/ios/building/RMFBuildingManager.m +36 -64
  18. package/lib/commonjs/components/MFBanDoSo/constants.js +30 -0
  19. package/lib/commonjs/components/MFBanDoSo/constants.js.map +1 -0
  20. package/lib/commonjs/components/MFBanDoSo/helpers.js +200 -0
  21. package/lib/commonjs/components/MFBanDoSo/helpers.js.map +1 -0
  22. package/lib/commonjs/components/MFBanDoSo/propTypes.js +18 -0
  23. package/lib/commonjs/components/MFBanDoSo/propTypes.js.map +1 -0
  24. package/lib/commonjs/components/MFBanDoSo/styles.js +334 -0
  25. package/lib/commonjs/components/MFBanDoSo/styles.js.map +1 -0
  26. package/lib/commonjs/components/MFBanDoSo/ui.js +231 -0
  27. package/lib/commonjs/components/MFBanDoSo/ui.js.map +1 -0
  28. package/lib/commonjs/components/MFBanDoSo.js +201 -73
  29. package/lib/commonjs/components/MFBanDoSo.js.map +1 -1
  30. package/lib/commonjs/components/MFBuilding.js +15 -90
  31. package/lib/commonjs/components/MFBuilding.js.map +1 -1
  32. package/lib/commonjs/components/MFCircle.js +20 -88
  33. package/lib/commonjs/components/MFCircle.js.map +1 -1
  34. package/lib/commonjs/components/MFDirectionsRenderer.js +15 -93
  35. package/lib/commonjs/components/MFDirectionsRenderer.js.map +1 -1
  36. package/lib/commonjs/components/MFMapView.js +50 -147
  37. package/lib/commonjs/components/MFMapView.js.map +1 -1
  38. package/lib/commonjs/components/MFMarker.js +15 -101
  39. package/lib/commonjs/components/MFMarker.js.map +1 -1
  40. package/lib/commonjs/components/MFPOI.js +17 -92
  41. package/lib/commonjs/components/MFPOI.js.map +1 -1
  42. package/lib/commonjs/components/MFPolygon.js +15 -87
  43. package/lib/commonjs/components/MFPolygon.js.map +1 -1
  44. package/lib/commonjs/components/MFPolyline.js +17 -87
  45. package/lib/commonjs/components/MFPolyline.js.map +1 -1
  46. package/lib/commonjs/components/MFTileOverlay.js +7 -15
  47. package/lib/commonjs/components/MFTileOverlay.js.map +1 -1
  48. package/lib/commonjs/components/Map4dMapView.js +1 -4
  49. package/lib/commonjs/components/Map4dMapView.js.map +1 -1
  50. package/lib/commonjs/components/extends/AreaFocusManager.js +4 -38
  51. package/lib/commonjs/components/extends/AreaFocusManager.js.map +1 -1
  52. package/lib/commonjs/components/extends/AreaFocuser.js +1 -17
  53. package/lib/commonjs/components/extends/AreaFocuser.js.map +1 -1
  54. package/lib/commonjs/components/extends/BoundHelper.js +0 -6
  55. package/lib/commonjs/components/extends/BoundHelper.js.map +1 -1
  56. package/lib/commonjs/components/extends/area/AreaFocusAreas.js +0 -37
  57. package/lib/commonjs/components/extends/area/AreaFocusAreas.js.map +1 -1
  58. package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js +1 -35
  59. package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
  60. package/lib/commonjs/components/extends/area/AreaFocusSession.js +0 -18
  61. package/lib/commonjs/components/extends/area/AreaFocusSession.js.map +1 -1
  62. package/lib/commonjs/components/extends/area/AreaFocusTypes.js +2 -3
  63. package/lib/commonjs/components/extends/area/AreaFocusTypes.js.map +1 -1
  64. package/lib/commonjs/components/internal/DefaultRoadmapStyle.js +1 -2
  65. package/lib/commonjs/components/internal/DefaultRoadmapStyle.js.map +1 -1
  66. package/lib/commonjs/components/internal/GeojsonStyleUtils.js +20 -31
  67. package/lib/commonjs/components/internal/GeojsonStyleUtils.js.map +1 -1
  68. package/lib/commonjs/index.js +0 -11
  69. package/lib/commonjs/index.js.map +1 -1
  70. package/lib/commonjs/native/Map4dMapNativeModule.js +10 -0
  71. package/lib/commonjs/native/Map4dMapNativeModule.js.map +1 -0
  72. package/lib/commonjs/native/NativeModuleResolver.js +35 -0
  73. package/lib/commonjs/native/NativeModuleResolver.js.map +1 -0
  74. package/lib/commonjs/native/ViewManagerCommand.js +67 -0
  75. package/lib/commonjs/native/ViewManagerCommand.js.map +1 -0
  76. package/lib/commonjs/package.json +1 -0
  77. package/lib/commonjs/specs/NativeMap4dMap.js +9 -0
  78. package/lib/commonjs/specs/NativeMap4dMap.js.map +1 -0
  79. package/lib/module/components/MFBanDoSo/constants.js +25 -0
  80. package/lib/module/components/MFBanDoSo/constants.js.map +1 -0
  81. package/lib/module/components/MFBanDoSo/helpers.js +188 -0
  82. package/lib/module/components/MFBanDoSo/helpers.js.map +1 -0
  83. package/lib/module/components/MFBanDoSo/propTypes.js +14 -0
  84. package/lib/module/components/MFBanDoSo/propTypes.js.map +1 -0
  85. package/lib/module/components/MFBanDoSo/styles.js +332 -0
  86. package/lib/module/components/MFBanDoSo/styles.js.map +1 -0
  87. package/lib/module/components/MFBanDoSo/ui.js +224 -0
  88. package/lib/module/components/MFBanDoSo/ui.js.map +1 -0
  89. package/lib/module/components/MFBanDoSo.js +203 -63
  90. package/lib/module/components/MFBanDoSo.js.map +1 -1
  91. package/lib/module/components/MFBuilding.js +17 -82
  92. package/lib/module/components/MFBuilding.js.map +1 -1
  93. package/lib/module/components/MFCircle.js +22 -80
  94. package/lib/module/components/MFCircle.js.map +1 -1
  95. package/lib/module/components/MFDirectionsRenderer.js +16 -85
  96. package/lib/module/components/MFDirectionsRenderer.js.map +1 -1
  97. package/lib/module/components/MFMapView.js +51 -136
  98. package/lib/module/components/MFMapView.js.map +1 -1
  99. package/lib/module/components/MFMarker.js +17 -92
  100. package/lib/module/components/MFMarker.js.map +1 -1
  101. package/lib/module/components/MFPOI.js +19 -84
  102. package/lib/module/components/MFPOI.js.map +1 -1
  103. package/lib/module/components/MFPolygon.js +17 -79
  104. package/lib/module/components/MFPolygon.js.map +1 -1
  105. package/lib/module/components/MFPolyline.js +19 -79
  106. package/lib/module/components/MFPolyline.js.map +1 -1
  107. package/lib/module/components/MFTileOverlay.js +10 -9
  108. package/lib/module/components/MFTileOverlay.js.map +1 -1
  109. package/lib/module/components/Map4dMapView.js +2 -0
  110. package/lib/module/components/Map4dMapView.js.map +1 -1
  111. package/lib/module/components/extends/AreaFocusManager.js +6 -32
  112. package/lib/module/components/extends/AreaFocusManager.js.map +1 -1
  113. package/lib/module/components/extends/AreaFocuser.js +3 -15
  114. package/lib/module/components/extends/AreaFocuser.js.map +1 -1
  115. package/lib/module/components/extends/BoundHelper.js +2 -5
  116. package/lib/module/components/extends/BoundHelper.js.map +1 -1
  117. package/lib/module/components/extends/area/AreaFocusAreas.js +2 -33
  118. package/lib/module/components/extends/area/AreaFocusAreas.js.map +1 -1
  119. package/lib/module/components/extends/area/AreaFocusGeometryUtils.js +2 -32
  120. package/lib/module/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
  121. package/lib/module/components/extends/area/AreaFocusSession.js +2 -17
  122. package/lib/module/components/extends/area/AreaFocusSession.js.map +1 -1
  123. package/lib/module/components/extends/area/AreaFocusTypes.js +3 -0
  124. package/lib/module/components/extends/area/AreaFocusTypes.js.map +1 -1
  125. package/lib/module/components/internal/DefaultRoadmapStyle.js +2 -0
  126. package/lib/module/components/internal/DefaultRoadmapStyle.js.map +1 -1
  127. package/lib/module/components/internal/GeojsonStyleUtils.js +21 -28
  128. package/lib/module/components/internal/GeojsonStyleUtils.js.map +1 -1
  129. package/lib/module/index.js +2 -0
  130. package/lib/module/index.js.map +1 -1
  131. package/lib/module/native/Map4dMapNativeModule.js +5 -0
  132. package/lib/module/native/Map4dMapNativeModule.js.map +1 -0
  133. package/lib/module/native/NativeModuleResolver.js +29 -0
  134. package/lib/module/native/NativeModuleResolver.js.map +1 -0
  135. package/lib/module/native/ViewManagerCommand.js +61 -0
  136. package/lib/module/native/ViewManagerCommand.js.map +1 -0
  137. package/lib/module/specs/NativeMap4dMap.js +5 -0
  138. package/lib/module/specs/NativeMap4dMap.js.map +1 -0
  139. package/lib/typescript/components/MFBanDoSo/constants.d.ts +11 -0
  140. package/lib/typescript/components/MFBanDoSo/constants.d.ts.map +1 -0
  141. package/lib/typescript/components/MFBanDoSo/helpers.d.ts +14 -0
  142. package/lib/typescript/components/MFBanDoSo/helpers.d.ts.map +1 -0
  143. package/lib/typescript/components/MFBanDoSo/propTypes.d.ts +2 -0
  144. package/lib/typescript/components/MFBanDoSo/propTypes.d.ts.map +1 -0
  145. package/lib/typescript/components/MFBanDoSo/styles.d.ts +336 -0
  146. package/lib/typescript/components/MFBanDoSo/styles.d.ts.map +1 -0
  147. package/lib/typescript/components/MFBanDoSo/ui.d.ts +32 -0
  148. package/lib/typescript/components/MFBanDoSo/ui.d.ts.map +1 -0
  149. package/lib/typescript/components/MFBanDoSo.d.ts +38 -0
  150. package/lib/typescript/components/MFBanDoSo.d.ts.map +1 -0
  151. package/lib/typescript/components/MFBuilding.d.ts +24 -0
  152. package/lib/typescript/components/MFBuilding.d.ts.map +1 -0
  153. package/lib/typescript/components/MFCircle.d.ts +24 -0
  154. package/lib/typescript/components/MFCircle.d.ts.map +1 -0
  155. package/lib/typescript/components/MFDirectionsRenderer.d.ts +19 -0
  156. package/lib/typescript/components/MFDirectionsRenderer.d.ts.map +1 -0
  157. package/lib/typescript/components/MFMapView.d.ts +66 -0
  158. package/lib/typescript/components/MFMapView.d.ts.map +1 -0
  159. package/lib/typescript/components/MFMarker.d.ts +26 -0
  160. package/lib/typescript/components/MFMarker.d.ts.map +1 -0
  161. package/lib/typescript/components/MFPOI.d.ts +24 -0
  162. package/lib/typescript/components/MFPOI.d.ts.map +1 -0
  163. package/lib/typescript/components/MFPolygon.d.ts +24 -0
  164. package/lib/typescript/components/MFPolygon.d.ts.map +1 -0
  165. package/lib/typescript/components/MFPolyline.d.ts +24 -0
  166. package/lib/typescript/components/MFPolyline.d.ts.map +1 -0
  167. package/lib/typescript/components/MFTileOverlay.d.ts +12 -0
  168. package/lib/typescript/components/MFTileOverlay.d.ts.map +1 -0
  169. package/lib/typescript/components/Map4dMapView.d.ts +8 -7
  170. package/lib/typescript/components/Map4dMapView.d.ts.map +1 -0
  171. package/lib/typescript/components/extends/AreaFocusManager.d.ts +34 -0
  172. package/lib/typescript/components/extends/AreaFocusManager.d.ts.map +1 -0
  173. package/lib/typescript/components/extends/AreaFocuser.d.ts +15 -0
  174. package/lib/typescript/components/extends/AreaFocuser.d.ts.map +1 -0
  175. package/lib/typescript/components/extends/BoundHelper.d.ts +11 -0
  176. package/lib/typescript/components/extends/BoundHelper.d.ts.map +1 -0
  177. package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts +58 -0
  178. package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts.map +1 -0
  179. package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts +19 -0
  180. package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts.map +1 -0
  181. package/lib/typescript/components/extends/area/AreaFocusSession.d.ts +14 -0
  182. package/lib/typescript/components/extends/area/AreaFocusSession.d.ts.map +1 -0
  183. package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts +40 -0
  184. package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts.map +1 -0
  185. package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts +820 -0
  186. package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts.map +1 -0
  187. package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts +3 -0
  188. package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts.map +1 -0
  189. package/lib/typescript/index.d.ts +13 -0
  190. package/lib/typescript/index.d.ts.map +1 -0
  191. package/lib/typescript/native/Map4dMapNativeModule.d.ts +2 -0
  192. package/lib/typescript/native/Map4dMapNativeModule.d.ts.map +1 -0
  193. package/lib/typescript/native/NativeModuleResolver.d.ts +3 -0
  194. package/lib/typescript/native/NativeModuleResolver.d.ts.map +1 -0
  195. package/lib/typescript/native/ViewManagerCommand.d.ts +11 -0
  196. package/lib/typescript/native/ViewManagerCommand.d.ts.map +1 -0
  197. package/package.json +27 -11
  198. package/src/components/MFBanDoSo/constants.js +38 -0
  199. package/src/components/MFBanDoSo/helpers.js +273 -0
  200. package/src/components/MFBanDoSo/propTypes.js +14 -0
  201. package/src/components/MFBanDoSo/styles.js +323 -0
  202. package/src/components/MFBanDoSo/ui.js +261 -0
  203. package/src/components/MFBanDoSo.js +280 -78
  204. package/src/components/MFBuilding.js +8 -48
  205. package/src/components/MFCircle.js +8 -48
  206. package/src/components/MFDirectionsRenderer.js +8 -47
  207. package/src/components/MFMapView.js +31 -53
  208. package/src/components/MFMarker.js +9 -50
  209. package/src/components/MFPOI.js +8 -48
  210. package/src/components/MFPolygon.js +8 -48
  211. package/src/components/MFPolyline.js +8 -48
  212. package/src/components/internal/GeojsonStyleUtils.js +3 -0
  213. package/src/native/Map4dMapNativeModule.js +3 -0
  214. package/src/native/NativeModuleResolver.js +33 -0
  215. package/src/native/ViewManagerCommand.js +82 -0
  216. package/src/specs/NativeMap4dMap.js +12 -0
  217. package/ios/Map4dMapViewManager.m +0 -34
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ "use strict";
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import React from 'react';
@@ -6,7 +6,10 @@ import { ViewPropTypes, ColorPropType } from 'deprecated-react-native-prop-types
6
6
  import { AreaFocusManager } from './extends/AreaFocusManager';
7
7
  import { AreaFocuser } from './extends/AreaFocuser';
8
8
  import { MFPolygon } from './MFPolygon';
9
- import { requireNativeComponent, Platform, UIManager, NativeModules, findNodeHandle } from 'react-native';
9
+ import { getMap4dMapNativeModule } from '../native/Map4dMapNativeModule';
10
+ import { runViewManagerCommand } from '../native/ViewManagerCommand';
11
+ import { requireNativeComponent, Platform, findNodeHandle } from 'react-native';
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
13
  const CameraShape = PropTypes.shape({
11
14
  target: PropTypes.shape({
12
15
  latitude: PropTypes.number.isRequired,
@@ -15,131 +18,110 @@ const CameraShape = PropTypes.shape({
15
18
  zoom: PropTypes.number.isRequired,
16
19
  bearing: PropTypes.number.isRequired,
17
20
  tilt: PropTypes.number.isRequired
18
- }); // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
21
+ });
19
22
 
23
+ // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
20
24
  const viewPropTypes = ViewPropTypes || View.propTypes;
21
- const propTypes = { ...viewPropTypes,
22
-
25
+ const propTypes = {
26
+ ...viewPropTypes,
23
27
  /**
24
28
  * An opaque identifier for a custom map configuration.
25
29
  */
26
30
  mapID: PropTypes.string,
27
-
28
31
  /**
29
32
  * Map style by string for a custom map configuration.
30
33
  */
31
34
  mapStyle: PropTypes.string,
32
-
33
35
  /**
34
36
  * If `false` hide the button to move map to the current user's location.
35
37
  * Default value is `false`.
36
38
  */
37
39
  showsMyLocationButton: PropTypes.bool,
38
-
39
40
  /**
40
41
  * If `true` the app will ask for the user's location.
41
42
  * Default value is `false`.
42
43
  */
43
44
  showsMyLocation: PropTypes.bool,
44
-
45
45
  /**
46
46
  * A Boolean indicating whether the map displays buildings.
47
47
  * Default value is `true`.
48
48
  */
49
49
  showsBuildings: PropTypes.bool,
50
-
51
50
  /**
52
51
  * A Boolean indicating whether the map displays POIs.
53
52
  * Default value is `true`.
54
53
  */
55
54
  showsPOIs: PropTypes.bool,
56
-
57
55
  /**
58
56
  * If `false` the user won't be able to zoom the map.
59
57
  * Default value is `true`.
60
58
  */
61
59
  zoomGesturesEnabled: PropTypes.bool,
62
-
63
60
  /**
64
61
  * If `false` the user won't be able to scroll the map.
65
62
  * Default value is `true`.
66
63
  */
67
64
  scrollGesturesEnabled: PropTypes.bool,
68
-
69
65
  /**
70
66
  * If `false` the user won't be able to pinch/rotate the map.
71
67
  * Default value is `true`.
72
68
  */
73
69
  rotateGesturesEnabled: PropTypes.bool,
74
-
75
70
  /**
76
71
  * If `false` the user won't be able to tilt the map.
77
72
  * Default value is `true`.
78
73
  */
79
74
  tiltGesturesEnabled: PropTypes.bool,
80
-
81
75
  /**
82
76
  * The camera view position.
83
77
  */
84
78
  camera: CameraShape,
85
-
86
79
  /**
87
80
  * Type of map tiles to be rendered.
88
81
  */
89
82
  mapType: PropTypes.oneOf(['roadmap', 'satellite', 'hybrid']),
90
-
91
83
  /**
92
84
  * Callback that is called once the map is fully loaded.
93
85
  * @platform android
94
86
  */
95
87
  onMapReady: PropTypes.func,
96
-
97
88
  /**
98
89
  * Callback that is called when user taps on the map.
99
90
  */
100
91
  onPress: PropTypes.func,
101
-
102
92
  /**
103
93
  * Callback that is called when user taps on the POIs
104
94
  */
105
95
  onPoiPress: PropTypes.func,
106
-
107
96
  /**
108
97
  * Callback that is called when user taps on the Buildings
109
98
  */
110
99
  onBuildingPress: PropTypes.func,
111
-
112
100
  /**
113
101
  * Callback that is called when user taps on the Places
114
102
  */
115
103
  onPlacePress: PropTypes.func,
116
-
117
104
  /**
118
105
  * Callback that is called when user taps on the Data Source Features
119
106
  */
120
107
  onDataSourceFeaturePress: PropTypes.func,
121
-
122
108
  /**
123
109
  * Callback that is called when moving camera
124
110
  */
125
111
  onCameraMove: PropTypes.func,
126
-
127
112
  /**
128
113
  * Callback that is called when camera start moving
129
114
  */
130
115
  onCameraMoveStart: PropTypes.func,
131
-
132
116
  /**
133
117
  * Callback that is called when camera idle
134
118
  */
135
119
  onCameraIdle: PropTypes.func,
136
-
137
120
  /**
138
121
  * Callback that is called when user taps on location Button
139
122
  */
140
123
  onMyLocationButtonPress: PropTypes.func
141
124
  };
142
-
143
125
  class MFMapView extends React.Component {
144
126
  constructor(props) {
145
127
  super(props);
@@ -152,35 +134,33 @@ class MFMapView extends React.Component {
152
134
  this._onMapReady = this._onMapReady.bind(this);
153
135
  this._ref = this._ref.bind(this);
154
136
  }
155
-
156
137
  _addPolygon(polygon) {
157
138
  if (polygon == null || typeof polygon !== 'object') {
158
139
  return null;
159
140
  }
160
-
161
141
  const id = typeof polygon.id === 'string' && polygon.id.trim().length > 0 ? polygon.id : 'polygon-highlight-id-default';
162
- const _polygon = { ...polygon,
142
+ const _polygon = {
143
+ ...polygon,
163
144
  id
164
145
  };
165
146
  this.setState(prevState => ({
166
- managedPolygons: { ...prevState.managedPolygons,
147
+ managedPolygons: {
148
+ ...prevState.managedPolygons,
167
149
  [id]: _polygon
168
150
  }
169
151
  }));
170
152
  return id;
171
153
  }
172
-
173
154
  _removePolygon(id) {
174
155
  if (typeof id !== 'string' || id.trim().length === 0) {
175
156
  return;
176
157
  }
177
-
178
158
  this.setState(prevState => {
179
159
  if (!prevState.managedPolygons[id]) {
180
160
  return null;
181
161
  }
182
-
183
- const managedPolygons = { ...prevState.managedPolygons
162
+ const managedPolygons = {
163
+ ...prevState.managedPolygons
184
164
  };
185
165
  delete managedPolygons[id];
186
166
  return {
@@ -188,13 +168,11 @@ class MFMapView extends React.Component {
188
168
  };
189
169
  });
190
170
  }
191
-
192
171
  _clearManagedPolygons() {
193
172
  this.setState({
194
173
  managedPolygons: {}
195
174
  });
196
175
  }
197
-
198
176
  _onMapReady() {
199
177
  const {
200
178
  onMapReady
@@ -207,104 +185,83 @@ class MFMapView extends React.Component {
207
185
  }
208
186
  });
209
187
  }
210
-
211
188
  _ref(ref) {
212
189
  this.map = ref;
213
190
  }
214
-
215
191
  getCamera() {
216
192
  if (Platform.OS === 'android') {
217
- return NativeModules.Map4dMap.getCamera(this._getHandle());
193
+ return this._runMap4dMapModuleMethod('getCamera', [this._getHandle()]);
218
194
  } else if (Platform.OS === 'ios') {
219
195
  return this._runCommand('getCamera', []);
220
196
  }
221
-
222
197
  return Promise.reject('Function not supported on this platform');
223
198
  }
224
-
225
199
  getBounds() {
226
200
  if (Platform.OS === 'android') {
227
- return NativeModules.Map4dMap.getBounds(this._getHandle());
201
+ return this._runMap4dMapModuleMethod('getBounds', [this._getHandle()]);
228
202
  } else if (Platform.OS === 'ios') {
229
203
  return this._runCommand('getBounds', []);
230
204
  }
231
-
232
205
  return Promise.reject('Function not supported on this platform');
233
206
  }
234
-
235
207
  getMyLocation() {
236
208
  if (Platform.OS === 'android') {
237
- return NativeModules.Map4dMap.getMyLocation(this._getHandle());
209
+ return this._runMap4dMapModuleMethod('getMyLocation', [this._getHandle()]);
238
210
  } else if (Platform.OS === 'ios') {
239
211
  return this._runCommand('getMyLocation', []);
240
212
  }
241
-
242
213
  return Promise.reject('Function not supported on this platform');
243
214
  }
244
-
245
215
  animateCamera(camera) {
246
216
  this._runCommand('animateCamera', [camera]);
247
217
  }
248
-
249
218
  moveCamera(camera) {
250
219
  this._runCommand('moveCamera', [camera]);
251
220
  }
252
-
253
221
  setMyLocationEnabled(enable) {
254
222
  this._runCommand('setMyLocationEnabled', [enable]);
255
223
  }
256
-
257
224
  showsMyLocationButton(enable) {
258
225
  this._runCommand('showsMyLocationButton', [enable]);
259
226
  }
260
-
261
227
  setPOIsEnabled(enable) {
262
228
  this._runCommand('setPOIsEnabled', [enable]);
263
229
  }
264
-
265
230
  setZoomGesturesEnabled(enable) {
266
231
  this._runCommand('setZoomGesturesEnabled', [enable]);
267
232
  }
268
-
269
233
  setScrollGesturesEnabled(enable) {
270
234
  this._runCommand('setScrollGesturesEnabled', [enable]);
271
235
  }
272
-
273
236
  setRotateGesturesEnabled(enable) {
274
237
  this._runCommand('setRotateGesturesEnabled', [enable]);
275
238
  }
276
-
277
239
  setTiltGesturesEnabled(enable) {
278
240
  this._runCommand('setTiltGesturesEnabled', [enable]);
279
241
  }
280
-
281
242
  setAllGesturesEnabled(enable) {
282
243
  this._runCommand('setAllGesturesEnabled', [enable]);
283
244
  }
284
-
285
245
  setTime(time) {
286
246
  let t = Date.parse(time);
287
-
288
247
  if (isNaN(t)) {
289
248
  console.log('time invalid');
290
249
  } else {
291
250
  this._runCommand('setTime', [t]);
292
251
  }
293
252
  }
294
-
295
253
  fitBounds(boundsData) {
296
254
  this._runCommand("fitBounds", [boundsData]);
297
255
  }
298
-
299
256
  cameraForBounds(boundsData) {
300
257
  if (Platform.OS === 'android') {
301
- return NativeModules.Map4dMap.cameraForBounds(this._getHandle(), boundsData);
258
+ return this._runMap4dMapModuleMethod('cameraForBounds', [this._getHandle(), boundsData]);
302
259
  } else if (Platform.OS === 'ios') {
303
260
  return this._runCommand('cameraForBounds', [boundsData]);
304
261
  }
305
-
306
262
  return Promise.reject('cameraForBounds not supported on this platform');
307
263
  }
264
+
308
265
  /**
309
266
  * Convert a map coordinate to screen point
310
267
  *
@@ -314,17 +271,15 @@ class MFMapView extends React.Component {
314
271
  *
315
272
  * @return Promise Promise with the point ({ x: Number, y: Number })
316
273
  */
317
-
318
-
319
274
  pointForCoordinate(coordinate) {
320
275
  if (Platform.OS === 'android') {
321
- return NativeModules.Map4dMap.pointForCoordinate(this._getHandle(), coordinate);
276
+ return this._runMap4dMapModuleMethod('pointForCoordinate', [this._getHandle(), coordinate]);
322
277
  } else if (Platform.OS === 'ios') {
323
278
  return this._runCommand('pointForCoordinate', [coordinate]);
324
279
  }
325
-
326
280
  return Promise.reject('pointForCoordinate not supported on this platform');
327
281
  }
282
+
328
283
  /**
329
284
  * Convert a screen point to a map coordinate
330
285
  *
@@ -334,85 +289,47 @@ class MFMapView extends React.Component {
334
289
  *
335
290
  * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })
336
291
  */
337
-
338
-
339
292
  coordinateForPoint(point) {
340
293
  if (Platform.OS === 'android') {
341
- return NativeModules.Map4dMap.coordinateForPoint(this._getHandle(), point);
294
+ return this._runMap4dMapModuleMethod('coordinateForPoint', [this._getHandle(), point]);
342
295
  } else if (Platform.OS === 'ios') {
343
296
  return this._runCommand('coordinateForPoint', [point]);
344
297
  }
345
-
346
298
  return Promise.reject('coordinateForPoint not supported on this platform');
347
299
  }
348
-
349
300
  focusArea(focusOptions) {
350
301
  if (!this.areaFocusManager) {
351
302
  return Promise.resolve(null);
352
303
  }
353
-
354
304
  return this.areaFocusManager.focus(focusOptions);
355
305
  }
356
-
357
306
  clearFocusedArea() {
358
307
  if (!this.areaFocusManager) {
359
308
  return;
360
309
  }
361
-
362
310
  this.areaFocusManager.clear();
363
311
  }
364
-
365
312
  _getHandle() {
366
313
  return findNodeHandle(this.map);
367
314
  }
368
-
369
- _runCommand(name, args) {
370
- switch (Platform.OS) {
371
- case 'android':
372
- {
373
- if (!UIManager || typeof UIManager.dispatchViewManagerCommand !== 'function') {
374
- return Promise.reject('UIManager.dispatchViewManagerCommand is unavailable on this React Native version');
375
- }
376
-
377
- const commandId = this._uiManagerCommand(name);
378
-
379
- if (commandId == null) {
380
- return Promise.reject(`Cannot find native command "${name}" for RMFMapView`);
381
- }
382
-
383
- return UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
384
- }
385
-
386
- case 'ios':
387
- return this._mapManagerCommand(name)(this._getHandle(), ...args);
388
-
389
- default:
390
- return Promise.reject(`Invalid platform was passed: ${Platform.OS}`);
315
+ _runMap4dMapModuleMethod(name, args) {
316
+ const map4dMapNativeModule = getMap4dMapNativeModule();
317
+ if (!map4dMapNativeModule || typeof map4dMapNativeModule[name] !== 'function') {
318
+ return Promise.reject(`Map4dMap native method "${name}" is unavailable`);
391
319
  }
320
+ return map4dMapNativeModule[name](...args);
392
321
  }
393
-
394
- _uiManagerCommand(name) {
395
- const uiManager = UIManager || NativeModules.UIManager;
396
- const componentName = "RMFMapView";
397
-
398
- if (!uiManager) {
399
- return null;
400
- }
401
-
402
- if (!uiManager.getViewManagerConfig) {
403
- // RN < 0.58
404
- return uiManager[componentName].Commands[name];
405
- } // RN >= 0.58
406
-
407
-
408
- const config = uiManager.getViewManagerConfig(componentName);
409
- return config && config.Commands ? config.Commands[name] : null;
410
- }
411
-
412
- _mapManagerCommand(name) {
413
- return NativeModules[`RMFMapView`][name];
322
+ _runCommand(name, args) {
323
+ return runViewManagerCommand({
324
+ componentName: 'RMFMapView',
325
+ moduleName: 'RMFMapView',
326
+ commandName: name,
327
+ args,
328
+ reactTag: this._getHandle(),
329
+ platform: Platform.OS,
330
+ rejectOnError: true
331
+ });
414
332
  }
415
-
416
333
  render() {
417
334
  let props;
418
335
  const {
@@ -420,21 +337,21 @@ class MFMapView extends React.Component {
420
337
  ...restProps
421
338
  } = this.props;
422
339
  const managedPolygons = Object.values(this.state.managedPolygons);
423
-
424
340
  if (this.state.isReady) {
425
341
  props = {
426
342
  style: this.props.style,
427
343
  onMapReady: this._onMapReady,
428
344
  ...restProps,
429
- children: /*#__PURE__*/React.createElement(React.Fragment, null, children, managedPolygons.map(polygon => /*#__PURE__*/React.createElement(MFPolygon, {
430
- key: polygon.id,
431
- coordinates: polygon.coordinates,
432
- holes: polygon.holes,
433
- fillColor: polygon.fillColor,
434
- strokeColor: polygon.strokeColor,
435
- strokeWidth: polygon.strokeWidth,
436
- zIndex: polygon.zIndex
437
- })))
345
+ children: /*#__PURE__*/_jsxs(React.Fragment, {
346
+ children: [children, managedPolygons.map(polygon => /*#__PURE__*/_jsx(MFPolygon, {
347
+ coordinates: polygon.coordinates,
348
+ holes: polygon.holes,
349
+ fillColor: polygon.fillColor,
350
+ strokeColor: polygon.strokeColor,
351
+ strokeWidth: polygon.strokeWidth,
352
+ zIndex: polygon.zIndex
353
+ }, polygon.id))]
354
+ })
438
355
  };
439
356
  } else {
440
357
  props = {
@@ -442,14 +359,12 @@ class MFMapView extends React.Component {
442
359
  onMapReady: this._onMapReady
443
360
  };
444
361
  }
445
-
446
- return /*#__PURE__*/React.createElement(RMFMapView, _extends({}, props, {
362
+ return /*#__PURE__*/_jsx(RMFMapView, {
363
+ ...props,
447
364
  ref: this._ref
448
- }));
365
+ });
449
366
  }
450
-
451
367
  }
452
-
453
368
  MFMapView.propTypes = propTypes;
454
369
  var RMFMapView = requireNativeComponent(`RMFMapView`, MFMapView);
455
370
  export { MFMapView };
@@ -1 +1 @@
1
- {"version":3,"names":["PropTypes","React","ViewPropTypes","ColorPropType","AreaFocusManager","AreaFocuser","MFPolygon","requireNativeComponent","Platform","UIManager","NativeModules","findNodeHandle","CameraShape","shape","target","latitude","number","isRequired","longitude","zoom","bearing","tilt","viewPropTypes","View","propTypes","mapID","string","mapStyle","showsMyLocationButton","bool","showsMyLocation","showsBuildings","showsPOIs","zoomGesturesEnabled","scrollGesturesEnabled","rotateGesturesEnabled","tiltGesturesEnabled","camera","mapType","oneOf","onMapReady","func","onPress","onPoiPress","onBuildingPress","onPlacePress","onDataSourceFeaturePress","onCameraMove","onCameraMoveStart","onCameraIdle","onMyLocationButtonPress","MFMapView","Component","constructor","props","areaFocusManager","areaFocuser","state","isReady","OS","managedPolygons","_onMapReady","bind","_ref","_addPolygon","polygon","id","trim","length","_polygon","setState","prevState","_removePolygon","_clearManagedPolygons","ref","map","getCamera","Map4dMap","_getHandle","_runCommand","Promise","reject","getBounds","getMyLocation","animateCamera","moveCamera","setMyLocationEnabled","enable","setPOIsEnabled","setZoomGesturesEnabled","setScrollGesturesEnabled","setRotateGesturesEnabled","setTiltGesturesEnabled","setAllGesturesEnabled","setTime","time","t","Date","parse","isNaN","console","log","fitBounds","boundsData","cameraForBounds","pointForCoordinate","coordinate","coordinateForPoint","point","focusArea","focusOptions","resolve","focus","clearFocusedArea","clear","name","args","dispatchViewManagerCommand","commandId","_uiManagerCommand","_mapManagerCommand","uiManager","componentName","getViewManagerConfig","Commands","config","render","children","restProps","Object","values","style","coordinates","holes","fillColor","strokeColor","strokeWidth","zIndex","RMFMapView"],"sources":["MFMapView.js"],"sourcesContent":["import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\r\nimport {AreaFocusManager} from './extends/AreaFocusManager';\r\nimport {AreaFocuser} from './extends/AreaFocuser';\r\nimport {MFPolygon} from './MFPolygon';\r\nimport {\r\n requireNativeComponent,\r\n Platform,\r\n UIManager,\r\n NativeModules,\r\n findNodeHandle\r\n} from 'react-native';\r\n\r\nconst CameraShape = PropTypes.shape({\r\n target: PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }),\r\n zoom: PropTypes.number.isRequired,\r\n bearing: PropTypes.number.isRequired,\r\n tilt: PropTypes.number.isRequired,\r\n});\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 * An opaque identifier for a custom map configuration.\r\n */\r\n mapID: PropTypes.string,\r\n\r\n /**\r\n * Map style by string for a custom map configuration.\r\n */\r\n mapStyle: PropTypes.string,\r\n\r\n /**\r\n * If `false` hide the button to move map to the current user's location.\r\n * Default value is `false`.\r\n */\r\n showsMyLocationButton: PropTypes.bool,\r\n\r\n /**\r\n * If `true` the app will ask for the user's location.\r\n * Default value is `false`.\r\n */\r\n showsMyLocation: PropTypes.bool,\r\n\r\n /**\r\n * A Boolean indicating whether the map displays buildings.\r\n * Default value is `true`.\r\n */\r\n showsBuildings: PropTypes.bool,\r\n\r\n /**\r\n * A Boolean indicating whether the map displays POIs.\r\n * Default value is `true`.\r\n */\r\n showsPOIs: PropTypes.bool,\r\n\r\n /**\r\n * If `false` the user won't be able to zoom the map.\r\n * Default value is `true`.\r\n */\r\n zoomGesturesEnabled: PropTypes.bool,\r\n\r\n /**\r\n * If `false` the user won't be able to scroll the map.\r\n * Default value is `true`.\r\n */\r\n scrollGesturesEnabled: PropTypes.bool,\r\n\r\n /**\r\n * If `false` the user won't be able to pinch/rotate the map.\r\n * Default value is `true`.\r\n */\r\n rotateGesturesEnabled: PropTypes.bool,\r\n\r\n /**\r\n * If `false` the user won't be able to tilt the map.\r\n * Default value is `true`.\r\n */\r\n tiltGesturesEnabled: PropTypes.bool,\r\n\r\n /**\r\n * The camera view position.\r\n */\r\n camera: CameraShape,\r\n\r\n /**\r\n * Type of map tiles to be rendered.\r\n */\r\n mapType: PropTypes.oneOf(['roadmap', 'satellite', 'hybrid']),\r\n\r\n /**\r\n * Callback that is called once the map is fully loaded.\r\n * @platform android\r\n */\r\n onMapReady: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the map.\r\n */\r\n onPress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the POIs\r\n */\r\n onPoiPress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the Buildings\r\n */\r\n onBuildingPress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the Places\r\n */\r\n onPlacePress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the Data Source Features\r\n */\r\n onDataSourceFeaturePress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when moving camera\r\n */\r\n onCameraMove: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when camera start moving\r\n */\r\n onCameraMoveStart: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when camera idle\r\n */\r\n onCameraIdle: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on location Button\r\n */\r\n onMyLocationButtonPress: PropTypes.func,\r\n\r\n};\r\n\r\n\r\nclass MFMapView extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.areaFocusManager = new AreaFocusManager(this);\r\n this.areaFocuser = new AreaFocuser(this.areaFocusManager);\r\n this.state = {\r\n isReady: Platform.OS === 'ios',\r\n managedPolygons: {},\r\n };\r\n\r\n this._onMapReady = this._onMapReady.bind(this);\r\n this._ref = this._ref.bind(this);\r\n }\r\n\r\n _addPolygon(polygon) {\r\n if (polygon == null || typeof polygon !== 'object') {\r\n return null;\r\n }\r\n\r\n const id =\r\n typeof polygon.id === 'string' && polygon.id.trim().length > 0\r\n ? polygon.id\r\n : 'polygon-highlight-id-default';\r\n\r\n const _polygon = {\r\n ...polygon,\r\n id,\r\n };\r\n\r\n this.setState((prevState) => ({\r\n managedPolygons: {\r\n ...prevState.managedPolygons,\r\n [id]: _polygon,\r\n },\r\n }));\r\n\r\n return id;\r\n }\r\n\r\n _removePolygon(id) {\r\n if (typeof id !== 'string' || id.trim().length === 0) {\r\n return;\r\n }\r\n\r\n this.setState((prevState) => {\r\n if (!prevState.managedPolygons[id]) {\r\n return null;\r\n }\r\n\r\n const managedPolygons = {\r\n ...prevState.managedPolygons,\r\n };\r\n delete managedPolygons[id];\r\n\r\n return {\r\n managedPolygons,\r\n };\r\n });\r\n }\r\n\r\n _clearManagedPolygons() {\r\n this.setState({\r\n managedPolygons: {},\r\n });\r\n }\r\n\r\n _onMapReady() {\r\n const { onMapReady } = this.props;\r\n this.setState({ isReady: true }, () => {\r\n if (onMapReady) {\r\n onMapReady();\r\n }\r\n });\r\n }\r\n\r\n _ref(ref) {\r\n this.map = ref;\r\n }\r\n\r\n getCamera() {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.getCamera(this._getHandle());\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('getCamera', []);\r\n }\r\n return Promise.reject('Function not supported on this platform');\r\n }\r\n\r\n getBounds() {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.getBounds(this._getHandle());\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('getBounds', []);\r\n }\r\n return Promise.reject('Function not supported on this platform');\r\n }\r\n\r\n getMyLocation() {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.getMyLocation(this._getHandle());\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('getMyLocation', []);\r\n }\r\n return Promise.reject('Function not supported on this platform');\r\n }\r\n\r\n animateCamera(camera) {\r\n this._runCommand('animateCamera', [camera]);\r\n }\r\n\r\n moveCamera(camera) {\r\n this._runCommand('moveCamera', [camera]);\r\n }\r\n\r\n setMyLocationEnabled(enable) {\r\n this._runCommand('setMyLocationEnabled', [enable]);\r\n }\r\n\r\n showsMyLocationButton(enable) {\r\n this._runCommand('showsMyLocationButton', [enable]);\r\n }\r\n\r\n setPOIsEnabled(enable) {\r\n this._runCommand('setPOIsEnabled', [enable]);\r\n }\r\n\r\n setZoomGesturesEnabled(enable) {\r\n this._runCommand('setZoomGesturesEnabled', [enable]);\r\n }\r\n\r\n setScrollGesturesEnabled(enable) {\r\n this._runCommand('setScrollGesturesEnabled', [enable]);\r\n }\r\n\r\n setRotateGesturesEnabled(enable) {\r\n this._runCommand('setRotateGesturesEnabled', [enable]);\r\n }\r\n\r\n setTiltGesturesEnabled(enable) {\r\n this._runCommand('setTiltGesturesEnabled', [enable]);\r\n }\r\n\r\n setAllGesturesEnabled(enable) {\r\n this._runCommand('setAllGesturesEnabled', [enable]);\r\n }\r\n\r\n setTime(time) {\r\n let t = Date.parse(time)\r\n if (isNaN(t)) {\r\n console.log('time invalid')\r\n }\r\n else {\r\n this._runCommand('setTime', [t]);\r\n }\r\n }\r\n\r\n fitBounds(boundsData) {\r\n this._runCommand(\"fitBounds\", [boundsData])\r\n }\r\n\r\n cameraForBounds(boundsData) {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.cameraForBounds(\r\n this._getHandle(),\r\n boundsData\r\n );\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('cameraForBounds', [boundsData]);\r\n }\r\n return Promise.reject('cameraForBounds not supported on this platform');\r\n }\r\n\r\n\r\n /**\r\n * Convert a map coordinate to screen point\r\n *\r\n * @param coordinate Coordinate\r\n * @param [coordinate.latitude] Latitude\r\n * @param [coordinate.longitude] Longitude\r\n *\r\n * @return Promise Promise with the point ({ x: Number, y: Number })\r\n */\r\n pointForCoordinate(coordinate) {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.pointForCoordinate(\r\n this._getHandle(),\r\n coordinate\r\n );\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('pointForCoordinate', [coordinate]);\r\n }\r\n return Promise.reject('pointForCoordinate not supported on this platform');\r\n }\r\n\r\n /**\r\n * Convert a screen point to a map coordinate\r\n *\r\n * @param point Point\r\n * @param [point.x] X\r\n * @param [point.x] Y\r\n *\r\n * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })\r\n */\r\n coordinateForPoint(point) {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.coordinateForPoint(\r\n this._getHandle(),\r\n point\r\n );\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('coordinateForPoint', [point]);\r\n }\r\n return Promise.reject('coordinateForPoint not supported on this platform');\r\n }\r\n\r\n focusArea(focusOptions) {\r\n if (!this.areaFocusManager) {\r\n return Promise.resolve(null)\r\n }\r\n\r\n return this.areaFocusManager.focus(focusOptions)\r\n }\r\n\r\n clearFocusedArea() {\r\n if (!this.areaFocusManager) {\r\n return\r\n }\r\n this.areaFocusManager.clear()\r\n }\r\n\r\n _getHandle() {\r\n return findNodeHandle(this.map);\r\n }\r\n\r\n _runCommand(name, args) {\r\n switch (Platform.OS) {\r\n case 'android': {\r\n if (!UIManager || typeof UIManager.dispatchViewManagerCommand !== 'function') {\r\n return Promise.reject('UIManager.dispatchViewManagerCommand is unavailable on this React Native version')\r\n }\r\n\r\n const commandId = this._uiManagerCommand(name)\r\n if (commandId == null) {\r\n return Promise.reject(`Cannot find native command \"${name}\" for RMFMapView`)\r\n }\r\n\r\n return UIManager.dispatchViewManagerCommand(\r\n this._getHandle(),\r\n commandId,\r\n args\r\n );\r\n }\r\n\r\n case 'ios':\r\n return this._mapManagerCommand(name)(this._getHandle(), ...args);\r\n\r\n default:\r\n return Promise.reject(`Invalid platform was passed: ${Platform.OS}`);\r\n }\r\n }\r\n\r\n _uiManagerCommand(name) {\r\n const uiManager = UIManager || NativeModules.UIManager;\r\n const componentName = \"RMFMapView\";\r\n\r\n if (!uiManager) {\r\n return null;\r\n }\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 const config = uiManager.getViewManagerConfig(componentName);\r\n return config && config.Commands ? config.Commands[name] : null;\r\n }\r\n\r\n _mapManagerCommand(name) {\r\n return NativeModules[`RMFMapView`][name];\r\n }\r\n\r\n render() {\r\n let props;\r\n const { children, ...restProps } = this.props;\r\n const managedPolygons = Object.values(this.state.managedPolygons);\r\n\r\n if (this.state.isReady) {\r\n props = {\r\n style: this.props.style,\r\n onMapReady: this._onMapReady,\r\n ...restProps,\r\n children: (\r\n <React.Fragment>\r\n {children}\r\n {managedPolygons.map((polygon) => (\r\n <MFPolygon\r\n key={polygon.id}\r\n coordinates={polygon.coordinates}\r\n holes={polygon.holes}\r\n fillColor={polygon.fillColor}\r\n strokeColor={polygon.strokeColor}\r\n strokeWidth={polygon.strokeWidth}\r\n zIndex={polygon.zIndex}\r\n />\r\n ))}\r\n </React.Fragment>\r\n ),\r\n };\r\n } else {\r\n props = {\r\n style: this.props.style,\r\n onMapReady: this._onMapReady\r\n };\r\n }\r\n\r\n return <RMFMapView\r\n {...props}\r\n ref={this._ref}\r\n />;\r\n }\r\n}\r\n\r\nMFMapView.propTypes = propTypes;\r\nvar RMFMapView = requireNativeComponent(`RMFMapView`, MFMapView);\r\n\r\n\r\nexport { MFMapView }"],"mappings":";;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,aAAR,EAAuBC,aAAvB,QAA2C,oCAA3C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BACnB,oBAAC,SAAD;UACE,GAAG,EAAEA,OAAO,CAACC,EADf;UAEE,WAAW,EAAED,OAAO,CAACmE,WAFvB;UAGE,KAAK,EAAEnE,OAAO,CAACoE,KAHjB;UAIE,SAAS,EAAEpE,OAAO,CAACqE,SAJrB;UAKE,WAAW,EAAErE,OAAO,CAACsE,WALvB;UAME,WAAW,EAAEtE,OAAO,CAACuE,WANvB;UAOE,MAAM,EAAEvE,OAAO,CAACwE;QAPlB,EADD,CAFH;MALI,CAAR;IAqBD,CAtBD,MAsBO;MACLnF,KAAK,GAAG;QACN6E,KAAK,EAAE,KAAK7E,KAAL,CAAW6E,KADZ;QAEN3F,UAAU,EAAE,KAAKqB;MAFX,CAAR;IAID;;IAED,oBAAO,oBAAC,UAAD,eACDP,KADC;MAEL,GAAG,EAAE,KAAKS;IAFL,GAAP;EAID;;AAjUqC;;AAoUxCZ,SAAS,CAAC3B,SAAV,GAAsBA,SAAtB;AACA,IAAIkH,UAAU,GAAGnI,sBAAsB,CAAE,YAAF,EAAe4C,SAAf,CAAvC;AAGA,SAASA,SAAT"}
1
+ {"version":3,"names":["PropTypes","React","ViewPropTypes","ColorPropType","AreaFocusManager","AreaFocuser","MFPolygon","getMap4dMapNativeModule","runViewManagerCommand","requireNativeComponent","Platform","findNodeHandle","jsx","_jsx","jsxs","_jsxs","CameraShape","shape","target","latitude","number","isRequired","longitude","zoom","bearing","tilt","viewPropTypes","View","propTypes","mapID","string","mapStyle","showsMyLocationButton","bool","showsMyLocation","showsBuildings","showsPOIs","zoomGesturesEnabled","scrollGesturesEnabled","rotateGesturesEnabled","tiltGesturesEnabled","camera","mapType","oneOf","onMapReady","func","onPress","onPoiPress","onBuildingPress","onPlacePress","onDataSourceFeaturePress","onCameraMove","onCameraMoveStart","onCameraIdle","onMyLocationButtonPress","MFMapView","Component","constructor","props","areaFocusManager","areaFocuser","state","isReady","OS","managedPolygons","_onMapReady","bind","_ref","_addPolygon","polygon","id","trim","length","_polygon","setState","prevState","_removePolygon","_clearManagedPolygons","ref","map","getCamera","_runMap4dMapModuleMethod","_getHandle","_runCommand","Promise","reject","getBounds","getMyLocation","animateCamera","moveCamera","setMyLocationEnabled","enable","setPOIsEnabled","setZoomGesturesEnabled","setScrollGesturesEnabled","setRotateGesturesEnabled","setTiltGesturesEnabled","setAllGesturesEnabled","setTime","time","t","Date","parse","isNaN","console","log","fitBounds","boundsData","cameraForBounds","pointForCoordinate","coordinate","coordinateForPoint","point","focusArea","focusOptions","resolve","focus","clearFocusedArea","clear","name","args","map4dMapNativeModule","componentName","moduleName","commandName","reactTag","platform","rejectOnError","render","children","restProps","Object","values","style","Fragment","coordinates","holes","fillColor","strokeColor","strokeWidth","zIndex","RMFMapView"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFMapView.js"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAAQC,aAAa,EAAEC,aAAa,QAAO,oCAAoC;AAC/E,SAAQC,gBAAgB,QAAO,4BAA4B;AAC3D,SAAQC,WAAW,QAAO,uBAAuB;AACjD,SAAQC,SAAS,QAAO,aAAa;AACrC,SAAQC,uBAAuB,QAAO,gCAAgC;AACtE,SAAQC,qBAAqB,QAAO,8BAA8B;AAClE,SACEC,sBAAsB,EACtBC,QAAQ,EACRC,cAAc,QACT,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEtB,MAAMC,WAAW,GAAGhB,SAAS,CAACiB,KAAK,CAAC;EAClCC,MAAM,EAAElB,SAAS,CAACiB,KAAK,CAAC;IACtBE,QAAQ,EAAEnB,SAAS,CAACoB,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEtB,SAAS,CAACoB,MAAM,CAACC;EAC9B,CAAC,CAAC;EACFE,IAAI,EAAEvB,SAAS,CAACoB,MAAM,CAACC,UAAU;EACjCG,OAAO,EAAExB,SAAS,CAACoB,MAAM,CAACC,UAAU;EACpCI,IA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