@maplibre/maplibre-react-native 10.0.0-beta.12 → 10.0.0-beta.14

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 (447) hide show
  1. package/README.md +11 -13
  2. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +37 -48
  3. package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +16 -9
  4. package/app.plugin.js +1 -1
  5. package/ios/MLRN/MLRNCamera.m +6 -7
  6. package/lib/commonjs/MapLibreRN.js +77 -59
  7. package/lib/commonjs/MapLibreRN.js.map +1 -1
  8. package/lib/commonjs/components/Annotation.js +7 -9
  9. package/lib/commonjs/components/Annotation.js.map +1 -1
  10. package/lib/commonjs/components/BackgroundLayer.js +6 -8
  11. package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
  12. package/lib/commonjs/components/Callout.js +2 -2
  13. package/lib/commonjs/components/Callout.js.map +1 -1
  14. package/lib/commonjs/components/Camera.js +111 -63
  15. package/lib/commonjs/components/Camera.js.map +1 -1
  16. package/lib/commonjs/components/CircleLayer.js +6 -8
  17. package/lib/commonjs/components/CircleLayer.js.map +1 -1
  18. package/lib/commonjs/components/FillExtrusionLayer.js +6 -8
  19. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
  20. package/lib/commonjs/components/FillLayer.js +6 -8
  21. package/lib/commonjs/components/FillLayer.js.map +1 -1
  22. package/lib/commonjs/components/HeadingIndicator.js +4 -4
  23. package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
  24. package/lib/commonjs/components/HeatmapLayer.js +6 -8
  25. package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
  26. package/lib/commonjs/components/ImageSource.js +4 -5
  27. package/lib/commonjs/components/ImageSource.js.map +1 -1
  28. package/lib/commonjs/components/Images.js +2 -2
  29. package/lib/commonjs/components/Images.js.map +1 -1
  30. package/lib/commonjs/components/Light.js +4 -6
  31. package/lib/commonjs/components/Light.js.map +1 -1
  32. package/lib/commonjs/components/LineLayer.js +6 -8
  33. package/lib/commonjs/components/LineLayer.js.map +1 -1
  34. package/lib/commonjs/components/MapView.js +44 -45
  35. package/lib/commonjs/components/MapView.js.map +1 -1
  36. package/lib/commonjs/components/MarkerView.js +4 -5
  37. package/lib/commonjs/components/MarkerView.js.map +1 -1
  38. package/lib/commonjs/components/NativeUserLocation.js +2 -2
  39. package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
  40. package/lib/commonjs/components/PointAnnotation.js +4 -6
  41. package/lib/commonjs/components/PointAnnotation.js.map +1 -1
  42. package/lib/commonjs/components/RasterLayer.js +6 -8
  43. package/lib/commonjs/components/RasterLayer.js.map +1 -1
  44. package/lib/commonjs/components/RasterSource.js +8 -10
  45. package/lib/commonjs/components/RasterSource.js.map +1 -1
  46. package/lib/commonjs/components/ShapeSource.js +6 -8
  47. package/lib/commonjs/components/ShapeSource.js.map +1 -1
  48. package/lib/commonjs/components/SymbolLayer.js +6 -7
  49. package/lib/commonjs/components/SymbolLayer.js.map +1 -1
  50. package/lib/commonjs/components/UserLocation.js +20 -22
  51. package/lib/commonjs/components/UserLocation.js.map +1 -1
  52. package/lib/commonjs/components/VectorSource.js +8 -10
  53. package/lib/commonjs/components/VectorSource.js.map +1 -1
  54. package/lib/commonjs/hooks/useAbstractLayer.js +1 -1
  55. package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
  56. package/lib/commonjs/hooks/useAbstractSource.js +1 -1
  57. package/lib/commonjs/hooks/useAbstractSource.js.map +1 -1
  58. package/lib/commonjs/hooks/useNativeBridge.js +2 -2
  59. package/lib/commonjs/hooks/useNativeBridge.js.map +1 -1
  60. package/lib/commonjs/hooks/useOnce.js +2 -2
  61. package/lib/commonjs/hooks/useOnce.js.map +1 -1
  62. package/lib/commonjs/index.js +3 -0
  63. package/lib/commonjs/index.js.map +1 -1
  64. package/lib/commonjs/modules/location/{locationManager.js → LocationManager.js} +10 -10
  65. package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
  66. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -2
  67. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
  68. package/lib/commonjs/modules/offline/{offlineManager.js → OfflineManager.js} +34 -36
  69. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
  70. package/lib/commonjs/modules/offline/OfflinePack.js +2 -2
  71. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
  72. package/lib/commonjs/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +12 -14
  73. package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -0
  74. package/lib/commonjs/modules/snapshot/SnapshotOptions.js +3 -4
  75. package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
  76. package/lib/commonjs/plugin/withMapLibre.js +149 -0
  77. package/lib/commonjs/plugin/withMapLibre.js.map +1 -0
  78. package/lib/commonjs/utils/BridgeValue.js +2 -2
  79. package/lib/commonjs/utils/BridgeValue.js.map +1 -1
  80. package/lib/commonjs/utils/Logger.js +2 -2
  81. package/lib/commonjs/utils/Logger.js.map +1 -1
  82. package/lib/commonjs/utils/StyleValue.js +2 -3
  83. package/lib/commonjs/utils/StyleValue.js.map +1 -1
  84. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  85. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
  86. package/lib/commonjs/utils/animated/Animated.js +29 -31
  87. package/lib/commonjs/utils/animated/Animated.js.map +1 -1
  88. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +4 -5
  89. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
  90. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +2 -2
  91. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
  92. package/lib/commonjs/utils/animated/AnimatedPoint.js +1 -2
  93. package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
  94. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +4 -4
  95. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
  96. package/lib/commonjs/utils/animated/AnimatedShape.js +2 -2
  97. package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
  98. package/lib/module/MapLibreRN.js +40 -28
  99. package/lib/module/MapLibreRN.js.map +1 -1
  100. package/lib/module/components/Annotation.js +5 -6
  101. package/lib/module/components/Annotation.js.map +1 -1
  102. package/lib/module/components/BackgroundLayer.js +4 -6
  103. package/lib/module/components/BackgroundLayer.js.map +1 -1
  104. package/lib/module/components/Callout.js +2 -3
  105. package/lib/module/components/Callout.js.map +1 -1
  106. package/lib/module/components/Camera.js +112 -64
  107. package/lib/module/components/Camera.js.map +1 -1
  108. package/lib/module/components/CircleLayer.js +4 -6
  109. package/lib/module/components/CircleLayer.js.map +1 -1
  110. package/lib/module/components/FillExtrusionLayer.js +4 -6
  111. package/lib/module/components/FillExtrusionLayer.js.map +1 -1
  112. package/lib/module/components/FillLayer.js +4 -6
  113. package/lib/module/components/FillLayer.js.map +1 -1
  114. package/lib/module/components/HeadingIndicator.js +2 -3
  115. package/lib/module/components/HeadingIndicator.js.map +1 -1
  116. package/lib/module/components/HeatmapLayer.js +4 -6
  117. package/lib/module/components/HeatmapLayer.js.map +1 -1
  118. package/lib/module/components/ImageSource.js +2 -3
  119. package/lib/module/components/ImageSource.js.map +1 -1
  120. package/lib/module/components/Images.js +2 -3
  121. package/lib/module/components/Images.js.map +1 -1
  122. package/lib/module/components/Light.js +2 -4
  123. package/lib/module/components/Light.js.map +1 -1
  124. package/lib/module/components/LineLayer.js +4 -6
  125. package/lib/module/components/LineLayer.js.map +1 -1
  126. package/lib/module/components/MapView.js +40 -41
  127. package/lib/module/components/MapView.js.map +1 -1
  128. package/lib/module/components/MarkerView.js +2 -3
  129. package/lib/module/components/MarkerView.js.map +1 -1
  130. package/lib/module/components/NativeUserLocation.js +1 -2
  131. package/lib/module/components/NativeUserLocation.js.map +1 -1
  132. package/lib/module/components/PointAnnotation.js +2 -3
  133. package/lib/module/components/PointAnnotation.js.map +1 -1
  134. package/lib/module/components/RasterLayer.js +4 -6
  135. package/lib/module/components/RasterLayer.js.map +1 -1
  136. package/lib/module/components/RasterSource.js +5 -7
  137. package/lib/module/components/RasterSource.js.map +1 -1
  138. package/lib/module/components/ShapeSource.js +4 -5
  139. package/lib/module/components/ShapeSource.js.map +1 -1
  140. package/lib/module/components/SymbolLayer.js +4 -5
  141. package/lib/module/components/SymbolLayer.js.map +1 -1
  142. package/lib/module/components/UserLocation.js +13 -14
  143. package/lib/module/components/UserLocation.js.map +1 -1
  144. package/lib/module/components/VectorSource.js +5 -6
  145. package/lib/module/components/VectorSource.js.map +1 -1
  146. package/lib/module/hooks/useAbstractLayer.js +1 -1
  147. package/lib/module/hooks/useAbstractLayer.js.map +1 -1
  148. package/lib/module/hooks/useAbstractSource.js +1 -1
  149. package/lib/module/hooks/useAbstractSource.js.map +1 -1
  150. package/lib/module/hooks/useNativeBridge.js +1 -2
  151. package/lib/module/hooks/useNativeBridge.js.map +1 -1
  152. package/lib/module/hooks/useNativeRef.js.map +1 -1
  153. package/lib/module/hooks/useOnce.js +1 -2
  154. package/lib/module/hooks/useOnce.js.map +1 -1
  155. package/lib/module/index.js +4 -0
  156. package/lib/module/index.js.map +1 -1
  157. package/lib/module/modules/location/{locationManager.js → LocationManager.js} +10 -9
  158. package/lib/module/modules/location/LocationManager.js.map +1 -0
  159. package/lib/module/modules/offline/OfflineCreatePackOptions.js +1 -2
  160. package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
  161. package/lib/module/modules/offline/{offlineManager.js → OfflineManager.js} +30 -30
  162. package/lib/module/modules/offline/OfflineManager.js.map +1 -0
  163. package/lib/module/modules/offline/OfflinePack.js +1 -2
  164. package/lib/module/modules/offline/OfflinePack.js.map +1 -1
  165. package/lib/module/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +10 -10
  166. package/lib/module/modules/snapshot/{snapshotManager.js.map → SnapshotManager.js.map} +1 -1
  167. package/lib/module/modules/snapshot/SnapshotOptions.js +2 -3
  168. package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
  169. package/lib/module/plugin/withMapLibre.js +140 -0
  170. package/lib/module/plugin/withMapLibre.js.map +1 -0
  171. package/lib/module/utils/BridgeValue.js +1 -1
  172. package/lib/module/utils/BridgeValue.js.map +1 -1
  173. package/lib/module/utils/Logger.js +1 -2
  174. package/lib/module/utils/Logger.js.map +1 -1
  175. package/lib/module/utils/StyleValue.js +1 -1
  176. package/lib/module/utils/StyleValue.js.map +1 -1
  177. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +1 -2
  178. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
  179. package/lib/module/utils/animated/Animated.js +14 -15
  180. package/lib/module/utils/animated/Animated.js.map +1 -1
  181. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +2 -3
  182. package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
  183. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +1 -1
  184. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
  185. package/lib/module/utils/animated/AnimatedPoint.js +0 -1
  186. package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
  187. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +2 -2
  188. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
  189. package/lib/module/utils/animated/AnimatedShape.js +1 -2
  190. package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
  191. package/lib/typescript/commonjs/src/MLRNModule.d.ts +1 -1
  192. package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/src/MapLibreRN.d.ts +41 -29
  194. package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/src/components/Annotation.d.ts +4 -4
  196. package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
  197. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +1 -3
  198. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -1
  199. package/lib/typescript/commonjs/src/components/Callout.d.ts +3 -4
  200. package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -1
  201. package/lib/typescript/commonjs/src/components/Camera.d.ts +4 -4
  202. package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -1
  203. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +1 -3
  204. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +1 -3
  206. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/src/components/FillLayer.d.ts +1 -3
  208. package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +2 -3
  210. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +1 -3
  212. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/src/components/ImageSource.d.ts +3 -4
  214. package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -1
  215. package/lib/typescript/commonjs/src/components/Images.d.ts +4 -4
  216. package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
  217. package/lib/typescript/commonjs/src/components/Light.d.ts +2 -3
  218. package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/src/components/LineLayer.d.ts +1 -3
  220. package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/src/components/MapView.d.ts +4 -4
  222. package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/src/components/MarkerView.d.ts +3 -3
  224. package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -1
  225. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +2 -3
  226. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +4 -3
  228. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +1 -3
  230. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/src/components/RasterSource.d.ts +4 -4
  232. package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +4 -4
  234. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +1 -2
  236. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/src/components/UserLocation.d.ts +6 -6
  238. package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/src/components/VectorSource.d.ts +4 -3
  240. package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +3 -2
  242. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +4 -3
  244. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +5 -5
  246. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +2 -2
  248. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +1 -2
  250. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/src/index.d.ts +3 -0
  252. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +33 -0
  254. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
  256. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/src/modules/offline/{offlineManager.d.ts → OfflineManager.d.ts} +25 -25
  258. package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +2 -3
  260. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -1
  261. package/lib/typescript/{module/src/modules/snapshot/snapshotManager.d.ts → commonjs/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
  262. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
  264. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
  265. package/{plugin/build → lib/typescript/commonjs/src/plugin}/withMapLibre.d.ts +1 -0
  266. package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +1 -1
  268. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/src/utils/Logger.d.ts +2 -2
  270. package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  273. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +19 -19
  275. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
  277. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
  279. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -1
  281. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
  283. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +5 -5
  285. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  286. package/lib/typescript/module/src/MLRNModule.d.ts +1 -1
  287. package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
  288. package/lib/typescript/module/src/MapLibreRN.d.ts +41 -29
  289. package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
  290. package/lib/typescript/module/src/components/Annotation.d.ts +4 -4
  291. package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
  292. package/lib/typescript/module/src/components/BackgroundLayer.d.ts +1 -3
  293. package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -1
  294. package/lib/typescript/module/src/components/Callout.d.ts +3 -4
  295. package/lib/typescript/module/src/components/Callout.d.ts.map +1 -1
  296. package/lib/typescript/module/src/components/Camera.d.ts +4 -4
  297. package/lib/typescript/module/src/components/Camera.d.ts.map +1 -1
  298. package/lib/typescript/module/src/components/CircleLayer.d.ts +1 -3
  299. package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
  300. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +1 -3
  301. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
  302. package/lib/typescript/module/src/components/FillLayer.d.ts +1 -3
  303. package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -1
  304. package/lib/typescript/module/src/components/HeadingIndicator.d.ts +2 -3
  305. package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -1
  306. package/lib/typescript/module/src/components/HeatmapLayer.d.ts +1 -3
  307. package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -1
  308. package/lib/typescript/module/src/components/ImageSource.d.ts +3 -4
  309. package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -1
  310. package/lib/typescript/module/src/components/Images.d.ts +4 -4
  311. package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
  312. package/lib/typescript/module/src/components/Light.d.ts +2 -3
  313. package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
  314. package/lib/typescript/module/src/components/LineLayer.d.ts +1 -3
  315. package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
  316. package/lib/typescript/module/src/components/MapView.d.ts +4 -4
  317. package/lib/typescript/module/src/components/MapView.d.ts.map +1 -1
  318. package/lib/typescript/module/src/components/MarkerView.d.ts +3 -3
  319. package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -1
  320. package/lib/typescript/module/src/components/NativeUserLocation.d.ts +2 -3
  321. package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -1
  322. package/lib/typescript/module/src/components/PointAnnotation.d.ts +4 -3
  323. package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
  324. package/lib/typescript/module/src/components/RasterLayer.d.ts +1 -3
  325. package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -1
  326. package/lib/typescript/module/src/components/RasterSource.d.ts +4 -4
  327. package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -1
  328. package/lib/typescript/module/src/components/ShapeSource.d.ts +4 -4
  329. package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
  330. package/lib/typescript/module/src/components/SymbolLayer.d.ts +1 -2
  331. package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -1
  332. package/lib/typescript/module/src/components/UserLocation.d.ts +6 -6
  333. package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
  334. package/lib/typescript/module/src/components/VectorSource.d.ts +4 -3
  335. package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
  336. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +3 -2
  337. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -1
  338. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +4 -3
  339. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -1
  340. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +5 -5
  341. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -1
  342. package/lib/typescript/module/src/hooks/useNativeRef.d.ts +2 -2
  343. package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -1
  344. package/lib/typescript/module/src/hooks/useOnce.d.ts +1 -2
  345. package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -1
  346. package/lib/typescript/module/src/index.d.ts +3 -0
  347. package/lib/typescript/module/src/index.d.ts.map +1 -1
  348. package/lib/typescript/module/src/modules/location/LocationManager.d.ts +33 -0
  349. package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -0
  350. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
  351. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
  352. package/lib/typescript/module/src/modules/offline/{offlineManager.d.ts → OfflineManager.d.ts} +25 -25
  353. package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
  354. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +2 -3
  355. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -1
  356. package/lib/typescript/{commonjs/src/modules/snapshot/snapshotManager.d.ts → module/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
  357. package/lib/typescript/module/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
  358. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
  359. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
  360. package/lib/typescript/module/src/plugin/withMapLibre.d.ts +13 -0
  361. package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +1 -0
  362. package/lib/typescript/module/src/utils/BridgeValue.d.ts +1 -1
  363. package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -1
  364. package/lib/typescript/module/src/utils/Logger.d.ts +2 -2
  365. package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -1
  366. package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -1
  367. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  368. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  369. package/lib/typescript/module/src/utils/animated/Animated.d.ts +19 -19
  370. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
  371. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
  372. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
  373. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
  374. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  375. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -1
  376. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  377. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
  378. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
  379. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +5 -5
  380. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  381. package/package.json +8 -10
  382. package/src/MLRNModule.ts +1 -1
  383. package/src/MapLibreRN.ts +46 -30
  384. package/src/components/Annotation.tsx +9 -11
  385. package/src/components/BackgroundLayer.tsx +5 -7
  386. package/src/components/Callout.tsx +8 -10
  387. package/src/components/Camera.tsx +154 -78
  388. package/src/components/CircleLayer.tsx +5 -7
  389. package/src/components/FillExtrusionLayer.tsx +5 -7
  390. package/src/components/FillLayer.tsx +5 -7
  391. package/src/components/HeadingIndicator.tsx +2 -6
  392. package/src/components/HeatmapLayer.tsx +5 -7
  393. package/src/components/ImageSource.tsx +4 -6
  394. package/src/components/Images.tsx +6 -8
  395. package/src/components/Light.tsx +3 -5
  396. package/src/components/LineLayer.tsx +5 -7
  397. package/src/components/MapView.tsx +42 -43
  398. package/src/components/MarkerView.tsx +4 -6
  399. package/src/components/NativeUserLocation.tsx +1 -4
  400. package/src/components/PointAnnotation.tsx +7 -6
  401. package/src/components/RasterLayer.tsx +5 -7
  402. package/src/components/RasterSource.tsx +7 -9
  403. package/src/components/ShapeSource.tsx +6 -8
  404. package/src/components/SymbolLayer.tsx +5 -6
  405. package/src/components/UserLocation.tsx +18 -19
  406. package/src/components/VectorSource.tsx +7 -9
  407. package/src/hooks/useAbstractLayer.ts +5 -5
  408. package/src/hooks/useAbstractSource.ts +6 -6
  409. package/src/hooks/useNativeBridge.ts +9 -6
  410. package/src/hooks/useNativeRef.ts +2 -2
  411. package/src/hooks/useOnce.ts +3 -3
  412. package/src/index.ts +3 -0
  413. package/src/modules/location/{locationManager.ts → LocationManager.ts} +16 -15
  414. package/src/modules/offline/OfflineCreatePackOptions.ts +1 -3
  415. package/src/modules/offline/{offlineManager.ts → OfflineManager.ts} +30 -29
  416. package/src/modules/offline/OfflinePack.ts +2 -4
  417. package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
  418. package/src/modules/snapshot/SnapshotOptions.ts +2 -4
  419. package/src/plugin/withMapLibre.ts +181 -0
  420. package/src/utils/BridgeValue.ts +1 -1
  421. package/src/utils/Logger.ts +1 -3
  422. package/src/utils/StyleValue.ts +2 -1
  423. package/src/utils/animated/AbstractAnimatedCoordinates.ts +3 -3
  424. package/src/utils/animated/Animated.ts +23 -21
  425. package/src/utils/animated/AnimatedCoordinatesArray.ts +3 -4
  426. package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +1 -1
  427. package/src/utils/animated/AnimatedPoint.ts +0 -2
  428. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -2
  429. package/src/utils/animated/AnimatedShape.ts +4 -6
  430. package/lib/commonjs/modules/location/locationManager.js.map +0 -1
  431. package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
  432. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
  433. package/lib/module/modules/location/locationManager.js.map +0 -1
  434. package/lib/module/modules/offline/offlineManager.js.map +0 -1
  435. package/lib/typescript/commonjs/jest.config.d.ts +0 -2
  436. package/lib/typescript/commonjs/jest.config.d.ts.map +0 -1
  437. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +0 -64
  438. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +0 -1
  439. package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +0 -1
  440. package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
  441. package/lib/typescript/module/jest.config.d.ts +0 -2
  442. package/lib/typescript/module/jest.config.d.ts.map +0 -1
  443. package/lib/typescript/module/src/modules/location/locationManager.d.ts +0 -64
  444. package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +0 -1
  445. package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +0 -1
  446. package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
  447. package/plugin/build/withMapLibre.js +0 -148
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  [![MapLibre Logo](https://maplibre.org/img/maplibre-logo-big.svg)](https://maplibre.org)
2
2
 
3
3
  # MapLibre React Native
4
+
4
5
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md)
5
6
  [![Version](https://img.shields.io/npm/v/@maplibre/maplibre-react-native)](https://www.npmjs.com/package/@maplibre/maplibre-react-native)
6
- [![Actions](https://img.shields.io/github/actions/workflow/status/maplibre/maplibre-react-native/review.yml?label=Actions
7
- )](https://github.com/maplibre/maplibre-react-native/actions/workflows/review.yml)
8
-
7
+ [![Actions](https://img.shields.io/github/actions/workflow/status/maplibre/maplibre-react-native/review.yml?label=Actions)](https://github.com/maplibre/maplibre-react-native/actions/workflows/review.yml)
9
8
 
10
- _React Native library for creating maps with [MapLibre Native for Android & iOS](https://github.com/maplibre/maplibre-gl-native)_.
9
+ _React Native library for creating maps
10
+ with [MapLibre Native for Android & iOS](https://github.com/maplibre/maplibre-gl-native)._
11
11
 
12
12
  This project originated as a fork of [rnmapbox](https://github.com/rnmapbox/maps), a community-maintained
13
13
  React Native library for building maps with the Mapbox iOS and Android mobile SDKs. The original product
@@ -27,12 +27,10 @@ diverged, it has become necessary to separate the projects into specific wrapper
27
27
 
28
28
  ## Documentation
29
29
 
30
- - [Getting Started](/docs/guides/setup/GettingStarted.md)
30
+ - [Getting Started](/docs/guides/setup/Getting-Started)
31
31
  - Installation
32
- - React Native
33
- - [Android](/docs/guides/setup/Android.md)
34
- - [iOS](/docs/guides/setup/iOS.md)
35
32
  - [Expo](/docs/guides/setup/Expo.md)
33
+ - [React Native](/docs/guides/setup/React-Native.md)
36
34
  - Migrations
37
35
  - [Migrating to v10](/docs/guides/migrations/v10.md)
38
36
 
@@ -66,18 +64,18 @@ diverged, it has become necessary to separate the projects into specific wrapper
66
64
 
67
65
  ### Modules
68
66
 
69
- - [OfflineManager](/docs/modules/offlineManager.md)
70
- - [SnapshotManager](/docs/modules/snapshotManager.md)
67
+ - [OfflineManager](/docs/modules/OfflineManager.md)
68
+ - [SnapshotManager](/docs/modules/SnapshotManager.md)
71
69
 
72
70
  ### Misc
73
71
 
74
- - [MapLibreGL](/docs/guides/MapLibreGL.md)
75
- - [Custom HTTP Headers](/docs/guides/CustomHTTPHeaders.md)
72
+ - [MLRNModule](/docs/guides/MLRNModule.md)
73
+ - [Custom HTTP Headers](/docs/guides/Custom-HTTP-Headers.md)
76
74
  - [Logger](/docs/guides/Logger.md)
77
75
 
78
76
  ## Contributing & Development
79
77
 
80
- Read the [CONTRIBUTING.md](CONTRIBUTING.md) guide in order to get familiar with how we do things around here and
78
+ Read the [CONTRIBUTING](/CONTRIBUTING.md) guide in order to get familiar with how we do things around here and
81
79
  set up your local development environment.
82
80
 
83
81
  ## Community
@@ -2,6 +2,7 @@ package org.maplibre.reactnative.components.camera;
2
2
 
3
3
  import android.content.Context;
4
4
  import android.location.Location;
5
+ import android.util.Log;
5
6
 
6
7
  import org.maplibre.android.camera.CameraPosition;
7
8
  import org.maplibre.android.camera.CameraUpdate;
@@ -11,13 +12,9 @@ import org.maplibre.android.geometry.LatLngBounds;
11
12
  import org.maplibre.android.geometry.VisibleRegion;
12
13
  import org.maplibre.android.location.OnCameraTrackingChangedListener;
13
14
  import org.maplibre.android.location.modes.CameraMode;
14
- import org.maplibre.android.location.modes.RenderMode;
15
15
  import org.maplibre.android.maps.MapLibreMap;
16
16
  import org.maplibre.android.maps.Style;
17
- import org.maplibre.android.location.LocationComponent;
18
- import org.maplibre.android.location.LocationComponentOptions;
19
- import org.maplibre.android.location.LocationComponentActivationOptions;
20
- // import org.maplibre.android.plugins.locationlayer.LocationLayerPlugin;
17
+
21
18
  import org.maplibre.reactnative.components.AbstractMapFeature;
22
19
  import org.maplibre.reactnative.components.location.LocationComponentManager;
23
20
  import org.maplibre.reactnative.components.mapview.MLRNMapView;
@@ -31,8 +28,6 @@ import org.maplibre.reactnative.location.UserTrackingMode;
31
28
  import org.maplibre.reactnative.location.UserTrackingState;
32
29
  import org.maplibre.reactnative.utils.GeoJSONUtils;
33
30
 
34
- import org.maplibre.reactnative.R;
35
-
36
31
  import org.maplibre.reactnative.events.constants.EventTypes;
37
32
 
38
33
  import com.facebook.react.bridge.WritableMap;
@@ -87,12 +82,12 @@ public class MLRNCamera extends AbstractMapFeature {
87
82
  private LocationManager.OnUserLocationChange mLocationChangeListener = new LocationManager.OnUserLocationChange() {
88
83
  @Override
89
84
  public void onLocationChange(Location nextLocation) {
90
- if (getMapboxMap() == null || mLocationComponentManager == null || !mLocationComponentManager.hasLocationComponent() || (!mFollowUserLocation)) {
91
- return;
92
- }
85
+ if (getMapboxMap() == null || mLocationComponentManager == null || !mLocationComponentManager.hasLocationComponent() || (!mFollowUserLocation)) {
86
+ return;
87
+ }
93
88
 
94
- mUserLocation.setCurrentLocation(nextLocation);
95
- sendUserLocationUpdateEvent(nextLocation);
89
+ mUserLocation.setCurrentLocation(nextLocation);
90
+ sendUserLocationUpdateEvent(nextLocation);
96
91
  }
97
92
  };
98
93
 
@@ -236,12 +231,7 @@ public class MLRNCamera extends AbstractMapFeature {
236
231
  }
237
232
  }
238
233
 
239
- return new CameraPosition.Builder()
240
- .target(center)
241
- .bearing(getDirectionForUserLocationUpdate())
242
- .tilt(mPitch)
243
- .zoom(zoomLevel)
244
- .build();
234
+ return new CameraPosition.Builder().target(center).bearing(getDirectionForUserLocationUpdate()).tilt(mPitch).zoom(zoomLevel).build();
245
235
  }
246
236
 
247
237
  private double getDirectionForUserLocationUpdate() {
@@ -260,7 +250,7 @@ public class MLRNCamera extends AbstractMapFeature {
260
250
  }
261
251
 
262
252
  private void sendUserLocationUpdateEvent(Location location) {
263
- if(location == null){
253
+ if (location == null) {
264
254
  return;
265
255
  }
266
256
  IEvent event = new MapChangeEvent(this, EventTypes.USER_LOCATION_UPDATED, makeLocationChangePayload(location));
@@ -376,37 +366,38 @@ public class MLRNCamera extends AbstractMapFeature {
376
366
  }
377
367
 
378
368
  mLocationComponentManager.update(style);
379
-
380
- if (mFollowUserLocation) {
381
- mLocationComponentManager.setCameraMode(UserTrackingMode.getCameraMode(mUserTrackingMode));
382
- }
383
369
  mLocationComponentManager.setFollowUserLocation(mFollowUserLocation);
384
370
 
385
371
  if (mFollowUserLocation) {
386
372
  mLocationComponentManager.setCameraMode(UserTrackingMode.getCameraMode(mUserTrackingMode));
387
373
  mLocationComponentManager.addOnCameraTrackingChangedListener(new OnCameraTrackingChangedListener() {
388
- @Override public void onCameraTrackingChanged(int currentMode) {
389
- int userTrackingMode = UserTrackingMode.NONE;
390
- switch (currentMode) {
391
- case CameraMode.NONE:
392
- userTrackingMode = UserTrackingMode.NONE;
393
- break;
394
- case CameraMode.TRACKING:
395
- userTrackingMode = UserTrackingMode.FOLLOW;
396
- break;
397
- case CameraMode.TRACKING_COMPASS:
398
- userTrackingMode = UserTrackingMode.FollowWithHeading;
399
- break;
400
- case CameraMode.TRACKING_GPS:
401
- userTrackingMode = UserTrackingMode.FollowWithCourse;
402
- break;
403
- default:
404
- userTrackingMode = UserTrackingMode.NONE;
405
- }
406
- updateUserTrackingMode(userTrackingMode);
407
- }
408
- @Override public void onCameraTrackingDismissed() {
374
+ @Override
375
+ public void onCameraTrackingChanged(int currentMode) {
376
+ int userTrackingMode;
377
+
378
+ switch (currentMode) {
379
+ case CameraMode.NONE:
380
+ userTrackingMode = UserTrackingMode.NONE;
381
+ break;
382
+ case CameraMode.TRACKING:
383
+ userTrackingMode = UserTrackingMode.FOLLOW;
384
+ break;
385
+ case CameraMode.TRACKING_COMPASS:
386
+ userTrackingMode = UserTrackingMode.FollowWithHeading;
387
+ break;
388
+ case CameraMode.TRACKING_GPS:
389
+ userTrackingMode = UserTrackingMode.FollowWithCourse;
390
+ break;
391
+ default:
392
+ userTrackingMode = UserTrackingMode.NONE;
409
393
  }
394
+
395
+ updateUserTrackingMode(userTrackingMode);
396
+ }
397
+
398
+ @Override
399
+ public void onCameraTrackingDismissed() {
400
+ }
410
401
  });
411
402
  } else {
412
403
  mLocationComponentManager.setCameraMode(CameraMode.NONE);
@@ -429,10 +420,7 @@ public class MLRNCamera extends AbstractMapFeature {
429
420
  }
430
421
 
431
422
  private CameraPosition buildCamera(CameraPosition previousPosition, boolean shouldUpdateTarget) {
432
- CameraPosition.Builder builder = new CameraPosition.Builder(previousPosition)
433
- .bearing(mHeading)
434
- .tilt(mPitch)
435
- .zoom(mZoomLevel);
423
+ CameraPosition.Builder builder = new CameraPosition.Builder(previousPosition).bearing(mHeading).tilt(mPitch).zoom(mZoomLevel);
436
424
 
437
425
  if (shouldUpdateTarget) {
438
426
  builder.target(GeoJSONUtils.toLatLng(mCenterCoordinate));
@@ -507,6 +495,7 @@ public class MLRNCamera extends AbstractMapFeature {
507
495
  /**
508
496
  * Create a payload of the location data per the web api geolocation spec
509
497
  * https://dev.w3.org/geo/api/spec-source.html#position
498
+ *
510
499
  * @return
511
500
  */
512
501
  private WritableMap makeLocationChangePayload(Location location) {
@@ -46,6 +46,8 @@ public class LocationComponentManager {
46
46
 
47
47
  private boolean mShowingUserLocation = false;
48
48
 
49
+ private OnCameraTrackingChangedListener mOnCameraTrackingChangedListener = null;
50
+
49
51
  public void showUserLocation(boolean showUserLocation) {
50
52
  mShowUserLocation = showUserLocation;
51
53
  stateChanged();
@@ -68,16 +70,21 @@ public class LocationComponentManager {
68
70
  }
69
71
 
70
72
  public void setPreferredFramesPerSecond(int preferredFramesPerSecond) {
71
- if(mLocationComponent == null || preferredFramesPerSecond <= 0) {
73
+ if (mLocationComponent == null || preferredFramesPerSecond <= 0) {
72
74
  return;
73
- }
75
+ }
74
76
 
75
77
  mLocationComponent.setMaxAnimationFps(preferredFramesPerSecond);
76
78
  }
77
79
 
78
-
79
80
  public void addOnCameraTrackingChangedListener(OnCameraTrackingChangedListener onCameraTrackingChangedListener) {
80
- mLocationComponent.addOnCameraTrackingChangedListener(onCameraTrackingChangedListener);
81
+ if (mOnCameraTrackingChangedListener != null) {
82
+ mLocationComponent.removeOnCameraTrackingChangedListener(mOnCameraTrackingChangedListener);
83
+ }
84
+
85
+ mOnCameraTrackingChangedListener = onCameraTrackingChangedListener;
86
+
87
+ mLocationComponent.addOnCameraTrackingChangedListener(mOnCameraTrackingChangedListener);
81
88
  }
82
89
 
83
90
  @SuppressLint("MissingPermission")
@@ -111,7 +118,7 @@ public class LocationComponentManager {
111
118
  public void update(boolean displayUserLocation, @NonNull Style style) {
112
119
  Integer tintColor = mMapView.getTintColor();
113
120
 
114
- if (mLocationComponent == null || tintColor != null ) {
121
+ if (mLocationComponent == null || tintColor != null) {
115
122
  mLocationComponent = mMap.getLocationComponent();
116
123
 
117
124
  LocationComponentActivationOptions locationComponentActivationOptions = LocationComponentActivationOptions
@@ -148,10 +155,10 @@ public class LocationComponentManager {
148
155
  .accuracyAlpha(0.0f);
149
156
  } else if (tintColor != null) {
150
157
  builder = builder
151
- .enableStaleState(false)
152
- .bearingTintColor(tintColor)
153
- .foregroundTintColor(tintColor)
154
- .accuracyColor(tintColor);
158
+ .enableStaleState(false)
159
+ .bearingTintColor(tintColor)
160
+ .foregroundTintColor(tintColor)
161
+ .accuracyColor(tintColor);
155
162
  }
156
163
  return builder.build();
157
164
  }
package/app.plugin.js CHANGED
@@ -1 +1 @@
1
- module.exports = require("./plugin/build/withMapLibre");
1
+ module.exports = require("./lib/commonjs/plugin/withMapLibre");
@@ -179,11 +179,6 @@
179
179
  return;
180
180
  }
181
181
 
182
- if (_map.userTrackingMode != [self _userTrackingMode]) {
183
- _map.showsUserLocation = [self _userTrackingMode] != MLNUserTrackingModeNone;
184
- _map.userTrackingMode = [self _userTrackingMode];
185
- }
186
-
187
182
  MLNMapCamera *camera = _map.camera;
188
183
  if (_followPitch != nil && [_followPitch floatValue] >= 0.0) {
189
184
  camera.pitch = [_followPitch floatValue];
@@ -202,8 +197,12 @@
202
197
  if (_followZoomLevel != nil && [_followZoomLevel doubleValue] >= 0.0) {
203
198
  camera.altitude = [_map altitudeFromZoom:[_followZoomLevel doubleValue]];
204
199
  }
205
-
206
- [_map setCamera:camera animated:YES];
200
+
201
+ [_map setCamera:camera animated:NO];
202
+
203
+ if (_map.userTrackingMode != [self _userTrackingMode]) {
204
+ [_map setUserTrackingMode:[self _userTrackingMode] animated:NO completionHandler:nil];
205
+ }
207
206
  }
208
207
 
209
208
  - (NSUInteger)_userTrackingMode
@@ -28,10 +28,13 @@ var _exportNames = {
28
28
  RasterLayer: true,
29
29
  BackgroundLayer: true,
30
30
  MarkerView: true,
31
+ LocationManager: true,
31
32
  locationManager: true,
33
+ OfflineManager: true,
32
34
  offlineManager: true,
33
35
  OfflinePack: true,
34
36
  OfflineCreatePackOptions: true,
37
+ SnapshotManager: true,
35
38
  snapshotManager: true,
36
39
  Animated: true,
37
40
  Logger: true
@@ -39,145 +42,163 @@ var _exportNames = {
39
42
  Object.defineProperty(exports, "Animated", {
40
43
  enumerable: true,
41
44
  get: function () {
42
- return _Animated.default;
45
+ return _Animated.Animated;
43
46
  }
44
47
  });
45
48
  Object.defineProperty(exports, "Annotation", {
46
49
  enumerable: true,
47
50
  get: function () {
48
- return _Annotation.default;
51
+ return _Annotation.Annotation;
49
52
  }
50
53
  });
51
54
  Object.defineProperty(exports, "BackgroundLayer", {
52
55
  enumerable: true,
53
56
  get: function () {
54
- return _BackgroundLayer.default;
57
+ return _BackgroundLayer.BackgroundLayer;
55
58
  }
56
59
  });
57
60
  Object.defineProperty(exports, "Callout", {
58
61
  enumerable: true,
59
62
  get: function () {
60
- return _Callout.default;
63
+ return _Callout.Callout;
61
64
  }
62
65
  });
63
66
  Object.defineProperty(exports, "Camera", {
64
67
  enumerable: true,
65
68
  get: function () {
66
- return _Camera.default;
69
+ return _Camera.Camera;
67
70
  }
68
71
  });
69
72
  Object.defineProperty(exports, "CircleLayer", {
70
73
  enumerable: true,
71
74
  get: function () {
72
- return _CircleLayer.default;
75
+ return _CircleLayer.CircleLayer;
73
76
  }
74
77
  });
75
78
  Object.defineProperty(exports, "FillExtrusionLayer", {
76
79
  enumerable: true,
77
80
  get: function () {
78
- return _FillExtrusionLayer.default;
81
+ return _FillExtrusionLayer.FillExtrusionLayer;
79
82
  }
80
83
  });
81
84
  Object.defineProperty(exports, "FillLayer", {
82
85
  enumerable: true,
83
86
  get: function () {
84
- return _FillLayer.default;
87
+ return _FillLayer.FillLayer;
85
88
  }
86
89
  });
87
90
  Object.defineProperty(exports, "HeatmapLayer", {
88
91
  enumerable: true,
89
92
  get: function () {
90
- return _HeatmapLayer.default;
93
+ return _HeatmapLayer.HeatmapLayer;
91
94
  }
92
95
  });
93
96
  Object.defineProperty(exports, "ImageSource", {
94
97
  enumerable: true,
95
98
  get: function () {
96
- return _ImageSource.default;
99
+ return _ImageSource.ImageSource;
97
100
  }
98
101
  });
99
102
  Object.defineProperty(exports, "Images", {
100
103
  enumerable: true,
101
104
  get: function () {
102
- return _Images.default;
105
+ return _Images.Images;
103
106
  }
104
107
  });
105
108
  Object.defineProperty(exports, "Light", {
106
109
  enumerable: true,
107
110
  get: function () {
108
- return _Light.default;
111
+ return _Light.Light;
109
112
  }
110
113
  });
111
114
  Object.defineProperty(exports, "LineLayer", {
112
115
  enumerable: true,
113
116
  get: function () {
114
- return _LineLayer.default;
117
+ return _LineLayer.LineLayer;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "LocationManager", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _LocationManager.LocationManager;
115
124
  }
116
125
  });
117
126
  Object.defineProperty(exports, "Logger", {
118
127
  enumerable: true,
119
128
  get: function () {
120
- return _Logger.default;
129
+ return _Logger.Logger;
121
130
  }
122
131
  });
123
132
  Object.defineProperty(exports, "MapView", {
124
133
  enumerable: true,
125
134
  get: function () {
126
- return _MapView.default;
135
+ return _MapView.MapView;
127
136
  }
128
137
  });
129
138
  Object.defineProperty(exports, "MarkerView", {
130
139
  enumerable: true,
131
140
  get: function () {
132
- return _MarkerView.default;
141
+ return _MarkerView.MarkerView;
133
142
  }
134
143
  });
135
144
  Object.defineProperty(exports, "OfflineCreatePackOptions", {
136
145
  enumerable: true,
137
146
  get: function () {
138
- return _OfflineCreatePackOptions.default;
147
+ return _OfflineCreatePackOptions.OfflineCreatePackOptions;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "OfflineManager", {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _OfflineManager.OfflineManager;
139
154
  }
140
155
  });
141
156
  Object.defineProperty(exports, "OfflinePack", {
142
157
  enumerable: true,
143
158
  get: function () {
144
- return _OfflinePack.default;
159
+ return _OfflinePack.OfflinePack;
145
160
  }
146
161
  });
147
162
  Object.defineProperty(exports, "PointAnnotation", {
148
163
  enumerable: true,
149
164
  get: function () {
150
- return _PointAnnotation.default;
165
+ return _PointAnnotation.PointAnnotation;
151
166
  }
152
167
  });
153
168
  Object.defineProperty(exports, "RasterLayer", {
154
169
  enumerable: true,
155
170
  get: function () {
156
- return _RasterLayer.default;
171
+ return _RasterLayer.RasterLayer;
157
172
  }
158
173
  });
159
174
  Object.defineProperty(exports, "RasterSource", {
160
175
  enumerable: true,
161
176
  get: function () {
162
- return _RasterSource.default;
177
+ return _RasterSource.RasterSource;
163
178
  }
164
179
  });
165
180
  Object.defineProperty(exports, "ShapeSource", {
166
181
  enumerable: true,
167
182
  get: function () {
168
- return _ShapeSource.default;
183
+ return _ShapeSource.ShapeSource;
184
+ }
185
+ });
186
+ Object.defineProperty(exports, "SnapshotManager", {
187
+ enumerable: true,
188
+ get: function () {
189
+ return _SnapshotManager.SnapshotManager;
169
190
  }
170
191
  });
171
192
  Object.defineProperty(exports, "SymbolLayer", {
172
193
  enumerable: true,
173
194
  get: function () {
174
- return _SymbolLayer.default;
195
+ return _SymbolLayer.SymbolLayer;
175
196
  }
176
197
  });
177
198
  Object.defineProperty(exports, "UserLocation", {
178
199
  enumerable: true,
179
200
  get: function () {
180
- return _UserLocation.default;
201
+ return _UserLocation.UserLocation;
181
202
  }
182
203
  });
183
204
  Object.defineProperty(exports, "UserLocationRenderMode", {
@@ -195,19 +216,19 @@ Object.defineProperty(exports, "UserTrackingMode", {
195
216
  Object.defineProperty(exports, "VectorSource", {
196
217
  enumerable: true,
197
218
  get: function () {
198
- return _VectorSource.default;
219
+ return _VectorSource.VectorSource;
199
220
  }
200
221
  });
201
222
  Object.defineProperty(exports, "locationManager", {
202
223
  enumerable: true,
203
224
  get: function () {
204
- return _locationManager.default;
225
+ return _LocationManager.LocationManager;
205
226
  }
206
227
  });
207
228
  Object.defineProperty(exports, "offlineManager", {
208
229
  enumerable: true,
209
230
  get: function () {
210
- return _offlineManager.default;
231
+ return _OfflineManager.OfflineManager;
211
232
  }
212
233
  });
213
234
  Object.defineProperty(exports, "requestAndroidLocationPermissions", {
@@ -219,7 +240,7 @@ Object.defineProperty(exports, "requestAndroidLocationPermissions", {
219
240
  Object.defineProperty(exports, "snapshotManager", {
220
241
  enumerable: true,
221
242
  get: function () {
222
- return _snapshotManager.default;
243
+ return _SnapshotManager.SnapshotManager;
223
244
  }
224
245
  });
225
246
  var _MLRNModule = require("./MLRNModule.js");
@@ -234,36 +255,33 @@ Object.keys(_MLRNModule).forEach(function (key) {
234
255
  }
235
256
  });
236
257
  });
237
- var _Camera = _interopRequireWildcard(require("./components/Camera.js"));
238
- var _MapView = _interopRequireDefault(require("./components/MapView.js"));
239
- var _Light = _interopRequireDefault(require("./components/Light.js"));
240
- var _PointAnnotation = _interopRequireDefault(require("./components/PointAnnotation.js"));
241
- var _Annotation = _interopRequireDefault(require("./components/Annotation.js"));
242
- var _Callout = _interopRequireDefault(require("./components/Callout.js"));
258
+ var _Camera = require("./components/Camera.js");
259
+ var _MapView = require("./components/MapView.js");
260
+ var _Light = require("./components/Light.js");
261
+ var _PointAnnotation = require("./components/PointAnnotation.js");
262
+ var _Annotation = require("./components/Annotation.js");
263
+ var _Callout = require("./components/Callout.js");
243
264
  var _requestAndroidLocationPermissions = require("./requestAndroidLocationPermissions.js");
244
- var _UserLocation = _interopRequireWildcard(require("./components/UserLocation.js"));
245
- var _VectorSource = _interopRequireDefault(require("./components/VectorSource.js"));
246
- var _ShapeSource = _interopRequireDefault(require("./components/ShapeSource.js"));
247
- var _RasterSource = _interopRequireDefault(require("./components/RasterSource.js"));
248
- var _ImageSource = _interopRequireDefault(require("./components/ImageSource.js"));
249
- var _Images = _interopRequireDefault(require("./components/Images.js"));
250
- var _FillLayer = _interopRequireDefault(require("./components/FillLayer.js"));
251
- var _FillExtrusionLayer = _interopRequireDefault(require("./components/FillExtrusionLayer.js"));
252
- var _HeatmapLayer = _interopRequireDefault(require("./components/HeatmapLayer.js"));
253
- var _LineLayer = _interopRequireDefault(require("./components/LineLayer.js"));
254
- var _CircleLayer = _interopRequireDefault(require("./components/CircleLayer.js"));
255
- var _SymbolLayer = _interopRequireDefault(require("./components/SymbolLayer.js"));
256
- var _RasterLayer = _interopRequireDefault(require("./components/RasterLayer.js"));
257
- var _BackgroundLayer = _interopRequireDefault(require("./components/BackgroundLayer.js"));
258
- var _MarkerView = _interopRequireDefault(require("./components/MarkerView.js"));
259
- var _locationManager = _interopRequireDefault(require("./modules/location/locationManager.js"));
260
- var _offlineManager = _interopRequireDefault(require("./modules/offline/offlineManager.js"));
261
- var _OfflinePack = _interopRequireDefault(require("./modules/offline/OfflinePack.js"));
262
- var _OfflineCreatePackOptions = _interopRequireDefault(require("./modules/offline/OfflineCreatePackOptions.js"));
263
- var _snapshotManager = _interopRequireDefault(require("./modules/snapshot/snapshotManager.js"));
264
- var _Animated = _interopRequireDefault(require("./utils/animated/Animated.js"));
265
- var _Logger = _interopRequireDefault(require("./utils/Logger.js"));
266
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
267
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
268
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
265
+ var _UserLocation = require("./components/UserLocation.js");
266
+ var _VectorSource = require("./components/VectorSource.js");
267
+ var _ShapeSource = require("./components/ShapeSource.js");
268
+ var _RasterSource = require("./components/RasterSource.js");
269
+ var _ImageSource = require("./components/ImageSource.js");
270
+ var _Images = require("./components/Images.js");
271
+ var _FillLayer = require("./components/FillLayer.js");
272
+ var _FillExtrusionLayer = require("./components/FillExtrusionLayer.js");
273
+ var _HeatmapLayer = require("./components/HeatmapLayer.js");
274
+ var _LineLayer = require("./components/LineLayer.js");
275
+ var _CircleLayer = require("./components/CircleLayer.js");
276
+ var _SymbolLayer = require("./components/SymbolLayer.js");
277
+ var _RasterLayer = require("./components/RasterLayer.js");
278
+ var _BackgroundLayer = require("./components/BackgroundLayer.js");
279
+ var _MarkerView = require("./components/MarkerView.js");
280
+ var _LocationManager = require("./modules/location/LocationManager.js");
281
+ var _OfflineManager = require("./modules/offline/OfflineManager.js");
282
+ var _OfflinePack = require("./modules/offline/OfflinePack.js");
283
+ var _OfflineCreatePackOptions = require("./modules/offline/OfflineCreatePackOptions.js");
284
+ var _SnapshotManager = require("./modules/snapshot/SnapshotManager.js");
285
+ var _Animated = require("./utils/animated/Animated.js");
286
+ var _Logger = require("./utils/Logger.js");
269
287
  //# sourceMappingURL=MapLibreRN.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_MLRNModule","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Camera","_interopRequireWildcard","_MapView","_interopRequireDefault","_Light","_PointAnnotation","_Annotation","_Callout","_requestAndroidLocationPermissions","_UserLocation","_VectorSource","_ShapeSource","_RasterSource","_ImageSource","_Images","_FillLayer","_FillExtrusionLayer","_HeatmapLayer","_LineLayer","_CircleLayer","_SymbolLayer","_RasterLayer","_BackgroundLayer","_MarkerView","_locationManager","_offlineManager","_OfflinePack","_OfflineCreatePackOptions","_snapshotManager","_Animated","_Logger","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set"],"sourceRoot":"../../src","sources":["MapLibreRN.ts"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["_MLRNModule","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Camera","_MapView","_Light","_PointAnnotation","_Annotation","_Callout","_requestAndroidLocationPermissions","_UserLocation","_VectorSource","_ShapeSource","_RasterSource","_ImageSource","_Images","_FillLayer","_FillExtrusionLayer","_HeatmapLayer","_LineLayer","_CircleLayer","_SymbolLayer","_RasterLayer","_BackgroundLayer","_MarkerView","_LocationManager","_OfflineManager","_OfflinePack","_OfflineCreatePackOptions","_SnapshotManager","_Animated","_Logger"],"sourceRoot":"../../src","sources":["MapLibreRN.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAb,OAAA;AAQA,IAAAc,QAAA,GAAAd,OAAA;AAKA,IAAAe,MAAA,GAAAf,OAAA;AACA,IAAAgB,gBAAA,GAAAhB,OAAA;AAEA,IAAAiB,WAAA,GAAAjB,OAAA;AACA,IAAAkB,QAAA,GAAAlB,OAAA;AACA,IAAAmB,kCAAA,GAAAnB,OAAA;AACA,IAAAoB,aAAA,GAAApB,OAAA;AAKA,IAAAqB,aAAA,GAAArB,OAAA;AACA,IAAAsB,YAAA,GAAAtB,OAAA;AAEA,IAAAuB,aAAA,GAAAvB,OAAA;AACA,IAAAwB,YAAA,GAAAxB,OAAA;AACA,IAAAyB,OAAA,GAAAzB,OAAA;AACA,IAAA0B,UAAA,GAAA1B,OAAA;AACA,IAAA2B,mBAAA,GAAA3B,OAAA;AACA,IAAA4B,aAAA,GAAA5B,OAAA;AACA,IAAA6B,UAAA,GAAA7B,OAAA;AACA,IAAA8B,YAAA,GAAA9B,OAAA;AACA,IAAA+B,YAAA,GAAA/B,OAAA;AACA,IAAAgC,YAAA,GAAAhC,OAAA;AACA,IAAAiC,gBAAA,GAAAjC,OAAA;AACA,IAAAkC,WAAA,GAAAlC,OAAA;AAEA,IAAAmC,gBAAA,GAAAnC,OAAA;AAQA,IAAAoC,eAAA,GAAApC,OAAA;AASA,IAAAqC,YAAA,GAAArC,OAAA;AACA,IAAAsC,yBAAA,GAAAtC,OAAA;AACA,IAAAuC,gBAAA,GAAAvC,OAAA;AAWA,IAAAwC,SAAA,GAAAxC,OAAA;AACA,IAAAyC,OAAA,GAAAzC,OAAA","ignoreList":[]}