@maplibre/maplibre-react-native 10.0.0-alpha.27 → 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 (622) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +2 -2
  3. package/lib/commonjs/MLNModule.js +27 -0
  4. package/lib/commonjs/MLNModule.js.map +1 -0
  5. package/lib/commonjs/MapLibreRN.js +281 -0
  6. package/lib/commonjs/MapLibreRN.js.map +1 -0
  7. package/lib/commonjs/assets/png.d.js +2 -0
  8. package/lib/commonjs/assets/png.d.js.map +1 -0
  9. package/lib/commonjs/components/Annotation.js +109 -0
  10. package/lib/commonjs/components/Annotation.js.map +1 -0
  11. package/lib/commonjs/components/BackgroundLayer.js +33 -0
  12. package/lib/commonjs/components/BackgroundLayer.js.map +1 -0
  13. package/lib/commonjs/components/Callout.js +101 -0
  14. package/lib/commonjs/components/Callout.js.map +1 -0
  15. package/lib/commonjs/components/Camera.js +285 -0
  16. package/lib/commonjs/components/Camera.js.map +1 -0
  17. package/lib/commonjs/components/CircleLayer.js +37 -0
  18. package/lib/commonjs/components/CircleLayer.js.map +1 -0
  19. package/lib/commonjs/components/FillExtrusionLayer.js +36 -0
  20. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -0
  21. package/lib/commonjs/components/FillLayer.js +36 -0
  22. package/lib/commonjs/components/FillLayer.js.map +1 -0
  23. package/lib/commonjs/components/HeadingIndicator.js +28 -0
  24. package/lib/commonjs/components/HeadingIndicator.js.map +1 -0
  25. package/lib/commonjs/components/HeatmapLayer.js +35 -0
  26. package/lib/commonjs/components/HeatmapLayer.js.map +1 -0
  27. package/lib/commonjs/components/ImageSource.js +42 -0
  28. package/lib/commonjs/components/ImageSource.js.map +1 -0
  29. package/lib/commonjs/components/Images.js +80 -0
  30. package/lib/commonjs/components/Images.js.map +1 -0
  31. package/lib/commonjs/components/Light.js +32 -0
  32. package/lib/commonjs/components/Light.js.map +1 -0
  33. package/lib/commonjs/components/LineLayer.js +36 -0
  34. package/lib/commonjs/components/LineLayer.js.map +1 -0
  35. package/lib/commonjs/components/MapView.js +463 -0
  36. package/lib/commonjs/components/MapView.js.map +1 -0
  37. package/lib/commonjs/components/MarkerView.js +61 -0
  38. package/lib/commonjs/components/MarkerView.js.map +1 -0
  39. package/lib/commonjs/components/NativeUserLocation.js +17 -0
  40. package/lib/commonjs/components/NativeUserLocation.js.map +1 -0
  41. package/lib/commonjs/components/PointAnnotation.js +121 -0
  42. package/lib/commonjs/components/PointAnnotation.js.map +1 -0
  43. package/lib/commonjs/components/RasterLayer.js +32 -0
  44. package/lib/commonjs/components/RasterLayer.js.map +1 -0
  45. package/lib/commonjs/components/RasterSource.js +67 -0
  46. package/lib/commonjs/components/RasterSource.js.map +1 -0
  47. package/lib/commonjs/components/ShapeSource.js +203 -0
  48. package/lib/commonjs/components/ShapeSource.js.map +1 -0
  49. package/lib/commonjs/components/Style.js +266 -0
  50. package/lib/commonjs/components/Style.js.map +1 -0
  51. package/lib/commonjs/components/SymbolLayer.js +53 -0
  52. package/lib/commonjs/components/SymbolLayer.js.map +1 -0
  53. package/lib/commonjs/components/UserLocation.js +188 -0
  54. package/lib/commonjs/components/UserLocation.js.map +1 -0
  55. package/lib/commonjs/components/VectorSource.js +129 -0
  56. package/lib/commonjs/components/VectorSource.js.map +1 -0
  57. package/lib/commonjs/hooks/useAbstractLayer.js +53 -0
  58. package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -0
  59. package/lib/commonjs/hooks/useAbstractSource.js +24 -0
  60. package/lib/commonjs/hooks/useAbstractSource.js.map +1 -0
  61. package/lib/commonjs/hooks/useNativeBridge.js +84 -0
  62. package/lib/commonjs/hooks/useNativeBridge.js.map +1 -0
  63. package/lib/commonjs/hooks/useNativeRef.js +14 -0
  64. package/lib/commonjs/hooks/useNativeRef.js.map +1 -0
  65. package/lib/commonjs/hooks/useOnce.js +16 -0
  66. package/lib/commonjs/hooks/useOnce.js.map +1 -0
  67. package/lib/commonjs/index.js +23 -0
  68. package/lib/commonjs/index.js.map +1 -0
  69. package/lib/commonjs/modules/location/locationManager.js +91 -0
  70. package/lib/commonjs/modules/location/locationManager.js.map +1 -0
  71. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +37 -0
  72. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -0
  73. package/lib/commonjs/modules/offline/OfflinePack.js +40 -0
  74. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
  75. package/lib/commonjs/modules/offline/offlineManager.js +346 -0
  76. package/lib/commonjs/modules/offline/offlineManager.js.map +1 -0
  77. package/lib/commonjs/modules/snapshot/SnapshotOptions.js +58 -0
  78. package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -0
  79. package/lib/commonjs/modules/snapshot/snapshotManager.js +66 -0
  80. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -0
  81. package/lib/commonjs/requestAndroidLocationPermissions.js +25 -0
  82. package/lib/commonjs/requestAndroidLocationPermissions.js.map +1 -0
  83. package/lib/commonjs/types/BaseProps.js +2 -0
  84. package/lib/commonjs/types/BaseProps.js.map +1 -0
  85. package/lib/commonjs/types/CameraMode.js +14 -0
  86. package/lib/commonjs/types/CameraMode.js.map +1 -0
  87. package/lib/commonjs/types/MapLibreRNEvent.js +6 -0
  88. package/lib/commonjs/types/MapLibreRNEvent.js.map +1 -0
  89. package/lib/commonjs/types/OnPressEvent.js +2 -0
  90. package/lib/commonjs/types/OnPressEvent.js.map +1 -0
  91. package/lib/commonjs/types/StyleURL.js +11 -0
  92. package/lib/commonjs/types/StyleURL.js.map +1 -0
  93. package/lib/commonjs/utils/BridgeValue.js +59 -0
  94. package/lib/commonjs/utils/BridgeValue.js.map +1 -0
  95. package/lib/commonjs/utils/Logger.js +118 -0
  96. package/lib/commonjs/utils/Logger.js.map +1 -0
  97. package/lib/commonjs/utils/MapLibreRNStyles.d.js +181 -0
  98. package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +1 -0
  99. package/lib/commonjs/utils/StyleValue.js +39 -0
  100. package/lib/commonjs/utils/StyleValue.js.map +1 -0
  101. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +95 -0
  102. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
  103. package/lib/commonjs/utils/animated/Animated.js +47 -0
  104. package/lib/commonjs/utils/animated/Animated.js.map +1 -0
  105. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +92 -0
  106. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
  107. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +40 -0
  108. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
  109. package/lib/commonjs/utils/animated/AnimatedPoint.js +111 -0
  110. package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -0
  111. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +137 -0
  112. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
  113. package/lib/commonjs/utils/animated/AnimatedShape.js +75 -0
  114. package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -0
  115. package/lib/commonjs/utils/deprecation.js +31 -0
  116. package/lib/commonjs/utils/deprecation.js.map +1 -0
  117. package/lib/commonjs/utils/filterUtils.js +13 -0
  118. package/lib/commonjs/utils/filterUtils.js.map +1 -0
  119. package/lib/commonjs/utils/index.js +97 -0
  120. package/lib/commonjs/utils/index.js.map +1 -0
  121. package/lib/commonjs/utils/makeNativeBounds.js +11 -0
  122. package/lib/commonjs/utils/makeNativeBounds.js.map +1 -0
  123. package/lib/commonjs/utils/styleMap.js +255 -0
  124. package/lib/commonjs/utils/styleMap.js.map +1 -0
  125. package/lib/module/MLNModule.js +15 -0
  126. package/lib/module/MLNModule.js.map +1 -0
  127. package/lib/module/MapLibreRN.js +37 -0
  128. package/lib/module/MapLibreRN.js.map +1 -0
  129. package/lib/module/assets/heading.png +0 -0
  130. package/lib/module/assets/heading@2x.png +0 -0
  131. package/lib/module/assets/heading@3x.png +0 -0
  132. package/lib/module/assets/png.d.js +2 -0
  133. package/lib/module/assets/png.d.js.map +1 -0
  134. package/lib/module/components/Annotation.js +104 -0
  135. package/lib/module/components/Annotation.js.map +1 -0
  136. package/lib/module/components/BackgroundLayer.js +28 -0
  137. package/lib/module/components/BackgroundLayer.js.map +1 -0
  138. package/lib/module/components/Callout.js +97 -0
  139. package/lib/module/components/Callout.js.map +1 -0
  140. package/lib/module/components/Camera.js +280 -0
  141. package/lib/module/components/Camera.js.map +1 -0
  142. package/lib/module/components/CircleLayer.js +32 -0
  143. package/lib/module/components/CircleLayer.js.map +1 -0
  144. package/lib/module/components/FillExtrusionLayer.js +31 -0
  145. package/lib/module/components/FillExtrusionLayer.js.map +1 -0
  146. package/lib/module/components/FillLayer.js +31 -0
  147. package/lib/module/components/FillLayer.js.map +1 -0
  148. package/lib/module/components/HeadingIndicator.js +23 -0
  149. package/lib/module/components/HeadingIndicator.js.map +1 -0
  150. package/lib/module/components/HeatmapLayer.js +30 -0
  151. package/lib/module/components/HeatmapLayer.js.map +1 -0
  152. package/lib/module/components/ImageSource.js +37 -0
  153. package/lib/module/components/ImageSource.js.map +1 -0
  154. package/lib/module/components/Images.js +76 -0
  155. package/lib/module/components/Images.js.map +1 -0
  156. package/lib/module/components/Light.js +27 -0
  157. package/lib/module/components/Light.js.map +1 -0
  158. package/lib/module/components/LineLayer.js +31 -0
  159. package/lib/module/components/LineLayer.js.map +1 -0
  160. package/lib/module/components/MapView.js +458 -0
  161. package/lib/module/components/MapView.js.map +1 -0
  162. package/lib/module/components/MarkerView.js +56 -0
  163. package/lib/module/components/MarkerView.js.map +1 -0
  164. package/lib/module/components/NativeUserLocation.js +13 -0
  165. package/lib/module/components/NativeUserLocation.js.map +1 -0
  166. package/lib/module/components/PointAnnotation.js +116 -0
  167. package/lib/module/components/PointAnnotation.js.map +1 -0
  168. package/lib/module/components/RasterLayer.js +27 -0
  169. package/lib/module/components/RasterLayer.js.map +1 -0
  170. package/lib/module/components/RasterSource.js +62 -0
  171. package/lib/module/components/RasterSource.js.map +1 -0
  172. package/lib/module/components/ShapeSource.js +198 -0
  173. package/lib/module/components/ShapeSource.js.map +1 -0
  174. package/lib/module/components/Style.js +261 -0
  175. package/lib/module/components/Style.js.map +1 -0
  176. package/lib/module/components/SymbolLayer.js +48 -0
  177. package/lib/module/components/SymbolLayer.js.map +1 -0
  178. package/lib/module/components/UserLocation.js +182 -0
  179. package/lib/module/components/UserLocation.js.map +1 -0
  180. package/lib/module/components/VectorSource.js +124 -0
  181. package/lib/module/components/VectorSource.js.map +1 -0
  182. package/lib/module/hooks/useAbstractLayer.js +49 -0
  183. package/lib/module/hooks/useAbstractLayer.js.map +1 -0
  184. package/lib/module/hooks/useAbstractSource.js +20 -0
  185. package/lib/module/hooks/useAbstractSource.js.map +1 -0
  186. package/lib/module/hooks/useNativeBridge.js +80 -0
  187. package/lib/module/hooks/useNativeBridge.js.map +1 -0
  188. package/lib/module/hooks/useNativeRef.js +10 -0
  189. package/lib/module/hooks/useNativeRef.js.map +1 -0
  190. package/lib/module/hooks/useOnce.js +12 -0
  191. package/lib/module/hooks/useOnce.js.map +1 -0
  192. package/lib/module/index.js +6 -0
  193. package/lib/module/index.js.map +1 -0
  194. package/lib/module/modules/location/locationManager.js +87 -0
  195. package/lib/module/modules/location/locationManager.js.map +1 -0
  196. package/lib/module/modules/offline/OfflineCreatePackOptions.js +33 -0
  197. package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -0
  198. package/lib/module/modules/offline/OfflinePack.js +36 -0
  199. package/lib/module/modules/offline/OfflinePack.js.map +1 -0
  200. package/lib/module/modules/offline/offlineManager.js +341 -0
  201. package/lib/module/modules/offline/offlineManager.js.map +1 -0
  202. package/lib/module/modules/snapshot/SnapshotOptions.js +53 -0
  203. package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -0
  204. package/lib/module/modules/snapshot/snapshotManager.js +61 -0
  205. package/lib/module/modules/snapshot/snapshotManager.js.map +1 -0
  206. package/lib/module/requestAndroidLocationPermissions.js +21 -0
  207. package/lib/module/requestAndroidLocationPermissions.js.map +1 -0
  208. package/lib/module/types/BaseProps.js +2 -0
  209. package/lib/module/types/BaseProps.js.map +1 -0
  210. package/lib/module/types/CameraMode.js +10 -0
  211. package/lib/module/types/CameraMode.js.map +1 -0
  212. package/lib/module/types/MapLibreRNEvent.js +4 -0
  213. package/lib/module/types/MapLibreRNEvent.js.map +1 -0
  214. package/lib/module/types/OnPressEvent.js +2 -0
  215. package/lib/module/types/OnPressEvent.js.map +1 -0
  216. package/lib/module/types/StyleURL.js +7 -0
  217. package/lib/module/types/StyleURL.js.map +1 -0
  218. package/lib/module/utils/BridgeValue.js +54 -0
  219. package/lib/module/utils/BridgeValue.js.map +1 -0
  220. package/lib/module/utils/Logger.js +114 -0
  221. package/lib/module/utils/Logger.js.map +1 -0
  222. package/lib/module/utils/MapLibreRNStyles.d.js +180 -0
  223. package/lib/module/utils/MapLibreRNStyles.d.js.map +1 -0
  224. package/lib/module/utils/StyleValue.js +34 -0
  225. package/lib/module/utils/StyleValue.js.map +1 -0
  226. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +92 -0
  227. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
  228. package/lib/module/utils/animated/Animated.js +42 -0
  229. package/lib/module/utils/animated/Animated.js.map +1 -0
  230. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +87 -0
  231. package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
  232. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +36 -0
  233. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
  234. package/lib/module/utils/animated/AnimatedPoint.js +107 -0
  235. package/lib/module/utils/animated/AnimatedPoint.js.map +1 -0
  236. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +131 -0
  237. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
  238. package/lib/module/utils/animated/AnimatedShape.js +71 -0
  239. package/lib/module/utils/animated/AnimatedShape.js.map +1 -0
  240. package/lib/module/utils/deprecation.js +27 -0
  241. package/lib/module/utils/deprecation.js.map +1 -0
  242. package/lib/module/utils/filterUtils.js +9 -0
  243. package/lib/module/utils/filterUtils.js.map +1 -0
  244. package/lib/module/utils/index.js +81 -0
  245. package/lib/module/utils/index.js.map +1 -0
  246. package/lib/module/utils/makeNativeBounds.js +7 -0
  247. package/lib/module/utils/makeNativeBounds.js.map +1 -0
  248. package/lib/module/utils/styleMap.js +249 -0
  249. package/lib/module/utils/styleMap.js.map +1 -0
  250. package/lib/typescript/commonjs/package.json +1 -0
  251. package/lib/typescript/commonjs/src/MLNModule.d.ts +21 -0
  252. package/lib/typescript/commonjs/src/MLNModule.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/src/MapLibreRN.d.ts +42 -0
  254. package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/components/Annotation.d.ts +21 -0
  256. package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +14 -0
  258. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/src/components/Callout.d.ts +35 -0
  260. package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/src/components/Camera.d.ts +134 -0
  262. package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +17 -0
  264. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +17 -0
  266. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/components/FillLayer.d.ts +17 -0
  268. package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +8 -0
  270. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +17 -0
  272. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/src/components/ImageSource.d.ts +31 -0
  274. package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/src/components/Images.d.ts +33 -0
  276. package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/src/components/Light.d.ts +17 -0
  278. package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/src/components/LineLayer.d.ts +17 -0
  280. package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/src/components/MapView.d.ts +235 -0
  282. package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/src/components/MarkerView.d.ts +44 -0
  284. package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +26 -0
  286. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +91 -0
  288. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +14 -0
  290. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/src/components/RasterSource.d.ts +53 -0
  292. package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +124 -0
  294. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/src/components/Style.d.ts +81 -0
  296. package/lib/typescript/commonjs/src/components/Style.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +22 -0
  298. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/src/components/UserLocation.d.ts +70 -0
  300. package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/src/components/VectorSource.d.ts +70 -0
  302. package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +62 -0
  304. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +7 -0
  306. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +21 -0
  308. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +8 -0
  310. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +3 -0
  312. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/src/index.d.ts +4 -0
  314. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +64 -0
  316. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +21 -0
  318. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +24 -0
  320. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts +210 -0
  322. package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +42 -0
  324. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
  325. package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts +52 -0
  326. package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
  327. package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts +2 -0
  328. package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/src/types/BaseProps.d.ts +4 -0
  330. package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/src/types/CameraMode.d.ts +7 -0
  332. package/lib/typescript/commonjs/src/types/CameraMode.d.ts.map +1 -0
  333. package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts +6 -0
  334. package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts.map +1 -0
  335. package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts +12 -0
  336. package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts.map +1 -0
  337. package/lib/typescript/commonjs/src/types/StyleURL.d.ts +4 -0
  338. package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +1 -0
  339. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +29 -0
  340. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -0
  341. package/lib/typescript/commonjs/src/utils/Logger.d.ts +52 -0
  342. package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -0
  343. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +10 -0
  344. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -0
  345. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +36 -0
  346. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  347. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +33 -0
  348. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -0
  349. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
  350. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  351. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +11 -0
  352. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  353. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +31 -0
  354. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -0
  355. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +54 -0
  356. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  357. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +27 -0
  358. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -0
  359. package/lib/typescript/commonjs/src/utils/deprecation.d.ts +6 -0
  360. package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +1 -0
  361. package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +3 -0
  362. package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -0
  363. package/lib/typescript/commonjs/src/utils/index.d.ts +21 -0
  364. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -0
  365. package/lib/typescript/commonjs/src/utils/makeNativeBounds.d.ts +2 -0
  366. package/lib/typescript/commonjs/src/utils/makeNativeBounds.d.ts.map +1 -0
  367. package/lib/typescript/commonjs/src/utils/styleMap.d.ts +231 -0
  368. package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +1 -0
  369. package/lib/typescript/module/package.json +1 -0
  370. package/lib/typescript/module/src/MLNModule.d.ts +21 -0
  371. package/lib/typescript/module/src/MLNModule.d.ts.map +1 -0
  372. package/lib/typescript/module/src/MapLibreRN.d.ts +42 -0
  373. package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -0
  374. package/lib/typescript/module/src/components/Annotation.d.ts +21 -0
  375. package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -0
  376. package/lib/typescript/module/src/components/BackgroundLayer.d.ts +14 -0
  377. package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -0
  378. package/lib/typescript/module/src/components/Callout.d.ts +35 -0
  379. package/lib/typescript/module/src/components/Callout.d.ts.map +1 -0
  380. package/lib/typescript/module/src/components/Camera.d.ts +134 -0
  381. package/lib/typescript/module/src/components/Camera.d.ts.map +1 -0
  382. package/lib/typescript/module/src/components/CircleLayer.d.ts +17 -0
  383. package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -0
  384. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +17 -0
  385. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -0
  386. package/lib/typescript/module/src/components/FillLayer.d.ts +17 -0
  387. package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -0
  388. package/lib/typescript/module/src/components/HeadingIndicator.d.ts +8 -0
  389. package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -0
  390. package/lib/typescript/module/src/components/HeatmapLayer.d.ts +17 -0
  391. package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -0
  392. package/lib/typescript/module/src/components/ImageSource.d.ts +31 -0
  393. package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -0
  394. package/lib/typescript/module/src/components/Images.d.ts +33 -0
  395. package/lib/typescript/module/src/components/Images.d.ts.map +1 -0
  396. package/lib/typescript/module/src/components/Light.d.ts +17 -0
  397. package/lib/typescript/module/src/components/Light.d.ts.map +1 -0
  398. package/lib/typescript/module/src/components/LineLayer.d.ts +17 -0
  399. package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -0
  400. package/lib/typescript/module/src/components/MapView.d.ts +235 -0
  401. package/lib/typescript/module/src/components/MapView.d.ts.map +1 -0
  402. package/lib/typescript/module/src/components/MarkerView.d.ts +44 -0
  403. package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -0
  404. package/lib/typescript/module/src/components/NativeUserLocation.d.ts +26 -0
  405. package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -0
  406. package/lib/typescript/module/src/components/PointAnnotation.d.ts +91 -0
  407. package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -0
  408. package/lib/typescript/module/src/components/RasterLayer.d.ts +14 -0
  409. package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -0
  410. package/lib/typescript/module/src/components/RasterSource.d.ts +53 -0
  411. package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -0
  412. package/lib/typescript/module/src/components/ShapeSource.d.ts +124 -0
  413. package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -0
  414. package/lib/typescript/module/src/components/Style.d.ts +81 -0
  415. package/lib/typescript/module/src/components/Style.d.ts.map +1 -0
  416. package/lib/typescript/module/src/components/SymbolLayer.d.ts +22 -0
  417. package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -0
  418. package/lib/typescript/module/src/components/UserLocation.d.ts +70 -0
  419. package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -0
  420. package/lib/typescript/module/src/components/VectorSource.d.ts +70 -0
  421. package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -0
  422. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +62 -0
  423. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -0
  424. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +7 -0
  425. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -0
  426. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +21 -0
  427. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -0
  428. package/lib/typescript/module/src/hooks/useNativeRef.d.ts +8 -0
  429. package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -0
  430. package/lib/typescript/module/src/hooks/useOnce.d.ts +3 -0
  431. package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -0
  432. package/lib/typescript/module/src/index.d.ts +4 -0
  433. package/lib/typescript/module/src/index.d.ts.map +1 -0
  434. package/lib/typescript/module/src/modules/location/locationManager.d.ts +64 -0
  435. package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +1 -0
  436. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +21 -0
  437. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
  438. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +24 -0
  439. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -0
  440. package/lib/typescript/module/src/modules/offline/offlineManager.d.ts +210 -0
  441. package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +1 -0
  442. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +42 -0
  443. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
  444. package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts +52 -0
  445. package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
  446. package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts +2 -0
  447. package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts.map +1 -0
  448. package/lib/typescript/module/src/types/BaseProps.d.ts +4 -0
  449. package/lib/typescript/module/src/types/BaseProps.d.ts.map +1 -0
  450. package/lib/typescript/module/src/types/CameraMode.d.ts +7 -0
  451. package/lib/typescript/module/src/types/CameraMode.d.ts.map +1 -0
  452. package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts +6 -0
  453. package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts.map +1 -0
  454. package/lib/typescript/module/src/types/OnPressEvent.d.ts +12 -0
  455. package/lib/typescript/module/src/types/OnPressEvent.d.ts.map +1 -0
  456. package/lib/typescript/module/src/types/StyleURL.d.ts +4 -0
  457. package/lib/typescript/module/src/types/StyleURL.d.ts.map +1 -0
  458. package/lib/typescript/module/src/utils/BridgeValue.d.ts +29 -0
  459. package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -0
  460. package/lib/typescript/module/src/utils/Logger.d.ts +52 -0
  461. package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -0
  462. package/lib/typescript/module/src/utils/StyleValue.d.ts +10 -0
  463. package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -0
  464. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +36 -0
  465. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  466. package/lib/typescript/module/src/utils/animated/Animated.d.ts +33 -0
  467. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -0
  468. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
  469. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  470. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +11 -0
  471. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  472. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +31 -0
  473. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -0
  474. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +54 -0
  475. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  476. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +27 -0
  477. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -0
  478. package/lib/typescript/module/src/utils/deprecation.d.ts +6 -0
  479. package/lib/typescript/module/src/utils/deprecation.d.ts.map +1 -0
  480. package/lib/typescript/module/src/utils/filterUtils.d.ts +3 -0
  481. package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -0
  482. package/lib/typescript/module/src/utils/index.d.ts +21 -0
  483. package/lib/typescript/module/src/utils/index.d.ts.map +1 -0
  484. package/lib/typescript/module/src/utils/makeNativeBounds.d.ts +2 -0
  485. package/lib/typescript/module/src/utils/makeNativeBounds.d.ts.map +1 -0
  486. package/lib/typescript/module/src/utils/styleMap.d.ts +231 -0
  487. package/lib/typescript/module/src/utils/styleMap.d.ts.map +1 -0
  488. package/package.json +83 -6
  489. package/plugin/build/withMapLibre.d.ts +1 -1
  490. package/{javascript/Maplibre.ts → src/MapLibreRN.ts} +1 -1
  491. package/src/assets/heading.png +0 -0
  492. package/src/assets/heading@2x.png +0 -0
  493. package/src/assets/heading@3x.png +0 -0
  494. package/src/assets/png.d.ts +4 -0
  495. package/{javascript → src}/components/Annotation.tsx +8 -8
  496. package/{javascript → src}/components/BackgroundLayer.tsx +4 -4
  497. package/{javascript → src}/components/Callout.tsx +5 -5
  498. package/{javascript → src}/components/Camera.tsx +5 -5
  499. package/{javascript → src}/components/CircleLayer.tsx +4 -4
  500. package/{javascript → src}/components/FillExtrusionLayer.tsx +4 -4
  501. package/{javascript → src}/components/FillLayer.tsx +4 -4
  502. package/{javascript → src}/components/HeadingIndicator.tsx +3 -4
  503. package/{javascript → src}/components/HeatmapLayer.tsx +4 -4
  504. package/{javascript → src}/components/ImageSource.tsx +2 -2
  505. package/{javascript → src}/components/Images.tsx +7 -7
  506. package/{javascript → src}/components/Light.tsx +6 -4
  507. package/{javascript → src}/components/LineLayer.tsx +4 -4
  508. package/{javascript → src}/components/MapView.tsx +12 -11
  509. package/{javascript → src}/components/MarkerView.tsx +2 -2
  510. package/{javascript → src}/components/NativeUserLocation.tsx +1 -1
  511. package/{javascript → src}/components/PointAnnotation.tsx +5 -5
  512. package/{javascript → src}/components/RasterLayer.tsx +4 -4
  513. package/{javascript → src}/components/RasterSource.tsx +1 -1
  514. package/{javascript → src}/components/ShapeSource.tsx +13 -9
  515. package/{javascript → src}/components/Style.tsx +32 -29
  516. package/{javascript → src}/components/SymbolLayer.tsx +7 -7
  517. package/{javascript → src}/components/UserLocation.tsx +18 -8
  518. package/{javascript → src}/components/VectorSource.tsx +6 -6
  519. package/{javascript → src}/hooks/useAbstractLayer.ts +9 -9
  520. package/{javascript → src}/hooks/useAbstractSource.ts +2 -2
  521. package/{javascript → src}/hooks/useNativeBridge.ts +2 -2
  522. package/{javascript → src}/hooks/useNativeRef.ts +2 -2
  523. package/src/index.ts +4 -0
  524. package/{javascript → src}/modules/location/locationManager.ts +1 -1
  525. package/{javascript → src}/modules/offline/offlineManager.ts +18 -13
  526. package/{javascript → src}/modules/snapshot/snapshotManager.ts +1 -1
  527. package/{javascript → src}/requestAndroidLocationPermissions.ts +3 -3
  528. package/src/types/BaseProps.ts +3 -0
  529. package/src/types/MapLibreRNEvent.ts +7 -0
  530. package/{javascript → src}/types/OnPressEvent.ts +1 -3
  531. package/src/types/StyleURL.ts +3 -0
  532. package/{javascript → src}/utils/BridgeValue.ts +8 -8
  533. package/{javascript → src}/utils/Logger.ts +1 -1
  534. package/{javascript/utils/MaplibreStyles.d.ts → src/utils/MapLibreRNStyles.d.ts} +1 -1
  535. package/{javascript → src}/utils/StyleValue.ts +2 -2
  536. package/{javascript → src}/utils/animated/Animated.ts +2 -2
  537. package/{javascript → src}/utils/animated/AnimatedCoordinatesArray.ts +24 -19
  538. package/{javascript → src}/utils/animated/AnimatedPoint.ts +4 -4
  539. package/{javascript → src}/utils/animated/AnimatedRouteCoordinatesArray.ts +14 -9
  540. package/{javascript → src}/utils/filterUtils.ts +1 -1
  541. package/{javascript → src}/utils/index.ts +5 -5
  542. package/.eslintrc.js +0 -5
  543. package/.git-blame-ignore-revs +0 -3
  544. package/.gitattributes +0 -1
  545. package/.nvmrc +0 -1
  546. package/.sonarcloud.properties +0 -15
  547. package/CODE_OF_CONDUCT.md +0 -2
  548. package/CONTRIBUTING.md +0 -61
  549. package/RELEASE.md +0 -30
  550. package/assets/indoor_building_map_android.png +0 -0
  551. package/assets/indoor_building_map_ios.png +0 -0
  552. package/babel.config.js +0 -12
  553. package/docs/Annotation.md +0 -29
  554. package/docs/Annotations.md +0 -12
  555. package/docs/BackgroundLayer.md +0 -166
  556. package/docs/Callout.md +0 -16
  557. package/docs/Camera.md +0 -132
  558. package/docs/CircleLayer.md +0 -487
  559. package/docs/CustomHttpHeaders.md +0 -87
  560. package/docs/FillExtrusionLayer.md +0 -349
  561. package/docs/FillLayer.md +0 -317
  562. package/docs/GettingStarted.md +0 -113
  563. package/docs/HeadingIndicator.md +0 -11
  564. package/docs/HeatmapLayer.md +0 -214
  565. package/docs/ImageSource.md +0 -14
  566. package/docs/Images.md +0 -15
  567. package/docs/Light.md +0 -167
  568. package/docs/LineLayer.md +0 -603
  569. package/docs/Logger.md +0 -23
  570. package/docs/MapLibreGL.md +0 -65
  571. package/docs/MapView.md +0 -178
  572. package/docs/MarkerView.md +0 -17
  573. package/docs/NativeUserLocation.md +0 -13
  574. package/docs/PointAnnotation.md +0 -28
  575. package/docs/RasterLayer.md +0 -357
  576. package/docs/RasterSource.md +0 -19
  577. package/docs/ShapeSource.md +0 -104
  578. package/docs/Style.md +0 -11
  579. package/docs/StyleSheet.md +0 -451
  580. package/docs/SymbolLayer.md +0 -1752
  581. package/docs/UserLocation.md +0 -43
  582. package/docs/VectorSource.md +0 -50
  583. package/docs/coordinates.md +0 -7
  584. package/docs/docs.json +0 -5390
  585. package/docs/location.md +0 -7
  586. package/docs/offlineManager.md +0 -231
  587. package/docs/snapshotManager.md +0 -54
  588. package/javascript/index.ts +0 -4
  589. package/javascript/types/BaseProps.ts +0 -5
  590. package/javascript/types/index.ts +0 -11
  591. package/jest-setup.ts +0 -113
  592. package/jest.config.js +0 -8
  593. package/plugin/install.md +0 -25
  594. package/scripts/.eslintrc.js +0 -3
  595. package/scripts/codegen.ts +0 -344
  596. package/scripts/templates/MaplibreStyles.ts.ejs +0 -102
  597. package/scripts/templates/RCTMLNStyle.h.ejs +0 -34
  598. package/scripts/templates/RCTMLNStyle.m.ejs +0 -98
  599. package/scripts/templates/RCTMLNStyleFactory.java.ejs +0 -108
  600. package/scripts/templates/component.md.ejs +0 -125
  601. package/scripts/templates/styleMap.ts.ejs +0 -86
  602. package/scripts/utils/DocJSONBuilder.ts +0 -463
  603. package/scripts/utils/JSDocNodeTree.ts +0 -135
  604. package/scripts/utils/MarkdownBuilder.ts +0 -44
  605. package/scripts/utils/TemplateHelpers.ts +0 -505
  606. package/scripts/utils/getNativeVersion.ts +0 -53
  607. package/tsconfig.json +0 -22
  608. /package/{assets → lib/commonjs/assets}/heading.png +0 -0
  609. /package/{assets → lib/commonjs/assets}/heading@2x.png +0 -0
  610. /package/{assets → lib/commonjs/assets}/heading@3x.png +0 -0
  611. /package/{javascript → src}/MLNModule.ts +0 -0
  612. /package/{javascript → src}/hooks/useOnce.ts +0 -0
  613. /package/{javascript → src}/modules/offline/OfflineCreatePackOptions.ts +0 -0
  614. /package/{javascript → src}/modules/offline/OfflinePack.ts +0 -0
  615. /package/{javascript → src}/modules/snapshot/SnapshotOptions.ts +0 -0
  616. /package/{javascript → src}/types/CameraMode.ts +0 -0
  617. /package/{javascript → src}/utils/animated/AbstractAnimatedCoordinates.ts +0 -0
  618. /package/{javascript → src}/utils/animated/AnimatedExtractCoordinateFromArray.ts +0 -0
  619. /package/{javascript → src}/utils/animated/AnimatedShape.ts +0 -0
  620. /package/{javascript → src}/utils/deprecation.ts +0 -0
  621. /package/{javascript → src}/utils/makeNativeBounds.ts +0 -0
  622. /package/{javascript → src}/utils/styleMap.ts +0 -0
@@ -1,4 +1,4 @@
1
- interface OnPressEvent {
1
+ export interface OnPressEvent {
2
2
  features: GeoJSON.Feature[];
3
3
  coordinates: {
4
4
  latitude: number;
@@ -9,5 +9,3 @@ interface OnPressEvent {
9
9
  y: number;
10
10
  };
11
11
  }
12
-
13
- export default OnPressEvent;
@@ -0,0 +1,3 @@
1
+ export enum StyleURL {
2
+ Default = "https://demotiles.maplibre.org/style.json",
3
+ }
@@ -60,15 +60,15 @@ export default class BridgeValue {
60
60
  value.push(bridgeValue.toJSON());
61
61
  }
62
62
  } else if (type === "hashmap") {
63
- value = [];
64
63
  const rawValue = this.rawValue as { [key: string]: RawValueType };
65
- const stringKeys = Object.keys(this.rawValue);
66
- for (const stringKey of stringKeys) {
67
- value.push([
68
- new BridgeValue(stringKey).toJSON(),
69
- new BridgeValue(rawValue[stringKey]).toJSON(),
70
- ] as [StyleValueJSON, StyleValueJSON]);
71
- }
64
+
65
+ value = Object.entries(rawValue).map(
66
+ ([key, value]) =>
67
+ [new BridgeValue(key).toJSON(), new BridgeValue(value).toJSON()] as [
68
+ StyleValueJSON,
69
+ StyleValueJSON,
70
+ ],
71
+ );
72
72
  } else if (type === "boolean" || type === "number" || type === "string") {
73
73
  value = this.rawValue;
74
74
  } else {
@@ -1,5 +1,5 @@
1
1
  import {
2
- EmitterSubscription,
2
+ type EmitterSubscription,
3
3
  NativeEventEmitter,
4
4
  NativeModules,
5
5
  } from "react-native";
@@ -1,5 +1,5 @@
1
1
  // DO NOT MODIFY
2
- // This file is auto-generated from scripts/templates/MaplibreStyles.ts.ejs
2
+ // This file is auto-generated from scripts/templates/MapLibreRNStyles.ts.ejs
3
3
 
4
4
  import { type ImageSourcePropType } from "react-native";
5
5
 
@@ -4,7 +4,7 @@ import BridgeValue, {
4
4
  type RawValueType,
5
5
  type StyleValueJSON,
6
6
  } from "./BridgeValue";
7
- import { AllLayerStyleProps } from "./MaplibreStyles";
7
+ import { type AllLayerStyleProps } from "./MapLibreRNStyles";
8
8
  import { getStyleType } from "./styleMap";
9
9
 
10
10
  export type StyleValue = {
@@ -16,7 +16,7 @@ export function transformStyle(
16
16
  style: AllLayerStyleProps | undefined,
17
17
  ): undefined | { [key: string]: StyleValue } {
18
18
  if (!style) {
19
- return;
19
+ return undefined;
20
20
  }
21
21
 
22
22
  const nativeStyle: { [key: string]: StyleValue } = {};
@@ -13,8 +13,8 @@ import ImageSource from "../../components/ImageSource";
13
13
  import LineLayer from "../../components/LineLayer";
14
14
  import RasterLayer from "../../components/RasterLayer";
15
15
  import ShapeSource, {
16
- ShapeSourceProps,
17
- ShapeSourceRef,
16
+ type ShapeSourceProps,
17
+ type ShapeSourceRef,
18
18
  } from "../../components/ShapeSource";
19
19
  import SymbolLayer from "../../components/SymbolLayer";
20
20
 
@@ -1,5 +1,5 @@
1
1
  import AbstractAnimatedCoordinates, {
2
- AnimatedCoordinates,
2
+ type AnimatedCoordinates,
3
3
  } from "./AbstractAnimatedCoordinates";
4
4
 
5
5
  interface CoordinatesState {
@@ -16,7 +16,10 @@ class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesSt
16
16
  */
17
17
  onInitialState(coordinatesArray: AnimatedCoordinates[]): CoordinatesState {
18
18
  return {
19
- coords: coordinatesArray.map((coord) => [coord[0], coord[1]]),
19
+ coords: coordinatesArray.map((coordinates) => [
20
+ coordinates[0],
21
+ coordinates[1],
22
+ ]),
20
23
  targetCoords: [],
21
24
  };
22
25
  }
@@ -48,37 +51,39 @@ class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesSt
48
51
  const commonLen = Math.min(coords.length, targetCoords.length);
49
52
  const common = coords
50
53
  .slice(0, commonLen)
51
- .map((origCoord, i): [number, number] => [
52
- origCoord[0] * origF + targetCoords[i][0] * newF,
53
- origCoord[1] * origF + targetCoords[i][1] * newF,
54
+ .map((originalCoordinates, i): [number, number] => [
55
+ originalCoordinates[0] * origF + (targetCoords[i]?.[0] ?? 0) * newF,
56
+ originalCoordinates[1] * origF + (targetCoords[i]?.[1] ?? 0) * newF,
54
57
  ]);
55
58
 
56
59
  if (targetCoords.length > coords.length) {
57
60
  // only in new (adding)
58
- const addingOrig =
61
+ const addingOriginal =
59
62
  coords.length > 0 ? coords[coords.length - 1] : targetCoords[0];
63
+
60
64
  const adding = targetCoords
61
65
  .slice(commonLen, targetCoords.length)
62
- .map((newCoord): [number, number] => [
63
- addingOrig[0] * origF + newCoord[0] * newF,
64
- addingOrig[1] * origF + newCoord[1] * newF,
66
+ .map((newCoordinates): [number, number] => [
67
+ (addingOriginal?.[0] ?? 0) * origF + newCoordinates[0] * newF,
68
+ (addingOriginal?.[1] ?? 0) * origF + newCoordinates[1] * newF,
65
69
  ]);
70
+
66
71
  return { coords: [...common, ...adding], targetCoords };
67
72
  }
68
73
 
69
74
  if (coords.length > targetCoords.length) {
70
- // only in orig (dissapearing)
71
- const dissapearingNew =
75
+ // only in orig (disappearing)
76
+ const disappearingNew =
72
77
  targetCoords.length > 0
73
78
  ? targetCoords[targetCoords.length - 1]
74
79
  : coords[0];
75
- const dissapearing = coords
80
+ const disappearing = coords
76
81
  .slice(commonLen, coords.length)
77
- .map((origCoord): [number, number] => [
78
- origCoord[0] * origF + dissapearingNew[0] * newF,
79
- origCoord[1] * origF + dissapearingNew[1] * newF,
82
+ .map((originalCoordinates): [number, number] => [
83
+ originalCoordinates[0] * origF + (disappearingNew?.[0] ?? 0) * newF,
84
+ originalCoordinates[1] * origF + (disappearingNew?.[1] ?? 0) * newF,
80
85
  ]);
81
- return { coords: [...common, ...dissapearing], targetCoords };
86
+ return { coords: [...common, ...disappearing], targetCoords };
82
87
  }
83
88
 
84
89
  return { coords: common, targetCoords };
@@ -87,8 +92,8 @@ class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesSt
87
92
  /**
88
93
  * Subclasses can override to start a new animation
89
94
  *
90
- * @param {*} toValue - to value from animate
91
- * @param {*} actCoords - the current coordinates array to start from
95
+ * @param {*} state - to value from animate
96
+ * @param {*} toValue - the current coordinates array to start from
92
97
  * @returns {object} The state
93
98
  */
94
99
  onStart(
@@ -96,7 +101,7 @@ class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesSt
96
101
  toValue: AnimatedCoordinates[],
97
102
  ): CoordinatesState {
98
103
  const targetCoords = toValue.map(
99
- (coord): AnimatedCoordinates => [coord[0], coord[1]],
104
+ (coordinates): AnimatedCoordinates => [coordinates[0], coordinates[1]],
100
105
  );
101
106
  return {
102
107
  ...state,
@@ -83,12 +83,12 @@ export class AnimatedPoint extends AnimatedWithChildren {
83
83
  return Animated.parallel([
84
84
  Animated.spring(this.longitude, {
85
85
  ...config,
86
- toValue: config.coordinates[0],
86
+ toValue: config.coordinates[0]!,
87
87
  useNativeDriver: false,
88
88
  }),
89
89
  Animated.spring(this.latitude, {
90
90
  ...config,
91
- toValue: config.coordinates[1],
91
+ toValue: config.coordinates[1]!,
92
92
  useNativeDriver: false,
93
93
  }),
94
94
  ]);
@@ -102,12 +102,12 @@ export class AnimatedPoint extends AnimatedWithChildren {
102
102
  return Animated.parallel([
103
103
  Animated.timing(this.longitude, {
104
104
  ...config,
105
- toValue: config.coordinates[0],
105
+ toValue: config.coordinates[0]!,
106
106
  useNativeDriver: false,
107
107
  }),
108
108
  Animated.timing(this.latitude, {
109
109
  ...config,
110
- toValue: config.coordinates[1],
110
+ toValue: config.coordinates[1]!,
111
111
  useNativeDriver: false,
112
112
  }),
113
113
  ]);
@@ -1,10 +1,16 @@
1
1
  import distance from "@turf/distance";
2
- import { lineString, point, convertLength, Coord, Units } from "@turf/helpers";
2
+ import {
3
+ lineString,
4
+ point,
5
+ convertLength,
6
+ type Coord,
7
+ type Units,
8
+ } from "@turf/helpers";
3
9
  import length from "@turf/length";
4
10
  import nearestPointOnLine from "@turf/nearest-point-on-line";
5
11
 
6
12
  import AbstractAnimatedCoordinates, {
7
- AnimatedCoordinates,
13
+ type AnimatedCoordinates,
8
14
  } from "./AbstractAnimatedCoordinates";
9
15
 
10
16
  interface AnimatedRouteState {
@@ -63,11 +69,10 @@ export default class AnimatedRouteCoordinatesArray extends AbstractAnimatedCoord
63
69
  let i = fullRoute.length - 1;
64
70
  while (actsum < currentEnd && i > 0) {
65
71
  prevsum = actsum;
66
- actsum += distance(
67
- point(fullRoute[i]),
68
- point(fullRoute[i - 1]),
69
- this.distconf,
70
- );
72
+ const start = fullRoute[i];
73
+ const end = fullRoute[i - 1];
74
+ actsum +=
75
+ start && end ? distance(point(start), point(end), this.distconf) : 0;
71
76
  i -= 1;
72
77
  }
73
78
  if (actsum <= currentEnd) {
@@ -80,8 +85,8 @@ export default class AnimatedRouteCoordinatesArray extends AbstractAnimatedCoord
80
85
  const actRoute = [
81
86
  ...fullRoute.slice(0, i + 1),
82
87
  [
83
- fullRoute[i][0] * r + fullRoute[i + 1][0] * or,
84
- fullRoute[i][1] * r + fullRoute[i + 1][1] * or,
88
+ (fullRoute[i]?.[0] ?? 0) * r + (fullRoute[i + 1]?.[0] ?? 0) * or,
89
+ (fullRoute[i]?.[1] ?? 0) * r + (fullRoute[i + 1]?.[1] ?? 0) * or,
85
90
  ] as AnimatedCoordinates,
86
91
  ];
87
92
  return { fullRoute, end: { ...end, current: currentEnd }, actRoute };
@@ -1,4 +1,4 @@
1
- import { FilterExpression } from "./MaplibreStyles";
1
+ import { type FilterExpression } from "./MapLibreRNStyles";
2
2
 
3
3
  export function getFilter(filter: FilterExpression | undefined): string[] {
4
4
  if (!Array.isArray(filter) || filter.length === 0) {
@@ -1,10 +1,10 @@
1
- import React, { Component, ReactElement } from "react";
1
+ import { Children, cloneElement, Component, type ReactElement } from "react";
2
2
  import {
3
3
  Image,
4
4
  NativeModules,
5
5
  findNodeHandle,
6
6
  Platform,
7
- ImageSourcePropType,
7
+ type ImageSourcePropType,
8
8
  UIManager,
9
9
  } from "react-native";
10
10
 
@@ -95,7 +95,7 @@ export function runNativeCommand<ReturnType = NativeArg>(
95
95
  }
96
96
 
97
97
  export function cloneReactChildrenWithProps(
98
- children: Parameters<typeof React.Children.map>[0],
98
+ children: Parameters<typeof Children.map>[0],
99
99
  propsToAdd: { [key: string]: string } = {},
100
100
  ): ReactElement[] | undefined {
101
101
  if (!children) {
@@ -111,8 +111,8 @@ export function cloneReactChildrenWithProps(
111
111
  }
112
112
 
113
113
  const filteredChildren = foundChildren.filter((child) => !!child); // filter out falsy children, since some can be null
114
- return React.Children.map(filteredChildren, (child) =>
115
- React.cloneElement(child, propsToAdd),
114
+ return Children.map(filteredChildren, (child) =>
115
+ cloneElement(child, propsToAdd),
116
116
  );
117
117
  }
118
118
 
package/.eslintrc.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ["universe/native"],
4
- ignorePatterns: ["build"],
5
- };
@@ -1,3 +0,0 @@
1
- # style: apply formatting via lint:fix
2
- # https://github.com/maplibre/maplibre-react-native/pull/467
3
- 017b3861ae8ac856a3b032ebea6497eff4420e1f
package/.gitattributes DELETED
@@ -1 +0,0 @@
1
- *.pbxproj -text
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v18.12.1
@@ -1,15 +0,0 @@
1
- # Path to sources
2
- sonar.sources=javascript,android/src,ios/RCTMLN
3
- #sonar.exclusions=
4
- #sonar.inclusions=
5
-
6
- # Path to tests
7
- sonar.tests=__tests__
8
- #sonar.test.exclusions=
9
- #sonar.test.inclusions=
10
-
11
- # Source encoding
12
- #sonar.sourceEncoding=UTF-8
13
-
14
- # Exclusions for copy-paste detection
15
- #sonar.cpd.exclusions=
@@ -1,2 +0,0 @@
1
- # Contributor Covenant
2
- [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](https://github.com/maplibre/maplibre/blob/main/CODE_OF_CONDUCT.md)
package/CONTRIBUTING.md DELETED
@@ -1,61 +0,0 @@
1
- # Contributing
2
-
3
- PRs are most welcome! This doc covers some basic things you'll need to know to set up
4
- your dev environment and streamline the review process.
5
-
6
- ## Environment Setup
7
-
8
- This project includes `.nvmrc`. You should use nvm so that you're always developing for the correct
9
- version of Node.
10
-
11
- This project uses `yarn` as a package manager.
12
-
13
- > [!CAUTION]
14
- > DO NOT install `yarn` using `npm` as that will install the outdated 1.x branch. Full instructions are in
15
- > the [yarn docs](https://yarnpkg.com/getting-started/install), but here's the quick checklist at the time of this
16
- > writing.
17
-
18
- Make sure to correctly configure your Editor following [this docs](https://yarnpkg.com/getting-started/editor-sdks).
19
-
20
- 1. `corepack enable`
21
- 2. `corepack prepare yarn@stable --activate`
22
- 3. On first install, the above may change your yarn config away from `pnp`; check your git working copy for changes and
23
- revert if necessary.
24
- 4. `yarn install`
25
-
26
- ## Testing
27
-
28
- The metro bundlers under [`/packages/react-native-app`](/packages/react-native-app) and [
29
- `/packages/expo-app`](/packages/expo-app) is set up to use the libraries files under root.
30
- Which means, when you change something within [
31
- `/javascript/components/UserLocation.tsx`](/javascript/components/UserLocation.tsx)
32
- it will be reflected in any scene in example that uses that component.
33
-
34
- TODO: A better overview of how we use jest, detox, etc. (issue #22)
35
-
36
- ## Optional: Local development with `yalc`
37
-
38
- It is often desirable to test in the context of an external project (for example,
39
- if you have a complex application using a map and want to test your changes directly).
40
- While it's not easy to do this out of the box with `yarn` or `npm`.
41
- [`yalc`](https://www.viget.com/articles/how-to-use-local-unpublished-node-packages-as-project-dependencies/)
42
- can mitigate some of the pain with this.
43
-
44
- ## Best practices for PRs
45
-
46
- - If you add a feature, make sure you add it to the documentation
47
- - If you add an objective-c or java method, make sure you update the declaration file: `index.d.ts`.
48
- - Make sure to use small concise commits
49
- - Use meaningful commit messages
50
- - Make sure to update/ add new tests for your changes
51
- - If you add a new feature, make sure to add a scene in [`/packages/examples`](/packages/examples) for others to
52
- see/test it
53
-
54
- ## Documentation
55
-
56
- Documentation is generated from code blocks and comments. It will be auto-generated when you commit changes. If any
57
- changes are generated from your edits, the changed files will need to be added using `git add` before attempting the
58
- commit again. To manually generate the changes, run `yarn codegen`.
59
-
60
- Notice, that changing the documentation in the individual <COMPONENT>.md within `/docs` will not suffice. The correct
61
- way is the above described
package/RELEASE.md DELETED
@@ -1,30 +0,0 @@
1
- # How to create a release for this repo
2
-
3
- ## Make sure `master` builds correctly
4
-
5
- Are all our [actions](https://github.com/maplibre/maplibre-react-native/actions) passing successfully?
6
- If not, make sure to investigate the issue and fix it prior to a release.
7
-
8
- ## Bump the version in our package.json
9
-
10
- Once you verified, that `master` isn't broken, go on and increase the `version` within our `package.json`.
11
-
12
- ## Update the CHANGELOG accordingly
13
-
14
- Our [`CHANGELOG.md`](https://github.com/maplibre/maplibre-react-native/blob/master/CHANGELOG.md) should be updated whenever a PR is merged/ noteworthy changes are committed to `master`.
15
- Prior to a release, the changes should be documented under the `UNRELEASED` section.
16
- Once it's clear, that a release is about to be published, move the items under `UNRELEASED` to _this_ releases sections.
17
- Let your actions be guided by the previous release entries.
18
-
19
- ## Draft a new release on Github
20
-
21
- Within the [releases](https://github.com/maplibre/maplibre-react-native/releases) section of the repo you can [`Draft a new release`](https://github.com/maplibre/maplibre-react-native/releases/new).
22
-
23
- `Tag version` & `Release title` should be the same.
24
- As redundant as it might sound, please add the changes from the `CHANGELOG.md` into the body of the release.
25
-
26
- ## Monitor the repos issues for updates
27
-
28
- Once the release is out the door (on [npm](https://www.npmjs.com/package/@maplibre/maplibre-react-native)),
29
- make sure to monitor the [issues](https://github.com/maplibre/maplibre-react-native/issues) closely for
30
- problems the community might encounter.
Binary file
package/babel.config.js DELETED
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- presets: ["module:@react-native/babel-preset"],
3
- plugins: [
4
- ["@babel/plugin-proposal-class-properties", { loose: true }],
5
- ["@babel/plugin-transform-private-methods", { loose: true }],
6
- ],
7
- env: {
8
- production: {
9
- plugins: ["transform-remove-console"],
10
- },
11
- },
12
- };
@@ -1,29 +0,0 @@
1
- <!-- DO NOT MODIFY -->
2
- <!-- This file is auto-generated from javascript/components/Annotation.tsx -->
3
- # `<MapLibreGL.Annotation />`
4
-
5
-
6
- ## Props
7
- | Prop | Type | Default | Required | Description |
8
- | ---- | :--: | :-----: | :------: | :----------: |
9
- | id | `string` | `none` | `true` | FIX ME NO DESCRIPTION |
10
- | animated | `boolean` | `false` | `false` | FIX ME NO DESCRIPTION |
11
- | animationDuration | `number` | `1000` | `false` | FIX ME NO DESCRIPTION |
12
- | coordinates | `Array` | `none` | `false` | FIX ME NO DESCRIPTION |
13
- | children | `ReactElement \| ReactElement[]` | `none` | `false` | FIX ME NO DESCRIPTION |
14
- | style | `object` | `none` | `false` | FIX ME NO DESCRIPTION |
15
- | icon | `string \| number \| object` | `none` | `false` | FIX ME NO DESCRIPTION |
16
- | animationEasingFunction | `FIX ME UNKNOWN TYPE` | `Easing.linear` | `false` | FIX ME NO DESCRIPTION |
17
-
18
- ## Methods
19
- ### `onPress(event)`
20
-
21
-
22
-
23
- #### Arguments
24
- | Name | Type | Required | Description |
25
- | ---- | :--: | :------: | :----------: |
26
- | `event` | `OnPressEvent` | `Yes` | undefined |
27
-
28
-
29
-
@@ -1,12 +0,0 @@
1
- Comparsion of various annotations available in MapLibre React Native:
2
-
3
- |*Feature* | *SymbolLayer* |*PointAnnotation* |*MarkerView* |*CircleLayer* |
4
- |-----------------------|--------------------|--------------------------------------|-------------------------|---------------------|
5
- |Can use images | &check; | | | |
6
- |RN Views as childern | iOS: static |iOS: interactive <br/> android: static|interactive | |
7
- |Interactions | click |iOS: full <br/> android: click & drag & callout | supports full interactivity in the sense that inside MarkerViews one can place any RN View, which can be interacted with. Not to be misunderstood with drag n drop interactivity. | click |
8
- |Control Z-index | &check; |iOS: always on top, android: n/a |always on top | &check; |
9
- |Clustering | &check; | | | &check; |
10
- |Style with expressions | &check; | | | &check; |
11
- |iOS implementation | [MLNSymbolStyleLayer](https://maplibre.org/maplibre-gl-native/ios/api/Classes/MLNSymbolStyleLayer.html) |[MLNAnnotationView](https://maplibre.org/maplibre-gl-native/ios/api/Classes/MLNAnnotationView.html) |[MLNAnnotationView](https://maplibre.org/maplibre-gl-native/ios/api/Classes/MLNAnnotationView.html) |[MLNCircleStyleLayer](https://maplibre.org/maplibre-gl-native/ios/api/Classes/MLNCircleStyleLayer.html) |
12
- |android implementation | [SymbolLayer](https://maplibre.org/maplibre-gl-native/android/api/com/mapbox/mapboxsdk/style/layers/SymbolLayer.html)|[annotation.Symbol](https://docs.mapbox.com/android/api/plugins/annotation/0.8.0/com/mapbox/mapboxsdk/plugins/annotation/Symbol.html)|[annotation.Marker](https://docs.mapbox.com/android/api/plugins/markerview/0.4.0/com/mapbox/mapboxsdk/plugins/markerview/MarkerView.html) |[CircleLayer](https://maplibre.org/maplibre-gl-native/android/api/com/mapbox/mapboxsdk/style/layers/CircleLayer.html)|
@@ -1,166 +0,0 @@
1
- <!-- DO NOT MODIFY -->
2
- <!-- This file is auto-generated from javascript/components/BackgroundLayer.tsx -->
3
- # `<MapLibreGL.BackgroundLayer />`
4
-
5
-
6
- ## Props
7
- | Prop | Type | Default | Required | Description |
8
- | ---- | :--: | :-----: | :------: | :----------: |
9
- | style | `BackgroundLayerStyleProps` | `none` | `false` | Customizable style attributes |
10
- | sourceID | `FIX ME UNKNOWN TYPE` | `MapLibreGL.StyleSource.DefaultSourceID` | `false` | FIX ME NO DESCRIPTION |
11
-
12
-
13
- ## Styles
14
-
15
- * <a href="#name">`visibility`</a><br/>
16
- * <a href="#name-1">`backgroundColor`</a><br/>
17
- * <a href="#name-2">`backgroundPattern`</a><br/>
18
- * <a href="#name-3">`backgroundOpacity`</a><br/>
19
-
20
-
21
- ### `visibility`
22
-
23
- Whether this layer is displayed.
24
-
25
- <dl>
26
- <dt>Type</dt>
27
- <dd>
28
- <code>enum</code>
29
- </dd>
30
- <dt>Default Value</dt>
31
- <dd><code>visible</code></dd>
32
- <dt>Supported Values</dt>
33
- <dd>
34
- <ul>
35
- <li>
36
- <code>visible</code>: The layer is shown.
37
- </li>
38
- <li>
39
- <code>none</code>: The layer is not shown.
40
- </li>
41
- </ul>
42
- </dd>
43
- </dl>
44
-
45
-
46
-
47
- ### `backgroundColor`
48
-
49
- The color with which the background will be drawn.
50
-
51
- <dl>
52
- <dt>Type</dt>
53
- <dd>
54
- <code>color</code>
55
- </dd>
56
- <dt>Default Value</dt>
57
- <dd><code>#000000</code></dd>
58
- </ul>
59
- </dd>
60
- <dt>Disabled By</dt>
61
- <dd><code>backgroundPattern</code></dd>
62
- <dt>Expression Parameters</dt>
63
- <dd><code>zoom</code></dd>
64
- </dl>
65
-
66
- ### `backgroundColorTransition`
67
-
68
- The transition affecting any changes to this layer’s backgroundColor property.
69
-
70
- <dl>
71
- <dt>Type</dt>
72
- <dd>
73
- <code>{ duration, delay }</code>
74
- </dd>
75
-
76
- <dt>Units</dt>
77
- <dd>
78
- <code>milliseconds</code>
79
- </dd>
80
-
81
- <dt>Default Value</dt>
82
- <dd>
83
- <code>{duration: 300, delay: 0}</code>
84
- </dd>
85
- </dl>
86
-
87
-
88
- ### `backgroundPattern`
89
-
90
- Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
91
-
92
- <dl>
93
- <dt>Type</dt>
94
- <dd>
95
- <code>resolvedImage</code>
96
- </dd>
97
- </ul>
98
- </dd>
99
- <dt>Expression Parameters</dt>
100
- <dd><code>zoom</code></dd>
101
- </dl>
102
-
103
- ### `backgroundPatternTransition`
104
-
105
- The transition affecting any changes to this layer’s backgroundPattern 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
- ### `backgroundOpacity`
126
-
127
- The opacity at which the background will be drawn.
128
-
129
- <dl>
130
- <dt>Type</dt>
131
- <dd>
132
- <code>number</code>
133
- </dd>
134
- <dt>Default Value</dt>
135
- <dd><code>1</code></dd>
136
- </ul>
137
- </dd>
138
- <dt>Minimum</dt>
139
- <dd><code>0</code></dd>
140
- <dt>Maximum</dt>
141
- <dd><code>1</code></dd>
142
- <dt>Expression Parameters</dt>
143
- <dd><code>zoom</code></dd>
144
- </dl>
145
-
146
- ### `backgroundOpacityTransition`
147
-
148
- The transition affecting any changes to this layer’s backgroundOpacity property.
149
-
150
- <dl>
151
- <dt>Type</dt>
152
- <dd>
153
- <code>{ duration, delay }</code>
154
- </dd>
155
-
156
- <dt>Units</dt>
157
- <dd>
158
- <code>milliseconds</code>
159
- </dd>
160
-
161
- <dt>Default Value</dt>
162
- <dd>
163
- <code>{duration: 300, delay: 0}</code>
164
- </dd>
165
- </dl>
166
-