@maplibre/maplibre-react-native 10.0.0-alpha.26 → 10.0.0-alpha.28

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 (627) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +2 -2
  3. package/android/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFactory.java +1 -1
  4. package/ios/RCTMLN/RCTMLNStyle.h +1 -1
  5. package/ios/RCTMLN/RCTMLNStyle.m +1 -1
  6. package/lib/commonjs/MLNModule.js +27 -0
  7. package/lib/commonjs/MLNModule.js.map +1 -0
  8. package/lib/commonjs/MapLibreRN.js +281 -0
  9. package/lib/commonjs/MapLibreRN.js.map +1 -0
  10. package/lib/commonjs/assets/png.d.js +2 -0
  11. package/lib/commonjs/assets/png.d.js.map +1 -0
  12. package/lib/commonjs/components/Annotation.js +109 -0
  13. package/lib/commonjs/components/Annotation.js.map +1 -0
  14. package/lib/commonjs/components/BackgroundLayer.js +33 -0
  15. package/lib/commonjs/components/BackgroundLayer.js.map +1 -0
  16. package/lib/commonjs/components/Callout.js +101 -0
  17. package/lib/commonjs/components/Callout.js.map +1 -0
  18. package/lib/commonjs/components/Camera.js +285 -0
  19. package/lib/commonjs/components/Camera.js.map +1 -0
  20. package/lib/commonjs/components/CircleLayer.js +37 -0
  21. package/lib/commonjs/components/CircleLayer.js.map +1 -0
  22. package/lib/commonjs/components/FillExtrusionLayer.js +36 -0
  23. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -0
  24. package/lib/commonjs/components/FillLayer.js +36 -0
  25. package/lib/commonjs/components/FillLayer.js.map +1 -0
  26. package/lib/commonjs/components/HeadingIndicator.js +28 -0
  27. package/lib/commonjs/components/HeadingIndicator.js.map +1 -0
  28. package/lib/commonjs/components/HeatmapLayer.js +35 -0
  29. package/lib/commonjs/components/HeatmapLayer.js.map +1 -0
  30. package/lib/commonjs/components/ImageSource.js +42 -0
  31. package/lib/commonjs/components/ImageSource.js.map +1 -0
  32. package/lib/commonjs/components/Images.js +80 -0
  33. package/lib/commonjs/components/Images.js.map +1 -0
  34. package/lib/commonjs/components/Light.js +32 -0
  35. package/lib/commonjs/components/Light.js.map +1 -0
  36. package/lib/commonjs/components/LineLayer.js +36 -0
  37. package/lib/commonjs/components/LineLayer.js.map +1 -0
  38. package/lib/commonjs/components/MapView.js +463 -0
  39. package/lib/commonjs/components/MapView.js.map +1 -0
  40. package/lib/commonjs/components/MarkerView.js +61 -0
  41. package/lib/commonjs/components/MarkerView.js.map +1 -0
  42. package/lib/commonjs/components/NativeUserLocation.js +17 -0
  43. package/lib/commonjs/components/NativeUserLocation.js.map +1 -0
  44. package/lib/commonjs/components/PointAnnotation.js +121 -0
  45. package/lib/commonjs/components/PointAnnotation.js.map +1 -0
  46. package/lib/commonjs/components/RasterLayer.js +32 -0
  47. package/lib/commonjs/components/RasterLayer.js.map +1 -0
  48. package/lib/commonjs/components/RasterSource.js +67 -0
  49. package/lib/commonjs/components/RasterSource.js.map +1 -0
  50. package/lib/commonjs/components/ShapeSource.js +203 -0
  51. package/lib/commonjs/components/ShapeSource.js.map +1 -0
  52. package/lib/commonjs/components/Style.js +266 -0
  53. package/lib/commonjs/components/Style.js.map +1 -0
  54. package/lib/commonjs/components/SymbolLayer.js +53 -0
  55. package/lib/commonjs/components/SymbolLayer.js.map +1 -0
  56. package/lib/commonjs/components/UserLocation.js +188 -0
  57. package/lib/commonjs/components/UserLocation.js.map +1 -0
  58. package/lib/commonjs/components/VectorSource.js +129 -0
  59. package/lib/commonjs/components/VectorSource.js.map +1 -0
  60. package/lib/commonjs/hooks/useAbstractLayer.js +53 -0
  61. package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -0
  62. package/lib/commonjs/hooks/useAbstractSource.js +24 -0
  63. package/lib/commonjs/hooks/useAbstractSource.js.map +1 -0
  64. package/lib/commonjs/hooks/useNativeBridge.js +84 -0
  65. package/lib/commonjs/hooks/useNativeBridge.js.map +1 -0
  66. package/lib/commonjs/hooks/useNativeRef.js +14 -0
  67. package/lib/commonjs/hooks/useNativeRef.js.map +1 -0
  68. package/lib/commonjs/hooks/useOnce.js +16 -0
  69. package/lib/commonjs/hooks/useOnce.js.map +1 -0
  70. package/lib/commonjs/index.js +23 -0
  71. package/lib/commonjs/index.js.map +1 -0
  72. package/lib/commonjs/modules/location/locationManager.js +91 -0
  73. package/lib/commonjs/modules/location/locationManager.js.map +1 -0
  74. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +37 -0
  75. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -0
  76. package/lib/commonjs/modules/offline/OfflinePack.js +40 -0
  77. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
  78. package/lib/commonjs/modules/offline/offlineManager.js +346 -0
  79. package/lib/commonjs/modules/offline/offlineManager.js.map +1 -0
  80. package/lib/commonjs/modules/snapshot/SnapshotOptions.js +58 -0
  81. package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -0
  82. package/lib/commonjs/modules/snapshot/snapshotManager.js +66 -0
  83. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -0
  84. package/lib/commonjs/requestAndroidLocationPermissions.js +25 -0
  85. package/lib/commonjs/requestAndroidLocationPermissions.js.map +1 -0
  86. package/lib/commonjs/types/BaseProps.js +2 -0
  87. package/lib/commonjs/types/BaseProps.js.map +1 -0
  88. package/lib/commonjs/types/CameraMode.js +14 -0
  89. package/lib/commonjs/types/CameraMode.js.map +1 -0
  90. package/lib/commonjs/types/MapLibreRNEvent.js +6 -0
  91. package/lib/commonjs/types/MapLibreRNEvent.js.map +1 -0
  92. package/lib/commonjs/types/OnPressEvent.js +2 -0
  93. package/lib/commonjs/types/OnPressEvent.js.map +1 -0
  94. package/lib/commonjs/types/StyleURL.js +11 -0
  95. package/lib/commonjs/types/StyleURL.js.map +1 -0
  96. package/lib/commonjs/utils/BridgeValue.js +59 -0
  97. package/lib/commonjs/utils/BridgeValue.js.map +1 -0
  98. package/lib/commonjs/utils/Logger.js +118 -0
  99. package/lib/commonjs/utils/Logger.js.map +1 -0
  100. package/lib/commonjs/utils/MapLibreRNStyles.d.js +181 -0
  101. package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +1 -0
  102. package/lib/commonjs/utils/StyleValue.js +39 -0
  103. package/lib/commonjs/utils/StyleValue.js.map +1 -0
  104. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +95 -0
  105. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
  106. package/lib/commonjs/utils/animated/Animated.js +47 -0
  107. package/lib/commonjs/utils/animated/Animated.js.map +1 -0
  108. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +92 -0
  109. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
  110. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +40 -0
  111. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
  112. package/lib/commonjs/utils/animated/AnimatedPoint.js +111 -0
  113. package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -0
  114. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +137 -0
  115. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
  116. package/lib/commonjs/utils/animated/AnimatedShape.js +75 -0
  117. package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -0
  118. package/lib/commonjs/utils/deprecation.js +31 -0
  119. package/lib/commonjs/utils/deprecation.js.map +1 -0
  120. package/lib/commonjs/utils/filterUtils.js +13 -0
  121. package/lib/commonjs/utils/filterUtils.js.map +1 -0
  122. package/lib/commonjs/utils/index.js +97 -0
  123. package/lib/commonjs/utils/index.js.map +1 -0
  124. package/lib/commonjs/utils/makeNativeBounds.js +11 -0
  125. package/lib/commonjs/utils/makeNativeBounds.js.map +1 -0
  126. package/lib/commonjs/utils/styleMap.js +255 -0
  127. package/lib/commonjs/utils/styleMap.js.map +1 -0
  128. package/lib/module/MLNModule.js +15 -0
  129. package/lib/module/MLNModule.js.map +1 -0
  130. package/lib/module/MapLibreRN.js +37 -0
  131. package/lib/module/MapLibreRN.js.map +1 -0
  132. package/lib/module/assets/heading.png +0 -0
  133. package/lib/module/assets/heading@2x.png +0 -0
  134. package/lib/module/assets/heading@3x.png +0 -0
  135. package/lib/module/assets/png.d.js +2 -0
  136. package/lib/module/assets/png.d.js.map +1 -0
  137. package/lib/module/components/Annotation.js +104 -0
  138. package/lib/module/components/Annotation.js.map +1 -0
  139. package/lib/module/components/BackgroundLayer.js +28 -0
  140. package/lib/module/components/BackgroundLayer.js.map +1 -0
  141. package/lib/module/components/Callout.js +97 -0
  142. package/lib/module/components/Callout.js.map +1 -0
  143. package/lib/module/components/Camera.js +280 -0
  144. package/lib/module/components/Camera.js.map +1 -0
  145. package/lib/module/components/CircleLayer.js +32 -0
  146. package/lib/module/components/CircleLayer.js.map +1 -0
  147. package/lib/module/components/FillExtrusionLayer.js +31 -0
  148. package/lib/module/components/FillExtrusionLayer.js.map +1 -0
  149. package/lib/module/components/FillLayer.js +31 -0
  150. package/lib/module/components/FillLayer.js.map +1 -0
  151. package/lib/module/components/HeadingIndicator.js +23 -0
  152. package/lib/module/components/HeadingIndicator.js.map +1 -0
  153. package/lib/module/components/HeatmapLayer.js +30 -0
  154. package/lib/module/components/HeatmapLayer.js.map +1 -0
  155. package/lib/module/components/ImageSource.js +37 -0
  156. package/lib/module/components/ImageSource.js.map +1 -0
  157. package/lib/module/components/Images.js +76 -0
  158. package/lib/module/components/Images.js.map +1 -0
  159. package/lib/module/components/Light.js +27 -0
  160. package/lib/module/components/Light.js.map +1 -0
  161. package/lib/module/components/LineLayer.js +31 -0
  162. package/lib/module/components/LineLayer.js.map +1 -0
  163. package/lib/module/components/MapView.js +458 -0
  164. package/lib/module/components/MapView.js.map +1 -0
  165. package/lib/module/components/MarkerView.js +56 -0
  166. package/lib/module/components/MarkerView.js.map +1 -0
  167. package/lib/module/components/NativeUserLocation.js +13 -0
  168. package/lib/module/components/NativeUserLocation.js.map +1 -0
  169. package/lib/module/components/PointAnnotation.js +116 -0
  170. package/lib/module/components/PointAnnotation.js.map +1 -0
  171. package/lib/module/components/RasterLayer.js +27 -0
  172. package/lib/module/components/RasterLayer.js.map +1 -0
  173. package/lib/module/components/RasterSource.js +62 -0
  174. package/lib/module/components/RasterSource.js.map +1 -0
  175. package/lib/module/components/ShapeSource.js +198 -0
  176. package/lib/module/components/ShapeSource.js.map +1 -0
  177. package/lib/module/components/Style.js +261 -0
  178. package/lib/module/components/Style.js.map +1 -0
  179. package/lib/module/components/SymbolLayer.js +48 -0
  180. package/lib/module/components/SymbolLayer.js.map +1 -0
  181. package/lib/module/components/UserLocation.js +182 -0
  182. package/lib/module/components/UserLocation.js.map +1 -0
  183. package/lib/module/components/VectorSource.js +124 -0
  184. package/lib/module/components/VectorSource.js.map +1 -0
  185. package/lib/module/hooks/useAbstractLayer.js +49 -0
  186. package/lib/module/hooks/useAbstractLayer.js.map +1 -0
  187. package/lib/module/hooks/useAbstractSource.js +20 -0
  188. package/lib/module/hooks/useAbstractSource.js.map +1 -0
  189. package/lib/module/hooks/useNativeBridge.js +80 -0
  190. package/lib/module/hooks/useNativeBridge.js.map +1 -0
  191. package/lib/module/hooks/useNativeRef.js +10 -0
  192. package/lib/module/hooks/useNativeRef.js.map +1 -0
  193. package/lib/module/hooks/useOnce.js +12 -0
  194. package/lib/module/hooks/useOnce.js.map +1 -0
  195. package/lib/module/index.js +6 -0
  196. package/lib/module/index.js.map +1 -0
  197. package/lib/module/modules/location/locationManager.js +87 -0
  198. package/lib/module/modules/location/locationManager.js.map +1 -0
  199. package/lib/module/modules/offline/OfflineCreatePackOptions.js +33 -0
  200. package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -0
  201. package/lib/module/modules/offline/OfflinePack.js +36 -0
  202. package/lib/module/modules/offline/OfflinePack.js.map +1 -0
  203. package/lib/module/modules/offline/offlineManager.js +341 -0
  204. package/lib/module/modules/offline/offlineManager.js.map +1 -0
  205. package/lib/module/modules/snapshot/SnapshotOptions.js +53 -0
  206. package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -0
  207. package/lib/module/modules/snapshot/snapshotManager.js +61 -0
  208. package/lib/module/modules/snapshot/snapshotManager.js.map +1 -0
  209. package/lib/module/requestAndroidLocationPermissions.js +21 -0
  210. package/lib/module/requestAndroidLocationPermissions.js.map +1 -0
  211. package/lib/module/types/BaseProps.js +2 -0
  212. package/lib/module/types/BaseProps.js.map +1 -0
  213. package/lib/module/types/CameraMode.js +10 -0
  214. package/lib/module/types/CameraMode.js.map +1 -0
  215. package/lib/module/types/MapLibreRNEvent.js +4 -0
  216. package/lib/module/types/MapLibreRNEvent.js.map +1 -0
  217. package/lib/module/types/OnPressEvent.js +2 -0
  218. package/lib/module/types/OnPressEvent.js.map +1 -0
  219. package/lib/module/types/StyleURL.js +7 -0
  220. package/lib/module/types/StyleURL.js.map +1 -0
  221. package/lib/module/utils/BridgeValue.js +54 -0
  222. package/lib/module/utils/BridgeValue.js.map +1 -0
  223. package/lib/module/utils/Logger.js +114 -0
  224. package/lib/module/utils/Logger.js.map +1 -0
  225. package/lib/module/utils/MapLibreRNStyles.d.js +180 -0
  226. package/lib/module/utils/MapLibreRNStyles.d.js.map +1 -0
  227. package/lib/module/utils/StyleValue.js +34 -0
  228. package/lib/module/utils/StyleValue.js.map +1 -0
  229. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +92 -0
  230. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
  231. package/lib/module/utils/animated/Animated.js +42 -0
  232. package/lib/module/utils/animated/Animated.js.map +1 -0
  233. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +87 -0
  234. package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
  235. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +36 -0
  236. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
  237. package/lib/module/utils/animated/AnimatedPoint.js +107 -0
  238. package/lib/module/utils/animated/AnimatedPoint.js.map +1 -0
  239. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +131 -0
  240. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
  241. package/lib/module/utils/animated/AnimatedShape.js +71 -0
  242. package/lib/module/utils/animated/AnimatedShape.js.map +1 -0
  243. package/lib/module/utils/deprecation.js +27 -0
  244. package/lib/module/utils/deprecation.js.map +1 -0
  245. package/lib/module/utils/filterUtils.js +9 -0
  246. package/lib/module/utils/filterUtils.js.map +1 -0
  247. package/lib/module/utils/index.js +81 -0
  248. package/lib/module/utils/index.js.map +1 -0
  249. package/lib/module/utils/makeNativeBounds.js +7 -0
  250. package/lib/module/utils/makeNativeBounds.js.map +1 -0
  251. package/lib/module/utils/styleMap.js +249 -0
  252. package/lib/module/utils/styleMap.js.map +1 -0
  253. package/lib/typescript/commonjs/package.json +1 -0
  254. package/lib/typescript/commonjs/src/MLNModule.d.ts +21 -0
  255. package/lib/typescript/commonjs/src/MLNModule.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/src/MapLibreRN.d.ts +42 -0
  257. package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/src/components/Annotation.d.ts +21 -0
  259. package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -0
  260. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +14 -0
  261. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/src/components/Callout.d.ts +35 -0
  263. package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/src/components/Camera.d.ts +134 -0
  265. package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +17 -0
  267. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +17 -0
  269. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/src/components/FillLayer.d.ts +17 -0
  271. package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +8 -0
  273. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +17 -0
  275. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/src/components/ImageSource.d.ts +31 -0
  277. package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -0
  278. package/lib/typescript/commonjs/src/components/Images.d.ts +33 -0
  279. package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/src/components/Light.d.ts +17 -0
  281. package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -0
  282. package/lib/typescript/commonjs/src/components/LineLayer.d.ts +17 -0
  283. package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -0
  284. package/lib/typescript/commonjs/src/components/MapView.d.ts +235 -0
  285. package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/src/components/MarkerView.d.ts +44 -0
  287. package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +26 -0
  289. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +91 -0
  291. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -0
  292. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +14 -0
  293. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/src/components/RasterSource.d.ts +53 -0
  295. package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +124 -0
  297. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/src/components/Style.d.ts +81 -0
  299. package/lib/typescript/commonjs/src/components/Style.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +22 -0
  301. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/src/components/UserLocation.d.ts +70 -0
  303. package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/src/components/VectorSource.d.ts +70 -0
  305. package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +62 -0
  307. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -0
  308. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +7 -0
  309. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -0
  310. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +21 -0
  311. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -0
  312. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +8 -0
  313. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -0
  314. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +3 -0
  315. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/src/index.d.ts +4 -0
  317. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +64 -0
  319. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +1 -0
  320. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +21 -0
  321. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
  322. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +24 -0
  323. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts +210 -0
  325. package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +1 -0
  326. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +42 -0
  327. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts +52 -0
  329. package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts +2 -0
  331. package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/src/types/BaseProps.d.ts +4 -0
  333. package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/src/types/CameraMode.d.ts +7 -0
  335. package/lib/typescript/commonjs/src/types/CameraMode.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts +6 -0
  337. package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts +12 -0
  339. package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/src/types/StyleURL.d.ts +4 -0
  341. package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +1 -0
  342. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +29 -0
  343. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/src/utils/Logger.d.ts +52 -0
  345. package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -0
  346. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +10 -0
  347. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -0
  348. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +36 -0
  349. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  350. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +33 -0
  351. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -0
  352. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
  353. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +11 -0
  355. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  356. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +31 -0
  357. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -0
  358. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +54 -0
  359. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  360. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +27 -0
  361. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -0
  362. package/lib/typescript/commonjs/src/utils/deprecation.d.ts +6 -0
  363. package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +3 -0
  365. package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/src/utils/index.d.ts +21 -0
  367. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/src/utils/makeNativeBounds.d.ts +2 -0
  369. package/lib/typescript/commonjs/src/utils/makeNativeBounds.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/src/utils/styleMap.d.ts +231 -0
  371. package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +1 -0
  372. package/lib/typescript/module/package.json +1 -0
  373. package/lib/typescript/module/src/MLNModule.d.ts +21 -0
  374. package/lib/typescript/module/src/MLNModule.d.ts.map +1 -0
  375. package/lib/typescript/module/src/MapLibreRN.d.ts +42 -0
  376. package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -0
  377. package/lib/typescript/module/src/components/Annotation.d.ts +21 -0
  378. package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -0
  379. package/lib/typescript/module/src/components/BackgroundLayer.d.ts +14 -0
  380. package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -0
  381. package/lib/typescript/module/src/components/Callout.d.ts +35 -0
  382. package/lib/typescript/module/src/components/Callout.d.ts.map +1 -0
  383. package/lib/typescript/module/src/components/Camera.d.ts +134 -0
  384. package/lib/typescript/module/src/components/Camera.d.ts.map +1 -0
  385. package/lib/typescript/module/src/components/CircleLayer.d.ts +17 -0
  386. package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -0
  387. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +17 -0
  388. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -0
  389. package/lib/typescript/module/src/components/FillLayer.d.ts +17 -0
  390. package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -0
  391. package/lib/typescript/module/src/components/HeadingIndicator.d.ts +8 -0
  392. package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -0
  393. package/lib/typescript/module/src/components/HeatmapLayer.d.ts +17 -0
  394. package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -0
  395. package/lib/typescript/module/src/components/ImageSource.d.ts +31 -0
  396. package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -0
  397. package/lib/typescript/module/src/components/Images.d.ts +33 -0
  398. package/lib/typescript/module/src/components/Images.d.ts.map +1 -0
  399. package/lib/typescript/module/src/components/Light.d.ts +17 -0
  400. package/lib/typescript/module/src/components/Light.d.ts.map +1 -0
  401. package/lib/typescript/module/src/components/LineLayer.d.ts +17 -0
  402. package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -0
  403. package/lib/typescript/module/src/components/MapView.d.ts +235 -0
  404. package/lib/typescript/module/src/components/MapView.d.ts.map +1 -0
  405. package/lib/typescript/module/src/components/MarkerView.d.ts +44 -0
  406. package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -0
  407. package/lib/typescript/module/src/components/NativeUserLocation.d.ts +26 -0
  408. package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -0
  409. package/lib/typescript/module/src/components/PointAnnotation.d.ts +91 -0
  410. package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -0
  411. package/lib/typescript/module/src/components/RasterLayer.d.ts +14 -0
  412. package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -0
  413. package/lib/typescript/module/src/components/RasterSource.d.ts +53 -0
  414. package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -0
  415. package/lib/typescript/module/src/components/ShapeSource.d.ts +124 -0
  416. package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -0
  417. package/lib/typescript/module/src/components/Style.d.ts +81 -0
  418. package/lib/typescript/module/src/components/Style.d.ts.map +1 -0
  419. package/lib/typescript/module/src/components/SymbolLayer.d.ts +22 -0
  420. package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -0
  421. package/lib/typescript/module/src/components/UserLocation.d.ts +70 -0
  422. package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -0
  423. package/lib/typescript/module/src/components/VectorSource.d.ts +70 -0
  424. package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -0
  425. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +62 -0
  426. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -0
  427. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +7 -0
  428. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -0
  429. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +21 -0
  430. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -0
  431. package/lib/typescript/module/src/hooks/useNativeRef.d.ts +8 -0
  432. package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -0
  433. package/lib/typescript/module/src/hooks/useOnce.d.ts +3 -0
  434. package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -0
  435. package/lib/typescript/module/src/index.d.ts +4 -0
  436. package/lib/typescript/module/src/index.d.ts.map +1 -0
  437. package/lib/typescript/module/src/modules/location/locationManager.d.ts +64 -0
  438. package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +1 -0
  439. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +21 -0
  440. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
  441. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +24 -0
  442. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -0
  443. package/lib/typescript/module/src/modules/offline/offlineManager.d.ts +210 -0
  444. package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +1 -0
  445. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +42 -0
  446. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
  447. package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts +52 -0
  448. package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
  449. package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts +2 -0
  450. package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts.map +1 -0
  451. package/lib/typescript/module/src/types/BaseProps.d.ts +4 -0
  452. package/lib/typescript/module/src/types/BaseProps.d.ts.map +1 -0
  453. package/lib/typescript/module/src/types/CameraMode.d.ts +7 -0
  454. package/lib/typescript/module/src/types/CameraMode.d.ts.map +1 -0
  455. package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts +6 -0
  456. package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts.map +1 -0
  457. package/lib/typescript/module/src/types/OnPressEvent.d.ts +12 -0
  458. package/lib/typescript/module/src/types/OnPressEvent.d.ts.map +1 -0
  459. package/lib/typescript/module/src/types/StyleURL.d.ts +4 -0
  460. package/lib/typescript/module/src/types/StyleURL.d.ts.map +1 -0
  461. package/lib/typescript/module/src/utils/BridgeValue.d.ts +29 -0
  462. package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -0
  463. package/lib/typescript/module/src/utils/Logger.d.ts +52 -0
  464. package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -0
  465. package/lib/typescript/module/src/utils/StyleValue.d.ts +10 -0
  466. package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -0
  467. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +36 -0
  468. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  469. package/lib/typescript/module/src/utils/animated/Animated.d.ts +33 -0
  470. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -0
  471. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
  472. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  473. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +11 -0
  474. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  475. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +31 -0
  476. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -0
  477. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +54 -0
  478. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  479. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +27 -0
  480. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -0
  481. package/lib/typescript/module/src/utils/deprecation.d.ts +6 -0
  482. package/lib/typescript/module/src/utils/deprecation.d.ts.map +1 -0
  483. package/lib/typescript/module/src/utils/filterUtils.d.ts +3 -0
  484. package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -0
  485. package/lib/typescript/module/src/utils/index.d.ts +21 -0
  486. package/lib/typescript/module/src/utils/index.d.ts.map +1 -0
  487. package/lib/typescript/module/src/utils/makeNativeBounds.d.ts +2 -0
  488. package/lib/typescript/module/src/utils/makeNativeBounds.d.ts.map +1 -0
  489. package/lib/typescript/module/src/utils/styleMap.d.ts +231 -0
  490. package/lib/typescript/module/src/utils/styleMap.d.ts.map +1 -0
  491. package/package.json +83 -6
  492. package/plugin/build/withMapLibre.d.ts +1 -1
  493. package/{javascript/Maplibre.ts → src/MapLibreRN.ts} +1 -1
  494. package/src/assets/heading.png +0 -0
  495. package/src/assets/heading@2x.png +0 -0
  496. package/src/assets/heading@3x.png +0 -0
  497. package/src/assets/png.d.ts +4 -0
  498. package/{javascript → src}/components/Annotation.tsx +8 -8
  499. package/{javascript → src}/components/BackgroundLayer.tsx +4 -4
  500. package/{javascript → src}/components/Callout.tsx +5 -5
  501. package/{javascript → src}/components/Camera.tsx +5 -5
  502. package/{javascript → src}/components/CircleLayer.tsx +4 -4
  503. package/{javascript → src}/components/FillExtrusionLayer.tsx +4 -4
  504. package/{javascript → src}/components/FillLayer.tsx +4 -4
  505. package/{javascript → src}/components/HeadingIndicator.tsx +3 -4
  506. package/{javascript → src}/components/HeatmapLayer.tsx +4 -4
  507. package/{javascript → src}/components/ImageSource.tsx +2 -2
  508. package/{javascript → src}/components/Images.tsx +7 -7
  509. package/{javascript → src}/components/Light.tsx +6 -4
  510. package/{javascript → src}/components/LineLayer.tsx +4 -4
  511. package/{javascript → src}/components/MapView.tsx +12 -11
  512. package/{javascript → src}/components/MarkerView.tsx +2 -2
  513. package/{javascript → src}/components/NativeUserLocation.tsx +1 -1
  514. package/{javascript → src}/components/PointAnnotation.tsx +5 -5
  515. package/{javascript → src}/components/RasterLayer.tsx +4 -4
  516. package/{javascript → src}/components/RasterSource.tsx +1 -1
  517. package/{javascript → src}/components/ShapeSource.tsx +13 -9
  518. package/{javascript → src}/components/Style.tsx +32 -29
  519. package/{javascript → src}/components/SymbolLayer.tsx +7 -7
  520. package/{javascript → src}/components/UserLocation.tsx +18 -8
  521. package/{javascript → src}/components/VectorSource.tsx +6 -6
  522. package/{javascript → src}/hooks/useAbstractLayer.ts +9 -9
  523. package/{javascript → src}/hooks/useAbstractSource.ts +2 -2
  524. package/{javascript → src}/hooks/useNativeBridge.ts +2 -2
  525. package/{javascript → src}/hooks/useNativeRef.ts +2 -2
  526. package/src/index.ts +4 -0
  527. package/{javascript → src}/modules/location/locationManager.ts +1 -1
  528. package/{javascript → src}/modules/offline/offlineManager.ts +18 -13
  529. package/{javascript → src}/modules/snapshot/snapshotManager.ts +1 -1
  530. package/{javascript → src}/requestAndroidLocationPermissions.ts +3 -3
  531. package/src/types/BaseProps.ts +3 -0
  532. package/src/types/MapLibreRNEvent.ts +7 -0
  533. package/{javascript → src}/types/OnPressEvent.ts +1 -3
  534. package/src/types/StyleURL.ts +3 -0
  535. package/{javascript → src}/utils/BridgeValue.ts +8 -8
  536. package/{javascript → src}/utils/Logger.ts +1 -1
  537. package/{javascript/utils/MaplibreStyles.d.ts → src/utils/MapLibreRNStyles.d.ts} +3 -1
  538. package/{javascript → src}/utils/StyleValue.ts +2 -2
  539. package/{javascript → src}/utils/animated/Animated.ts +2 -2
  540. package/{javascript → src}/utils/animated/AnimatedCoordinatesArray.ts +24 -19
  541. package/{javascript → src}/utils/animated/AnimatedPoint.ts +4 -4
  542. package/{javascript → src}/utils/animated/AnimatedRouteCoordinatesArray.ts +14 -9
  543. package/{javascript → src}/utils/filterUtils.ts +1 -1
  544. package/{javascript → src}/utils/index.ts +13 -12
  545. package/{javascript → src}/utils/styleMap.ts +1 -1
  546. package/.eslintrc.js +0 -5
  547. package/.git-blame-ignore-revs +0 -3
  548. package/.gitattributes +0 -1
  549. package/.nvmrc +0 -1
  550. package/.sonarcloud.properties +0 -15
  551. package/CODE_OF_CONDUCT.md +0 -2
  552. package/CONTRIBUTING.md +0 -61
  553. package/RELEASE.md +0 -30
  554. package/assets/indoor_building_map_android.png +0 -0
  555. package/assets/indoor_building_map_ios.png +0 -0
  556. package/babel.config.js +0 -12
  557. package/docs/Annotation.md +0 -29
  558. package/docs/Annotations.md +0 -12
  559. package/docs/BackgroundLayer.md +0 -166
  560. package/docs/Callout.md +0 -16
  561. package/docs/Camera.md +0 -132
  562. package/docs/CircleLayer.md +0 -487
  563. package/docs/CustomHttpHeaders.md +0 -87
  564. package/docs/FillExtrusionLayer.md +0 -349
  565. package/docs/FillLayer.md +0 -317
  566. package/docs/GettingStarted.md +0 -113
  567. package/docs/HeadingIndicator.md +0 -11
  568. package/docs/HeatmapLayer.md +0 -214
  569. package/docs/ImageSource.md +0 -14
  570. package/docs/Images.md +0 -15
  571. package/docs/Light.md +0 -167
  572. package/docs/LineLayer.md +0 -603
  573. package/docs/Logger.md +0 -23
  574. package/docs/MapLibreGL.md +0 -65
  575. package/docs/MapView.md +0 -178
  576. package/docs/MarkerView.md +0 -17
  577. package/docs/NativeUserLocation.md +0 -13
  578. package/docs/PointAnnotation.md +0 -28
  579. package/docs/RasterLayer.md +0 -357
  580. package/docs/RasterSource.md +0 -19
  581. package/docs/ShapeSource.md +0 -104
  582. package/docs/Style.md +0 -11
  583. package/docs/StyleSheet.md +0 -451
  584. package/docs/SymbolLayer.md +0 -1752
  585. package/docs/UserLocation.md +0 -43
  586. package/docs/VectorSource.md +0 -50
  587. package/docs/coordinates.md +0 -7
  588. package/docs/docs.json +0 -5390
  589. package/docs/location.md +0 -7
  590. package/docs/offlineManager.md +0 -231
  591. package/docs/snapshotManager.md +0 -54
  592. package/ios/RCTMLN/index.d.ts +0 -1183
  593. package/javascript/index.ts +0 -4
  594. package/javascript/types/BaseProps.ts +0 -5
  595. package/javascript/types/index.ts +0 -11
  596. package/jest-setup.ts +0 -113
  597. package/jest.config.js +0 -8
  598. package/plugin/install.md +0 -25
  599. package/scripts/.eslintrc.js +0 -3
  600. package/scripts/codegen.ts +0 -340
  601. package/scripts/templates/MaplibreStyles.ts.ejs +0 -100
  602. package/scripts/templates/RCTMLNStyle.h.ejs +0 -34
  603. package/scripts/templates/RCTMLNStyle.m.ejs +0 -98
  604. package/scripts/templates/RCTMLNStyleFactory.java.ejs +0 -108
  605. package/scripts/templates/component.md.ejs +0 -125
  606. package/scripts/templates/index.d.ts.ejs +0 -86
  607. package/scripts/templates/styleMap.ts.ejs +0 -86
  608. package/scripts/utils/DocJSONBuilder.ts +0 -463
  609. package/scripts/utils/JSDocNodeTree.ts +0 -135
  610. package/scripts/utils/MarkdownBuilder.ts +0 -44
  611. package/scripts/utils/TemplateHelpers.ts +0 -499
  612. package/scripts/utils/getNativeVersion.ts +0 -53
  613. package/tsconfig.json +0 -22
  614. /package/{assets → lib/commonjs/assets}/heading.png +0 -0
  615. /package/{assets → lib/commonjs/assets}/heading@2x.png +0 -0
  616. /package/{assets → lib/commonjs/assets}/heading@3x.png +0 -0
  617. /package/{javascript → src}/MLNModule.ts +0 -0
  618. /package/{javascript → src}/hooks/useOnce.ts +0 -0
  619. /package/{javascript → src}/modules/offline/OfflineCreatePackOptions.ts +0 -0
  620. /package/{javascript → src}/modules/offline/OfflinePack.ts +0 -0
  621. /package/{javascript → src}/modules/snapshot/SnapshotOptions.ts +0 -0
  622. /package/{javascript → src}/types/CameraMode.ts +0 -0
  623. /package/{javascript → src}/utils/animated/AbstractAnimatedCoordinates.ts +0 -0
  624. /package/{javascript → src}/utils/animated/AnimatedExtractCoordinateFromArray.ts +0 -0
  625. /package/{javascript → src}/utils/animated/AnimatedShape.ts +0 -0
  626. /package/{javascript → src}/utils/deprecation.ts +0 -0
  627. /package/{javascript → src}/utils/makeNativeBounds.ts +0 -0
@@ -0,0 +1,255 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.StyleTypes = void 0;
7
+ exports.getStyleType = getStyleType;
8
+ exports.styleExtras = void 0;
9
+ var _index = require("./index.js");
10
+ /* eslint-disable */
11
+ // DO NOT MODIFY
12
+ // This file is auto-generated from scripts/templates/styleMap.ts.ejs
13
+
14
+ const StyleTypes = exports.StyleTypes = {
15
+ Constant: "constant",
16
+ Color: "color",
17
+ Transition: "transition",
18
+ Translation: "translation",
19
+ Function: "function",
20
+ Image: "image",
21
+ Enum: "enum"
22
+ };
23
+ function getStyleType(styleProp) {
24
+ if (!(0, _index.isAndroid)() && styleExtras[styleProp]) {
25
+ return styleExtras[styleProp].iosType;
26
+ }
27
+ if (styleMap[styleProp]) {
28
+ return styleMap[styleProp];
29
+ }
30
+ throw new Error(`${styleProp} is not a valid MapLibre layer style`);
31
+ }
32
+ const styleMap = {
33
+ fillSortKey: StyleTypes.Constant,
34
+ fillAntialias: StyleTypes.Constant,
35
+ fillOpacity: StyleTypes.Constant,
36
+ fillOpacityTransition: StyleTypes.Transition,
37
+ fillColor: StyleTypes.Color,
38
+ fillColorTransition: StyleTypes.Transition,
39
+ fillOutlineColor: StyleTypes.Color,
40
+ fillOutlineColorTransition: StyleTypes.Transition,
41
+ fillTranslate: StyleTypes.Translation,
42
+ fillTranslateTransition: StyleTypes.Transition,
43
+ fillTranslateAnchor: StyleTypes.Enum,
44
+ fillPattern: StyleTypes.Image,
45
+ fillPatternTransition: StyleTypes.Transition,
46
+ lineCap: StyleTypes.Enum,
47
+ lineJoin: StyleTypes.Enum,
48
+ lineMiterLimit: StyleTypes.Constant,
49
+ lineRoundLimit: StyleTypes.Constant,
50
+ lineSortKey: StyleTypes.Constant,
51
+ lineOpacity: StyleTypes.Constant,
52
+ lineOpacityTransition: StyleTypes.Transition,
53
+ lineColor: StyleTypes.Color,
54
+ lineColorTransition: StyleTypes.Transition,
55
+ lineTranslate: StyleTypes.Translation,
56
+ lineTranslateTransition: StyleTypes.Transition,
57
+ lineTranslateAnchor: StyleTypes.Enum,
58
+ lineWidth: StyleTypes.Constant,
59
+ lineWidthTransition: StyleTypes.Transition,
60
+ lineGapWidth: StyleTypes.Constant,
61
+ lineGapWidthTransition: StyleTypes.Transition,
62
+ lineOffset: StyleTypes.Constant,
63
+ lineOffsetTransition: StyleTypes.Transition,
64
+ lineBlur: StyleTypes.Constant,
65
+ lineBlurTransition: StyleTypes.Transition,
66
+ lineDasharray: StyleTypes.Constant,
67
+ lineDasharrayTransition: StyleTypes.Transition,
68
+ linePattern: StyleTypes.Image,
69
+ linePatternTransition: StyleTypes.Transition,
70
+ lineGradient: StyleTypes.Color,
71
+ symbolPlacement: StyleTypes.Enum,
72
+ symbolSpacing: StyleTypes.Constant,
73
+ symbolAvoidEdges: StyleTypes.Constant,
74
+ symbolSortKey: StyleTypes.Constant,
75
+ symbolZOrder: StyleTypes.Enum,
76
+ iconAllowOverlap: StyleTypes.Constant,
77
+ iconIgnorePlacement: StyleTypes.Constant,
78
+ iconOptional: StyleTypes.Constant,
79
+ iconRotationAlignment: StyleTypes.Enum,
80
+ iconSize: StyleTypes.Constant,
81
+ iconTextFit: StyleTypes.Enum,
82
+ iconTextFitPadding: StyleTypes.Constant,
83
+ iconImage: StyleTypes.Image,
84
+ iconRotate: StyleTypes.Constant,
85
+ iconPadding: StyleTypes.Constant,
86
+ iconKeepUpright: StyleTypes.Constant,
87
+ iconOffset: StyleTypes.Constant,
88
+ iconAnchor: StyleTypes.Enum,
89
+ iconPitchAlignment: StyleTypes.Enum,
90
+ textPitchAlignment: StyleTypes.Enum,
91
+ textRotationAlignment: StyleTypes.Enum,
92
+ textField: StyleTypes.Constant,
93
+ textFont: StyleTypes.Constant,
94
+ textSize: StyleTypes.Constant,
95
+ textMaxWidth: StyleTypes.Constant,
96
+ textLineHeight: StyleTypes.Constant,
97
+ textLetterSpacing: StyleTypes.Constant,
98
+ textJustify: StyleTypes.Enum,
99
+ textRadialOffset: StyleTypes.Constant,
100
+ textVariableAnchor: StyleTypes.Constant,
101
+ textAnchor: StyleTypes.Enum,
102
+ textMaxAngle: StyleTypes.Constant,
103
+ textWritingMode: StyleTypes.Constant,
104
+ textRotate: StyleTypes.Constant,
105
+ textPadding: StyleTypes.Constant,
106
+ textKeepUpright: StyleTypes.Constant,
107
+ textTransform: StyleTypes.Enum,
108
+ textOffset: StyleTypes.Constant,
109
+ textAllowOverlap: StyleTypes.Constant,
110
+ textIgnorePlacement: StyleTypes.Constant,
111
+ textOptional: StyleTypes.Constant,
112
+ iconOpacity: StyleTypes.Constant,
113
+ iconOpacityTransition: StyleTypes.Transition,
114
+ iconColor: StyleTypes.Color,
115
+ iconColorTransition: StyleTypes.Transition,
116
+ iconHaloColor: StyleTypes.Color,
117
+ iconHaloColorTransition: StyleTypes.Transition,
118
+ iconHaloWidth: StyleTypes.Constant,
119
+ iconHaloWidthTransition: StyleTypes.Transition,
120
+ iconHaloBlur: StyleTypes.Constant,
121
+ iconHaloBlurTransition: StyleTypes.Transition,
122
+ iconTranslate: StyleTypes.Translation,
123
+ iconTranslateTransition: StyleTypes.Transition,
124
+ iconTranslateAnchor: StyleTypes.Enum,
125
+ textOpacity: StyleTypes.Constant,
126
+ textOpacityTransition: StyleTypes.Transition,
127
+ textColor: StyleTypes.Color,
128
+ textColorTransition: StyleTypes.Transition,
129
+ textHaloColor: StyleTypes.Color,
130
+ textHaloColorTransition: StyleTypes.Transition,
131
+ textHaloWidth: StyleTypes.Constant,
132
+ textHaloWidthTransition: StyleTypes.Transition,
133
+ textHaloBlur: StyleTypes.Constant,
134
+ textHaloBlurTransition: StyleTypes.Transition,
135
+ textTranslate: StyleTypes.Translation,
136
+ textTranslateTransition: StyleTypes.Transition,
137
+ textTranslateAnchor: StyleTypes.Enum,
138
+ circleSortKey: StyleTypes.Constant,
139
+ circleRadius: StyleTypes.Constant,
140
+ circleRadiusTransition: StyleTypes.Transition,
141
+ circleColor: StyleTypes.Color,
142
+ circleColorTransition: StyleTypes.Transition,
143
+ circleBlur: StyleTypes.Constant,
144
+ circleBlurTransition: StyleTypes.Transition,
145
+ circleOpacity: StyleTypes.Constant,
146
+ circleOpacityTransition: StyleTypes.Transition,
147
+ circleTranslate: StyleTypes.Translation,
148
+ circleTranslateTransition: StyleTypes.Transition,
149
+ circleTranslateAnchor: StyleTypes.Enum,
150
+ circlePitchScale: StyleTypes.Enum,
151
+ circlePitchAlignment: StyleTypes.Enum,
152
+ circleStrokeWidth: StyleTypes.Constant,
153
+ circleStrokeWidthTransition: StyleTypes.Transition,
154
+ circleStrokeColor: StyleTypes.Color,
155
+ circleStrokeColorTransition: StyleTypes.Transition,
156
+ circleStrokeOpacity: StyleTypes.Constant,
157
+ circleStrokeOpacityTransition: StyleTypes.Transition,
158
+ heatmapRadius: StyleTypes.Constant,
159
+ heatmapRadiusTransition: StyleTypes.Transition,
160
+ heatmapWeight: StyleTypes.Constant,
161
+ heatmapIntensity: StyleTypes.Constant,
162
+ heatmapIntensityTransition: StyleTypes.Transition,
163
+ heatmapColor: StyleTypes.Color,
164
+ heatmapOpacity: StyleTypes.Constant,
165
+ heatmapOpacityTransition: StyleTypes.Transition,
166
+ fillExtrusionOpacity: StyleTypes.Constant,
167
+ fillExtrusionOpacityTransition: StyleTypes.Transition,
168
+ fillExtrusionColor: StyleTypes.Color,
169
+ fillExtrusionColorTransition: StyleTypes.Transition,
170
+ fillExtrusionTranslate: StyleTypes.Translation,
171
+ fillExtrusionTranslateTransition: StyleTypes.Transition,
172
+ fillExtrusionTranslateAnchor: StyleTypes.Enum,
173
+ fillExtrusionPattern: StyleTypes.Image,
174
+ fillExtrusionPatternTransition: StyleTypes.Transition,
175
+ fillExtrusionHeight: StyleTypes.Constant,
176
+ fillExtrusionHeightTransition: StyleTypes.Transition,
177
+ fillExtrusionBase: StyleTypes.Constant,
178
+ fillExtrusionBaseTransition: StyleTypes.Transition,
179
+ fillExtrusionVerticalGradient: StyleTypes.Constant,
180
+ rasterOpacity: StyleTypes.Constant,
181
+ rasterOpacityTransition: StyleTypes.Transition,
182
+ rasterHueRotate: StyleTypes.Constant,
183
+ rasterHueRotateTransition: StyleTypes.Transition,
184
+ rasterBrightnessMin: StyleTypes.Constant,
185
+ rasterBrightnessMinTransition: StyleTypes.Transition,
186
+ rasterBrightnessMax: StyleTypes.Constant,
187
+ rasterBrightnessMaxTransition: StyleTypes.Transition,
188
+ rasterSaturation: StyleTypes.Constant,
189
+ rasterSaturationTransition: StyleTypes.Transition,
190
+ rasterContrast: StyleTypes.Constant,
191
+ rasterContrastTransition: StyleTypes.Transition,
192
+ rasterResampling: StyleTypes.Enum,
193
+ rasterFadeDuration: StyleTypes.Constant,
194
+ hillshadeIlluminationDirection: StyleTypes.Constant,
195
+ hillshadeIlluminationAnchor: StyleTypes.Enum,
196
+ hillshadeExaggeration: StyleTypes.Constant,
197
+ hillshadeExaggerationTransition: StyleTypes.Transition,
198
+ hillshadeShadowColor: StyleTypes.Color,
199
+ hillshadeShadowColorTransition: StyleTypes.Transition,
200
+ hillshadeHighlightColor: StyleTypes.Color,
201
+ hillshadeHighlightColorTransition: StyleTypes.Transition,
202
+ hillshadeAccentColor: StyleTypes.Color,
203
+ hillshadeAccentColorTransition: StyleTypes.Transition,
204
+ backgroundColor: StyleTypes.Color,
205
+ backgroundColorTransition: StyleTypes.Transition,
206
+ backgroundPattern: StyleTypes.Image,
207
+ backgroundPatternTransition: StyleTypes.Transition,
208
+ backgroundOpacity: StyleTypes.Constant,
209
+ backgroundOpacityTransition: StyleTypes.Transition,
210
+ anchor: StyleTypes.Enum,
211
+ position: StyleTypes.Constant,
212
+ positionTransition: StyleTypes.Transition,
213
+ color: StyleTypes.Color,
214
+ colorTransition: StyleTypes.Transition,
215
+ intensity: StyleTypes.Constant,
216
+ intensityTransition: StyleTypes.Transition,
217
+ visibility: StyleTypes.Constant
218
+ };
219
+ const styleExtras = exports.styleExtras = {
220
+ // padding
221
+ iconTextFitPadding: {
222
+ iosType: "edgeinsets"
223
+ },
224
+ // offsets
225
+ iconOffset: {
226
+ iosType: "vector"
227
+ },
228
+ textOffset: {
229
+ iosType: "vector"
230
+ },
231
+ lineOffset: {
232
+ iosType: "vector"
233
+ },
234
+ // translates
235
+ fillTranslate: {
236
+ iosType: "vector"
237
+ },
238
+ lineTranslate: {
239
+ iosType: "vector"
240
+ },
241
+ iconTranslate: {
242
+ iosType: "vector"
243
+ },
244
+ textTranslate: {
245
+ iosType: "vector"
246
+ },
247
+ circleTranslate: {
248
+ iosType: "vector"
249
+ },
250
+ fillExtrusionTranslate: {
251
+ iosType: "vector"
252
+ }
253
+ };
254
+ var _default = exports.default = styleMap;
255
+ //# sourceMappingURL=styleMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","StyleTypes","exports","Constant","Color","Transition","Translation","Function","Image","Enum","getStyleType","styleProp","isAndroid","styleExtras","iosType","styleMap","Error","fillSortKey","fillAntialias","fillOpacity","fillOpacityTransition","fillColor","fillColorTransition","fillOutlineColor","fillOutlineColorTransition","fillTranslate","fillTranslateTransition","fillTranslateAnchor","fillPattern","fillPatternTransition","lineCap","lineJoin","lineMiterLimit","lineRoundLimit","lineSortKey","lineOpacity","lineOpacityTransition","lineColor","lineColorTransition","lineTranslate","lineTranslateTransition","lineTranslateAnchor","lineWidth","lineWidthTransition","lineGapWidth","lineGapWidthTransition","lineOffset","lineOffsetTransition","lineBlur","lineBlurTransition","lineDasharray","lineDasharrayTransition","linePattern","linePatternTransition","lineGradient","symbolPlacement","symbolSpacing","symbolAvoidEdges","symbolSortKey","symbolZOrder","iconAllowOverlap","iconIgnorePlacement","iconOptional","iconRotationAlignment","iconSize","iconTextFit","iconTextFitPadding","iconImage","iconRotate","iconPadding","iconKeepUpright","iconOffset","iconAnchor","iconPitchAlignment","textPitchAlignment","textRotationAlignment","textField","textFont","textSize","textMaxWidth","textLineHeight","textLetterSpacing","textJustify","textRadialOffset","textVariableAnchor","textAnchor","textMaxAngle","textWritingMode","textRotate","textPadding","textKeepUpright","textTransform","textOffset","textAllowOverlap","textIgnorePlacement","textOptional","iconOpacity","iconOpacityTransition","iconColor","iconColorTransition","iconHaloColor","iconHaloColorTransition","iconHaloWidth","iconHaloWidthTransition","iconHaloBlur","iconHaloBlurTransition","iconTranslate","iconTranslateTransition","iconTranslateAnchor","textOpacity","textOpacityTransition","textColor","textColorTransition","textHaloColor","textHaloColorTransition","textHaloWidth","textHaloWidthTransition","textHaloBlur","textHaloBlurTransition","textTranslate","textTranslateTransition","textTranslateAnchor","circleSortKey","circleRadius","circleRadiusTransition","circleColor","circleColorTransition","circleBlur","circleBlurTransition","circleOpacity","circleOpacityTransition","circleTranslate","circleTranslateTransition","circleTranslateAnchor","circlePitchScale","circlePitchAlignment","circleStrokeWidth","circleStrokeWidthTransition","circleStrokeColor","circleStrokeColorTransition","circleStrokeOpacity","circleStrokeOpacityTransition","heatmapRadius","heatmapRadiusTransition","heatmapWeight","heatmapIntensity","heatmapIntensityTransition","heatmapColor","heatmapOpacity","heatmapOpacityTransition","fillExtrusionOpacity","fillExtrusionOpacityTransition","fillExtrusionColor","fillExtrusionColorTransition","fillExtrusionTranslate","fillExtrusionTranslateTransition","fillExtrusionTranslateAnchor","fillExtrusionPattern","fillExtrusionPatternTransition","fillExtrusionHeight","fillExtrusionHeightTransition","fillExtrusionBase","fillExtrusionBaseTransition","fillExtrusionVerticalGradient","rasterOpacity","rasterOpacityTransition","rasterHueRotate","rasterHueRotateTransition","rasterBrightnessMin","rasterBrightnessMinTransition","rasterBrightnessMax","rasterBrightnessMaxTransition","rasterSaturation","rasterSaturationTransition","rasterContrast","rasterContrastTransition","rasterResampling","rasterFadeDuration","hillshadeIlluminationDirection","hillshadeIlluminationAnchor","hillshadeExaggeration","hillshadeExaggerationTransition","hillshadeShadowColor","hillshadeShadowColorTransition","hillshadeHighlightColor","hillshadeHighlightColorTransition","hillshadeAccentColor","hillshadeAccentColorTransition","backgroundColor","backgroundColorTransition","backgroundPattern","backgroundPatternTransition","backgroundOpacity","backgroundOpacityTransition","anchor","position","positionTransition","color","colorTransition","intensity","intensityTransition","visibility","_default","default"],"sourceRoot":"../../../src","sources":["utils/styleMap.ts"],"mappings":";;;;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIO,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE,YAAY;EACxBC,WAAW,EAAE,aAAa;EAC1BC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE;AACR,CAAC;AAEM,SAASC,YAAYA,CAACC,SAAmC,EAAU;EACxE,IAAI,CAAC,IAAAC,gBAAS,EAAC,CAAC,IAAIC,WAAW,CAACF,SAAS,CAAC,EAAE;IAC1C,OAAOE,WAAW,CAACF,SAAS,CAAC,CAACG,OAAO;EACvC;EAEA,IAAIC,QAAQ,CAACJ,SAAS,CAAC,EAAE;IACvB,OAAOI,QAAQ,CAACJ,SAAS,CAAC;EAC5B;EAEA,MAAM,IAAIK,KAAK,CAAC,GAAGL,SAAS,sCAAsC,CAAC;AACrE;AAEA,MAAMI,QAAQ,GAAG;EACfE,WAAW,EAAEhB,UAAU,CAACE,QAAQ;EAChCe,aAAa,EAAEjB,UAAU,CAACE,QAAQ;EAClCgB,WAAW,EAAElB,UAAU,CAACE,QAAQ;EAChCiB,qBAAqB,EAAEnB,UAAU,CAACI,UAAU;EAC5CgB,SAAS,EAAEpB,UAAU,CAACG,KAAK;EAC3BkB,mBAAmB,EAAErB,UAAU,CAACI,UAAU;EAC1CkB,gBAAgB,EAAEtB,UAAU,CAACG,KAAK;EA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jM,UAAU,CAACQ,IAAI;EACvB0L,QAAQ,EAAElM,UAAU,CAACE,QAAQ;EAC7BiM,kBAAkB,EAAEnM,UAAU,CAACI,UAAU;EACzCgM,KAAK,EAAEpM,UAAU,CAACG,KAAK;EACvBkM,eAAe,EAAErM,UAAU,CAACI,UAAU;EACtCkM,SAAS,EAAEtM,UAAU,CAACE,QAAQ;EAC9BqM,mBAAmB,EAAEvM,UAAU,CAACI,UAAU;EAE1CoM,UAAU,EAAExM,UAAU,CAACE;AACzB,CAAC;AAEM,MAAMU,WAAW,GAAAX,OAAA,CAAAW,WAAA,GAAG;EACzB;EACAqD,kBAAkB,EAAE;IAClBpD,OAAO,EAAE;EACX,CAAC;EAED;EACAyD,UAAU,EAAE;IACVzD,OAAO,EAAE;EACX,CAAC;EACD8E,UAAU,EAAE;IACV9E,OAAO,EAAE;EACX,CAAC;EACDgC,UAAU,EAAE;IACVhC,OAAO,EAAE;EACX,CAAC;EAED;EACAW,aAAa,EAAE;IACbX,OAAO,EAAE;EACX,CAAC;EACDyB,aAAa,EAAE;IACbzB,OAAO,EAAE;EACX,CAAC;EACD4F,aAAa,EAAE;IACb5F,OAAO,EAAE;EACX,CAAC;EACDyG,aAAa,EAAE;IACbzG,OAAO,EAAE;EACX,CAAC;EACDqH,eAAe,EAAE;IACfrH,OAAO,EAAE;EACX,CAAC;EACD4I,sBAAsB,EAAE;IACtB5I,OAAO,EAAE;EACX;AACF,CAAC;AAAC,IAAA4L,QAAA,GAAAxM,OAAA,CAAAyM,OAAA,GAEa5L,QAAQ","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ import { NativeModules } from "react-native";
4
+ const MLNModule = Object.create(NativeModules.MLNModule);
5
+ export const {
6
+ CameraModes,
7
+ StyleURL,
8
+ OfflinePackDownloadState,
9
+ LineJoin,
10
+ StyleSource,
11
+ setAccessToken,
12
+ getAccessToken,
13
+ setConnected
14
+ } = MLNModule;
15
+ //# sourceMappingURL=MLNModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeModules","MLNModule","Object","create","CameraModes","StyleURL","OfflinePackDownloadState","LineJoin","StyleSource","setAccessToken","getAccessToken","setConnected"],"sourceRoot":"../../src","sources":["MLNModule.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;AAkC5C,MAAMC,SAAqB,GAAGC,MAAM,CAACC,MAAM,CAACH,aAAa,CAACC,SAAS,CAAC;AAEpE,OAAO,MAAM;EACXG,WAAW;EACXC,QAAQ;EACRC,wBAAwB;EACxBC,QAAQ;EACRC,WAAW;EACXC,cAAc;EACdC,cAAc;EACdC;AACF,CAAC,GAAGV,SAAS","ignoreList":[]}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ import { UserTrackingMode } from "./components/Camera.js";
4
+ export * from "./MLNModule.js";
5
+ export { default as Camera, UserTrackingMode } from "./components/Camera.js";
6
+ export { default as MapView } from "./components/MapView.js";
7
+ export { default as Light } from "./components/Light.js";
8
+ export { default as PointAnnotation } from "./components/PointAnnotation.js";
9
+ export { default as Annotation } from "./components/Annotation.js";
10
+ export { default as Callout } from "./components/Callout.js";
11
+ export { requestAndroidLocationPermissions } from "./requestAndroidLocationPermissions.js";
12
+ export { default as UserLocation, UserLocationRenderMode } from "./components/UserLocation.js";
13
+ export { default as VectorSource } from "./components/VectorSource.js";
14
+ export { default as ShapeSource } from "./components/ShapeSource.js";
15
+ export { default as RasterSource } from "./components/RasterSource.js";
16
+ export { default as ImageSource } from "./components/ImageSource.js";
17
+ export { default as Images } from "./components/Images.js";
18
+ export { default as FillLayer } from "./components/FillLayer.js";
19
+ export { default as FillExtrusionLayer } from "./components/FillExtrusionLayer.js";
20
+ export { default as HeatmapLayer } from "./components/HeatmapLayer.js";
21
+ export { default as LineLayer } from "./components/LineLayer.js";
22
+ export { default as CircleLayer } from "./components/CircleLayer.js";
23
+ export { default as SymbolLayer } from "./components/SymbolLayer.js";
24
+ export { default as RasterLayer } from "./components/RasterLayer.js";
25
+ export { default as BackgroundLayer } from "./components/BackgroundLayer.js";
26
+ export { default as locationManager } from "./modules/location/locationManager.js";
27
+ export { default as offlineManager } from "./modules/offline/offlineManager.js";
28
+ export { default as OfflinePack } from "./modules/offline/OfflinePack.js";
29
+ export { default as OfflineCreatePackOptions } from "./modules/offline/OfflineCreatePackOptions.js";
30
+ export { default as snapshotManager } from "./modules/snapshot/snapshotManager.js";
31
+ export { default as MarkerView } from "./components/MarkerView.js";
32
+ export { default as Animated } from "./utils/animated/Animated.js";
33
+ export { default as Style } from "./components/Style.js";
34
+ export { default as Logger } from "./utils/Logger.js";
35
+ /** @deprecated UserTrackingModes is deprecated use UserTrackingMode */
36
+ export const UserTrackingModes = UserTrackingMode;
37
+ //# sourceMappingURL=MapLibreRN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["UserTrackingMode","default","Camera","MapView","Light","PointAnnotation","Annotation","Callout","requestAndroidLocationPermissions","UserLocation","UserLocationRenderMode","VectorSource","ShapeSource","RasterSource","ImageSource","Images","FillLayer","FillExtrusionLayer","HeatmapLayer","LineLayer","CircleLayer","SymbolLayer","RasterLayer","BackgroundLayer","locationManager","offlineManager","OfflinePack","OfflineCreatePackOptions","snapshotManager","MarkerView","Animated","Style","Logger","UserTrackingModes"],"sourceRoot":"../../src","sources":["MapLibreRN.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,wBAAqB;AAEtD,cAAc,gBAAa;AAC3B,SACEC,OAAO,IAAIC,MAAM,EACjBF,gBAAgB,QAKX,wBAAqB;AAC5B,SAASC,OAAO,IAAIE,OAAO,QAAyB,yBAAsB;AAC1E,SAASF,OAAO,IAAIG,KAAK,QAAQ,uBAAoB;AACrD,SAASH,OAAO,IAAII,eAAe,QAAQ,iCAA8B;AAEzE,SAASJ,OAAO,IAAIK,UAAU,QAAQ,4BAAyB;AAC/D,SAASL,OAAO,IAAIM,OAAO,QAAQ,yBAAsB;AACzD,SAASC,iCAAiC,QAAQ,wCAAqC;AACvF,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-0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=png.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["assets/png.d.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ import { forwardRef, useCallback, useEffect, useImperativeHandle, useState } from "react";
4
+ import { Easing } from "react-native";
5
+ import SymbolLayer from "./SymbolLayer.js";
6
+ import { AnimatedShapeSource } from "../utils/animated/Animated.js";
7
+ import AnimatedMapPoint from "../utils/animated/AnimatedPoint.js";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ function getShapeFromProps(props = {}) {
10
+ const lng = props.coordinates?.[0] || 0;
11
+ const lat = props.coordinates?.[1] || 0;
12
+ const point = {
13
+ type: "Point",
14
+ coordinates: [lng, lat]
15
+ };
16
+ if (props.animated) {
17
+ return new AnimatedMapPoint(point);
18
+ }
19
+ return point;
20
+ }
21
+ function isShapeAnimated(shape) {
22
+ return shape instanceof AnimatedMapPoint;
23
+ }
24
+ const Annotation = /*#__PURE__*/forwardRef(({
25
+ animated = false,
26
+ animationDuration = 1000,
27
+ animationEasingFunction = Easing.linear,
28
+ ...otherProps
29
+ }, ref) => {
30
+ const props = {
31
+ ...otherProps,
32
+ animated,
33
+ animationDuration,
34
+ animationEasingFunction
35
+ };
36
+ useImperativeHandle(ref, () => ({
37
+ onPress,
38
+ symbolStyle
39
+ }));
40
+ const [shape, setShape] = useState(getShapeFromProps(props));
41
+
42
+ // this will run useEffect only when actual coordinates values change
43
+ const coordinateDeps = props.coordinates?.join(",");
44
+ useEffect(() => {
45
+ if (!Array.isArray(props.coordinates)) {
46
+ setShape(null);
47
+ return;
48
+ }
49
+ if (shape && isShapeAnimated(shape)) {
50
+ shape.stopAnimation();
51
+ shape.timing({
52
+ coordinates: props.coordinates,
53
+ easing: animationEasingFunction,
54
+ duration: animationDuration
55
+ }).start();
56
+ return;
57
+ }
58
+ if (!shape || !isShapeAnimated(shape)) {
59
+ const newShape = getShapeFromProps(props);
60
+ setShape(newShape);
61
+ }
62
+ }, [coordinateDeps]);
63
+ const onPressProp = props.onPress;
64
+ const _onPress = useCallback(event => {
65
+ if (onPressProp) {
66
+ onPressProp(event);
67
+ }
68
+ }, [onPressProp]);
69
+
70
+ // This function is needed to correctly generate Annotation.md doc
71
+ function onPress(event) {
72
+ _onPress(event);
73
+ }
74
+ if (!props.coordinates) {
75
+ return null;
76
+ }
77
+ const children = [];
78
+ const symbolStyle = props.icon ? {
79
+ ...props.style,
80
+ iconImage: typeof props.icon === "string" ? props.icon : undefined
81
+ } : undefined;
82
+ if (symbolStyle) {
83
+ children.push(/*#__PURE__*/_jsx(SymbolLayer, {
84
+ id: `${props.id}-symbol`,
85
+ style: symbolStyle
86
+ }));
87
+ }
88
+ if (props.children) {
89
+ if (Array.isArray(props.children)) {
90
+ children.push(...props.children);
91
+ } else {
92
+ children.push(props.children);
93
+ }
94
+ }
95
+ return /*#__PURE__*/_jsx(AnimatedShapeSource, {
96
+ id: props.id,
97
+ onPress: _onPress,
98
+ shape: shape,
99
+ children: children
100
+ });
101
+ });
102
+ Annotation.displayName = "Annotation";
103
+ export default Annotation;
104
+ //# sourceMappingURL=Annotation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","useCallback","useEffect","useImperativeHandle","useState","Easing","SymbolLayer","AnimatedShapeSource","AnimatedMapPoint","jsx","_jsx","getShapeFromProps","props","lng","coordinates","lat","point","type","animated","isShapeAnimated","shape","Annotation","animationDuration","animationEasingFunction","linear","otherProps","ref","onPress","symbolStyle","setShape","coordinateDeps","join","Array","isArray","stopAnimation","timing","easing","duration","start","newShape","onPressProp","_onPress","event","children","icon","style","iconImage","undefined","push","id","displayName"],"sourceRoot":"../../../src","sources":["components/Annotation.tsx"],"mappings":";;AAAA,SACEA,UAAU,EAEVC,WAAW,EACXC,SAAS,EACTC,mBAAmB,EACnBC,QAAQ,QACH,OAAO;AACd,SAAiCC,M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e,QAAQ,CAACK,IAAI,cACXtC,IAAA,CAACJ,WAAW;MAAC2C,EAAE,EAAE,GAAGrC,KAAK,CAACqC,EAAE,SAAU;MAACJ,KAAK,EAAEjB;IAAY,CAAE,CAC9D,CAAC;EACH;EAEA,IAAIhB,KAAK,CAAC+B,QAAQ,EAAE;IAClB,IAAIX,KAAK,CAACC,OAAO,CAACrB,KAAK,CAAC+B,QAAQ,CAAC,EAAE;MACjCA,QAAQ,CAACK,IAAI,CAAC,GAAGpC,KAAK,CAAC+B,QAAQ,CAAC;IAClC,CAAC,MAAM;MACLA,QAAQ,CAACK,IAAI,CAACpC,KAAK,CAAC+B,QAAQ,CAAC;IAC/B;EACF;EAEA,oBACEjC,IAAA,CAACH,mBAAmB;IAClB0C,EAAE,EAAErC,KAAK,CAACqC,EAAG;IACbtB,OAAO,EAAEc,QAAS;IAClBrB,KAAK,EAAEA,KAAsD;IAAAuB,QAAA,EAE5DA;EAAQ,CACU,CAAC;AAE1B,CACF,CAAC;AAEDtB,UAAU,CAAC6B,WAAW,GAAG,YAAY;AAErC,eAAe7B,UAAU","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ import React from "react";
4
+ import { NativeModules, requireNativeComponent } from "react-native";
5
+ import useAbstractLayer from "../hooks/useAbstractLayer.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const MapLibreGL = NativeModules.MLNModule;
8
+ export const NATIVE_MODULE_NAME = "RCTMLNBackgroundLayer";
9
+ const RCTMLNBackgroundLayer = requireNativeComponent(NATIVE_MODULE_NAME);
10
+ const BackgroundLayer = ({
11
+ sourceID = MapLibreGL.StyleSource.DefaultSourceID,
12
+ ...props
13
+ }) => {
14
+ const {
15
+ baseProps,
16
+ setNativeLayer
17
+ } = useAbstractLayer({
18
+ ...props,
19
+ sourceID
20
+ });
21
+ return /*#__PURE__*/_jsx(RCTMLNBackgroundLayer, {
22
+ testID: "rctmlnBackgroundLayer",
23
+ ref: setNativeLayer,
24
+ ...baseProps
25
+ });
26
+ };
27
+ export default BackgroundLayer;
28
+ //# sourceMappingURL=BackgroundLayer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","NativeModules","requireNativeComponent","useAbstractLayer","jsx","_jsx","MapLibreGL","MLNModule","NATIVE_MODULE_NAME","RCTMLNBackgroundLayer","BackgroundLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","testID","ref"],"sourceRoot":"../../../src","sources":["components/BackgroundLayer.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,sBAAsB,QAAQ,cAAc;AAEpE,OAAOC,gBAAgB,MAGhB,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAInC,MAAMC,UAAU,GAAGL,aAAa,CAACM,SAAS;AAE1C,OAAO,MAAMC,kBAAkB,GAAG,uBAAuB;AAazD,MAAMC,qBAAqB,GACzBP,sBAAsB,CAAuBM,kBAAkB,CAAC;AAElE,MAAME,eAA+C,GAAGA,CAAC;EACvDC,QAAQ,GAAGL,UAAU,CAACM,WAAW,CAACC,eAAe;EACjD,GAAGC;AACiB,CAAC,KAAK;EAC1B,MAAM;IAAEC,SAAS;IAAEC;EAAe,CAAC,GAAGb,gBAAgB,CAGpD;IACA,GAAGW,KAAK;IACRH;EACF,CAAC,CAAC;EAEF,oBACEN,IAAA,CAACI,qBAAqB;IACpBQ,MAAM,EAAC,uBAAuB;IAC9BC,GAAG,EAAEF,cAAe;IAAA,GAChBD;EAAS,CACd,CAAC;AAEN,CAAC;AAED,eAAeL,eAAe","ignoreList":[]}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ import { Children } from "react";
4
+ import { View, Text, Animated, requireNativeComponent, StyleSheet } from "react-native";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ export const NATIVE_MODULE_NAME = "RCTMLNCallout";
7
+ const styles = StyleSheet.create({
8
+ container: {
9
+ alignItems: "center",
10
+ justifyContent: "center",
11
+ width: 180,
12
+ zIndex: 9999999
13
+ },
14
+ content: {
15
+ backgroundColor: "white",
16
+ borderColor: "rgba(0, 0, 0, 0.2)",
17
+ borderRadius: 3,
18
+ borderWidth: 1,
19
+ flex: 1,
20
+ padding: 8,
21
+ position: "relative"
22
+ },
23
+ tip: {
24
+ backgroundColor: "transparent",
25
+ borderBottomColor: "transparent",
26
+ borderBottomWidth: 0,
27
+ borderLeftColor: "transparent",
28
+ borderLeftWidth: 8,
29
+ borderRightColor: "transparent",
30
+ borderRightWidth: 8,
31
+ borderTopColor: "white",
32
+ borderTopWidth: 16,
33
+ elevation: 0,
34
+ marginTop: -2,
35
+ zIndex: 1000
36
+ },
37
+ title: {
38
+ color: "black",
39
+ textAlign: "center"
40
+ }
41
+ });
42
+ /**
43
+ * Callout that displays information about a selected annotation near the annotation.
44
+ */
45
+ const Callout = props => {
46
+ const {
47
+ title,
48
+ style,
49
+ containerStyle,
50
+ contentStyle,
51
+ tipStyle,
52
+ textStyle,
53
+ children
54
+ } = props;
55
+ const _containerStyle = [{
56
+ position: "absolute",
57
+ zIndex: 999,
58
+ backgroundColor: "transparent",
59
+ ...containerStyle
60
+ }];
61
+ const _hasChildren = Children.count(children) > 0;
62
+ const _renderDefaultCallout = () => {
63
+ return /*#__PURE__*/_jsxs(Animated.View, {
64
+ testID: "container",
65
+ style: [styles.container, style],
66
+ children: [/*#__PURE__*/_jsx(View, {
67
+ testID: "wrapper",
68
+ style: [styles.content, contentStyle],
69
+ children: /*#__PURE__*/_jsx(Text, {
70
+ testID: "title",
71
+ style: [styles.title, textStyle],
72
+ children: title
73
+ })
74
+ }), /*#__PURE__*/_jsx(View, {
75
+ testID: "tip",
76
+ style: [styles.tip, tipStyle]
77
+ })]
78
+ });
79
+ };
80
+ const _renderCustomCallout = () => {
81
+ return /*#__PURE__*/_jsx(Animated.View, {
82
+ testID: "container",
83
+ ...props,
84
+ style: style,
85
+ children: children
86
+ });
87
+ };
88
+ const calloutContent = _hasChildren ? _renderCustomCallout() : _renderDefaultCallout();
89
+ return /*#__PURE__*/_jsx(RCTMLNCallout, {
90
+ testID: "callout",
91
+ style: _containerStyle,
92
+ children: calloutContent
93
+ });
94
+ };
95
+ const RCTMLNCallout = requireNativeComponent(NATIVE_MODULE_NAME);
96
+ export default Callout;
97
+ //# sourceMappingURL=Callout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Children","View","Text","Animated","requireNativeComponent","StyleSheet","jsx","_jsx","jsxs","_jsxs","NATIVE_MODULE_NAME","styles","create","container","alignItems","justifyContent","width","zIndex","content","backgroundColor","borderColor","borderRadius","borderWidth","flex","padding","position","tip","borderBottomColor","borderBottomWidth","borderLeftColor","borderLeftWidth","borderRightColor","borderRightWidth","borderTopColor","borderTopWidth","elevation","marginTop","title","color","textAlign","Callout","props","style","containerStyle","contentStyle","tipStyle","textStyle","children","_containerStyle","_hasChildren","count","_renderDefaultCallout","testID","_renderCustomCallout","calloutContent","RCTMLNCallout"],"sourceRoot":"../../../src","sources":["components/Callout.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAA2B,OAAO;AACnD,SACEC,IAAI,EACJC,IAAI,EACJC,QAAQ,EACRC,sBAAsB,EACtBC,UAAU,QAIL,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEtB,OAAO,MAAMC,kBAAkB,GAAG,eAAe;AAEjD,MAAMC,MAAM,GAAGN,UAAU,CAACO,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE;EACV,CAAC;EACDC,OAAO,EAAE;IACPC,eAAe,EAAE,OAAO;IACxBC,WAAW,EAAE,oBAAoB;IACjCC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE,CAAC;IACV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