@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
@@ -1,98 +0,0 @@
1
- <%
2
- const layers = locals.layers;
3
- const helpers = locals.helpers;
4
- -%>
5
- // DO NOT MODIFY
6
- // THIS FILE IS AUTOGENERATED
7
-
8
- #import "RCTMLNStyle.h"
9
- #import "RCTMLNUtils.h"
10
-
11
- @implementation RCTMLNStyle
12
-
13
- - (id)initWithMLNStyle:(MLNStyle*)mlnStyle
14
- {
15
- if (self = [super init]) {
16
- _style = mlnStyle;
17
- }
18
- return self;
19
- }
20
-
21
- <% for (const layer of layers) { %>
22
- - (void)<%- helpers.setLayerMethodName(layer, 'ios') -%>:(<%- helpers.getLayerType(layer, 'ios') -%> *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
23
- {
24
- if (![self _hasReactStyle:reactStyle]) {
25
- // TODO throw exception
26
- return;
27
- }
28
-
29
- NSArray<NSString*> *styleProps = [reactStyle allKeys];
30
- for (NSString *prop in styleProps) {
31
- if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
32
- continue;
33
- }
34
-
35
- RCTMLNStyleValue *styleValue = [RCTMLNStyleValue make:reactStyle[prop]];
36
-
37
- <% for (let i = 0; i < layer.properties.length; i++) { -%>
38
- <%- helpers.ifOrElseIf(i) -%> ([prop isEqualToString:@"<%= layer.properties[i].name %>"]) {
39
- <%_ if (layer.properties[i].image) { _%>
40
- if (![styleValue shouldAddImage]) {
41
- [self set<%- helpers.iosPropMethodName(layer, helpers.pascalCase(layer.properties[i].name)) -%>:layer withReactStyleValue:styleValue];
42
- } else {
43
- NSString *imageURI = [styleValue getImageURI];
44
-
45
- [RCTMLNUtils fetchImage:_bridge url:imageURI scale:[styleValue getImageScale] callback:^(NSError *error, UIImage *image) {
46
- if (image != nil) {
47
- dispatch_async(dispatch_get_main_queue(), ^{
48
- if (isValid()) {
49
- [self->_style setImage:image forName:imageURI];
50
- [self set<%- helpers.iosPropMethodName(layer, helpers.pascalCase(layer.properties[i].name)) -%>:layer withReactStyleValue:styleValue];
51
- }
52
- });
53
- }
54
- }];
55
- }
56
- <%_ } else { _%>
57
- [self set<%- helpers.iosPropMethodName(layer, helpers.pascalCase(layer.properties[i].name)) -%>:layer withReactStyleValue:styleValue];
58
- <%_ } _%>
59
- <%_ if (layer.properties[i].transition) { _%>
60
- } else if ([prop isEqualToString:@"<%= layer.properties[i].name %>Transition"]) {
61
- [self set<%- helpers.iosPropMethodName(layer, helpers.pascalCase(layer.properties[i].name)) -%>Transition:layer withReactStyleValue:styleValue];
62
- <%_ } _%>
63
- <% } -%>
64
- } else {
65
- // TODO throw exception
66
- }
67
- }
68
- }
69
- <% } %>
70
-
71
- <% for (const layer of layers) {%>
72
- <% for (const prop of layer.properties) {%>
73
- - (void)set<%- helpers.iosPropMethodName(layer, helpers.pascalCase(prop.name)) -%>:(<%- helpers.getLayerType(layer, 'ios') -%> *)layer withReactStyleValue:(RCTMLNStyleValue *)styleValue
74
- {
75
- <%_ if (layer.name === 'light' && prop.name === 'position') { _%>
76
- layer.position = [styleValue getSphericalPosition];
77
- <%_ } else if (prop.name === 'visibility') { _%>
78
- layer.visible = [styleValue isVisible];
79
- <%_ } else { _%>
80
- layer.<%- helpers.iosPropName(prop.name) -%> = styleValue.mlnStyleValue;
81
- <%_ } _%>
82
- }
83
- <%_ if (prop.transition) { _%>
84
-
85
- - (void)set<%- helpers.iosPropMethodName(layer, helpers.pascalCase(prop.name)) -%>Transition:(<%- helpers.getLayerType(layer, 'ios') -%> *)layer withReactStyleValue:(RCTMLNStyleValue *)styleValue
86
- {
87
- layer.<%- helpers.iosPropName(prop.name) -%>Transition = [styleValue getTransition];
88
- }
89
- <%_ } _%>
90
- <% } %>
91
- <% } %>
92
-
93
- - (BOOL)_hasReactStyle:(NSDictionary *)reactStyle
94
- {
95
- return reactStyle != nil && reactStyle.allKeys.count > 0;
96
- }
97
-
98
- @end
@@ -1,108 +0,0 @@
1
- <%
2
- const layers = locals.layers;
3
- const helpers = locals.helpers;
4
- -%>
5
- // DO NOT MODIFY
6
- // THIS FILE IS AUTOGENERATED
7
-
8
- package com.maplibre.rctmln.components.styles;
9
-
10
- import org.maplibre.android.style.layers.BackgroundLayer;
11
- import org.maplibre.android.style.layers.CircleLayer;
12
- import org.maplibre.android.style.layers.FillExtrusionLayer;
13
- import org.maplibre.android.style.layers.FillLayer;
14
- import org.maplibre.android.style.layers.LineLayer;
15
- import org.maplibre.android.style.layers.PropertyFactory;
16
- import org.maplibre.android.style.layers.PropertyValue;
17
- import org.maplibre.android.style.layers.RasterLayer;
18
- import org.maplibre.android.style.layers.SymbolLayer;
19
- import org.maplibre.android.style.layers.HeatmapLayer;
20
- import org.maplibre.android.style.layers.HillshadeLayer;
21
- import org.maplibre.android.style.layers.TransitionOptions;
22
- import org.maplibre.android.style.light.Light;
23
- import org.maplibre.android.style.light.Position;
24
- import com.maplibre.rctmln.utils.DownloadMapImageTask;
25
-
26
- import java.util.List;
27
-
28
- public class RCTMLNStyleFactory {
29
- public static final String VALUE_KEY = "value";
30
- public static final String SHOULD_ADD_IMAGE_KEY = "shouldAddImage";
31
-
32
- <%_ for (const layer of layers) { _%>
33
- public static void <%- helpers.setLayerMethodName(layer) -%>(final <%- helpers.getLayerType(layer, 'android') -%> layer, RCTMLNStyle style) {
34
- List<String> styleKeys = style.getAllStyleKeys();
35
-
36
- if (styleKeys.size() == 0) {
37
- return;
38
- }
39
-
40
- for (String styleKey : styleKeys) {
41
- final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
42
-
43
- switch (styleKey) {
44
- <%_ for (const prop of layer.properties) { _%>
45
- case "<%= prop.name %>":
46
- <%_ if (prop.image) { _%>
47
- style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
48
- @Override
49
- public void onAllImagesLoaded() {
50
- RCTMLNStyleFactory.set<%- helpers.pascalCase(prop.name) -%>(layer, styleValue);
51
- }
52
- });
53
- <%_ } else { _%>
54
- RCTMLNStyleFactory.set<%- helpers.pascalCase(prop.name) -%>(layer, styleValue);
55
- <%_ } _%>
56
- break;
57
- <%_ if (prop.transition) { _%>
58
- case "<%= prop.name %>Transition":
59
- RCTMLNStyleFactory.set<%- helpers.pascalCase(prop.name) -%>Transition(layer, styleValue);
60
- break;
61
- <%_ } _%>
62
- <%_ } _%>
63
- }
64
- }
65
- }
66
- <%_ } _%>
67
-
68
- <%_ for (const layer of layers) { _%>
69
- <%_ for (const prop of layer.properties) { _%>
70
- public static void set<%- helpers.pascalCase(prop.name) -%>(<%- helpers.getLayerType(layer, 'android') -%> layer, RCTMLNStyleValue styleValue) {
71
- <%_ if (layer.name === 'light' && prop.name === 'position') { _%>
72
- Float[] values = styleValue.getFloatArray(VALUE_KEY);
73
- layer.set<%- helpers.pascalCase(prop.name) -%>(Position.fromPosition(values[0], values[1], values[2]));
74
- <%_ } else if (layer.name === 'light') { _%>
75
- layer.set<%- helpers.pascalCase(prop.name) -%>(<%- helpers.androidGetConfigType(helpers.androidInputType(prop.type, prop.value), prop) -%>);
76
- <%_ } else if (prop.name === 'visibility') { _%>
77
- layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
78
- <%_ } else if (prop.type === 'resolvedImage') { _%>
79
- if (styleValue.isExpression()) {
80
- if (styleValue.isImageStringValue()) {
81
- layer.setProperties(PropertyFactory.<%= prop.name %>(styleValue.getImageStringValue()));
82
- } else {
83
- layer.setProperties(PropertyFactory.<%= prop.name %>(styleValue.getExpression()));
84
- }
85
- } else {
86
- layer.setProperties(PropertyFactory.<%= prop.name %>(<%- helpers.androidGetConfigType(helpers.androidInputType(prop.type, prop.value), prop) -%>));
87
- }
88
- <%_ } else { _%>
89
- if (styleValue.isExpression()) {
90
- layer.setProperties(PropertyFactory.<%= prop.name %>(styleValue.getExpression()));
91
- } else {
92
- layer.setProperties(PropertyFactory.<%= prop.name %>(<%- helpers.androidGetConfigType(helpers.androidInputType(prop.type, prop.value), prop) -%>));
93
- }
94
- <%_ } _%>
95
- }
96
-
97
- <%_ if (prop.transition) { %>
98
- public static void set<%- helpers.pascalCase(prop.name) -%>Transition(<%- helpers.getLayerType(layer, 'android') -%> layer, RCTMLNStyleValue styleValue) {
99
- TransitionOptions transition = styleValue.getTransition();
100
- if (transition != null) {
101
- layer.set<%- helpers.pascalCase(prop.name) -%>Transition(transition);
102
- }
103
- }
104
-
105
- <%_ } _%>
106
- <%_ } _%>
107
- <%_ } _%>
108
- }
@@ -1,125 +0,0 @@
1
- <%
2
- const component = locals.component;
3
- const helpers = locals.helpers;
4
- -%>
5
- <!-- DO NOT MODIFY! -->
6
- <!-- This file is auto-generated from <%- component.filePath %> -->
7
- # `<MapLibreGL.<%- component.name %> />`
8
- <%- helpers.replaceNewLine(component.description) %>
9
-
10
- <%_ if (component.props && component.props.length) { _%>
11
- ## Props
12
- | Prop | Type | Default | Required | Description |
13
- | ---- | :--: | :-----: | :------: | :----------: |
14
- <%- helpers.propMarkdownTableRows(component) %>
15
- <%_ } _%>
16
-
17
- <%_ if (component.methods && component.methods.length) { _%>
18
- ## Methods
19
- <%_ for (let method of component.methods) { _%>
20
- ### <%- helpers.getMarkdownMethodSignature(method) %>
21
-
22
- <%- helpers.replaceNewLine(method.description) %>
23
-
24
- <%_ if (method.params && method.params.length) { _%>
25
- #### Arguments
26
- | Name | Type | Required | Description |
27
- | ---- | :--: | :------: | :----------: |
28
- <%- helpers.methodMarkdownTableRow(method) %>
29
- <%_ } _%>
30
-
31
- <%- helpers.getMarkdownMethodExamples(method) %>
32
- <%_ } _%>
33
- <%_ } _%>
34
-
35
- <%_ if (component.styles && component.styles.length) { _%>
36
- ## Styles
37
-
38
- <%_ for (let i = 0; i < component.styles.length; i++) { _%>
39
- <%
40
- const style = component.styles[i];
41
- -%>
42
- * <a href="#name<%- i > 0 ? '-' + i : '' -%>">`<%- style.name %>`</a><br/>
43
- <%_ } _%>
44
-
45
- <%_ for (let style of component.styles) { _%>
46
-
47
- ### `<%- style.name %>`
48
-
49
- <%- style.description %>
50
-
51
- <dl>
52
- <dt>Type</dt>
53
- <dd>
54
- <code><%- style.type %></code>
55
- </dd>
56
- <%_ if (helpers.exists(style.default)) { _%>
57
- <dt>Default Value</dt>
58
- <dd><code><%= helpers.getStyleDefaultValue(style) %></code></dd>
59
- <%_ } _%>
60
- <%_ if (style.type === 'enum') { _%>
61
- <dt>Supported Values</dt>
62
- <dd>
63
- <ul>
64
- <%_ for (var i = 0; i < style.values.length; i++) { _%>
65
- <li>
66
- <code><%- style.values[i].value %></code>: <%- style.values[i].doc %>
67
- </li>
68
- <%_ } _%>
69
- <%_ } _%>
70
- </ul>
71
- </dd>
72
- <%_ if (helpers.exists(style.units)) { _%>
73
- <dt>Units</dt>
74
- <dd><code><%- style.units %></code></dd>
75
- <%_ } _%>
76
- <%_ if (helpers.exists(style.minimum)) { _%>
77
- <dt>Minimum</dt>
78
- <dd><code><%- style.minimum %></code></dd>
79
- <%_ } _%>
80
- <%_ if (helpers.exists(style.maximum)) { _%>
81
- <dt>Maximum</dt>
82
- <dd><code><%- style.maximum %></code></dd>
83
- <%_ } _%>
84
- <%_ if (style.requires.length) { _%>
85
- <dt>Requires</dt>
86
- <dd><code><%- style.requires.join(', ') %></code></dd>
87
- <%_ } _%>
88
- <%_ if (style.disabledBy.length) { _%>
89
- <dt>Disabled By</dt>
90
- <dd><code><%- style.disabledBy.join(', ') %></code></dd>
91
- <%_ } _%>
92
- <%_ if (style.allowedFunctionTypes.length) { _%>
93
- <dt>Supported Style Functions</dt>
94
- <dd><code><%- style.allowedFunctionTypes.join(', ') %></code></dd>
95
- <%_ } _%>
96
- <%_ if (style.expression) { _%>
97
- <dt>Expression Parameters</dt>
98
- <dd><code><%- (style.expression.parameters || []).join(', ') %></code></dd>
99
- <%_ } _%>
100
- </dl>
101
-
102
- <%_ if (style.transition) { _%>
103
- ### `<%- style.name %>Transition`
104
-
105
- The transition affecting any changes to this layer’s <%- style.name %> property.
106
-
107
- <dl>
108
- <dt>Type</dt>
109
- <dd>
110
- <code>{ duration, delay }</code>
111
- </dd>
112
-
113
- <dt>Units</dt>
114
- <dd>
115
- <code>milliseconds</code>
116
- </dd>
117
-
118
- <dt>Default Value</dt>
119
- <dd>
120
- <code>{duration: 300, delay: 0}</code>
121
- </dd>
122
- </dl>
123
- <%_ } %>
124
- <%_ } _%>
125
- <%_ } _%>
@@ -1,86 +0,0 @@
1
- <%
2
- const layers = locals.layers;
3
- const helpers = locals.helpers;
4
- -%>
5
- // DO NOT MODIFY
6
- // THIS FILE IS AUTOGENERATED
7
-
8
- import { isAndroid } from './index';
9
-
10
- export const StyleTypes = {
11
- Constant: 'constant',
12
- Color: 'color',
13
- Transition: 'transition',
14
- Translation: 'translation',
15
- Function: 'function',
16
- Image: 'image',
17
- Enum: 'enum',
18
- };
19
-
20
- const styleMap = {
21
- <%_ for (let layer of layers) { _%>
22
- <%_ for (let prop of layer.properties) { _%>
23
- <%_ if (!['color', 'colorTransition', 'visibility'].includes(prop.name)) { _%>
24
- <%= prop.name %>: <%- helpers.jsStyleType(prop) %>,
25
- <%_ if (prop.transition) { _%>
26
- <%= prop.name %>Transition: StyleTypes.Transition,
27
- <%_ } _%>
28
- <%_ } _%>
29
- <%_ } _%>
30
-
31
- <%_ } _%>
32
-
33
- color: StyleTypes.Color,
34
- colorTransition: StyleTypes.Transition,
35
- visibility: StyleTypes.Constant,
36
- };
37
-
38
- export const styleExtras = {
39
- // padding
40
- iconTextFitPadding: {
41
- iosType: 'edgeinsets',
42
- },
43
-
44
- // offsets
45
- iconOffset: {
46
- iosType: 'vector',
47
- },
48
- textOffset: {
49
- iosType: 'vector',
50
- },
51
- lineOffset: {
52
- iosType: 'vector',
53
- },
54
-
55
- // translates
56
- fillTranslate: {
57
- iosType: 'vector',
58
- },
59
- lineTranslate: {
60
- iosType: 'vector',
61
- },
62
- iconTranslate: {
63
- iosType: 'vector',
64
- },
65
- textTranslate: {
66
- iosType: 'vector',
67
- },
68
- circleTranslate: {
69
- iosType: 'vector',
70
- },
71
- fillExtrusionTranslate: {
72
- iosType: 'vector',
73
- },
74
- };
75
-
76
- export function getStyleType(styleProp: keyof typeof styleExtras) {
77
- if (!isAndroid() && styleExtras[styleProp]) {
78
- return styleExtras[styleProp].iosType;
79
- }
80
-
81
- if (styleMap[styleProp]) {
82
- return styleMap[styleProp];
83
- }
84
-
85
- throw new Error(`${styleProp} is not a valid Mapbox layer style`);
86
- }
@@ -1,86 +0,0 @@
1
- <%
2
- const layers = locals.layers;
3
- const helpers = locals.helpers;
4
- -%>
5
- /* eslint-disable */
6
- // DO NOT MODIFY
7
- // THIS FILE IS AUTOGENERATED
8
-
9
- import { isAndroid } from './index';
10
-
11
- export const StyleTypes = {
12
- Constant: 'constant',
13
- Color: 'color',
14
- Transition: 'transition',
15
- Translation: 'translation',
16
- Function: 'function',
17
- Image: 'image',
18
- Enum: 'enum',
19
- };
20
-
21
- export function getStyleType(styleProp: keyof typeof styleExtras): string {
22
- if (!isAndroid() && styleExtras[styleProp]) {
23
- return styleExtras[styleProp].iosType;
24
- }
25
-
26
- if (styleMap[styleProp]) {
27
- return styleMap[styleProp];
28
- }
29
-
30
- throw new Error(`${styleProp} is not a valid MapLibre layer style`);
31
- }
32
-
33
- const styleMap = {
34
- <%_ for (let layer of layers) { _%>
35
- <%_ for (let prop of layer.properties) { _%>
36
- <%_ if (prop.name !== 'visibility') { _%>
37
- <%= prop.name %>: <%- helpers.jsStyleType(prop) %>,
38
- <%_ if (prop.transition) { _%>
39
- <%= prop.name %>Transition: StyleTypes.Transition,
40
- <%_ } _%>
41
- <%_ } _%>
42
- <%_ } _%>
43
-
44
- <%_ } _%>
45
- visibility: StyleTypes.Constant,
46
- };
47
-
48
- export const styleExtras = {
49
- // padding
50
- iconTextFitPadding: {
51
- iosType: 'edgeinsets',
52
- },
53
-
54
- // offsets
55
- iconOffset: {
56
- iosType: 'vector',
57
- },
58
- textOffset: {
59
- iosType: 'vector',
60
- },
61
- lineOffset: {
62
- iosType: 'vector',
63
- },
64
-
65
- // translates
66
- fillTranslate: {
67
- iosType: 'vector',
68
- },
69
- lineTranslate: {
70
- iosType: 'vector',
71
- },
72
- iconTranslate: {
73
- iosType: 'vector',
74
- },
75
- textTranslate: {
76
- iosType: 'vector',
77
- },
78
- circleTranslate: {
79
- iosType: 'vector',
80
- },
81
- fillExtrusionTranslate: {
82
- iosType: 'vector',
83
- },
84
- };
85
-
86
- export default styleMap;