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

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 (429) hide show
  1. package/README.md +3 -3
  2. package/lib/commonjs/MapLibreRN.js +77 -59
  3. package/lib/commonjs/MapLibreRN.js.map +1 -1
  4. package/lib/commonjs/components/Annotation.js +7 -9
  5. package/lib/commonjs/components/Annotation.js.map +1 -1
  6. package/lib/commonjs/components/BackgroundLayer.js +6 -8
  7. package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
  8. package/lib/commonjs/components/Callout.js +2 -2
  9. package/lib/commonjs/components/Callout.js.map +1 -1
  10. package/lib/commonjs/components/Camera.js +2 -3
  11. package/lib/commonjs/components/Camera.js.map +1 -1
  12. package/lib/commonjs/components/CircleLayer.js +6 -8
  13. package/lib/commonjs/components/CircleLayer.js.map +1 -1
  14. package/lib/commonjs/components/FillExtrusionLayer.js +6 -8
  15. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
  16. package/lib/commonjs/components/FillLayer.js +6 -8
  17. package/lib/commonjs/components/FillLayer.js.map +1 -1
  18. package/lib/commonjs/components/HeadingIndicator.js +4 -4
  19. package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
  20. package/lib/commonjs/components/HeatmapLayer.js +6 -8
  21. package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
  22. package/lib/commonjs/components/ImageSource.js +4 -5
  23. package/lib/commonjs/components/ImageSource.js.map +1 -1
  24. package/lib/commonjs/components/Images.js +2 -2
  25. package/lib/commonjs/components/Images.js.map +1 -1
  26. package/lib/commonjs/components/Light.js +4 -6
  27. package/lib/commonjs/components/Light.js.map +1 -1
  28. package/lib/commonjs/components/LineLayer.js +6 -8
  29. package/lib/commonjs/components/LineLayer.js.map +1 -1
  30. package/lib/commonjs/components/MapView.js +38 -39
  31. package/lib/commonjs/components/MapView.js.map +1 -1
  32. package/lib/commonjs/components/MarkerView.js +4 -5
  33. package/lib/commonjs/components/MarkerView.js.map +1 -1
  34. package/lib/commonjs/components/NativeUserLocation.js +2 -2
  35. package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
  36. package/lib/commonjs/components/PointAnnotation.js +4 -6
  37. package/lib/commonjs/components/PointAnnotation.js.map +1 -1
  38. package/lib/commonjs/components/RasterLayer.js +6 -8
  39. package/lib/commonjs/components/RasterLayer.js.map +1 -1
  40. package/lib/commonjs/components/RasterSource.js +8 -10
  41. package/lib/commonjs/components/RasterSource.js.map +1 -1
  42. package/lib/commonjs/components/ShapeSource.js +6 -8
  43. package/lib/commonjs/components/ShapeSource.js.map +1 -1
  44. package/lib/commonjs/components/SymbolLayer.js +6 -7
  45. package/lib/commonjs/components/SymbolLayer.js.map +1 -1
  46. package/lib/commonjs/components/UserLocation.js +20 -22
  47. package/lib/commonjs/components/UserLocation.js.map +1 -1
  48. package/lib/commonjs/components/VectorSource.js +8 -10
  49. package/lib/commonjs/components/VectorSource.js.map +1 -1
  50. package/lib/commonjs/hooks/useAbstractLayer.js +1 -1
  51. package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
  52. package/lib/commonjs/hooks/useAbstractSource.js +1 -1
  53. package/lib/commonjs/hooks/useAbstractSource.js.map +1 -1
  54. package/lib/commonjs/hooks/useNativeBridge.js +2 -2
  55. package/lib/commonjs/hooks/useNativeBridge.js.map +1 -1
  56. package/lib/commonjs/hooks/useOnce.js +2 -2
  57. package/lib/commonjs/hooks/useOnce.js.map +1 -1
  58. package/lib/commonjs/index.js +3 -0
  59. package/lib/commonjs/index.js.map +1 -1
  60. package/lib/commonjs/modules/location/{locationManager.js → LocationManager.js} +10 -10
  61. package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
  62. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -2
  63. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
  64. package/lib/commonjs/modules/offline/{offlineManager.js → OfflineManager.js} +26 -28
  65. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
  66. package/lib/commonjs/modules/offline/OfflinePack.js +2 -2
  67. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
  68. package/lib/commonjs/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +12 -14
  69. package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -0
  70. package/lib/commonjs/modules/snapshot/SnapshotOptions.js +3 -4
  71. package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
  72. package/lib/commonjs/utils/BridgeValue.js +2 -2
  73. package/lib/commonjs/utils/BridgeValue.js.map +1 -1
  74. package/lib/commonjs/utils/Logger.js +2 -2
  75. package/lib/commonjs/utils/Logger.js.map +1 -1
  76. package/lib/commonjs/utils/StyleValue.js +2 -3
  77. package/lib/commonjs/utils/StyleValue.js.map +1 -1
  78. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  79. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
  80. package/lib/commonjs/utils/animated/Animated.js +29 -31
  81. package/lib/commonjs/utils/animated/Animated.js.map +1 -1
  82. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +4 -5
  83. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
  84. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +2 -2
  85. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
  86. package/lib/commonjs/utils/animated/AnimatedPoint.js +1 -2
  87. package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
  88. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +4 -4
  89. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
  90. package/lib/commonjs/utils/animated/AnimatedShape.js +2 -2
  91. package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
  92. package/lib/module/MapLibreRN.js +40 -28
  93. package/lib/module/MapLibreRN.js.map +1 -1
  94. package/lib/module/components/Annotation.js +5 -6
  95. package/lib/module/components/Annotation.js.map +1 -1
  96. package/lib/module/components/BackgroundLayer.js +4 -6
  97. package/lib/module/components/BackgroundLayer.js.map +1 -1
  98. package/lib/module/components/Callout.js +2 -3
  99. package/lib/module/components/Callout.js.map +1 -1
  100. package/lib/module/components/Camera.js +1 -2
  101. package/lib/module/components/Camera.js.map +1 -1
  102. package/lib/module/components/CircleLayer.js +4 -6
  103. package/lib/module/components/CircleLayer.js.map +1 -1
  104. package/lib/module/components/FillExtrusionLayer.js +4 -6
  105. package/lib/module/components/FillExtrusionLayer.js.map +1 -1
  106. package/lib/module/components/FillLayer.js +4 -6
  107. package/lib/module/components/FillLayer.js.map +1 -1
  108. package/lib/module/components/HeadingIndicator.js +2 -3
  109. package/lib/module/components/HeadingIndicator.js.map +1 -1
  110. package/lib/module/components/HeatmapLayer.js +4 -6
  111. package/lib/module/components/HeatmapLayer.js.map +1 -1
  112. package/lib/module/components/ImageSource.js +2 -3
  113. package/lib/module/components/ImageSource.js.map +1 -1
  114. package/lib/module/components/Images.js +2 -3
  115. package/lib/module/components/Images.js.map +1 -1
  116. package/lib/module/components/Light.js +2 -4
  117. package/lib/module/components/Light.js.map +1 -1
  118. package/lib/module/components/LineLayer.js +4 -6
  119. package/lib/module/components/LineLayer.js.map +1 -1
  120. package/lib/module/components/MapView.js +34 -35
  121. package/lib/module/components/MapView.js.map +1 -1
  122. package/lib/module/components/MarkerView.js +2 -3
  123. package/lib/module/components/MarkerView.js.map +1 -1
  124. package/lib/module/components/NativeUserLocation.js +1 -2
  125. package/lib/module/components/NativeUserLocation.js.map +1 -1
  126. package/lib/module/components/PointAnnotation.js +2 -3
  127. package/lib/module/components/PointAnnotation.js.map +1 -1
  128. package/lib/module/components/RasterLayer.js +4 -6
  129. package/lib/module/components/RasterLayer.js.map +1 -1
  130. package/lib/module/components/RasterSource.js +5 -7
  131. package/lib/module/components/RasterSource.js.map +1 -1
  132. package/lib/module/components/ShapeSource.js +4 -5
  133. package/lib/module/components/ShapeSource.js.map +1 -1
  134. package/lib/module/components/SymbolLayer.js +4 -5
  135. package/lib/module/components/SymbolLayer.js.map +1 -1
  136. package/lib/module/components/UserLocation.js +13 -14
  137. package/lib/module/components/UserLocation.js.map +1 -1
  138. package/lib/module/components/VectorSource.js +5 -6
  139. package/lib/module/components/VectorSource.js.map +1 -1
  140. package/lib/module/hooks/useAbstractLayer.js +1 -1
  141. package/lib/module/hooks/useAbstractLayer.js.map +1 -1
  142. package/lib/module/hooks/useAbstractSource.js +1 -1
  143. package/lib/module/hooks/useAbstractSource.js.map +1 -1
  144. package/lib/module/hooks/useNativeBridge.js +1 -2
  145. package/lib/module/hooks/useNativeBridge.js.map +1 -1
  146. package/lib/module/hooks/useNativeRef.js.map +1 -1
  147. package/lib/module/hooks/useOnce.js +1 -2
  148. package/lib/module/hooks/useOnce.js.map +1 -1
  149. package/lib/module/index.js +4 -0
  150. package/lib/module/index.js.map +1 -1
  151. package/lib/module/modules/location/{locationManager.js → LocationManager.js} +10 -9
  152. package/lib/module/modules/location/LocationManager.js.map +1 -0
  153. package/lib/module/modules/offline/OfflineCreatePackOptions.js +1 -2
  154. package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
  155. package/lib/module/modules/offline/{offlineManager.js → OfflineManager.js} +22 -22
  156. package/lib/module/modules/offline/OfflineManager.js.map +1 -0
  157. package/lib/module/modules/offline/OfflinePack.js +1 -2
  158. package/lib/module/modules/offline/OfflinePack.js.map +1 -1
  159. package/lib/module/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +10 -10
  160. package/lib/module/modules/snapshot/{snapshotManager.js.map → SnapshotManager.js.map} +1 -1
  161. package/lib/module/modules/snapshot/SnapshotOptions.js +2 -3
  162. package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
  163. package/lib/module/utils/BridgeValue.js +1 -1
  164. package/lib/module/utils/BridgeValue.js.map +1 -1
  165. package/lib/module/utils/Logger.js +1 -2
  166. package/lib/module/utils/Logger.js.map +1 -1
  167. package/lib/module/utils/StyleValue.js +1 -1
  168. package/lib/module/utils/StyleValue.js.map +1 -1
  169. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +1 -2
  170. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
  171. package/lib/module/utils/animated/Animated.js +14 -15
  172. package/lib/module/utils/animated/Animated.js.map +1 -1
  173. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +2 -3
  174. package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
  175. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +1 -1
  176. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
  177. package/lib/module/utils/animated/AnimatedPoint.js +0 -1
  178. package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
  179. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +2 -2
  180. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
  181. package/lib/module/utils/animated/AnimatedShape.js +1 -2
  182. package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
  183. package/lib/typescript/commonjs/src/MLRNModule.d.ts +1 -1
  184. package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/src/MapLibreRN.d.ts +41 -29
  186. package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/src/components/Annotation.d.ts +4 -4
  188. package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +1 -3
  190. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -1
  191. package/lib/typescript/commonjs/src/components/Callout.d.ts +3 -4
  192. package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/src/components/Camera.d.ts +4 -4
  194. package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +1 -3
  196. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
  197. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +1 -3
  198. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
  199. package/lib/typescript/commonjs/src/components/FillLayer.d.ts +1 -3
  200. package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -1
  201. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +2 -3
  202. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -1
  203. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +1 -3
  204. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/src/components/ImageSource.d.ts +3 -4
  206. package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/src/components/Images.d.ts +4 -4
  208. package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/src/components/Light.d.ts +2 -3
  210. package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/src/components/LineLayer.d.ts +1 -3
  212. package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/src/components/MapView.d.ts +4 -4
  214. package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -1
  215. package/lib/typescript/commonjs/src/components/MarkerView.d.ts +3 -3
  216. package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -1
  217. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +2 -3
  218. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +4 -3
  220. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +1 -3
  222. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/src/components/RasterSource.d.ts +4 -4
  224. package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -1
  225. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +4 -4
  226. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +1 -2
  228. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/src/components/UserLocation.d.ts +6 -6
  230. package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/src/components/VectorSource.d.ts +4 -3
  232. package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +3 -2
  234. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +4 -3
  236. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +5 -5
  238. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +2 -2
  240. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +1 -2
  242. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/index.d.ts +3 -0
  244. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +33 -0
  246. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -0
  247. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
  248. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/modules/offline/{offlineManager.d.ts → OfflineManager.d.ts} +17 -17
  250. package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +2 -3
  252. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -1
  253. package/lib/typescript/{module/src/modules/snapshot/snapshotManager.d.ts → commonjs/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
  254. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
  256. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +1 -1
  258. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/utils/Logger.d.ts +2 -2
  260. package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  263. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +19 -19
  265. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
  267. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
  269. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -1
  271. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
  273. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +5 -5
  275. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  276. package/lib/typescript/module/src/MLRNModule.d.ts +1 -1
  277. package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
  278. package/lib/typescript/module/src/MapLibreRN.d.ts +41 -29
  279. package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
  280. package/lib/typescript/module/src/components/Annotation.d.ts +4 -4
  281. package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
  282. package/lib/typescript/module/src/components/BackgroundLayer.d.ts +1 -3
  283. package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -1
  284. package/lib/typescript/module/src/components/Callout.d.ts +3 -4
  285. package/lib/typescript/module/src/components/Callout.d.ts.map +1 -1
  286. package/lib/typescript/module/src/components/Camera.d.ts +4 -4
  287. package/lib/typescript/module/src/components/Camera.d.ts.map +1 -1
  288. package/lib/typescript/module/src/components/CircleLayer.d.ts +1 -3
  289. package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
  290. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +1 -3
  291. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
  292. package/lib/typescript/module/src/components/FillLayer.d.ts +1 -3
  293. package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -1
  294. package/lib/typescript/module/src/components/HeadingIndicator.d.ts +2 -3
  295. package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -1
  296. package/lib/typescript/module/src/components/HeatmapLayer.d.ts +1 -3
  297. package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -1
  298. package/lib/typescript/module/src/components/ImageSource.d.ts +3 -4
  299. package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -1
  300. package/lib/typescript/module/src/components/Images.d.ts +4 -4
  301. package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
  302. package/lib/typescript/module/src/components/Light.d.ts +2 -3
  303. package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
  304. package/lib/typescript/module/src/components/LineLayer.d.ts +1 -3
  305. package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
  306. package/lib/typescript/module/src/components/MapView.d.ts +4 -4
  307. package/lib/typescript/module/src/components/MapView.d.ts.map +1 -1
  308. package/lib/typescript/module/src/components/MarkerView.d.ts +3 -3
  309. package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -1
  310. package/lib/typescript/module/src/components/NativeUserLocation.d.ts +2 -3
  311. package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -1
  312. package/lib/typescript/module/src/components/PointAnnotation.d.ts +4 -3
  313. package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
  314. package/lib/typescript/module/src/components/RasterLayer.d.ts +1 -3
  315. package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -1
  316. package/lib/typescript/module/src/components/RasterSource.d.ts +4 -4
  317. package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -1
  318. package/lib/typescript/module/src/components/ShapeSource.d.ts +4 -4
  319. package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
  320. package/lib/typescript/module/src/components/SymbolLayer.d.ts +1 -2
  321. package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -1
  322. package/lib/typescript/module/src/components/UserLocation.d.ts +6 -6
  323. package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
  324. package/lib/typescript/module/src/components/VectorSource.d.ts +4 -3
  325. package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
  326. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +3 -2
  327. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -1
  328. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +4 -3
  329. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -1
  330. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +5 -5
  331. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -1
  332. package/lib/typescript/module/src/hooks/useNativeRef.d.ts +2 -2
  333. package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -1
  334. package/lib/typescript/module/src/hooks/useOnce.d.ts +1 -2
  335. package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -1
  336. package/lib/typescript/module/src/index.d.ts +3 -0
  337. package/lib/typescript/module/src/index.d.ts.map +1 -1
  338. package/lib/typescript/module/src/modules/location/LocationManager.d.ts +33 -0
  339. package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -0
  340. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
  341. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
  342. package/lib/typescript/module/src/modules/offline/{offlineManager.d.ts → OfflineManager.d.ts} +17 -17
  343. package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
  344. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +2 -3
  345. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -1
  346. package/lib/typescript/{commonjs/src/modules/snapshot/snapshotManager.d.ts → module/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
  347. package/lib/typescript/module/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
  348. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
  349. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
  350. package/lib/typescript/module/src/utils/BridgeValue.d.ts +1 -1
  351. package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -1
  352. package/lib/typescript/module/src/utils/Logger.d.ts +2 -2
  353. package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -1
  354. package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -1
  355. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  356. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  357. package/lib/typescript/module/src/utils/animated/Animated.d.ts +19 -19
  358. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
  359. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
  360. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
  361. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
  362. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  363. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -1
  364. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  365. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
  366. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
  367. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +5 -5
  368. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  369. package/package.json +1 -1
  370. package/src/MLRNModule.ts +1 -1
  371. package/src/MapLibreRN.ts +46 -30
  372. package/src/components/Annotation.tsx +9 -11
  373. package/src/components/BackgroundLayer.tsx +5 -7
  374. package/src/components/Callout.tsx +8 -10
  375. package/src/components/Camera.tsx +3 -5
  376. package/src/components/CircleLayer.tsx +5 -7
  377. package/src/components/FillExtrusionLayer.tsx +5 -7
  378. package/src/components/FillLayer.tsx +5 -7
  379. package/src/components/HeadingIndicator.tsx +2 -6
  380. package/src/components/HeatmapLayer.tsx +5 -7
  381. package/src/components/ImageSource.tsx +4 -6
  382. package/src/components/Images.tsx +6 -8
  383. package/src/components/Light.tsx +3 -5
  384. package/src/components/LineLayer.tsx +5 -7
  385. package/src/components/MapView.tsx +36 -37
  386. package/src/components/MarkerView.tsx +4 -6
  387. package/src/components/NativeUserLocation.tsx +1 -4
  388. package/src/components/PointAnnotation.tsx +7 -6
  389. package/src/components/RasterLayer.tsx +5 -7
  390. package/src/components/RasterSource.tsx +7 -9
  391. package/src/components/ShapeSource.tsx +6 -8
  392. package/src/components/SymbolLayer.tsx +5 -6
  393. package/src/components/UserLocation.tsx +18 -19
  394. package/src/components/VectorSource.tsx +7 -9
  395. package/src/hooks/useAbstractLayer.ts +5 -5
  396. package/src/hooks/useAbstractSource.ts +6 -6
  397. package/src/hooks/useNativeBridge.ts +9 -6
  398. package/src/hooks/useNativeRef.ts +2 -2
  399. package/src/hooks/useOnce.ts +3 -3
  400. package/src/index.ts +3 -0
  401. package/src/modules/location/{locationManager.ts → LocationManager.ts} +16 -15
  402. package/src/modules/offline/OfflineCreatePackOptions.ts +1 -3
  403. package/src/modules/offline/{offlineManager.ts → OfflineManager.ts} +22 -21
  404. package/src/modules/offline/OfflinePack.ts +2 -4
  405. package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
  406. package/src/modules/snapshot/SnapshotOptions.ts +2 -4
  407. package/src/utils/BridgeValue.ts +1 -1
  408. package/src/utils/Logger.ts +1 -3
  409. package/src/utils/StyleValue.ts +2 -1
  410. package/src/utils/animated/AbstractAnimatedCoordinates.ts +3 -3
  411. package/src/utils/animated/Animated.ts +23 -21
  412. package/src/utils/animated/AnimatedCoordinatesArray.ts +3 -4
  413. package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +1 -1
  414. package/src/utils/animated/AnimatedPoint.ts +0 -2
  415. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -2
  416. package/src/utils/animated/AnimatedShape.ts +4 -6
  417. package/lib/commonjs/modules/location/locationManager.js.map +0 -1
  418. package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
  419. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
  420. package/lib/module/modules/location/locationManager.js.map +0 -1
  421. package/lib/module/modules/offline/offlineManager.js.map +0 -1
  422. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +0 -64
  423. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +0 -1
  424. package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +0 -1
  425. package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
  426. package/lib/typescript/module/src/modules/location/locationManager.d.ts +0 -64
  427. package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +0 -1
  428. package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +0 -1
  429. package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
@@ -1,33 +1,33 @@
1
- import React from "react";
1
+ import { type ForwardRefExoticComponent, type MemoExoticComponent, type RefAttributes } from "react";
2
2
  import { Animated as RNAnimated } from "react-native";
3
- import AnimatedCoordinatesArray from "./AnimatedCoordinatesArray";
4
- import AnimatedExtractCoordinateFromArray from "./AnimatedExtractCoordinateFromArray";
5
- import AnimatedRouteCoordinatesArray from "./AnimatedRouteCoordinatesArray";
6
- import AnimatedShape from "./AnimatedShape";
3
+ import { AnimatedCoordinatesArray } from "./AnimatedCoordinatesArray";
4
+ import { AnimatedExtractCoordinateFromArray } from "./AnimatedExtractCoordinateFromArray";
5
+ import { AnimatedRouteCoordinatesArray } from "./AnimatedRouteCoordinatesArray";
6
+ import { AnimatedShape } from "./AnimatedShape";
7
7
  import { type ShapeSourceProps, type ShapeSourceRef } from "../../components/ShapeSource";
8
- declare const Animated: {
9
- ShapeSource: RNAnimated.AnimatedComponent<React.MemoExoticComponent<React.ForwardRefExoticComponent<ShapeSourceProps & React.RefAttributes<ShapeSourceRef>>>>;
10
- ImageSource: RNAnimated.AnimatedComponent<React.FC<import("../../components/ImageSource").ImageSourceProps>>;
11
- FillLayer: RNAnimated.AnimatedComponent<React.FC<import("../../components/FillLayer").FillLayerProps>>;
12
- FillExtrusionLayer: RNAnimated.AnimatedComponent<React.FC<import("../../components/FillExtrusionLayer").FillExtrusionLayerProps>>;
13
- LineLayer: RNAnimated.AnimatedComponent<React.FC<import("../../components/LineLayer").LineLayerProps>>;
14
- CircleLayer: RNAnimated.AnimatedComponent<React.FC<import("../../components/CircleLayer").CircleLayerProps>>;
15
- SymbolLayer: RNAnimated.AnimatedComponent<React.FC<import("../../components/SymbolLayer").SymbolLayerProps>>;
16
- RasterLayer: RNAnimated.AnimatedComponent<React.FC<import("../../components/RasterLayer").RasterLayerProps>>;
17
- BackgroundLayer: RNAnimated.AnimatedComponent<React.FC<import("../../components/BackgroundLayer").BackgroundLayerProps>>;
8
+ export declare const Animated: {
9
+ ShapeSource: RNAnimated.AnimatedComponent<MemoExoticComponent<ForwardRefExoticComponent<ShapeSourceProps & RefAttributes<ShapeSourceRef>>>>;
10
+ ImageSource: RNAnimated.AnimatedComponent<(props: import("../../components/ImageSource").ImageSourceProps) => import("react/jsx-runtime").JSX.Element | null>;
11
+ FillLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/FillLayer").FillLayerProps) => import("react/jsx-runtime").JSX.Element>;
12
+ FillExtrusionLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/FillExtrusionLayer").FillExtrusionLayerProps) => import("react/jsx-runtime").JSX.Element>;
13
+ LineLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/LineLayer").LineLayerProps) => import("react/jsx-runtime").JSX.Element>;
14
+ CircleLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/CircleLayer").CircleLayerProps) => import("react/jsx-runtime").JSX.Element>;
15
+ SymbolLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/SymbolLayer").SymbolLayerProps) => import("react/jsx-runtime").JSX.Element>;
16
+ RasterLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/RasterLayer").RasterLayerProps) => import("react/jsx-runtime").JSX.Element>;
17
+ BackgroundLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/BackgroundLayer").BackgroundLayerProps) => import("react/jsx-runtime").JSX.Element>;
18
18
  CoordinatesArray: typeof AnimatedCoordinatesArray;
19
19
  RouteCoordinatesArray: typeof AnimatedRouteCoordinatesArray;
20
20
  Shape: typeof AnimatedShape;
21
21
  ExtractCoordinateFromArray: typeof AnimatedExtractCoordinateFromArray;
22
22
  };
23
- type ShapeSourcePropsWithRef = ShapeSourceProps & React.RefAttributes<ShapeSourceRef>;
24
- type BaseShapeSourceComponent = React.ForwardRefExoticComponent<ShapeSourcePropsWithRef>;
25
- type AnimatedShapeSourceType = RNAnimated.AnimatedComponent<BaseShapeSourceComponent> & React.MemoExoticComponent<BaseShapeSourceComponent>;
23
+ type ShapeSourcePropsWithRef = ShapeSourceProps & RefAttributes<ShapeSourceRef>;
24
+ type BaseShapeSourceComponent = ForwardRefExoticComponent<ShapeSourcePropsWithRef>;
25
+ type AnimatedShapeSourceType = RNAnimated.AnimatedComponent<BaseShapeSourceComponent> & MemoExoticComponent<BaseShapeSourceComponent>;
26
26
  /**
27
27
  * Manual typing is required for AnimatedShapeSource because the
28
28
  * following error:
29
29
  * `Type instantiation is excessively deep and possibly infinite.ts(2589)`
30
30
  */
31
31
  export declare const AnimatedShapeSource: AnimatedShapeSourceType;
32
- export default Animated;
32
+ export {};
33
33
  //# sourceMappingURL=Animated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/Animated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AACtF,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAC5E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAQ5C,OAAoB,EAClB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,8BAA8B,CAAC;AAGtC,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;CAmBb,CAAC;AAEF,KAAK,uBAAuB,GAAG,gBAAgB,GAC7C,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AAEtC,KAAK,wBAAwB,GAC3B,KAAK,CAAC,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;AAE3D,KAAK,uBAAuB,GAC1B,UAAU,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,GACpD,KAAK,CAAC,mBAAmB,CAAC,wBAAwB,CAAC,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAE3B,uBAAuB,CAAC;AAE7B,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/Animated.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQhD,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,8BAA8B,CAAC;AAGtC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,KAAK,uBAAuB,GAAG,gBAAgB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;AAEhF,KAAK,wBAAwB,GAC3B,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;AAErD,KAAK,uBAAuB,GAC1B,UAAU,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,GACpD,mBAAmB,CAAC,wBAAwB,CAAC,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAE3B,uBAAuB,CAAC"}
@@ -1,9 +1,9 @@
1
- import AbstractAnimatedCoordinates, { type AnimatedCoordinates } from "./AbstractAnimatedCoordinates";
1
+ import { AbstractAnimatedCoordinates, type AnimatedCoordinates } from "./AbstractAnimatedCoordinates";
2
2
  interface CoordinatesState {
3
3
  coords: AnimatedCoordinates[];
4
4
  targetCoords: AnimatedCoordinates[];
5
5
  }
6
- declare class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesState> {
6
+ export declare class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesState> {
7
7
  /**
8
8
  * Subclasses can override to calculate initial state
9
9
  *
@@ -36,5 +36,5 @@ declare class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<Coord
36
36
  */
37
37
  onStart(state: CoordinatesState, toValue: AnimatedCoordinates[]): CoordinatesState;
38
38
  }
39
- export default AnimatedCoordinatesArray;
39
+ export {};
40
40
  //# sourceMappingURL=AnimatedCoordinatesArray.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedCoordinatesArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedCoordinatesArray.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,EAAE,EAClC,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,UAAU,gBAAgB;IACxB,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,YAAY,EAAE,mBAAmB,EAAE,CAAC;CACrC;AAED,cAAM,wBAAyB,SAAQ,2BAA2B,CAAC,gBAAgB,CAAC;IAClF;;;;;OAKG;IACH,cAAc,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,GAAG,gBAAgB;IAUzE;;;;;;OAMG;IACH,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC;IAI/D;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,GAAG,gBAAgB;IA+CxE;;;;;;OAMG;IACH,OAAO,CACL,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,mBAAmB,EAAE,GAC7B,gBAAgB;CASpB;AAED,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"AnimatedCoordinatesArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedCoordinatesArray.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,UAAU,gBAAgB;IACxB,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,YAAY,EAAE,mBAAmB,EAAE,CAAC;CACrC;AAED,qBAAa,wBAAyB,SAAQ,2BAA2B,CAAC,gBAAgB,CAAC;IACzF;;;;;OAKG;IACH,cAAc,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,GAAG,gBAAgB;IAUzE;;;;;;OAMG;IACH,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC;IAI/D;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,GAAG,gBAAgB;IA+CxE;;;;;;OAMG;IACH,OAAO,CACL,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,mBAAmB,EAAE,GAC7B,gBAAgB;CASpB"}
@@ -1,5 +1,5 @@
1
1
  declare const AnimatedWithChildren: any;
2
- export default class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
2
+ export declare class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
3
3
  static [x: string]: any;
4
4
  _array: AnimatedExtractCoordinateFromArray;
5
5
  _index: number;
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,oBAAoB;;IAClF,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
1
+ {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,qBAAa,kCAAmC,SAAQ,oBAAoB;;IAC1E,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -28,5 +28,5 @@ export declare class AnimatedPoint extends AnimatedWithChildren {
28
28
  __attach(): void;
29
29
  __detach(): void;
30
30
  }
31
- export default AnimatedPoint;
31
+ export {};
32
32
  //# sourceMappingURL=AnimatedPoint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -1,5 +1,5 @@
1
1
  import { type Coord, type Units } from "@turf/helpers";
2
- import AbstractAnimatedCoordinates, { type AnimatedCoordinates } from "./AbstractAnimatedCoordinates";
2
+ import { AbstractAnimatedCoordinates, type AnimatedCoordinates } from "./AbstractAnimatedCoordinates";
3
3
  interface AnimatedRouteState {
4
4
  actRoute?: AnimatedCoordinates[];
5
5
  fullRoute: AnimatedCoordinates[];
@@ -11,7 +11,7 @@ interface AnimatedRouteState {
11
11
  along?: Coord;
12
12
  };
13
13
  }
14
- export default class AnimatedRouteCoordinatesArray extends AbstractAnimatedCoordinates<AnimatedRouteState> {
14
+ export declare class AnimatedRouteCoordinatesArray extends AbstractAnimatedCoordinates<AnimatedRouteState> {
15
15
  /**
16
16
  * Calculate initial state
17
17
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedRouteCoordinatesArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedRouteCoordinatesArray.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAIvB,OAAO,2BAA2B,EAAE,EAClC,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjC,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,GAAG,EAAE;QACH,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,2BAA2B,CAAC,kBAAkB,CAAC;IACxG;;;;;OAKG;IACH,cAAc,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,GAAG,kBAAkB;IAS3E;;;;;OAKG;IACH,UAAU,CACR,KAAK,EAAE,kBAAkB,GACxB,kBAAkB,GAAG,mBAAmB,EAAE;IAI7C;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,GAAG,kBAAkB;IAgC5E;;;;;;OAMG;IACH,OAAO,CACL,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE;QAAE,GAAG,EAAE;YAAE,KAAK,CAAC,EAAE,KAAK,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GACjE,kBAAkB;IA0CrB,IAAI,aAAa,IAAI,mBAAmB,EAAE,CAEzC;CACF"}
1
+ {"version":3,"file":"AnimatedRouteCoordinatesArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedRouteCoordinatesArray.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,2BAA2B,EAC3B,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjC,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,GAAG,EAAE;QACH,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,CAAC;CACH;AAED,qBAAa,6BAA8B,SAAQ,2BAA2B,CAAC,kBAAkB,CAAC;IAChG;;;;;OAKG;IACH,cAAc,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,GAAG,kBAAkB;IAS3E;;;;;OAKG;IACH,UAAU,CACR,KAAK,EAAE,kBAAkB,GACxB,kBAAkB,GAAG,mBAAmB,EAAE;IAI7C;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,GAAG,kBAAkB;IAgC5E;;;;;;OAMG;IACH,OAAO,CACL,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE;QAAE,GAAG,EAAE;YAAE,KAAK,CAAC,EAAE,KAAK,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GACjE,kBAAkB;IA0CrB,IAAI,aAAa,IAAI,mBAAmB,EAAE,CAEzC;CACF"}
@@ -1,7 +1,7 @@
1
1
  import { Animated } from "react-native";
2
- import AnimatedCoordinatesArray from "./AnimatedCoordinatesArray";
3
- import AnimatedExtractCoordinateFromArray from "./AnimatedExtractCoordinateFromArray";
4
- import AnimatedRouteCoordinatesArray from "./AnimatedRouteCoordinatesArray";
2
+ import { AnimatedCoordinatesArray } from "./AnimatedCoordinatesArray";
3
+ import { AnimatedExtractCoordinateFromArray } from "./AnimatedExtractCoordinateFromArray";
4
+ import { AnimatedRouteCoordinatesArray } from "./AnimatedRouteCoordinatesArray";
5
5
  declare const AnimatedWithChildren: any;
6
6
  type Shape = {
7
7
  type: "Point";
@@ -15,7 +15,7 @@ type Shape = {
15
15
  * @example
16
16
  * <AnimatedShapeSource ... shape={new AnimatedShape({type:'LineString', coordinates: animatedCoords})} />
17
17
  */
18
- declare class AnimatedShape extends AnimatedWithChildren {
18
+ export declare class AnimatedShape extends AnimatedWithChildren {
19
19
  static [x: string]: any;
20
20
  constructor(shape: Shape);
21
21
  _walkShapeAndGetValues(value: any): any;
@@ -24,5 +24,5 @@ declare class AnimatedShape extends AnimatedWithChildren {
24
24
  __attach(): void;
25
25
  __detach(): void;
26
26
  }
27
- export default AnimatedShape;
27
+ export {};
28
28
  //# sourceMappingURL=AnimatedShape.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AACtF,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAI5E,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,KAAK,KAAK,GACN;IACE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EACP,kCAAkC,GAClC,6BAA6B,CAAC;CACnC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC;AAEN;;;;GAIG;AACH,cAAM,aAAc,SAAQ,oBAAoB;;gBAIlC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAIhF,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,KAAK,KAAK,GACN;IACE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EACP,kCAAkC,GAClC,6BAA6B,CAAC;CACnC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC;AAEN;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,oBAAoB;;gBAIzC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maplibre/maplibre-react-native",
3
3
  "description": "React Native library for creating maps with MapLibre Native for Android & iOS",
4
- "version": "10.0.0-beta.12",
4
+ "version": "10.0.0-beta.13",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "provenance": true
package/src/MLRNModule.ts CHANGED
@@ -22,7 +22,7 @@ interface IMLRNModule {
22
22
  };
23
23
 
24
24
  StyleURL: {
25
- Default: URL;
25
+ Default: string;
26
26
  };
27
27
 
28
28
  setAccessToken(accessToken: string | null): Promise<string | null>;
package/src/MapLibreRN.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./MLRNModule";
2
2
  export {
3
- default as Camera,
3
+ Camera,
4
4
  UserTrackingMode,
5
5
  type CameraPadding,
6
6
  type CameraAnimationMode,
@@ -8,53 +8,69 @@ export {
8
8
  type CameraRef,
9
9
  } from "./components/Camera";
10
10
  export {
11
- default as MapView,
11
+ MapView,
12
12
  type MapViewRef,
13
13
  type RegionPayload,
14
14
  } from "./components/MapView";
15
- export { default as Light } from "./components/Light";
16
- export { default as PointAnnotation } from "./components/PointAnnotation";
15
+ export { Light } from "./components/Light";
16
+ export { PointAnnotation } from "./components/PointAnnotation";
17
17
  export type { PointAnnotationRef } from "./components/PointAnnotation";
18
- export { default as Annotation } from "./components/Annotation";
19
- export { default as Callout } from "./components/Callout";
18
+ export { Annotation } from "./components/Annotation";
19
+ export { Callout } from "./components/Callout";
20
20
  export { requestAndroidLocationPermissions } from "./requestAndroidLocationPermissions";
21
21
  export {
22
- default as UserLocation,
22
+ UserLocation,
23
23
  UserLocationRenderMode,
24
24
  } from "./components/UserLocation";
25
25
  export type { UserLocationRef } from "./components/UserLocation";
26
- export { default as VectorSource } from "./components/VectorSource";
27
- export { default as ShapeSource } from "./components/ShapeSource";
26
+ export { VectorSource } from "./components/VectorSource";
27
+ export { ShapeSource } from "./components/ShapeSource";
28
28
  export type { ShapeSourceRef } from "./components/ShapeSource";
29
- export { default as RasterSource } from "./components/RasterSource";
30
- export { default as ImageSource } from "./components/ImageSource";
31
- export { default as Images } from "./components/Images";
32
- export { default as FillLayer } from "./components/FillLayer";
33
- export { default as FillExtrusionLayer } from "./components/FillExtrusionLayer";
34
- export { default as HeatmapLayer } from "./components/HeatmapLayer";
35
- export { default as LineLayer } from "./components/LineLayer";
36
- export { default as CircleLayer } from "./components/CircleLayer";
37
- export { default as SymbolLayer } from "./components/SymbolLayer";
38
- export { default as RasterLayer } from "./components/RasterLayer";
39
- export { default as BackgroundLayer } from "./components/BackgroundLayer";
40
- export { default as MarkerView } from "./components/MarkerView";
29
+ export { RasterSource } from "./components/RasterSource";
30
+ export { ImageSource } from "./components/ImageSource";
31
+ export { Images } from "./components/Images";
32
+ export { FillLayer } from "./components/FillLayer";
33
+ export { FillExtrusionLayer } from "./components/FillExtrusionLayer";
34
+ export { HeatmapLayer } from "./components/HeatmapLayer";
35
+ export { LineLayer } from "./components/LineLayer";
36
+ export { CircleLayer } from "./components/CircleLayer";
37
+ export { SymbolLayer } from "./components/SymbolLayer";
38
+ export { RasterLayer } from "./components/RasterLayer";
39
+ export { BackgroundLayer } from "./components/BackgroundLayer";
40
+ export { MarkerView } from "./components/MarkerView";
41
41
 
42
42
  export {
43
- default as locationManager,
43
+ LocationManager,
44
+ /**
45
+ * @deprecated Use LocationManager instead
46
+ */
47
+ LocationManager as locationManager,
44
48
  type Location,
45
- } from "./modules/location/locationManager";
46
- export { default as offlineManager } from "./modules/offline/offlineManager";
47
- export type { OfflinePackError } from "./modules/offline/offlineManager";
49
+ } from "./modules/location/LocationManager";
50
+ export {
51
+ OfflineManager,
52
+ /**
53
+ * @deprecated Use OfflineManager instead
54
+ */
55
+ OfflineManager as offlineManager,
56
+ } from "./modules/offline/OfflineManager";
57
+ export type { OfflinePackError } from "./modules/offline/OfflineManager";
48
58
  export type { OfflinePackStatus } from "./modules/offline/OfflinePack";
49
- export { default as OfflinePack } from "./modules/offline/OfflinePack";
50
- export { default as OfflineCreatePackOptions } from "./modules/offline/OfflineCreatePackOptions";
51
- export { default as snapshotManager } from "./modules/snapshot/snapshotManager";
59
+ export { OfflinePack } from "./modules/offline/OfflinePack";
60
+ export { OfflineCreatePackOptions } from "./modules/offline/OfflineCreatePackOptions";
61
+ export {
62
+ SnapshotManager,
63
+ /**
64
+ * @deprecated Use SnapshotManager instead
65
+ */
66
+ SnapshotManager as snapshotManager,
67
+ } from "./modules/snapshot/SnapshotManager";
52
68
  export type { SnapshotInputOptions } from "./modules/snapshot/SnapshotOptions";
53
69
 
54
70
  export type { MapLibreRNEvent } from "./types/MapLibreRNEvent";
55
71
 
56
- export { default as Animated } from "./utils/animated/Animated";
57
- export { default as Logger, type LogLevel } from "./utils/Logger";
72
+ export { Animated } from "./utils/animated/Animated";
73
+ export { Logger, type LogLevel } from "./utils/Logger";
58
74
  export type {
59
75
  FillLayerStyle,
60
76
  LineLayerStyle,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  forwardRef,
3
- type ReactElement,
3
+ type ReactNode,
4
4
  useCallback,
5
5
  useEffect,
6
6
  useImperativeHandle,
@@ -8,11 +8,11 @@ import {
8
8
  } from "react";
9
9
  import { Animated as RNAnimated, Easing } from "react-native";
10
10
 
11
- import SymbolLayer from "./SymbolLayer";
11
+ import { SymbolLayer } from "./SymbolLayer";
12
12
  import { type SymbolLayerStyle } from "../types/MapLibreRNStyles";
13
13
  import { type OnPressEvent } from "../types/OnPressEvent";
14
14
  import { AnimatedShapeSource } from "../utils/animated/Animated";
15
- import AnimatedMapPoint from "../utils/animated/AnimatedPoint";
15
+ import { AnimatedPoint } from "../utils/animated/AnimatedPoint";
16
16
 
17
17
  interface AnnotationProps {
18
18
  id: string;
@@ -21,12 +21,12 @@ interface AnnotationProps {
21
21
  animationEasingFunction?(x: number): number;
22
22
  coordinates?: number[];
23
23
  onPress?(event: OnPressEvent): void;
24
- children?: ReactElement | ReactElement[];
24
+ children?: ReactNode;
25
25
  style?: object;
26
26
  icon?: string | number | object;
27
27
  }
28
28
 
29
- type Shape = AnimatedMapPoint | GeoJSON.Point;
29
+ type Shape = AnimatedPoint | GeoJSON.Point;
30
30
 
31
31
  function getShapeFromProps(props: Partial<AnnotationProps> = {}): Shape {
32
32
  const lng = props.coordinates?.[0] || 0;
@@ -34,14 +34,14 @@ function getShapeFromProps(props: Partial<AnnotationProps> = {}): Shape {
34
34
  const point: GeoJSON.Point = { type: "Point", coordinates: [lng, lat] };
35
35
 
36
36
  if (props.animated) {
37
- return new AnimatedMapPoint(point);
37
+ return new AnimatedPoint(point);
38
38
  }
39
39
 
40
40
  return point;
41
41
  }
42
42
 
43
- function isShapeAnimated(shape: Shape): shape is AnimatedMapPoint {
44
- return shape instanceof AnimatedMapPoint;
43
+ function isShapeAnimated(shape: Shape): shape is AnimatedPoint {
44
+ return shape instanceof AnimatedPoint;
45
45
  }
46
46
 
47
47
  interface AnnotationRef {
@@ -49,7 +49,7 @@ interface AnnotationRef {
49
49
  symbolStyle: SymbolLayerStyle | undefined;
50
50
  }
51
51
 
52
- const Annotation = forwardRef<AnnotationRef, AnnotationProps>(
52
+ export const Annotation = forwardRef<AnnotationRef, AnnotationProps>(
53
53
  (
54
54
  {
55
55
  animated = false,
@@ -160,5 +160,3 @@ const Annotation = forwardRef<AnnotationRef, AnnotationProps>(
160
160
  );
161
161
 
162
162
  Annotation.displayName = "Annotation";
163
-
164
- export default Annotation;
@@ -1,14 +1,14 @@
1
- import React from "react";
2
1
  import { NativeModules, requireNativeComponent } from "react-native";
3
2
 
4
- import useAbstractLayer, {
3
+ import {
4
+ useAbstractLayer,
5
5
  type BaseLayerProps,
6
6
  type NativeBaseProps,
7
7
  } from "../hooks/useAbstractLayer";
8
8
  import { type BaseProps } from "../types/BaseProps";
9
9
  import { type BackgroundLayerStyle } from "../types/MapLibreRNStyles";
10
10
 
11
- const MapLibreRN = NativeModules.MLRNModule;
11
+ const MLRNModule = NativeModules.MLRNModule;
12
12
 
13
13
  export const NATIVE_MODULE_NAME = "MLRNBackgroundLayer";
14
14
 
@@ -26,8 +26,8 @@ interface NativeProps
26
26
  const MLRNBackgroundLayer =
27
27
  requireNativeComponent<BackgroundLayerProps>(NATIVE_MODULE_NAME);
28
28
 
29
- const BackgroundLayer: React.FC<BackgroundLayerProps> = ({
30
- sourceID = MapLibreRN.StyleSource.DefaultSourceID,
29
+ export const BackgroundLayer = ({
30
+ sourceID = MLRNModule.StyleSource.DefaultSourceID,
31
31
  ...props
32
32
  }: BackgroundLayerProps) => {
33
33
  const { baseProps, setNativeLayer } = useAbstractLayer<
@@ -46,5 +46,3 @@ const BackgroundLayer: React.FC<BackgroundLayerProps> = ({
46
46
  />
47
47
  );
48
48
  };
49
-
50
- export default BackgroundLayer;
@@ -1,13 +1,13 @@
1
- import { Children, type ReactElement } from "react";
1
+ import { Children } from "react";
2
2
  import {
3
- View,
4
- Text,
5
3
  Animated,
6
4
  requireNativeComponent,
5
+ type StyleProp,
7
6
  StyleSheet,
8
- type ViewStyle,
7
+ Text,
8
+ View,
9
9
  type ViewProps,
10
- type StyleProp,
10
+ type ViewStyle,
11
11
  } from "react-native";
12
12
 
13
13
  export const NATIVE_MODULE_NAME = "MLRNCallout";
@@ -82,7 +82,7 @@ interface NativeProps extends Omit<CalloutProps, "style"> {
82
82
  /**
83
83
  * Callout that displays information about a selected annotation near the annotation.
84
84
  */
85
- const Callout = (props: CalloutProps): ReactElement => {
85
+ export const Callout = (props: CalloutProps) => {
86
86
  const {
87
87
  title,
88
88
  style,
@@ -104,7 +104,7 @@ const Callout = (props: CalloutProps): ReactElement => {
104
104
 
105
105
  const _hasChildren = Children.count(children) > 0;
106
106
 
107
- const _renderDefaultCallout = (): ReactElement => {
107
+ const _renderDefaultCallout = () => {
108
108
  return (
109
109
  <Animated.View testID="container" style={[styles.container, style]}>
110
110
  <View testID="wrapper" style={[styles.content, contentStyle]}>
@@ -117,7 +117,7 @@ const Callout = (props: CalloutProps): ReactElement => {
117
117
  );
118
118
  };
119
119
 
120
- const _renderCustomCallout = (): ReactElement => {
120
+ const _renderCustomCallout = () => {
121
121
  return (
122
122
  <Animated.View testID="container" {...props} style={style}>
123
123
  {children}
@@ -137,5 +137,3 @@ const Callout = (props: CalloutProps): ReactElement => {
137
137
  };
138
138
 
139
139
  const MLRNCallout = requireNativeComponent<NativeProps>(NATIVE_MODULE_NAME);
140
-
141
- export default Callout;
@@ -6,7 +6,7 @@ import { CameraModes } from "../MLRNModule";
6
6
  import { useNativeRef } from "../hooks/useNativeRef";
7
7
  import { type BaseProps } from "../types/BaseProps";
8
8
  import { CameraMode } from "../types/CameraMode";
9
- import type { MapLibreRNEvent } from "../types/MapLibreRNEvent";
9
+ import { type MapLibreRNEvent } from "../types/MapLibreRNEvent";
10
10
  import { makeNativeBounds } from "../utils/makeNativeBounds";
11
11
 
12
12
  export const NATIVE_MODULE_NAME = "MLRNCamera";
@@ -211,7 +211,7 @@ export interface CameraProps extends BaseProps, CameraStop {
211
211
  followUserLocation?: boolean;
212
212
 
213
213
  /**
214
- * The mode used to track the user location on the map. One of; "normal", "compass", "course". Each mode string is also available as a member on the `MapLibreGL.UserTrackingMode` object. `Follow` (normal), `FollowWithHeading` (compass), `FollowWithCourse` (course). NOTE: `followUserLocation` must be set to `true` for any of the modes to take effect. [Example](/packages/examples/src/examples/Camera/SetUserTrackingMode.js)
214
+ * The mode used to track the user location on the map. One of; "normal", "compass", "course". Each mode string is also available as a member on the `UserTrackingMode` object. `Follow` (normal), `FollowWithHeading` (compass), `FollowWithCourse` (course). NOTE: `followUserLocation` must be set to `true` for any of the modes to take effect. [Example](/packages/examples/src/examples/Camera/SetUserTrackingMode.js)
215
215
  */
216
216
  followUserMode?: UserTrackingMode;
217
217
 
@@ -244,7 +244,7 @@ export interface NativeCameraProps
244
244
  defaultStop?: NativeCameraStop;
245
245
  }
246
246
 
247
- const Camera = memo(
247
+ export const Camera = memo(
248
248
  forwardRef<CameraRef, CameraProps>(
249
249
  (
250
250
  {
@@ -488,5 +488,3 @@ const Camera = memo(
488
488
 
489
489
  const MLRNCamera =
490
490
  requireNativeComponent<NativeCameraProps>(NATIVE_MODULE_NAME);
491
-
492
- export default Camera;
@@ -1,14 +1,14 @@
1
- import React from "react";
2
1
  import { NativeModules, requireNativeComponent } from "react-native";
3
2
 
4
- import useAbstractLayer, {
3
+ import {
4
+ useAbstractLayer,
5
5
  type BaseLayerProps,
6
6
  type NativeBaseProps,
7
7
  } from "../hooks/useAbstractLayer";
8
8
  import { type BaseProps } from "../types/BaseProps";
9
9
  import { type CircleLayerStyle } from "../types/MapLibreRNStyles";
10
10
 
11
- const MapLibreRN = NativeModules.MLRNModule;
11
+ const MLRNModule = NativeModules.MLRNModule;
12
12
 
13
13
  export const NATIVE_MODULE_NAME = "MLRNCircleLayer";
14
14
 
@@ -28,8 +28,8 @@ const MLRNCircleLayer = requireNativeComponent<NativeProps>(NATIVE_MODULE_NAME);
28
28
  /**
29
29
  * CircleLayer is a style layer that renders one or more filled circles on the map.
30
30
  */
31
- const CircleLayer: React.FC<CircleLayerProps> = ({
32
- sourceID = MapLibreRN.StyleSource.DefaultSourceID,
31
+ export const CircleLayer = ({
32
+ sourceID = MLRNModule.StyleSource.DefaultSourceID,
33
33
  ...props
34
34
  }: CircleLayerProps) => {
35
35
  const { baseProps, setNativeLayer } = useAbstractLayer<
@@ -48,5 +48,3 @@ const CircleLayer: React.FC<CircleLayerProps> = ({
48
48
  />
49
49
  );
50
50
  };
51
-
52
- export default CircleLayer;
@@ -1,14 +1,14 @@
1
- import React from "react";
2
1
  import { NativeModules, requireNativeComponent } from "react-native";
3
2
 
4
- import useAbstractLayer, {
3
+ import {
4
+ useAbstractLayer,
5
5
  type BaseLayerProps,
6
6
  type NativeBaseProps,
7
7
  } from "../hooks/useAbstractLayer";
8
8
  import { type BaseProps } from "../types/BaseProps";
9
9
  import { type FillExtrusionLayerStyle } from "../types/MapLibreRNStyles";
10
10
 
11
- const MapLibreRN = NativeModules.MLRNModule;
11
+ const MLRNModule = NativeModules.MLRNModule;
12
12
 
13
13
  export const NATIVE_MODULE_NAME = "MLRNFillExtrusionLayer";
14
14
 
@@ -29,8 +29,8 @@ const MLRNFillExtrusionLayer =
29
29
  /**
30
30
  * FillExtrusionLayer is a style layer that renders one or more 3D extruded polygons on the map.
31
31
  */
32
- const FillExtrusionLayer: React.FC<FillExtrusionLayerProps> = ({
33
- sourceID = MapLibreRN.StyleSource.DefaultSourceID,
32
+ export const FillExtrusionLayer = ({
33
+ sourceID = MLRNModule.StyleSource.DefaultSourceID,
34
34
  ...props
35
35
  }: FillExtrusionLayerProps) => {
36
36
  const { baseProps, setNativeLayer } = useAbstractLayer<
@@ -43,5 +43,3 @@ const FillExtrusionLayer: React.FC<FillExtrusionLayerProps> = ({
43
43
 
44
44
  return <MLRNFillExtrusionLayer ref={setNativeLayer} {...baseProps} />;
45
45
  };
46
-
47
- export default FillExtrusionLayer;
@@ -1,14 +1,14 @@
1
- import React from "react";
2
1
  import { NativeModules, requireNativeComponent } from "react-native";
3
2
 
4
- import useAbstractLayer, {
3
+ import {
4
+ useAbstractLayer,
5
5
  type BaseLayerProps,
6
6
  type NativeBaseProps,
7
7
  } from "../hooks/useAbstractLayer";
8
8
  import { type BaseProps } from "../types/BaseProps";
9
9
  import { type FillLayerStyle } from "../types/MapLibreRNStyles";
10
10
 
11
- const MapLibreRN = NativeModules.MLRNModule;
11
+ const MLRNModule = NativeModules.MLRNModule;
12
12
 
13
13
  export const NATIVE_MODULE_NAME = "MLRNFillLayer";
14
14
 
@@ -26,8 +26,8 @@ const MLRNFillLayer = requireNativeComponent<NativeProps>(NATIVE_MODULE_NAME);
26
26
  /**
27
27
  * FillLayer is a style layer that renders one or more filled (and optionally stroked) polygons on the map.
28
28
  */
29
- const FillLayer: React.FC<FillLayerProps> = ({
30
- sourceID = MapLibreRN.StyleSource.DefaultSourceID,
29
+ export const FillLayer = ({
30
+ sourceID = MLRNModule.StyleSource.DefaultSourceID,
31
31
  ...props
32
32
  }: FillLayerProps) => {
33
33
  const { baseProps, setNativeLayer } = useAbstractLayer<
@@ -40,5 +40,3 @@ const FillLayer: React.FC<FillLayerProps> = ({
40
40
 
41
41
  return <MLRNFillLayer ref={setNativeLayer} {...baseProps} />;
42
42
  };
43
-
44
- export default FillLayer;
@@ -1,6 +1,4 @@
1
- import { type ReactElement } from "react";
2
-
3
- import SymbolLayer from "./SymbolLayer";
1
+ import { SymbolLayer } from "./SymbolLayer";
4
2
  import headingIcon from "../assets/heading.png";
5
3
  import { type BaseProps } from "../types/BaseProps";
6
4
 
@@ -15,7 +13,7 @@ interface HeadingIndicatorProps extends BaseProps {
15
13
  heading?: number;
16
14
  }
17
15
 
18
- const HeadingIndicator = ({ heading }: HeadingIndicatorProps): ReactElement => (
16
+ export const HeadingIndicator = ({ heading }: HeadingIndicatorProps) => (
19
17
  <SymbolLayer
20
18
  key="mapboxUserLocationHeadingIndicator"
21
19
  id="mapboxUserLocationHeadingIndicator"
@@ -26,5 +24,3 @@ const HeadingIndicator = ({ heading }: HeadingIndicatorProps): ReactElement => (
26
24
  }}
27
25
  />
28
26
  );
29
-
30
- export default HeadingIndicator;