react-native-map4d-map-dtqg 0.1.3 → 0.1.5

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 (321) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +191 -133
  3. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  4. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  5. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  6. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  7. package/android/.gradle/8.9/gc.properties +0 -0
  8. package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
  9. package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
  10. package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
  11. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  12. package/android/.gradle/9.2.0/gc.properties +0 -0
  13. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  14. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  15. package/android/.gradle/vcs-1/gc.properties +0 -0
  16. package/android/build.gradle +60 -60
  17. package/android/src/main/AndroidManifest.xml +4 -4
  18. package/android/src/main/java/com/reactnativemap4dmap/ImageUtils.java +87 -87
  19. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapModule.java +310 -298
  20. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapPackage.java +35 -35
  21. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapViewManager.java +31 -31
  22. package/android/src/main/java/com/reactnativemap4dmap/RMFBuilding.java +167 -167
  23. package/android/src/main/java/com/reactnativemap4dmap/RMFBuildingManager.java +121 -121
  24. package/android/src/main/java/com/reactnativemap4dmap/RMFCircle.java +105 -105
  25. package/android/src/main/java/com/reactnativemap4dmap/RMFCircleManager.java +121 -121
  26. package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRenderer.java +502 -502
  27. package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRendererManager.java +143 -143
  28. package/android/src/main/java/com/reactnativemap4dmap/RMFFeature.java +17 -17
  29. package/android/src/main/java/com/reactnativemap4dmap/RMFMapView.java +1172 -1172
  30. package/android/src/main/java/com/reactnativemap4dmap/RMFMapViewManager.java +231 -231
  31. package/android/src/main/java/com/reactnativemap4dmap/RMFMarker.java +412 -412
  32. package/android/src/main/java/com/reactnativemap4dmap/RMFMarkerManager.java +211 -211
  33. package/android/src/main/java/com/reactnativemap4dmap/RMFPOI.java +222 -222
  34. package/android/src/main/java/com/reactnativemap4dmap/RMFPOIManager.java +119 -119
  35. package/android/src/main/java/com/reactnativemap4dmap/RMFPolygon.java +172 -172
  36. package/android/src/main/java/com/reactnativemap4dmap/RMFPolygonManager.java +147 -147
  37. package/android/src/main/java/com/reactnativemap4dmap/RMFPolyline.java +146 -146
  38. package/android/src/main/java/com/reactnativemap4dmap/RMFPolylineManager.java +137 -137
  39. package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlay.java +95 -95
  40. package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlayManager.java +64 -64
  41. package/android/src/main/java/com/reactnativemap4dmap/SizeReportingShadowNode.java +31 -31
  42. package/android/src/main/java/com/reactnativemap4dmap/ViewAttacherGroup.java +31 -31
  43. package/android/src/main/java/com/reactnativemap4dmap/ViewChangesTracker.java +70 -70
  44. package/android/src/main/java/vn/map4d/map/annotations/RMFBitmapDescriptor.java +9 -9
  45. package/ios/Map4dMap.h +16 -7
  46. package/ios/Map4dMap.m +119 -14
  47. package/ios/Map4dMapTurbo.mm +16 -0
  48. package/ios/RCTConvert+Map4dMap.h +33 -33
  49. package/ios/RCTConvert+Map4dMap.m +112 -112
  50. package/ios/RMFCircle.h +37 -37
  51. package/ios/RMFCircle.m +100 -100
  52. package/ios/RMFCircleManager.h +18 -18
  53. package/ios/RMFCircleManager.m +127 -155
  54. package/ios/RMFCircleMap4d.h +23 -23
  55. package/ios/RMFCircleMap4d.m +13 -13
  56. package/ios/RMFCoordinate.h +22 -22
  57. package/ios/RMFCoordinate.m +13 -13
  58. package/ios/RMFDirectionsMarkerOptions.h +24 -24
  59. package/ios/RMFDirectionsMarkerOptions.m +23 -23
  60. package/ios/RMFDirectionsRenderer.h +47 -47
  61. package/ios/RMFDirectionsRenderer.m +182 -182
  62. package/ios/RMFDirectionsRendererManager.h +17 -17
  63. package/ios/RMFDirectionsRendererManager.m +86 -84
  64. package/ios/RMFDirectionsRendererMap4d.h +21 -21
  65. package/ios/RMFDirectionsRendererMap4d.m +12 -12
  66. package/ios/RMFDummyView.h +6 -6
  67. package/ios/RMFDummyView.m +12 -12
  68. package/ios/RMFEventResponse.h +39 -39
  69. package/ios/RMFEventResponse.m +98 -98
  70. package/ios/RMFIcon.h +24 -24
  71. package/ios/RMFIcon.m +35 -35
  72. package/ios/RMFMapView.h +84 -84
  73. package/ios/RMFMapView.m +376 -376
  74. package/ios/RMFMapViewManager.h +17 -17
  75. package/ios/RMFMapViewManager.m +424 -509
  76. package/ios/RMFMarker.h +57 -57
  77. package/ios/RMFMarker.m +267 -267
  78. package/ios/RMFMarkerManager.h +17 -17
  79. package/ios/RMFMarkerManager.m +128 -156
  80. package/ios/RMFMarkerMap4d.h +19 -19
  81. package/ios/RMFMarkerMap4d.m +13 -13
  82. package/ios/RMFPOI.h +38 -38
  83. package/ios/RMFPOI.m +123 -123
  84. package/ios/RMFPOIManager.h +18 -18
  85. package/ios/RMFPOIManager.m +134 -168
  86. package/ios/RMFPOIMap4d.h +22 -22
  87. package/ios/RMFPOIMap4d.m +12 -12
  88. package/ios/RMFPolygon.h +41 -41
  89. package/ios/RMFPolygon.m +106 -106
  90. package/ios/RMFPolygonManager.h +18 -18
  91. package/ios/RMFPolygonManager.m +119 -141
  92. package/ios/RMFPolygonMap4d.h +23 -23
  93. package/ios/RMFPolygonMap4d.m +15 -15
  94. package/ios/RMFPolyline.h +38 -38
  95. package/ios/RMFPolyline.m +101 -101
  96. package/ios/RMFPolylineManager.h +18 -18
  97. package/ios/RMFPolylineManager.m +117 -139
  98. package/ios/RMFPolylineMap4d.h +22 -22
  99. package/ios/RMFPolylineMap4d.m +15 -15
  100. package/ios/building/RMFBuilding.h +41 -41
  101. package/ios/building/RMFBuilding.m +104 -104
  102. package/ios/building/RMFBuildingManager.h +19 -19
  103. package/ios/building/RMFBuildingManager.m +105 -133
  104. package/ios/building/RMFBuildingMap4d.h +23 -23
  105. package/ios/building/RMFBuildingMap4d.m +15 -15
  106. package/ios/overlays/RMFTileOverlay.h +36 -36
  107. package/ios/overlays/RMFTileOverlay.m +64 -64
  108. package/ios/overlays/RMFTileOverlayManager.h +17 -17
  109. package/ios/overlays/RMFTileOverlayManager.m +27 -27
  110. package/lib/commonjs/components/MFBanDoSo/constants.js +27 -0
  111. package/lib/commonjs/components/MFBanDoSo/constants.js.map +1 -0
  112. package/lib/commonjs/components/MFBanDoSo/helpers.js +200 -0
  113. package/lib/commonjs/components/MFBanDoSo/helpers.js.map +1 -0
  114. package/lib/commonjs/components/MFBanDoSo/propTypes.js +18 -0
  115. package/lib/commonjs/components/MFBanDoSo/propTypes.js.map +1 -0
  116. package/lib/commonjs/components/MFBanDoSo/styles.js +328 -0
  117. package/lib/commonjs/components/MFBanDoSo/styles.js.map +1 -0
  118. package/lib/commonjs/components/MFBanDoSo/ui.js +220 -0
  119. package/lib/commonjs/components/MFBanDoSo/ui.js.map +1 -0
  120. package/lib/commonjs/components/MFBanDoSo.js +190 -73
  121. package/lib/commonjs/components/MFBanDoSo.js.map +1 -1
  122. package/lib/commonjs/components/MFBuilding.js +41 -98
  123. package/lib/commonjs/components/MFBuilding.js.map +1 -1
  124. package/lib/commonjs/components/MFCircle.js +40 -90
  125. package/lib/commonjs/components/MFCircle.js.map +1 -1
  126. package/lib/commonjs/components/MFDirectionsRenderer.js +47 -107
  127. package/lib/commonjs/components/MFDirectionsRenderer.js.map +1 -1
  128. package/lib/commonjs/components/MFMapView.js +119 -199
  129. package/lib/commonjs/components/MFMapView.js.map +1 -1
  130. package/lib/commonjs/components/MFMarker.js +50 -118
  131. package/lib/commonjs/components/MFMarker.js.map +1 -1
  132. package/lib/commonjs/components/MFPOI.js +37 -94
  133. package/lib/commonjs/components/MFPOI.js.map +1 -1
  134. package/lib/commonjs/components/MFPolygon.js +37 -91
  135. package/lib/commonjs/components/MFPolygon.js.map +1 -1
  136. package/lib/commonjs/components/MFPolyline.js +35 -87
  137. package/lib/commonjs/components/MFPolyline.js.map +1 -1
  138. package/lib/commonjs/components/MFTileOverlay.js +16 -24
  139. package/lib/commonjs/components/MFTileOverlay.js.map +1 -1
  140. package/lib/commonjs/components/Map4dMapView.js +1 -4
  141. package/lib/commonjs/components/Map4dMapView.js.map +1 -1
  142. package/lib/commonjs/components/extends/AreaFocusManager.js +20 -54
  143. package/lib/commonjs/components/extends/AreaFocusManager.js.map +1 -1
  144. package/lib/commonjs/components/extends/AreaFocuser.js +3 -19
  145. package/lib/commonjs/components/extends/AreaFocuser.js.map +1 -1
  146. package/lib/commonjs/components/extends/BoundHelper.js +0 -6
  147. package/lib/commonjs/components/extends/BoundHelper.js.map +1 -1
  148. package/lib/commonjs/components/extends/area/AreaFocusAreas.js +0 -37
  149. package/lib/commonjs/components/extends/area/AreaFocusAreas.js.map +1 -1
  150. package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js +1 -35
  151. package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
  152. package/lib/commonjs/components/extends/area/AreaFocusSession.js +0 -18
  153. package/lib/commonjs/components/extends/area/AreaFocusSession.js.map +1 -1
  154. package/lib/commonjs/components/extends/area/AreaFocusTypes.js +20 -21
  155. package/lib/commonjs/components/extends/area/AreaFocusTypes.js.map +1 -1
  156. package/lib/commonjs/components/internal/DefaultRoadmapStyle.js +1 -2
  157. package/lib/commonjs/components/internal/DefaultRoadmapStyle.js.map +1 -1
  158. package/lib/commonjs/components/internal/GeojsonStyleUtils.js +20 -31
  159. package/lib/commonjs/components/internal/GeojsonStyleUtils.js.map +1 -1
  160. package/lib/commonjs/index.js +0 -11
  161. package/lib/commonjs/index.js.map +1 -1
  162. package/lib/commonjs/native/Map4dMapNativeModule.js +10 -0
  163. package/lib/commonjs/native/Map4dMapNativeModule.js.map +1 -0
  164. package/lib/commonjs/native/NativeModuleResolver.js +35 -0
  165. package/lib/commonjs/native/NativeModuleResolver.js.map +1 -0
  166. package/lib/commonjs/native/ViewManagerCommand.js +67 -0
  167. package/lib/commonjs/native/ViewManagerCommand.js.map +1 -0
  168. package/lib/commonjs/package.json +1 -0
  169. package/lib/commonjs/specs/NativeMap4dMap.js +9 -0
  170. package/lib/commonjs/specs/NativeMap4dMap.js.map +1 -0
  171. package/lib/module/components/MFBanDoSo/constants.js +22 -0
  172. package/lib/module/components/MFBanDoSo/constants.js.map +1 -0
  173. package/lib/module/components/MFBanDoSo/helpers.js +188 -0
  174. package/lib/module/components/MFBanDoSo/helpers.js.map +1 -0
  175. package/lib/module/components/MFBanDoSo/propTypes.js +14 -0
  176. package/lib/module/components/MFBanDoSo/propTypes.js.map +1 -0
  177. package/lib/module/components/MFBanDoSo/styles.js +325 -0
  178. package/lib/module/components/MFBanDoSo/styles.js.map +1 -0
  179. package/lib/module/components/MFBanDoSo/ui.js +213 -0
  180. package/lib/module/components/MFBanDoSo/ui.js.map +1 -0
  181. package/lib/module/components/MFBanDoSo.js +192 -63
  182. package/lib/module/components/MFBanDoSo.js.map +1 -1
  183. package/lib/module/components/MFBuilding.js +43 -90
  184. package/lib/module/components/MFBuilding.js.map +1 -1
  185. package/lib/module/components/MFCircle.js +42 -82
  186. package/lib/module/components/MFCircle.js.map +1 -1
  187. package/lib/module/components/MFDirectionsRenderer.js +48 -99
  188. package/lib/module/components/MFDirectionsRenderer.js.map +1 -1
  189. package/lib/module/components/MFMapView.js +120 -188
  190. package/lib/module/components/MFMapView.js.map +1 -1
  191. package/lib/module/components/MFMarker.js +52 -109
  192. package/lib/module/components/MFMarker.js.map +1 -1
  193. package/lib/module/components/MFPOI.js +39 -86
  194. package/lib/module/components/MFPOI.js.map +1 -1
  195. package/lib/module/components/MFPolygon.js +39 -83
  196. package/lib/module/components/MFPolygon.js.map +1 -1
  197. package/lib/module/components/MFPolyline.js +37 -79
  198. package/lib/module/components/MFPolyline.js.map +1 -1
  199. package/lib/module/components/MFTileOverlay.js +19 -18
  200. package/lib/module/components/MFTileOverlay.js.map +1 -1
  201. package/lib/module/components/Map4dMapView.js +2 -0
  202. package/lib/module/components/Map4dMapView.js.map +1 -1
  203. package/lib/module/components/extends/AreaFocusManager.js +22 -48
  204. package/lib/module/components/extends/AreaFocusManager.js.map +1 -1
  205. package/lib/module/components/extends/AreaFocuser.js +5 -17
  206. package/lib/module/components/extends/AreaFocuser.js.map +1 -1
  207. package/lib/module/components/extends/BoundHelper.js +2 -5
  208. package/lib/module/components/extends/BoundHelper.js.map +1 -1
  209. package/lib/module/components/extends/area/AreaFocusAreas.js +2 -33
  210. package/lib/module/components/extends/area/AreaFocusAreas.js.map +1 -1
  211. package/lib/module/components/extends/area/AreaFocusGeometryUtils.js +2 -32
  212. package/lib/module/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
  213. package/lib/module/components/extends/area/AreaFocusSession.js +2 -17
  214. package/lib/module/components/extends/area/AreaFocusSession.js.map +1 -1
  215. package/lib/module/components/extends/area/AreaFocusTypes.js +21 -18
  216. package/lib/module/components/extends/area/AreaFocusTypes.js.map +1 -1
  217. package/lib/module/components/internal/DefaultRoadmapStyle.js +2 -0
  218. package/lib/module/components/internal/DefaultRoadmapStyle.js.map +1 -1
  219. package/lib/module/components/internal/GeojsonStyleUtils.js +21 -28
  220. package/lib/module/components/internal/GeojsonStyleUtils.js.map +1 -1
  221. package/lib/module/index.js +2 -0
  222. package/lib/module/index.js.map +1 -1
  223. package/lib/module/native/Map4dMapNativeModule.js +5 -0
  224. package/lib/module/native/Map4dMapNativeModule.js.map +1 -0
  225. package/lib/module/native/NativeModuleResolver.js +29 -0
  226. package/lib/module/native/NativeModuleResolver.js.map +1 -0
  227. package/lib/module/native/ViewManagerCommand.js +61 -0
  228. package/lib/module/native/ViewManagerCommand.js.map +1 -0
  229. package/lib/module/specs/NativeMap4dMap.js +5 -0
  230. package/lib/module/specs/NativeMap4dMap.js.map +1 -0
  231. package/lib/typescript/components/MFBanDoSo/constants.d.ts +8 -0
  232. package/lib/typescript/components/MFBanDoSo/constants.d.ts.map +1 -0
  233. package/lib/typescript/components/MFBanDoSo/helpers.d.ts +14 -0
  234. package/lib/typescript/components/MFBanDoSo/helpers.d.ts.map +1 -0
  235. package/lib/typescript/components/MFBanDoSo/propTypes.d.ts +2 -0
  236. package/lib/typescript/components/MFBanDoSo/propTypes.d.ts.map +1 -0
  237. package/lib/typescript/components/MFBanDoSo/styles.d.ts +462 -0
  238. package/lib/typescript/components/MFBanDoSo/styles.d.ts.map +1 -0
  239. package/lib/typescript/components/MFBanDoSo/ui.d.ts +30 -0
  240. package/lib/typescript/components/MFBanDoSo/ui.d.ts.map +1 -0
  241. package/lib/typescript/components/MFBanDoSo.d.ts +37 -0
  242. package/lib/typescript/components/MFBanDoSo.d.ts.map +1 -0
  243. package/lib/typescript/components/MFBuilding.d.ts +24 -0
  244. package/lib/typescript/components/MFBuilding.d.ts.map +1 -0
  245. package/lib/typescript/components/MFCircle.d.ts +24 -0
  246. package/lib/typescript/components/MFCircle.d.ts.map +1 -0
  247. package/lib/typescript/components/MFDirectionsRenderer.d.ts +19 -0
  248. package/lib/typescript/components/MFDirectionsRenderer.d.ts.map +1 -0
  249. package/lib/typescript/components/MFMapView.d.ts +66 -0
  250. package/lib/typescript/components/MFMapView.d.ts.map +1 -0
  251. package/lib/typescript/components/MFMarker.d.ts +26 -0
  252. package/lib/typescript/components/MFMarker.d.ts.map +1 -0
  253. package/lib/typescript/components/MFPOI.d.ts +24 -0
  254. package/lib/typescript/components/MFPOI.d.ts.map +1 -0
  255. package/lib/typescript/components/MFPolygon.d.ts +24 -0
  256. package/lib/typescript/components/MFPolygon.d.ts.map +1 -0
  257. package/lib/typescript/components/MFPolyline.d.ts +24 -0
  258. package/lib/typescript/components/MFPolyline.d.ts.map +1 -0
  259. package/lib/typescript/components/MFTileOverlay.d.ts +12 -0
  260. package/lib/typescript/components/MFTileOverlay.d.ts.map +1 -0
  261. package/lib/typescript/components/Map4dMapView.d.ts +2 -1
  262. package/lib/typescript/components/Map4dMapView.d.ts.map +1 -0
  263. package/lib/typescript/components/extends/AreaFocusManager.d.ts +34 -0
  264. package/lib/typescript/components/extends/AreaFocusManager.d.ts.map +1 -0
  265. package/lib/typescript/components/extends/AreaFocuser.d.ts +15 -0
  266. package/lib/typescript/components/extends/AreaFocuser.d.ts.map +1 -0
  267. package/lib/typescript/components/extends/BoundHelper.d.ts +11 -0
  268. package/lib/typescript/components/extends/BoundHelper.d.ts.map +1 -0
  269. package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts +58 -0
  270. package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts.map +1 -0
  271. package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts +19 -0
  272. package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts.map +1 -0
  273. package/lib/typescript/components/extends/area/AreaFocusSession.d.ts +14 -0
  274. package/lib/typescript/components/extends/area/AreaFocusSession.d.ts.map +1 -0
  275. package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts +40 -0
  276. package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts.map +1 -0
  277. package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts +820 -0
  278. package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts.map +1 -0
  279. package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts +3 -0
  280. package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts.map +1 -0
  281. package/lib/typescript/index.d.ts +13 -0
  282. package/lib/typescript/index.d.ts.map +1 -0
  283. package/lib/typescript/native/Map4dMapNativeModule.d.ts +2 -0
  284. package/lib/typescript/native/Map4dMapNativeModule.d.ts.map +1 -0
  285. package/lib/typescript/native/NativeModuleResolver.d.ts +3 -0
  286. package/lib/typescript/native/NativeModuleResolver.d.ts.map +1 -0
  287. package/lib/typescript/native/ViewManagerCommand.d.ts +11 -0
  288. package/lib/typescript/native/ViewManagerCommand.d.ts.map +1 -0
  289. package/package.json +168 -152
  290. package/react-native-map4d-map.podspec +20 -20
  291. package/src/components/MFBanDoSo/constants.js +32 -0
  292. package/src/components/MFBanDoSo/helpers.js +273 -0
  293. package/src/components/MFBanDoSo/propTypes.js +14 -0
  294. package/src/components/MFBanDoSo/styles.js +316 -0
  295. package/src/components/MFBanDoSo/ui.js +230 -0
  296. package/src/components/MFBanDoSo.js +314 -124
  297. package/src/components/MFBuilding.js +160 -187
  298. package/src/components/MFCircle.js +146 -173
  299. package/src/components/MFDirectionsRenderer.js +211 -237
  300. package/src/components/MFMapView.js +458 -464
  301. package/src/components/MFMarker.js +218 -246
  302. package/src/components/MFPOI.js +157 -184
  303. package/src/components/MFPolygon.js +159 -186
  304. package/src/components/MFPolyline.js +145 -172
  305. package/src/components/MFTileOverlay.js +45 -45
  306. package/src/components/Map4dMapView.tsx +26 -26
  307. package/src/components/extends/AreaFocusManager.js +196 -196
  308. package/src/components/extends/AreaFocuser.js +61 -61
  309. package/src/components/extends/BoundHelper.js +31 -31
  310. package/src/components/extends/area/AreaFocusAreas.js +164 -164
  311. package/src/components/extends/area/AreaFocusGeometryUtils.js +164 -164
  312. package/src/components/extends/area/AreaFocusSession.js +100 -100
  313. package/src/components/extends/area/AreaFocusTypes.js +36 -36
  314. package/src/components/internal/DefaultRoadmapStyle.js +3365 -3365
  315. package/src/components/internal/GeojsonStyleUtils.js +146 -143
  316. package/src/index.js +25 -25
  317. package/src/native/Map4dMapNativeModule.js +3 -0
  318. package/src/native/NativeModuleResolver.js +33 -0
  319. package/src/native/ViewManagerCommand.js +82 -0
  320. package/src/specs/NativeMap4dMap.js +12 -0
  321. package/ios/Map4dMapViewManager.m +0 -34
@@ -4,25 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.MFMapView = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _deprecatedReactNativePropTypes = require("deprecated-react-native-prop-types");
13
-
14
10
  var _AreaFocusManager = require("./extends/AreaFocusManager");
15
-
16
11
  var _AreaFocuser = require("./extends/AreaFocuser");
17
-
18
12
  var _MFPolygon = require("./MFPolygon");
19
-
13
+ var _Map4dMapNativeModule = require("../native/Map4dMapNativeModule");
14
+ var _ViewManagerCommand = require("../native/ViewManagerCommand");
20
15
  var _reactNative = require("react-native");
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
24
- 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); }
25
-
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
26
18
  const CameraShape = _propTypes.default.shape({
27
19
  target: _propTypes.default.shape({
28
20
  latitude: _propTypes.default.number.isRequired,
@@ -31,132 +23,110 @@ const CameraShape = _propTypes.default.shape({
31
23
  zoom: _propTypes.default.number.isRequired,
32
24
  bearing: _propTypes.default.number.isRequired,
33
25
  tilt: _propTypes.default.number.isRequired
34
- }); // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
35
-
26
+ });
36
27
 
28
+ // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
37
29
  const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
38
- const propTypes = { ...viewPropTypes,
39
-
40
- /**
41
- * An opaque identifier for a custom map configuration.
30
+ const propTypes = {
31
+ ...viewPropTypes,
32
+ /**
33
+ * An opaque identifier for a custom map configuration.
42
34
  */
43
35
  mapID: _propTypes.default.string,
44
-
45
- /**
46
- * Map style by string for a custom map configuration.
36
+ /**
37
+ * Map style by string for a custom map configuration.
47
38
  */
48
39
  mapStyle: _propTypes.default.string,
49
-
50
- /**
51
- * If `false` hide the button to move map to the current user's location.
52
- * Default value is `false`.
40
+ /**
41
+ * If `false` hide the button to move map to the current user's location.
42
+ * Default value is `false`.
53
43
  */
54
44
  showsMyLocationButton: _propTypes.default.bool,
55
-
56
- /**
57
- * If `true` the app will ask for the user's location.
58
- * Default value is `false`.
45
+ /**
46
+ * If `true` the app will ask for the user's location.
47
+ * Default value is `false`.
59
48
  */
60
49
  showsMyLocation: _propTypes.default.bool,
61
-
62
- /**
63
- * A Boolean indicating whether the map displays buildings.
64
- * Default value is `true`.
50
+ /**
51
+ * A Boolean indicating whether the map displays buildings.
52
+ * Default value is `true`.
65
53
  */
66
54
  showsBuildings: _propTypes.default.bool,
67
-
68
- /**
69
- * A Boolean indicating whether the map displays POIs.
70
- * Default value is `true`.
55
+ /**
56
+ * A Boolean indicating whether the map displays POIs.
57
+ * Default value is `true`.
71
58
  */
72
59
  showsPOIs: _propTypes.default.bool,
73
-
74
- /**
75
- * If `false` the user won't be able to zoom the map.
76
- * Default value is `true`.
60
+ /**
61
+ * If `false` the user won't be able to zoom the map.
62
+ * Default value is `true`.
77
63
  */
78
64
  zoomGesturesEnabled: _propTypes.default.bool,
79
-
80
- /**
81
- * If `false` the user won't be able to scroll the map.
82
- * Default value is `true`.
65
+ /**
66
+ * If `false` the user won't be able to scroll the map.
67
+ * Default value is `true`.
83
68
  */
84
69
  scrollGesturesEnabled: _propTypes.default.bool,
85
-
86
- /**
87
- * If `false` the user won't be able to pinch/rotate the map.
88
- * Default value is `true`.
70
+ /**
71
+ * If `false` the user won't be able to pinch/rotate the map.
72
+ * Default value is `true`.
89
73
  */
90
74
  rotateGesturesEnabled: _propTypes.default.bool,
91
-
92
- /**
93
- * If `false` the user won't be able to tilt the map.
94
- * Default value is `true`.
75
+ /**
76
+ * If `false` the user won't be able to tilt the map.
77
+ * Default value is `true`.
95
78
  */
96
79
  tiltGesturesEnabled: _propTypes.default.bool,
97
-
98
- /**
99
- * The camera view position.
80
+ /**
81
+ * The camera view position.
100
82
  */
101
83
  camera: CameraShape,
102
-
103
- /**
104
- * Type of map tiles to be rendered.
84
+ /**
85
+ * Type of map tiles to be rendered.
105
86
  */
106
87
  mapType: _propTypes.default.oneOf(['roadmap', 'satellite', 'hybrid']),
107
-
108
- /**
109
- * Callback that is called once the map is fully loaded.
110
- * @platform android
88
+ /**
89
+ * Callback that is called once the map is fully loaded.
90
+ * @platform android
111
91
  */
112
92
  onMapReady: _propTypes.default.func,
113
-
114
- /**
115
- * Callback that is called when user taps on the map.
93
+ /**
94
+ * Callback that is called when user taps on the map.
116
95
  */
117
96
  onPress: _propTypes.default.func,
118
-
119
- /**
120
- * Callback that is called when user taps on the POIs
97
+ /**
98
+ * Callback that is called when user taps on the POIs
121
99
  */
122
100
  onPoiPress: _propTypes.default.func,
123
-
124
- /**
125
- * Callback that is called when user taps on the Buildings
101
+ /**
102
+ * Callback that is called when user taps on the Buildings
126
103
  */
127
104
  onBuildingPress: _propTypes.default.func,
128
-
129
- /**
130
- * Callback that is called when user taps on the Places
105
+ /**
106
+ * Callback that is called when user taps on the Places
131
107
  */
132
108
  onPlacePress: _propTypes.default.func,
133
-
134
- /**
135
- * Callback that is called when user taps on the Data Source Features
109
+ /**
110
+ * Callback that is called when user taps on the Data Source Features
136
111
  */
137
112
  onDataSourceFeaturePress: _propTypes.default.func,
138
-
139
- /**
140
- * Callback that is called when moving camera
113
+ /**
114
+ * Callback that is called when moving camera
141
115
  */
142
116
  onCameraMove: _propTypes.default.func,
143
-
144
- /**
145
- * Callback that is called when camera start moving
117
+ /**
118
+ * Callback that is called when camera start moving
146
119
  */
147
120
  onCameraMoveStart: _propTypes.default.func,
148
-
149
- /**
150
- * Callback that is called when camera idle
121
+ /**
122
+ * Callback that is called when camera idle
151
123
  */
152
124
  onCameraIdle: _propTypes.default.func,
153
-
154
- /**
155
- * Callback that is called when user taps on location Button
125
+ /**
126
+ * Callback that is called when user taps on location Button
156
127
  */
157
128
  onMyLocationButtonPress: _propTypes.default.func
158
129
  };
159
-
160
130
  class MFMapView extends _react.default.Component {
161
131
  constructor(props) {
162
132
  super(props);
@@ -169,35 +139,33 @@ class MFMapView extends _react.default.Component {
169
139
  this._onMapReady = this._onMapReady.bind(this);
170
140
  this._ref = this._ref.bind(this);
171
141
  }
172
-
173
142
  _addPolygon(polygon) {
174
143
  if (polygon == null || typeof polygon !== 'object') {
175
144
  return null;
176
145
  }
177
-
178
146
  const id = typeof polygon.id === 'string' && polygon.id.trim().length > 0 ? polygon.id : 'polygon-highlight-id-default';
179
- const _polygon = { ...polygon,
147
+ const _polygon = {
148
+ ...polygon,
180
149
  id
181
150
  };
182
151
  this.setState(prevState => ({
183
- managedPolygons: { ...prevState.managedPolygons,
152
+ managedPolygons: {
153
+ ...prevState.managedPolygons,
184
154
  [id]: _polygon
185
155
  }
186
156
  }));
187
157
  return id;
188
158
  }
189
-
190
159
  _removePolygon(id) {
191
160
  if (typeof id !== 'string' || id.trim().length === 0) {
192
161
  return;
193
162
  }
194
-
195
163
  this.setState(prevState => {
196
164
  if (!prevState.managedPolygons[id]) {
197
165
  return null;
198
166
  }
199
-
200
- const managedPolygons = { ...prevState.managedPolygons
167
+ const managedPolygons = {
168
+ ...prevState.managedPolygons
201
169
  };
202
170
  delete managedPolygons[id];
203
171
  return {
@@ -205,13 +173,11 @@ class MFMapView extends _react.default.Component {
205
173
  };
206
174
  });
207
175
  }
208
-
209
176
  _clearManagedPolygons() {
210
177
  this.setState({
211
178
  managedPolygons: {}
212
179
  });
213
180
  }
214
-
215
181
  _onMapReady() {
216
182
  const {
217
183
  onMapReady
@@ -224,195 +190,151 @@ class MFMapView extends _react.default.Component {
224
190
  }
225
191
  });
226
192
  }
227
-
228
193
  _ref(ref) {
229
194
  this.map = ref;
230
195
  }
231
-
232
196
  getCamera() {
233
197
  if (_reactNative.Platform.OS === 'android') {
234
- return _reactNative.NativeModules.Map4dMap.getCamera(this._getHandle());
198
+ return this._runMap4dMapModuleMethod('getCamera', [this._getHandle()]);
235
199
  } else if (_reactNative.Platform.OS === 'ios') {
236
200
  return this._runCommand('getCamera', []);
237
201
  }
238
-
239
202
  return Promise.reject('Function not supported on this platform');
240
203
  }
241
-
242
204
  getBounds() {
243
205
  if (_reactNative.Platform.OS === 'android') {
244
- return _reactNative.NativeModules.Map4dMap.getBounds(this._getHandle());
206
+ return this._runMap4dMapModuleMethod('getBounds', [this._getHandle()]);
245
207
  } else if (_reactNative.Platform.OS === 'ios') {
246
208
  return this._runCommand('getBounds', []);
247
209
  }
248
-
249
210
  return Promise.reject('Function not supported on this platform');
250
211
  }
251
-
252
212
  getMyLocation() {
253
213
  if (_reactNative.Platform.OS === 'android') {
254
- return _reactNative.NativeModules.Map4dMap.getMyLocation(this._getHandle());
214
+ return this._runMap4dMapModuleMethod('getMyLocation', [this._getHandle()]);
255
215
  } else if (_reactNative.Platform.OS === 'ios') {
256
216
  return this._runCommand('getMyLocation', []);
257
217
  }
258
-
259
218
  return Promise.reject('Function not supported on this platform');
260
219
  }
261
-
262
220
  animateCamera(camera) {
263
221
  this._runCommand('animateCamera', [camera]);
264
222
  }
265
-
266
223
  moveCamera(camera) {
267
224
  this._runCommand('moveCamera', [camera]);
268
225
  }
269
-
270
226
  setMyLocationEnabled(enable) {
271
227
  this._runCommand('setMyLocationEnabled', [enable]);
272
228
  }
273
-
274
229
  showsMyLocationButton(enable) {
275
230
  this._runCommand('showsMyLocationButton', [enable]);
276
231
  }
277
-
278
232
  setPOIsEnabled(enable) {
279
233
  this._runCommand('setPOIsEnabled', [enable]);
280
234
  }
281
-
282
235
  setZoomGesturesEnabled(enable) {
283
236
  this._runCommand('setZoomGesturesEnabled', [enable]);
284
237
  }
285
-
286
238
  setScrollGesturesEnabled(enable) {
287
239
  this._runCommand('setScrollGesturesEnabled', [enable]);
288
240
  }
289
-
290
241
  setRotateGesturesEnabled(enable) {
291
242
  this._runCommand('setRotateGesturesEnabled', [enable]);
292
243
  }
293
-
294
244
  setTiltGesturesEnabled(enable) {
295
245
  this._runCommand('setTiltGesturesEnabled', [enable]);
296
246
  }
297
-
298
247
  setAllGesturesEnabled(enable) {
299
248
  this._runCommand('setAllGesturesEnabled', [enable]);
300
249
  }
301
-
302
250
  setTime(time) {
303
251
  let t = Date.parse(time);
304
-
305
252
  if (isNaN(t)) {
306
253
  console.log('time invalid');
307
254
  } else {
308
255
  this._runCommand('setTime', [t]);
309
256
  }
310
257
  }
311
-
312
258
  fitBounds(boundsData) {
313
259
  this._runCommand("fitBounds", [boundsData]);
314
260
  }
315
-
316
261
  cameraForBounds(boundsData) {
317
262
  if (_reactNative.Platform.OS === 'android') {
318
- return _reactNative.NativeModules.Map4dMap.cameraForBounds(this._getHandle(), boundsData);
263
+ return this._runMap4dMapModuleMethod('cameraForBounds', [this._getHandle(), boundsData]);
319
264
  } else if (_reactNative.Platform.OS === 'ios') {
320
265
  return this._runCommand('cameraForBounds', [boundsData]);
321
266
  }
322
-
323
267
  return Promise.reject('cameraForBounds not supported on this platform');
324
268
  }
325
- /**
326
- * Convert a map coordinate to screen point
327
- *
328
- * @param coordinate Coordinate
329
- * @param [coordinate.latitude] Latitude
330
- * @param [coordinate.longitude] Longitude
331
- *
332
- * @return Promise Promise with the point ({ x: Number, y: Number })
333
- */
334
-
335
269
 
270
+ /**
271
+ * Convert a map coordinate to screen point
272
+ *
273
+ * @param coordinate Coordinate
274
+ * @param [coordinate.latitude] Latitude
275
+ * @param [coordinate.longitude] Longitude
276
+ *
277
+ * @return Promise Promise with the point ({ x: Number, y: Number })
278
+ */
336
279
  pointForCoordinate(coordinate) {
337
280
  if (_reactNative.Platform.OS === 'android') {
338
- return _reactNative.NativeModules.Map4dMap.pointForCoordinate(this._getHandle(), coordinate);
281
+ return this._runMap4dMapModuleMethod('pointForCoordinate', [this._getHandle(), coordinate]);
339
282
  } else if (_reactNative.Platform.OS === 'ios') {
340
283
  return this._runCommand('pointForCoordinate', [coordinate]);
341
284
  }
342
-
343
285
  return Promise.reject('pointForCoordinate not supported on this platform');
344
286
  }
345
- /**
346
- * Convert a screen point to a map coordinate
347
- *
348
- * @param point Point
349
- * @param [point.x] X
350
- * @param [point.x] Y
351
- *
352
- * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })
353
- */
354
-
355
287
 
288
+ /**
289
+ * Convert a screen point to a map coordinate
290
+ *
291
+ * @param point Point
292
+ * @param [point.x] X
293
+ * @param [point.x] Y
294
+ *
295
+ * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })
296
+ */
356
297
  coordinateForPoint(point) {
357
298
  if (_reactNative.Platform.OS === 'android') {
358
- return _reactNative.NativeModules.Map4dMap.coordinateForPoint(this._getHandle(), point);
299
+ return this._runMap4dMapModuleMethod('coordinateForPoint', [this._getHandle(), point]);
359
300
  } else if (_reactNative.Platform.OS === 'ios') {
360
301
  return this._runCommand('coordinateForPoint', [point]);
361
302
  }
362
-
363
303
  return Promise.reject('coordinateForPoint not supported on this platform');
364
304
  }
365
-
366
305
  focusArea(focusOptions) {
367
306
  if (!this.areaFocusManager) {
368
307
  return Promise.resolve(null);
369
308
  }
370
-
371
309
  return this.areaFocusManager.focus(focusOptions);
372
310
  }
373
-
374
311
  clearFocusedArea() {
375
312
  if (!this.areaFocusManager) {
376
313
  return;
377
314
  }
378
-
379
315
  this.areaFocusManager.clear();
380
316
  }
381
-
382
317
  _getHandle() {
383
318
  return (0, _reactNative.findNodeHandle)(this.map);
384
319
  }
385
-
386
- _runCommand(name, args) {
387
- switch (_reactNative.Platform.OS) {
388
- case 'android':
389
- return _reactNative.NativeModules.UIManager.dispatchViewManagerCommand(this._getHandle(), this._uiManagerCommand(name), args);
390
-
391
- case 'ios':
392
- return this._mapManagerCommand(name)(this._getHandle(), ...args);
393
-
394
- default:
395
- return Promise.reject(`Invalid platform was passed: ${_reactNative.Platform.OS}`);
320
+ _runMap4dMapModuleMethod(name, args) {
321
+ const map4dMapNativeModule = (0, _Map4dMapNativeModule.getMap4dMapNativeModule)();
322
+ if (!map4dMapNativeModule || typeof map4dMapNativeModule[name] !== 'function') {
323
+ return Promise.reject(`Map4dMap native method "${name}" is unavailable`);
396
324
  }
325
+ return map4dMapNativeModule[name](...args);
397
326
  }
398
-
399
- _uiManagerCommand(name) {
400
- const UIManager = _reactNative.NativeModules.UIManager;
401
- const componentName = "RMFMapView";
402
-
403
- if (!UIManager.getViewManagerConfig) {
404
- // RN < 0.58
405
- return UIManager[componentName].Commands[name];
406
- } // RN >= 0.58
407
-
408
-
409
- return UIManager.getViewManagerConfig(componentName).Commands[name];
410
- }
411
-
412
- _mapManagerCommand(name) {
413
- return _reactNative.NativeModules[`RMFMapView`][name];
327
+ _runCommand(name, args) {
328
+ return (0, _ViewManagerCommand.runViewManagerCommand)({
329
+ componentName: 'RMFMapView',
330
+ moduleName: 'RMFMapView',
331
+ commandName: name,
332
+ args,
333
+ reactTag: this._getHandle(),
334
+ platform: _reactNative.Platform.OS,
335
+ rejectOnError: true
336
+ });
414
337
  }
415
-
416
338
  render() {
417
339
  let props;
418
340
  const {
@@ -420,21 +342,21 @@ class MFMapView extends _react.default.Component {
420
342
  ...restProps
421
343
  } = this.props;
422
344
  const managedPolygons = Object.values(this.state.managedPolygons);
423
-
424
345
  if (this.state.isReady) {
425
346
  props = {
426
347
  style: this.props.style,
427
348
  onMapReady: this._onMapReady,
428
349
  ...restProps,
429
- children: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children, managedPolygons.map(polygon => /*#__PURE__*/_react.default.createElement(_MFPolygon.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
- })))
350
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
351
+ children: [children, managedPolygons.map(polygon => /*#__PURE__*/(0, _jsxRuntime.jsx)(_MFPolygon.MFPolygon, {
352
+ coordinates: polygon.coordinates,
353
+ holes: polygon.holes,
354
+ fillColor: polygon.fillColor,
355
+ strokeColor: polygon.strokeColor,
356
+ strokeWidth: polygon.strokeWidth,
357
+ zIndex: polygon.zIndex
358
+ }, polygon.id))]
359
+ })
438
360
  };
439
361
  } else {
440
362
  props = {
@@ -442,14 +364,12 @@ class MFMapView extends _react.default.Component {
442
364
  onMapReady: this._onMapReady
443
365
  };
444
366
  }
445
-
446
- return /*#__PURE__*/_react.default.createElement(RMFMapView, _extends({}, props, {
367
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFMapView, {
368
+ ...props,
447
369
  ref: this._ref
448
- }));
370
+ });
449
371
  }
450
-
451
372
  }
452
-
453
373
  exports.MFMapView = MFMapView;
454
374
  MFMapView.propTypes = propTypes;
455
375
  var RMFMapView = (0, _reactNative.requireNativeComponent)(`RMFMapView`, MFMapView);
@@ -1 +1 @@
1
- {"version":3,"names":["CameraShape","PropTypes","shape","target","latitude","number","isRequired","longitude","zoom","bearing","tilt","viewPropTypes","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","React","Component","constructor","props","areaFocusManager","AreaFocusManager","areaFocuser","AreaFocuser","state","isReady","Platform","OS","managedPolygons","_onMapReady","bind","_ref","_addPolygon","polygon","id","trim","length","_polygon","setState","prevState","_removePolygon","_clearManagedPolygons","ref","map","getCamera","NativeModules","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","findNodeHandle","name","args","UIManager","dispatchViewManagerCommand","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","render","children","restProps","Object","values","style","coordinates","holes","fillColor","strokeColor","strokeWidth","zIndex","RMFMapView","requireNativeComponent"],"sources":["MFMapView.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\nimport {AreaFocusManager} from './extends/AreaFocusManager';\nimport {AreaFocuser} from './extends/AreaFocuser';\nimport {MFPolygon} from './MFPolygon';\nimport {\n requireNativeComponent,\n Platform,\n NativeModules,\n findNodeHandle\n} from 'react-native';\n\nconst CameraShape = PropTypes.shape({\n target: PropTypes.shape({\n latitude: PropTypes.number.isRequired,\n longitude: PropTypes.number.isRequired,\n }),\n zoom: PropTypes.number.isRequired,\n bearing: PropTypes.number.isRequired,\n tilt: PropTypes.number.isRequired,\n});\n\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\nconst viewPropTypes = ViewPropTypes || View.propTypes;\n\nconst propTypes = {\n ...viewPropTypes,\n\n /**\n * An opaque identifier for a custom map configuration.\n */\n mapID: PropTypes.string,\n\n /**\n * Map style by string for a custom map configuration.\n */\n mapStyle: PropTypes.string,\n\n /**\n * If `false` hide the button to move map to the current user's location.\n * Default value is `false`.\n */\n showsMyLocationButton: PropTypes.bool,\n\n /**\n * If `true` the app will ask for the user's location.\n * Default value is `false`.\n */\n showsMyLocation: PropTypes.bool,\n\n /**\n * A Boolean indicating whether the map displays buildings.\n * Default value is `true`.\n */\n showsBuildings: PropTypes.bool,\n\n /**\n * A Boolean indicating whether the map displays POIs.\n * Default value is `true`.\n */\n showsPOIs: PropTypes.bool,\n\n /**\n * If `false` the user won't be able to zoom the map.\n * Default value is `true`.\n */\n zoomGesturesEnabled: PropTypes.bool,\n\n /**\n * If `false` the user won't be able to scroll the map.\n * Default value is `true`.\n */\n scrollGesturesEnabled: PropTypes.bool,\n\n /**\n * If `false` the user won't be able to pinch/rotate the map.\n * Default value is `true`.\n */\n rotateGesturesEnabled: PropTypes.bool,\n\n /**\n * If `false` the user won't be able to tilt the map.\n * Default value is `true`.\n */\n tiltGesturesEnabled: PropTypes.bool,\n\n /**\n * The camera view position.\n */\n camera: CameraShape,\n\n /**\n * Type of map tiles to be rendered.\n */\n mapType: PropTypes.oneOf(['roadmap', 'satellite', 'hybrid']),\n\n /**\n * Callback that is called once the map is fully loaded.\n * @platform android\n */\n onMapReady: PropTypes.func,\n\n /**\n * Callback that is called when user taps on the map.\n */\n onPress: PropTypes.func,\n\n /**\n * Callback that is called when user taps on the POIs\n */\n onPoiPress: PropTypes.func,\n\n /**\n * Callback that is called when user taps on the Buildings\n */\n onBuildingPress: PropTypes.func,\n\n /**\n * Callback that is called when user taps on the Places\n */\n onPlacePress: PropTypes.func,\n\n /**\n * Callback that is called when user taps on the Data Source Features\n */\n onDataSourceFeaturePress: PropTypes.func,\n\n /**\n * Callback that is called when moving camera\n */\n onCameraMove: PropTypes.func,\n\n /**\n * Callback that is called when camera start moving\n */\n onCameraMoveStart: PropTypes.func,\n\n /**\n * Callback that is called when camera idle\n */\n onCameraIdle: PropTypes.func,\n\n /**\n * Callback that is called when user taps on location Button\n */\n onMyLocationButtonPress: PropTypes.func,\n\n};\n\n\nclass MFMapView extends React.Component {\n constructor(props) {\n super(props);\n this.areaFocusManager = new AreaFocusManager(this);\n this.areaFocuser = new AreaFocuser(this.areaFocusManager);\n this.state = {\n isReady: Platform.OS === 'ios',\n managedPolygons: {},\n };\n\n this._onMapReady = this._onMapReady.bind(this);\n this._ref = this._ref.bind(this);\n }\n\n _addPolygon(polygon) {\n if (polygon == null || typeof polygon !== 'object') {\n return null;\n }\n\n const id =\n typeof polygon.id === 'string' && polygon.id.trim().length > 0\n ? polygon.id\n : 'polygon-highlight-id-default';\n\n const _polygon = {\n ...polygon,\n id,\n };\n\n this.setState((prevState) => ({\n managedPolygons: {\n ...prevState.managedPolygons,\n [id]: _polygon,\n },\n }));\n\n return id;\n }\n\n _removePolygon(id) {\n if (typeof id !== 'string' || id.trim().length === 0) {\n return;\n }\n\n this.setState((prevState) => {\n if (!prevState.managedPolygons[id]) {\n return null;\n }\n\n const managedPolygons = {\n ...prevState.managedPolygons,\n };\n delete managedPolygons[id];\n\n return {\n managedPolygons,\n };\n });\n }\n\n _clearManagedPolygons() {\n this.setState({\n managedPolygons: {},\n });\n }\n\n _onMapReady() {\n const { onMapReady } = this.props;\n this.setState({ isReady: true }, () => {\n if (onMapReady) {\n onMapReady();\n }\n });\n }\n\n _ref(ref) {\n this.map = ref;\n }\n\n getCamera() {\n if (Platform.OS === 'android') {\n return NativeModules.Map4dMap.getCamera(this._getHandle());\n } else if (Platform.OS === 'ios') {\n return this._runCommand('getCamera', []);\n }\n return Promise.reject('Function not supported on this platform');\n }\n\n getBounds() {\n if (Platform.OS === 'android') {\n return NativeModules.Map4dMap.getBounds(this._getHandle());\n } else if (Platform.OS === 'ios') {\n return this._runCommand('getBounds', []);\n }\n return Promise.reject('Function not supported on this platform');\n }\n\n getMyLocation() {\n if (Platform.OS === 'android') {\n return NativeModules.Map4dMap.getMyLocation(this._getHandle());\n } else if (Platform.OS === 'ios') {\n return this._runCommand('getMyLocation', []);\n }\n return Promise.reject('Function not supported on this platform');\n }\n\n animateCamera(camera) {\n this._runCommand('animateCamera', [camera]);\n }\n\n moveCamera(camera) {\n this._runCommand('moveCamera', [camera]);\n }\n\n setMyLocationEnabled(enable) {\n this._runCommand('setMyLocationEnabled', [enable]);\n }\n\n showsMyLocationButton(enable) {\n this._runCommand('showsMyLocationButton', [enable]);\n }\n\n setPOIsEnabled(enable) {\n this._runCommand('setPOIsEnabled', [enable]);\n }\n\n setZoomGesturesEnabled(enable) {\n this._runCommand('setZoomGesturesEnabled', [enable]);\n }\n\n setScrollGesturesEnabled(enable) {\n this._runCommand('setScrollGesturesEnabled', [enable]);\n }\n\n setRotateGesturesEnabled(enable) {\n this._runCommand('setRotateGesturesEnabled', [enable]);\n }\n\n setTiltGesturesEnabled(enable) {\n this._runCommand('setTiltGesturesEnabled', [enable]);\n }\n\n setAllGesturesEnabled(enable) {\n this._runCommand('setAllGesturesEnabled', [enable]);\n }\n\n setTime(time) {\n let t = Date.parse(time)\n if (isNaN(t)) {\n console.log('time invalid')\n }\n else {\n this._runCommand('setTime', [t]);\n }\n }\n\n fitBounds(boundsData) {\n this._runCommand(\"fitBounds\", [boundsData])\n }\n\n cameraForBounds(boundsData) {\n if (Platform.OS === 'android') {\n return NativeModules.Map4dMap.cameraForBounds(\n this._getHandle(),\n boundsData\n );\n } else if (Platform.OS === 'ios') {\n return this._runCommand('cameraForBounds', [boundsData]);\n }\n return Promise.reject('cameraForBounds not supported on this platform');\n }\n\n\n /**\n * Convert a map coordinate to screen point\n *\n * @param coordinate Coordinate\n * @param [coordinate.latitude] Latitude\n * @param [coordinate.longitude] Longitude\n *\n * @return Promise Promise with the point ({ x: Number, y: Number })\n */\n pointForCoordinate(coordinate) {\n if (Platform.OS === 'android') {\n return NativeModules.Map4dMap.pointForCoordinate(\n this._getHandle(),\n coordinate\n );\n } else if (Platform.OS === 'ios') {\n return this._runCommand('pointForCoordinate', [coordinate]);\n }\n return Promise.reject('pointForCoordinate not supported on this platform');\n }\n\n /**\n * Convert a screen point to a map coordinate\n *\n * @param point Point\n * @param [point.x] X\n * @param [point.x] Y\n *\n * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })\n */\n coordinateForPoint(point) {\n if (Platform.OS === 'android') {\n return NativeModules.Map4dMap.coordinateForPoint(\n this._getHandle(),\n point\n );\n } else if (Platform.OS === 'ios') {\n return this._runCommand('coordinateForPoint', [point]);\n }\n return Promise.reject('coordinateForPoint not supported on this platform');\n }\n\n focusArea(focusOptions) {\n if (!this.areaFocusManager) {\n return Promise.resolve(null)\n }\n\n return this.areaFocusManager.focus(focusOptions)\n }\n\n clearFocusedArea() {\n if (!this.areaFocusManager) {\n return\n }\n this.areaFocusManager.clear()\n }\n\n _getHandle() {\n return findNodeHandle(this.map);\n }\n\n _runCommand(name, args) {\n switch (Platform.OS) {\n case 'android':\n return NativeModules.UIManager.dispatchViewManagerCommand(\n this._getHandle(),\n this._uiManagerCommand(name),\n args\n );\n\n case 'ios':\n return this._mapManagerCommand(name)(this._getHandle(), ...args);\n\n default:\n return Promise.reject(`Invalid platform was passed: ${Platform.OS}`);\n }\n }\n\n _uiManagerCommand(name) {\n const UIManager = NativeModules.UIManager;\n const componentName = \"RMFMapView\";\n\n if (!UIManager.getViewManagerConfig) {\n // RN < 0.58\n return UIManager[componentName].Commands[name];\n }\n\n // RN >= 0.58 \n return UIManager.getViewManagerConfig(componentName).Commands[name];\n }\n\n _mapManagerCommand(name) {\n return NativeModules[`RMFMapView`][name];\n }\n\n render() {\n let props;\n const { children, ...restProps } = this.props;\n const managedPolygons = Object.values(this.state.managedPolygons);\n\n if (this.state.isReady) {\n props = {\n style: this.props.style,\n onMapReady: this._onMapReady,\n ...restProps,\n children: (\n <React.Fragment>\n {children}\n {managedPolygons.map((polygon) => (\n <MFPolygon\n key={polygon.id}\n coordinates={polygon.coordinates}\n holes={polygon.holes}\n fillColor={polygon.fillColor}\n strokeColor={polygon.strokeColor}\n strokeWidth={polygon.strokeWidth}\n zIndex={polygon.zIndex}\n />\n ))}\n </React.Fragment>\n ),\n };\n } else {\n props = {\n style: this.props.style,\n onMapReady: this._onMapReady\n };\n }\n\n return <RMFMapView\n {...props}\n ref={this._ref}\n />;\n }\n}\n\nMFMapView.propTypes = propTypes;\nvar RMFMapView = requireNativeComponent(`RMFMapView`, MFMapView);\n\n\nexport { MFMapView }"],"mapp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C;;;AAqTxChB,SAAS,CAAC3B,SAAV,GAAsBA,SAAtB;AACA,IAAIsH,UAAU,GAAG,IAAAC,mCAAA,EAAwB,YAAxB,EAAqC5F,SAArC,CAAjB"}
1
+ {"version":3,"names":["_propTypes","_interopRequireDefault","require","_react","_deprecatedReactNativePropTypes","_AreaFocusManager","_AreaFocuser","_MFPolygon","_Map4dMapNativeModule","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","CameraShape","PropTypes","shape","target","latitude","number","isRequired","longitude","zoom","bearing","tilt","viewPropTypes","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","React","Component","constructor","props","areaFocusManager","AreaFocusManager","areaFocuser","AreaFocuser","state","isReady","Platform","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","findNodeHandle","name","args","map4dMapNativeModule","getMap4dMapNativeModule","runViewManagerCommand","componentName","moduleName","commandName","reactTag","platform","rejectOnError","render","children","restProps","Object","values","style","jsxs","Fragment","jsx","MFPolygon","coordinates","holes","fillColor","strokeColor","strokeWidth","zIndex","RMFMapView","exports","requireNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFMapView.js"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AAIsB,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB,MAAMG,WAAW,GAAGC,kBAAS,CAACC,KAAK,CAAC;EAClCC,MAAM,EAAEF,kBAAS,CAACC,KAAK,CAAC;IACtBE,QAAQ,EAAEH,kBAAS,CAACI,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEN,kBAAS,CAACI,MAAM,CAACC;EAC9B,CAAC,CAAC;EACFE,IAAI,EAAEP,kBAAS,CAACI,MAAM,CAACC,UAAU;EACjCG,OAAO,EAAER,kBAAS,CAACI,MAAM,CAACC,UAAU;EACpCI,IAAI,EAAET,kBAAS,CAACI,MAAM,CAACC;AACzB,CAAC,CAAC;;AAEF;AACA,MAAMK,aAAa,GAAGC,6CAAa,IAAIC,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGH,aAAa;EAEhB;AACF;AACA;EACEI,KAAK,EAAEd,kBAAS,CAACe,MAAM;EAEvB;AACF;AACA;EACEC,QAAQ,EAAEhB,kBAAS,CAACe,MAAM;EAE1B;AACF;AACA;AACA;EACEE,qBAAqB,EAAEjB,kBAAS,CAACkB,IAAI;EAErC;AACF;AACA;AACA;EACEC,eAAe,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