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,13 +1,16 @@
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';
5
5
  import { ViewPropTypes } from 'deprecated-react-native-prop-types';
6
- import { requireNativeComponent, StyleSheet, Platform, Image, UIManager, NativeModules, findNodeHandle } from 'react-native'; // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
6
+ import { runViewManagerCommand } from '../native/ViewManagerCommand';
7
+ import { requireNativeComponent, StyleSheet, Image, findNodeHandle } from 'react-native';
7
8
 
9
+ // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
10
+ import { jsx as _jsx } from "react/jsx-runtime";
8
11
  const viewPropTypes = ViewPropTypes || View.propTypes;
9
- const propTypes = { ...viewPropTypes,
10
-
12
+ const propTypes = {
13
+ ...viewPropTypes,
11
14
  /**
12
15
  * The coordinate for the marker.
13
16
  */
@@ -15,12 +18,10 @@ const propTypes = { ...viewPropTypes,
15
18
  latitude: PropTypes.number.isRequired,
16
19
  longitude: PropTypes.number.isRequired
17
20
  }).isRequired,
18
-
19
21
  /**
20
22
  * Default value is `false`
21
23
  */
22
24
  draggable: PropTypes.bool,
23
-
24
25
  /**
25
26
  * Sets the ground anchor point for the marker.
26
27
  */
@@ -28,17 +29,14 @@ const propTypes = { ...viewPropTypes,
28
29
  x: PropTypes.number.isRequired,
29
30
  y: PropTypes.number.isRequired
30
31
  }),
31
-
32
32
  /**
33
33
  *
34
34
  */
35
35
  elevation: PropTypes.number,
36
-
37
36
  /**
38
37
  *
39
38
  */
40
39
  rotation: PropTypes.number,
41
-
42
40
  /**
43
41
  * Sets the infor window anchor point for the marker.
44
42
  */
@@ -46,17 +44,14 @@ const propTypes = { ...viewPropTypes,
46
44
  x: PropTypes.number.isRequired,
47
45
  y: PropTypes.number.isRequired
48
46
  }),
49
-
50
47
  /**
51
48
  * The title of the marker.
52
49
  */
53
50
  title: PropTypes.string,
54
-
55
51
  /**
56
52
  * The snippet of the marker.
57
53
  */
58
54
  snippet: PropTypes.string,
59
-
60
55
  /**
61
56
  * Marker icon to render.
62
57
  */
@@ -65,167 +60,99 @@ const propTypes = { ...viewPropTypes,
65
60
  width: PropTypes.number.isRequired,
66
61
  height: PropTypes.number.isRequired
67
62
  }),
68
-
69
63
  /**
70
64
  * zIndex
71
65
  */
72
66
  zIndex: PropTypes.number,
73
-
74
67
  /**
75
68
  * visible
76
69
  */
77
70
  visible: PropTypes.bool,
78
-
79
71
  /**
80
72
  * userData
81
73
  */
82
74
  userData: PropTypes.object,
83
-
84
75
  /**
85
76
  * Callback that is called when the user presses on the marker
86
77
  */
87
78
  onPress: PropTypes.func,
88
-
89
79
  /**
90
80
  * Callback that is called when the user presses on the info window
91
81
  */
92
82
  onPressInfoWindow: PropTypes.func,
93
-
94
83
  /**
95
84
  * Callback that is called when the user initiates a drag on this marker (if it is draggable)
96
85
  */
97
86
  onDragStart: PropTypes.func,
98
-
99
87
  /**
100
88
  * Callback called continuously as the marker is dragged
101
89
  */
102
90
  onDrag: PropTypes.func,
103
-
104
91
  /**
105
92
  * Callback that is called when a drag on this marker finishes. This is usually the point you
106
93
  * will want to setState on the marker's coordinate again
107
94
  */
108
95
  onDragEnd: PropTypes.func
109
96
  };
110
-
111
97
  class MFMarker extends React.Component {
112
98
  constructor(props) {
113
99
  super(props);
114
100
  this._onPress = this._onPress.bind(this);
115
101
  this._ref = this._ref.bind(this);
116
102
  }
117
-
118
103
  setCoordinate(location) {
119
104
  this._runCommand("setCoordinate", [location]);
120
105
  }
121
-
122
106
  setRotation(rotation) {
123
107
  this._runCommand("setRotation", [rotation]);
124
108
  }
125
-
126
109
  setTitle(title) {
127
110
  this._runCommand("setTitle", [title]);
128
111
  }
129
-
130
112
  setSnippet(snippet) {
131
113
  this._runCommand("setSnippet", [snippet]);
132
114
  }
133
-
134
115
  setDraggable(draggable) {
135
116
  this._runCommand("setDraggable", [draggable]);
136
117
  }
137
-
138
118
  setZIndex(zIndex) {
139
119
  this._runCommand("setZIndex", [zIndex]);
140
120
  }
141
-
142
121
  setVisible(visible) {
143
122
  this._runCommand("setVisible", [visible]);
144
123
  }
145
-
146
124
  setInfoWindowAnchor(anchor) {
147
125
  this._runCommand("setInfoWindowAnchor", [anchor]);
148
126
  }
149
-
150
127
  setElevation(elevation) {
151
128
  this._runCommand("setElevation", [elevation]);
152
129
  }
153
-
154
130
  setUserData(userData) {
155
131
  this._runCommand("setUserData", [userData]);
156
132
  }
157
-
158
133
  _getHandle() {
159
134
  return findNodeHandle(this.marker);
160
135
  }
161
-
162
136
  _runCommand(name, args) {
163
- switch (Platform.OS) {
164
- case 'android':
165
- {
166
- if (!UIManager || typeof UIManager.dispatchViewManagerCommand !== 'function') {
167
- return;
168
- }
169
-
170
- const commandId = this._uiManagerCommand(name);
171
-
172
- if (commandId == null) {
173
- return;
174
- }
175
-
176
- UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
177
- break;
178
- }
179
-
180
- case 'ios':
181
- //this.getMapManagerCommand(name)(this._getHandle(), ...args);
182
- this._mapManagerCommand(name)(this._getHandle(), ...args);
183
-
184
- break;
185
-
186
- default:
187
- break;
188
- }
137
+ return runViewManagerCommand({
138
+ componentName: 'RMFMarker',
139
+ moduleName: 'RMFMarker',
140
+ commandName: name,
141
+ args,
142
+ reactTag: this._getHandle()
143
+ });
189
144
  }
190
-
191
- _uiManagerCommand(name) {
192
- const uiManager = UIManager || NativeModules.UIManager;
193
- const componentName = "RMFMarker";
194
-
195
- if (!uiManager) {
196
- return null;
197
- }
198
-
199
- if (!uiManager.getViewManagerConfig) {
200
- // RN < 0.58
201
- const legacyConfig = uiManager[componentName];
202
- return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;
203
- } // RN >= 0.58
204
-
205
-
206
- const config = uiManager.getViewManagerConfig(componentName);
207
- return config && config.Commands ? config.Commands[name] : null;
208
- }
209
-
210
- _mapManagerCommand(name) {
211
- return NativeModules[`RMFMarker`][name];
212
- }
213
-
214
145
  _onPress(event) {
215
146
  event.stopPropagation();
216
-
217
147
  if (this.props.onPress) {
218
148
  this.props.onPress(event);
219
149
  }
220
150
  }
221
-
222
151
  _ref(ref) {
223
152
  this.marker = ref;
224
153
  }
225
-
226
154
  render() {
227
155
  let icon = {};
228
-
229
156
  if (this.props.icon) {
230
157
  let uri = Image.resolveAssetSource(this.props.icon.uri) || {
231
158
  uri: this.props.icon.uri
@@ -236,17 +163,15 @@ class MFMarker extends React.Component {
236
163
  height: this.props.icon.height
237
164
  };
238
165
  }
239
-
240
- return /*#__PURE__*/React.createElement(RMFMarker, _extends({}, this.props, {
166
+ return /*#__PURE__*/_jsx(RMFMarker, {
167
+ ...this.props,
241
168
  icon: icon,
242
169
  ref: this._ref,
243
170
  style: [styles.marker, this.props.style],
244
171
  onPress: this._onPress
245
- }));
172
+ });
246
173
  }
247
-
248
174
  }
249
-
250
175
  MFMarker.propTypes = propTypes;
251
176
  var RMFMarker = requireNativeComponent(`RMFMarker`, MFMarker);
252
177
  const styles = StyleSheet.create({
@@ -1 +1 @@
1
- {"version":3,"names":["PropTypes","React","ViewPropTypes","requireNativeComponent","StyleSheet","Platform","Image","UIManager","NativeModules","findNodeHandle","viewPropTypes","View","propTypes","coordinate","shape","latitude","number","isRequired","longitude","draggable","bool","anchor","x","y","elevation","rotation","infoWindowAnchor","title","string","snippet","icon","uri","any","width","height","zIndex","visible","userData","object","onPress","func","onPressInfoWindow","onDragStart","onDrag","onDragEnd","MFMarker","Component","constructor","props","_onPress","bind","_ref","setCoordinate","location","_runCommand","setRotation","setTitle","setSnippet","setDraggable","setZIndex","setVisible","setInfoWindowAnchor","setElevation","setUserData","_getHandle","marker","name","args","OS","dispatchViewManagerCommand","commandId","_uiManagerCommand","_mapManagerCommand","uiManager","componentName","getViewManagerConfig","legacyConfig","Commands","config","event","stopPropagation","ref","render","resolveAssetSource","styles","style","RMFMarker","create","position"],"sources":["MFMarker.js"],"sourcesContent":["import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport {ViewPropTypes} from 'deprecated-react-native-prop-types';\r\nimport {\r\n requireNativeComponent,\r\n StyleSheet,\r\n Platform,\r\n Image,\r\n UIManager,\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 coordinate for the marker.\r\n */\r\n coordinate: PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }).isRequired,\r\n\r\n /**\r\n * Default value is `false`\r\n */\r\n draggable: PropTypes.bool,\r\n\r\n /**\r\n * Sets the ground anchor point for the marker.\r\n */\r\n anchor: PropTypes.shape({\r\n x: PropTypes.number.isRequired,\r\n y: PropTypes.number.isRequired,\r\n }),\r\n\r\n /**\r\n * \r\n */\r\n elevation: PropTypes.number,\r\n\r\n /**\r\n * \r\n */\r\n rotation: PropTypes.number,\r\n\r\n /**\r\n * Sets the infor window anchor point for the marker.\r\n */\r\n infoWindowAnchor: PropTypes.shape({\r\n x: PropTypes.number.isRequired,\r\n y: PropTypes.number.isRequired,\r\n }),\r\n\r\n /**\r\n * The title of the marker.\r\n */\r\n title: PropTypes.string,\r\n\r\n /**\r\n * The snippet of the marker.\r\n */\r\n snippet: PropTypes.string,\r\n\r\n /**\r\n * Marker icon to render.\r\n */\r\n icon: PropTypes.shape({\r\n uri: PropTypes.any.isRequired,\r\n width: PropTypes.number.isRequired,\r\n height: PropTypes.number.isRequired,\r\n }),\r\n\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 marker\r\n */\r\n onPress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when the user presses on the info window\r\n */\r\n onPressInfoWindow: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when the user initiates a drag on this marker (if it is draggable)\r\n */\r\n onDragStart: PropTypes.func,\r\n\r\n /**\r\n * Callback called continuously as the marker is dragged\r\n */\r\n onDrag: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when a drag on this marker finishes. This is usually the point you\r\n * will want to setState on the marker's coordinate again\r\n */\r\n onDragEnd: PropTypes.func,\r\n};\r\n\r\n\r\nclass MFMarker 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 setCoordinate(location) {\r\n this._runCommand(\"setCoordinate\", [location])\r\n }\r\n\r\n setRotation(rotation) {\r\n this._runCommand(\"setRotation\", [rotation])\r\n }\r\n\r\n setTitle(title) {\r\n this._runCommand(\"setTitle\", [title])\r\n }\r\n\r\n setSnippet(snippet) {\r\n this._runCommand(\"setSnippet\", [snippet])\r\n }\r\n\r\n setDraggable(draggable) {\r\n this._runCommand(\"setDraggable\", [draggable])\r\n }\r\n\r\n setZIndex(zIndex) {\r\n this._runCommand(\"setZIndex\", [zIndex])\r\n }\r\n\r\n setVisible(visible) {\r\n this._runCommand(\"setVisible\", [visible])\r\n }\r\n\r\n setInfoWindowAnchor(anchor) {\r\n this._runCommand(\"setInfoWindowAnchor\", [anchor])\r\n }\r\n\r\n setElevation(elevation) {\r\n this._runCommand(\"setElevation\", [elevation])\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.marker);\r\n }\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;\r\n }\r\n\r\n const commandId = this._uiManagerCommand(name);\r\n if (commandId == null) {\r\n return;\r\n }\r\n\r\n UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);\r\n break;\r\n }\r\n \r\n case 'ios':\r\n //this.getMapManagerCommand(name)(this._getHandle(), ...args);\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 = UIManager || NativeModules.UIManager;\r\n const componentName = \"RMFMarker\";\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 const legacyConfig = uiManager[componentName];\r\n return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;\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[`RMFMarker`][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.marker = ref;\r\n }\r\n\r\n render() {\r\n let icon = {};\r\n if (this.props.icon) {\r\n let uri = Image.resolveAssetSource(this.props.icon.uri) || {uri: this.props.icon.uri};\r\n icon = {uri: uri.uri, width: this.props.icon.width, height: this.props.icon.height}\r\n }\r\n return <RMFMarker\r\n {...this.props}\r\n icon={icon}\r\n ref={this._ref}\r\n style={[styles.marker, this.props.style]}\r\n onPress={this._onPress}\r\n />;\r\n }\r\n}\r\n\r\nMFMarker.propTypes = propTypes;\r\nvar RMFMarker = requireNativeComponent(`RMFMarker`, MFMarker);\r\n\r\nconst styles = StyleSheet.create({\r\n marker: {\r\n position: 'absolute'\r\n },\r\n});\r\n\r\nexport {MFMarker}\r\n"],"mappings":";;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,aAAR,QAA4B,oCAA5B;AACA,SACEC,sBADF,EAEEC,UAFF,EAGEC,QAHF,EAIEC,KAJF,EAKEC,SALF,EAMEC,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A,GAAV;QAAeE,KAAK,EAAE,KAAKe,KAAL,CAAWlB,IAAX,CAAgBG,KAAtC;QAA6CC,MAAM,EAAE,KAAKc,KAAL,CAAWlB,IAAX,CAAgBI;MAArE,CAAP;IACD;;IACD,oBAAO,oBAAC,SAAD,eACD,KAAKc,KADJ;MAEL,IAAI,EAAElB,IAFD;MAGL,GAAG,EAAE,KAAKqB,IAHL;MAIL,KAAK,EAAE,CAACiC,MAAM,CAACnB,MAAR,EAAgB,KAAKjB,KAAL,CAAWqC,KAA3B,CAJF;MAKL,OAAO,EAAE,KAAKpC;IALT,GAAP;EAOD;;AA7HgC;;AAgIvCJ,QAAQ,CAACjC,SAAT,GAAqBA,SAArB;AACA,IAAI0E,SAAS,GAAGnF,sBAAsB,CAAE,WAAF,EAAc0C,QAAd,CAAtC;AAEA,MAAMuC,MAAM,GAAGhF,UAAU,CAACmF,MAAX,CAAkB;EAC/BtB,MAAM,EAAE;IACNuB,QAAQ,EAAE;EADJ;AADuB,CAAlB,CAAf;AAMA,SAAQ3C,QAAR"}
1
+ {"version":3,"names":["PropTypes","React","ViewPropTypes","runViewManagerCommand","requireNativeComponent","StyleSheet","Image","findNodeHandle","jsx","_jsx","viewPropTypes","View","propTypes","coordinate","shape","latitude","number","isRequired","longitude","draggable","bool","anchor","x","y","elevation","rotation","infoWindowAnchor","title","string","snippet","icon","uri","any","width","height","zIndex","visible","userData","object","onPress","func","onPressInfoWindow","onDragStart","onDrag","onDragEnd","MFMarker","Component","constructor","props","_onPress","bind","_ref","setCoordinate","location","_runCommand","setRotation","setTitle","setSnippet","setDraggable","setZIndex","setVisible","setInfoWindowAnchor","setElevation","setUserData","_getHandle","marker","name","args","componentName","moduleName","commandName","reactTag","event","stopPropagation","ref","render","resolveAssetSource","RMFMarker","style","styles","create","position"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFMarker.js"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,OAAO;AACzB,S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iC,KAAK,CAAC;IAC7B;EACF;EAEArB,IAAIA,CAACuB,GAAG,EAAE;IACR,IAAI,CAACT,MAAM,GAAGS,GAAG;EACnB;EAEAC,MAAMA,CAAA,EAAG;IACP,IAAI7C,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,IAAI,CAACkB,KAAK,CAAClB,IAAI,EAAE;MACnB,IAAIC,GAAG,GAAGzB,KAAK,CAACsE,kBAAkB,CAAC,IAAI,CAAC5B,KAAK,CAAClB,IAAI,CAACC,GAAG,CAAC,IAAI;QAACA,GAAG,EAAE,IAAI,CAACiB,KAAK,CAAClB,IAAI,CAACC;MAAG,CAAC;MACrFD,IAAI,GAAG;QAACC,GAAG,EAAEA,GAAG,CAACA,GAAG;QAAEE,KAAK,EAAE,IAAI,CAACe,KAAK,CAAClB,IAAI,CAACG,KAAK;QAAEC,MAAM,EAAE,IAAI,CAACc,KAAK,CAAClB,IAAI,CAACI;MAAM,CAAC;IACrF;IACA,oBAAOzB,IAAA,CAACoE,SAAS;MAAA,GACX,IAAI,CAAC7B,KAAK;MACdlB,IAAI,EAAEA,IAAK;MACX4C,GAAG,EAAE,IAAI,CAACvB,IAAK;MACf2B,KAAK,EAAE,CAACC,MAAM,CAACd,MAAM,EAAE,IAAI,CAACjB,KAAK,CAAC8B,KAAK,CAAE;MACzCvC,OAAO,EAAE,IAAI,CAACU;IAAS,CACxB,CAAC;EACJ;AACN;AAEAJ,QAAQ,CAACjC,SAAS,GAAGA,SAAS;AAC9B,IAAIiE,SAAS,GAAGzE,sBAAsB,CAAC,WAAW,EAAEyC,QAAQ,CAAC;AAE7D,MAAMkC,MAAM,GAAG1E,UAAU,CAAC2E,MAAM,CAAC;EAC/Bf,MAAM,EAAE;IACNgB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,SAAQpC,QAAQ","ignoreList":[]}
@@ -1,13 +1,16 @@
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';
5
5
  import { ViewPropTypes, ColorPropType } from 'deprecated-react-native-prop-types';
6
- import { requireNativeComponent, Platform, Image, UIManager, NativeModules, findNodeHandle, processColor } from 'react-native'; // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
6
+ import { runViewManagerCommand } from '../native/ViewManagerCommand';
7
+ import { requireNativeComponent, Image, findNodeHandle, processColor } from 'react-native';
7
8
 
9
+ // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
10
+ import { jsx as _jsx } from "react/jsx-runtime";
8
11
  const viewPropTypes = ViewPropTypes || View.propTypes;
9
- const propTypes = { ...viewPropTypes,
10
-
12
+ const propTypes = {
13
+ ...viewPropTypes,
11
14
  /**
12
15
  * The coordinate for the POI.
13
16
  */
@@ -15,40 +18,33 @@ const propTypes = { ...viewPropTypes,
15
18
  latitude: PropTypes.number.isRequired,
16
19
  longitude: PropTypes.number.isRequired
17
20
  }).isRequired,
18
-
19
21
  /**
20
22
  * The title of the POI.
21
23
  */
22
24
  title: PropTypes.string,
23
-
24
25
  /**
25
26
  * The color of the title.
26
27
  */
27
28
  titleColor: ColorPropType,
28
-
29
29
  /**
30
30
  * The subtile of the POI.
31
31
  */
32
32
  subtitle: PropTypes.string,
33
-
34
33
  /**
35
34
  * The type of POI
36
35
  */
37
36
  //poiType: PropTypes.oneOf(['cafe', 'atm', 'bank']),
38
37
  poiType: PropTypes.string,
39
-
40
38
  /**
41
39
  * POI icon to render.
42
40
  */
43
41
  icon: PropTypes.shape({
44
42
  uri: PropTypes.any.isRequired
45
43
  }),
46
-
47
44
  /**
48
45
  * zIndex
49
46
  */
50
47
  zIndex: PropTypes.number,
51
-
52
48
  /**
53
49
  * visible
54
50
  */
@@ -59,131 +55,72 @@ const propTypes = { ...viewPropTypes,
59
55
  * userData
60
56
  */
61
57
  userData: PropTypes.object,
62
-
63
58
  /**
64
59
  * Callback that is called when the user presses on the POI
65
60
  */
66
61
  onPress: PropTypes.func
67
62
  };
68
-
69
63
  class MFPOI extends React.Component {
70
64
  constructor(props) {
71
65
  super(props);
72
66
  this._onPress = this._onPress.bind(this);
73
67
  this._ref = this._ref.bind(this);
74
68
  }
75
-
76
69
  _onPress(event) {
77
70
  event.stopPropagation();
78
-
79
71
  if (this.props.onPress) {
80
72
  this.props.onPress(event);
81
73
  }
82
74
  }
83
-
84
75
  _ref(ref) {
85
76
  this.poi = ref;
86
77
  }
87
-
88
78
  setCoordinate(coordinate) {
89
79
  this._runCommand("setCoordinate", [coordinate]);
90
80
  }
91
-
92
81
  setTitle(title) {
93
82
  this._runCommand("setTitle", [title]);
94
83
  }
95
-
96
84
  setTitleColor(color) {
97
85
  this._runCommand("setTitleColor", [processColor(color)]);
98
86
  }
99
-
100
87
  setSubTitle(subtitle) {
101
88
  this._runCommand("setSubTitle", [subtitle]);
102
89
  }
103
-
104
90
  setPoiType(type) {
105
91
  this._runCommand("setPoiType", [type]);
106
92
  }
107
-
108
93
  setIcon(icon) {
109
94
  let uri = Image.resolveAssetSource(icon.uri) || {
110
95
  uri: icon.uri
111
96
  };
112
-
113
97
  this._runCommand("setIcon", [{
114
98
  uri: uri.uri
115
99
  }]);
116
100
  }
117
-
118
101
  setZIndex(zIndex) {
119
102
  this._runCommand("setZIndex", [zIndex]);
120
- } // setVisible(visible) {
103
+ }
104
+ // setVisible(visible) {
121
105
  // this._runCommand("setVisible", [visible])
122
106
  // }
123
-
124
-
125
107
  setUserData(userData) {
126
108
  this._runCommand("setUserData", [userData]);
127
109
  }
128
-
129
110
  _getHandle() {
130
111
  return findNodeHandle(this.poi);
131
112
  }
132
-
133
113
  _runCommand(name, args) {
134
- switch (Platform.OS) {
135
- case 'android':
136
- {
137
- if (!UIManager || typeof UIManager.dispatchViewManagerCommand !== 'function') {
138
- return;
139
- }
140
-
141
- const commandId = this._uiManagerCommand(name);
142
-
143
- if (commandId == null) {
144
- return;
145
- }
146
-
147
- UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
148
- break;
149
- }
150
-
151
- case 'ios':
152
- this._mapManagerCommand(name)(this._getHandle(), ...args);
153
-
154
- break;
155
-
156
- default:
157
- break;
158
- }
114
+ return runViewManagerCommand({
115
+ componentName: 'RMFPOI',
116
+ moduleName: 'RMFPOI',
117
+ commandName: name,
118
+ args,
119
+ reactTag: this._getHandle()
120
+ });
159
121
  }
160
-
161
- _uiManagerCommand(name) {
162
- const uiManager = UIManager || NativeModules.UIManager;
163
- const componentName = "RMFPOI";
164
-
165
- if (!uiManager) {
166
- return null;
167
- }
168
-
169
- if (!uiManager.getViewManagerConfig) {
170
- // RN < 0.58
171
- const legacyConfig = uiManager[componentName];
172
- return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;
173
- } // RN >= 0.58
174
-
175
-
176
- const config = uiManager.getViewManagerConfig(componentName);
177
- return config && config.Commands ? config.Commands[name] : null;
178
- }
179
-
180
- _mapManagerCommand(name) {
181
- return NativeModules[`RMFPOI`][name];
182
- }
183
-
184
122
  render() {
185
123
  let icon = {};
186
-
187
124
  if (this.props.icon) {
188
125
  let uri = Image.resolveAssetSource(this.props.icon.uri) || {
189
126
  uri: this.props.icon.uri
@@ -192,16 +129,14 @@ class MFPOI extends React.Component {
192
129
  uri: uri.uri
193
130
  };
194
131
  }
195
-
196
- return /*#__PURE__*/React.createElement(RMFPOI, _extends({}, this.props, {
132
+ return /*#__PURE__*/_jsx(RMFPOI, {
133
+ ...this.props,
197
134
  icon: icon,
198
135
  ref: this._ref,
199
136
  onPress: this._onPress
200
- }));
137
+ });
201
138
  }
202
-
203
139
  }
204
-
205
140
  MFPOI.propTypes = propTypes;
206
141
  var RMFPOI = requireNativeComponent(`RMFPOI`, MFPOI);
207
142
  export { MFPOI };
@@ -1 +1 @@
1
- {"version":3,"names":["PropTypes","React","ViewPropTypes","ColorPropType","requireNativeComponent","Platform","Image","UIManager","NativeModules","findNodeHandle","processColor","viewPropTypes","View","propTypes","coordinate","shape","latitude","number","isRequired","longitude","title","string","titleColor","subtitle","poiType","icon","uri","any","zIndex","userData","object","onPress","func","MFPOI","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","poi","setCoordinate","_runCommand","setTitle","setTitleColor","color","setSubTitle","setPoiType","type","setIcon","resolveAssetSource","setZIndex","setUserData","_getHandle","name","args","OS","dispatchViewManagerCommand","commandId","_uiManagerCommand","_mapManagerCommand","uiManager","componentName","getViewManagerConfig","legacyConfig","Commands","config","render","RMFPOI"],"sources":["MFPOI.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 Image,\r\n UIManager,\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 for the POI.\r\n */\r\n coordinate: PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }).isRequired,\r\n\r\n /**\r\n * The title of the POI.\r\n */\r\n title: PropTypes.string,\r\n\r\n /**\r\n * The color of the title.\r\n */\r\n titleColor: ColorPropType,\r\n\r\n /**\r\n * The subtile of the POI.\r\n */\r\n subtitle: PropTypes.string,\r\n\r\n /**\r\n * The type of POI\r\n */\r\n //poiType: PropTypes.oneOf(['cafe', 'atm', 'bank']),\r\n poiType: PropTypes.string,\r\n\r\n /**\r\n * POI icon to render.\r\n */\r\n icon: PropTypes.shape({\r\n uri: PropTypes.any.isRequired\r\n }),\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 //TODO\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 POI\r\n */\r\n onPress: PropTypes.func,\r\n};\r\n\r\nclass MFPOI 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.poi = ref;\r\n }\r\n\r\n setCoordinate(coordinate) {\r\n this._runCommand(\"setCoordinate\", [coordinate])\r\n }\r\n setTitle(title) {\r\n this._runCommand(\"setTitle\", [title])\r\n }\r\n setTitleColor(color) {\r\n this._runCommand(\"setTitleColor\", [processColor(color)])\r\n }\r\n setSubTitle(subtitle) {\r\n this._runCommand(\"setSubTitle\", [subtitle])\r\n }\r\n setPoiType(type) {\r\n this._runCommand(\"setPoiType\", [type])\r\n }\r\n setIcon(icon) {\r\n let uri = Image.resolveAssetSource(icon.uri) || { uri: icon.uri }\r\n this._runCommand(\"setIcon\", [ { uri: uri.uri } ])\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 setUserData(userData) {\r\n this._runCommand(\"setUserData\", [userData])\r\n }\r\n\r\n _getHandle() {\r\n return findNodeHandle(this.poi);\r\n }\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;\r\n }\r\n\r\n const commandId = this._uiManagerCommand(name);\r\n if (commandId == null) {\r\n return;\r\n }\r\n\r\n UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);\r\n break;\r\n }\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 = UIManager || NativeModules.UIManager;\r\n const componentName = \"RMFPOI\";\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 const legacyConfig = uiManager[componentName];\r\n return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;\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[`RMFPOI`][name];\r\n }\r\n\r\n render() {\r\n let icon = {}\r\n if (this.props.icon) {\r\n let uri = Image.resolveAssetSource(this.props.icon.uri) || {uri: this.props.icon.uri}\r\n icon = { uri: uri.uri }\r\n }\r\n return <RMFPOI\r\n {...this.props}\r\n icon={icon}\r\n ref={this._ref}\r\n onPress={this._onPress}\r\n />;\r\n }\r\n}\r\n\r\nMFPOI.propTypes = propTypes;\r\n\r\nvar RMFPOI = requireNativeComponent(`RMFPOI`, MFPOI);\r\n\r\nexport {MFPOI}\r\n"],"mappings":";;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,aAAR,EAAuBC,aAAvB,QAA2C,oCAA3C;AACA,SACEC,sBADF,EAEEC,QAFF,EAGEC,KAHF,EAIEC,SAJF,EAKEC,aALF,EAMEC,cANF,EAOEC,YAPF,QAQO,cARP,C,CAUA;;AACA,MAAMC,aAAa,GAAGT,aAAa,IAAIU,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGF,aADa;;EAGd;AACJ;AACA;EACEG,UAAU,EAAEd,SAAS,CAACe,KAAV,CAAgB;IAC1BC,QAAQ,EAAEhB,SAAS,CAACiB,MAAV,CAAiBC,UADD;I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AAKU,KAAL,CAAWX,IAAX,CAAgBC;MAAtB,CAA3D;MACAD,IAAI,GAAG;QAAEC,GAAG,EAAEA,GAAG,CAACA;MAAX,CAAP;IACD;;IACD,oBAAO,oBAAC,MAAD,eACD,KAAKU,KADJ;MAEL,IAAI,EAAEX,IAFD;MAGL,GAAG,EAAE,KAAKc,IAHL;MAIL,OAAO,EAAE,KAAKF;IAJT,GAAP;EAMD;;AAhHiC;;AAmHpCJ,KAAK,CAACpB,SAAN,GAAkBA,SAAlB;AAEA,IAAI0D,MAAM,GAAGnE,sBAAsB,CAAE,QAAF,EAAW6B,KAAX,CAAnC;AAEA,SAAQA,KAAR"}
1
+ {"version":3,"names":["PropTypes","React","ViewPropTypes","ColorPropType","runViewManagerCommand","requireNativeComponent","Image","findNodeHandle","processColor","jsx","_jsx","viewPropTypes","View","propTypes","coordinate","shape","latitude","number","isRequired","longitude","title","string","titleColor","subtitle","poiType","icon","uri","any","zIndex","userData","object","onPress","func","MFPOI","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","poi","setCoordinate","_runCommand","setTitle","setTitleColor","color","setSubTitle","setPoiType","type","setIcon","resolveAssetSource","setZIndex","setUserData","_getHandle","name","args","componentName","moduleName","commandName","reactTag","render","RMFPOI"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFPOI.js"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAAQC,aAAa,EAAEC,aAAa,QAAO,oCAAoC;AAC/E,SAAQC,qBAAqB,QAAO,8BAA8B;AAClE,SACEC,sBAAsB,EACtBC,KAAK,EACLC,cAAc,EACdC,YAAY,QACP,cAAc;;AAErB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,aAAa,GAAGT,aAAa,IAAIU,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGF,aAAa;EAEd;AACJ;AACA;EACEG,UAAU,EAAEd,SAAS,CAAC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