@rnmapbox/maps 10.0.0-beta.49 → 10.0.0-beta.54

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 (420) hide show
  1. package/android/.gitignore +9 -0
  2. package/android/.npmignore +9 -0
  3. package/android/rctmgl/.gitignore +1 -0
  4. package/android/rctmgl/.npmignore +1 -0
  5. package/android/rctmgl/src/main/java-mapboxgl/common/com/mapbox/rctmgl/modules/RCTMGLModule.java +2 -1
  6. package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLModule.kt +3 -1
  7. package/index.d.ts +28 -5
  8. package/ios/RCTMGL/MGLModule.m +2 -1
  9. package/ios/RCTMGL-v10/MGLModule.m +5 -1
  10. package/ios/RCTMGL-v10/MGLModule.swift +24 -3
  11. package/javascript/components/AbstractLayer.tsx +5 -4
  12. package/javascript/components/Camera.tsx +1 -2
  13. package/javascript/components/LineLayer.tsx +91 -0
  14. package/javascript/components/SymbolLayer.tsx +1 -1
  15. package/javascript/index.js +2 -2
  16. package/javascript/requestAndroidLocationPermissions.ts +1 -2
  17. package/javascript/utils/{MapboxStyles.ts → MapboxStyles.d.ts} +2 -0
  18. package/javascript/utils/StyleValue.ts +4 -9
  19. package/lib/commonjs/classes/AnimatedCoordinatesArray.js +165 -0
  20. package/lib/commonjs/classes/AnimatedCoordinatesArray.js.map +1 -0
  21. package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js +44 -0
  22. package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js.map +1 -0
  23. package/lib/commonjs/classes/AnimatedPoint.js +117 -0
  24. package/lib/commonjs/classes/AnimatedPoint.js.map +1 -0
  25. package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js +155 -0
  26. package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js.map +1 -0
  27. package/lib/commonjs/classes/AnimatedShape.js +78 -0
  28. package/lib/commonjs/classes/AnimatedShape.js.map +1 -0
  29. package/lib/commonjs/classes/index.d.js +17 -0
  30. package/lib/commonjs/classes/index.d.js.map +1 -0
  31. package/lib/commonjs/classes/index.js +61 -0
  32. package/lib/commonjs/classes/index.js.map +1 -0
  33. package/lib/commonjs/components/AbstractLayer.js +61 -0
  34. package/lib/commonjs/components/AbstractLayer.js.map +1 -0
  35. package/lib/commonjs/components/AbstractSource.js +26 -0
  36. package/lib/commonjs/components/AbstractSource.js.map +1 -0
  37. package/lib/commonjs/components/Atmosphere.js +26 -0
  38. package/lib/commonjs/components/Atmosphere.js.map +1 -0
  39. package/lib/commonjs/components/BackgroundLayer.js +82 -0
  40. package/lib/commonjs/components/BackgroundLayer.js.map +1 -0
  41. package/lib/commonjs/components/Callout.js +119 -0
  42. package/lib/commonjs/components/Callout.js.map +1 -0
  43. package/lib/commonjs/components/Camera.js +336 -0
  44. package/lib/commonjs/components/Camera.js.map +1 -0
  45. package/lib/commonjs/components/CircleLayer.js +87 -0
  46. package/lib/commonjs/components/CircleLayer.js.map +1 -0
  47. package/lib/commonjs/components/FillExtrusionLayer.js +89 -0
  48. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -0
  49. package/lib/commonjs/components/FillLayer.js +89 -0
  50. package/lib/commonjs/components/FillLayer.js.map +1 -0
  51. package/lib/commonjs/components/HeadingIndicator.js +33 -0
  52. package/lib/commonjs/components/HeadingIndicator.js.map +1 -0
  53. package/lib/commonjs/components/HeatmapLayer.js +90 -0
  54. package/lib/commonjs/components/HeatmapLayer.js.map +1 -0
  55. package/lib/commonjs/components/ImageSource.js +66 -0
  56. package/lib/commonjs/components/ImageSource.js.map +1 -0
  57. package/lib/commonjs/components/Images.js +98 -0
  58. package/lib/commonjs/components/Images.js.map +1 -0
  59. package/lib/commonjs/components/Light.js +51 -0
  60. package/lib/commonjs/components/Light.js.map +1 -0
  61. package/lib/commonjs/components/LineLayer.js +36 -0
  62. package/lib/commonjs/components/LineLayer.js.map +1 -0
  63. package/lib/commonjs/components/MapView.js +740 -0
  64. package/lib/commonjs/components/MapView.js.map +1 -0
  65. package/lib/commonjs/components/MarkerView.js +102 -0
  66. package/lib/commonjs/components/MarkerView.js.map +1 -0
  67. package/lib/commonjs/components/NativeBridgeComponent.js +85 -0
  68. package/lib/commonjs/components/NativeBridgeComponent.js.map +1 -0
  69. package/lib/commonjs/components/NativeUserLocation.js +41 -0
  70. package/lib/commonjs/components/NativeUserLocation.js.map +1 -0
  71. package/lib/commonjs/components/PointAnnotation.js +121 -0
  72. package/lib/commonjs/components/PointAnnotation.js.map +1 -0
  73. package/lib/commonjs/components/RasterDemSource.js +95 -0
  74. package/lib/commonjs/components/RasterDemSource.js.map +1 -0
  75. package/lib/commonjs/components/RasterLayer.js +85 -0
  76. package/lib/commonjs/components/RasterLayer.js.map +1 -0
  77. package/lib/commonjs/components/RasterSource.js +112 -0
  78. package/lib/commonjs/components/RasterSource.js.map +1 -0
  79. package/lib/commonjs/components/ShapeSource.js +193 -0
  80. package/lib/commonjs/components/ShapeSource.js.map +1 -0
  81. package/lib/commonjs/components/SkyLayer.js +73 -0
  82. package/lib/commonjs/components/SkyLayer.js.map +1 -0
  83. package/lib/commonjs/components/Style.js +269 -0
  84. package/lib/commonjs/components/Style.js.map +1 -0
  85. package/lib/commonjs/components/SymbolLayer.js +49 -0
  86. package/lib/commonjs/components/SymbolLayer.js.map +1 -0
  87. package/lib/commonjs/components/Terrain.js +37 -0
  88. package/lib/commonjs/components/Terrain.js.map +1 -0
  89. package/lib/commonjs/components/UserLocation.js +255 -0
  90. package/lib/commonjs/components/UserLocation.js.map +1 -0
  91. package/lib/commonjs/components/VectorSource.js +175 -0
  92. package/lib/commonjs/components/VectorSource.js.map +1 -0
  93. package/lib/commonjs/components/annotations/Annotation.js +105 -0
  94. package/lib/commonjs/components/annotations/Annotation.js.map +1 -0
  95. package/lib/commonjs/global.d.js +2 -0
  96. package/lib/commonjs/global.d.js.map +1 -0
  97. package/lib/commonjs/index.js +331 -0
  98. package/lib/commonjs/index.js.map +1 -0
  99. package/lib/commonjs/index.web.js +27 -0
  100. package/lib/commonjs/index.web.js.map +1 -0
  101. package/lib/commonjs/modules/location/locationManager.js +85 -0
  102. package/lib/commonjs/modules/location/locationManager.js.map +1 -0
  103. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +45 -0
  104. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -0
  105. package/lib/commonjs/modules/offline/OfflinePack.js +41 -0
  106. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
  107. package/lib/commonjs/modules/offline/offlineManager.js +356 -0
  108. package/lib/commonjs/modules/offline/offlineManager.js.map +1 -0
  109. package/lib/commonjs/modules/snapshot/SnapshotOptions.js +60 -0
  110. package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -0
  111. package/lib/commonjs/modules/snapshot/snapshotManager.js +68 -0
  112. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -0
  113. package/lib/commonjs/requestAndroidLocationPermissions.js +25 -0
  114. package/lib/commonjs/requestAndroidLocationPermissions.js.map +1 -0
  115. package/lib/commonjs/types/index.js +6 -0
  116. package/lib/commonjs/types/index.js.map +1 -0
  117. package/lib/commonjs/utils/BridgeValue.js +66 -0
  118. package/lib/commonjs/utils/BridgeValue.js.map +1 -0
  119. package/lib/commonjs/utils/Logger.js +119 -0
  120. package/lib/commonjs/utils/Logger.js.map +1 -0
  121. package/lib/commonjs/utils/MapboxStyles.d.js +183 -0
  122. package/lib/commonjs/utils/MapboxStyles.d.js.map +1 -0
  123. package/lib/commonjs/utils/StyleValue.js +41 -0
  124. package/lib/commonjs/utils/StyleValue.js.map +1 -0
  125. package/lib/commonjs/utils/animated/Animated.js +33 -0
  126. package/lib/commonjs/utils/animated/Animated.js.map +1 -0
  127. package/lib/commonjs/utils/deprecation.js +40 -0
  128. package/lib/commonjs/utils/deprecation.js.map +1 -0
  129. package/lib/commonjs/utils/filterUtils.js +13 -0
  130. package/lib/commonjs/utils/filterUtils.js.map +1 -0
  131. package/lib/commonjs/utils/geoUtils.d.js +2 -0
  132. package/lib/commonjs/utils/geoUtils.d.js.map +1 -0
  133. package/lib/commonjs/utils/geoUtils.js +65 -0
  134. package/lib/commonjs/utils/geoUtils.js.map +1 -0
  135. package/lib/commonjs/utils/index.d.js +2 -0
  136. package/lib/commonjs/utils/index.d.js.map +1 -0
  137. package/lib/commonjs/utils/index.js +122 -0
  138. package/lib/commonjs/utils/index.js.map +1 -0
  139. package/lib/commonjs/utils/styleMap.js +1530 -0
  140. package/lib/commonjs/utils/styleMap.js.map +1 -0
  141. package/lib/commonjs/web/MapContext.js +12 -0
  142. package/lib/commonjs/web/MapContext.js.map +1 -0
  143. package/lib/commonjs/web/MapboxModule.js +21 -0
  144. package/lib/commonjs/web/MapboxModule.js.map +1 -0
  145. package/lib/commonjs/web/UnimplementedComponent.js +16 -0
  146. package/lib/commonjs/web/UnimplementedComponent.js.map +1 -0
  147. package/lib/commonjs/web/components/Camera.js +48 -0
  148. package/lib/commonjs/web/components/Camera.js.map +1 -0
  149. package/lib/commonjs/web/components/MapView.js +67 -0
  150. package/lib/commonjs/web/components/MapView.js.map +1 -0
  151. package/lib/commonjs/web/index.js +41 -0
  152. package/lib/commonjs/web/index.js.map +1 -0
  153. package/lib/commonjs/web/utils/Logger.js +100 -0
  154. package/lib/commonjs/web/utils/Logger.js.map +1 -0
  155. package/lib/module/classes/AnimatedCoordinatesArray.js +158 -0
  156. package/lib/module/classes/AnimatedCoordinatesArray.js.map +1 -0
  157. package/lib/module/classes/AnimatedExtractCoordinateFromArray.js +37 -0
  158. package/lib/module/classes/AnimatedExtractCoordinateFromArray.js.map +1 -0
  159. package/lib/module/classes/AnimatedPoint.js +110 -0
  160. package/lib/module/classes/AnimatedPoint.js.map +1 -0
  161. package/lib/module/classes/AnimatedRouteCoordinatesArray.js +148 -0
  162. package/lib/module/classes/AnimatedRouteCoordinatesArray.js.map +1 -0
  163. package/lib/module/classes/AnimatedShape.js +71 -0
  164. package/lib/module/classes/AnimatedShape.js.map +1 -0
  165. package/lib/module/classes/index.d.js +6 -0
  166. package/lib/module/classes/index.d.js.map +1 -0
  167. package/lib/module/classes/index.js +6 -0
  168. package/lib/module/classes/index.js.map +1 -0
  169. package/lib/module/components/AbstractLayer.js +54 -0
  170. package/lib/module/components/AbstractLayer.js.map +1 -0
  171. package/lib/module/components/AbstractSource.js +18 -0
  172. package/lib/module/components/AbstractSource.js.map +1 -0
  173. package/lib/module/components/Atmosphere.js +16 -0
  174. package/lib/module/components/Atmosphere.js.map +1 -0
  175. package/lib/module/components/BackgroundLayer.js +73 -0
  176. package/lib/module/components/BackgroundLayer.js.map +1 -0
  177. package/lib/module/components/Callout.js +110 -0
  178. package/lib/module/components/Callout.js.map +1 -0
  179. package/lib/module/components/Camera.js +326 -0
  180. package/lib/module/components/Camera.js.map +1 -0
  181. package/lib/module/components/CircleLayer.js +78 -0
  182. package/lib/module/components/CircleLayer.js.map +1 -0
  183. package/lib/module/components/FillExtrusionLayer.js +80 -0
  184. package/lib/module/components/FillExtrusionLayer.js.map +1 -0
  185. package/lib/module/components/FillLayer.js +80 -0
  186. package/lib/module/components/FillLayer.js.map +1 -0
  187. package/lib/module/components/HeadingIndicator.js +25 -0
  188. package/lib/module/components/HeadingIndicator.js.map +1 -0
  189. package/lib/module/components/HeatmapLayer.js +81 -0
  190. package/lib/module/components/HeatmapLayer.js.map +1 -0
  191. package/lib/module/components/ImageSource.js +57 -0
  192. package/lib/module/components/ImageSource.js.map +1 -0
  193. package/lib/module/components/Images.js +89 -0
  194. package/lib/module/components/Images.js.map +1 -0
  195. package/lib/module/components/Light.js +42 -0
  196. package/lib/module/components/Light.js.map +1 -0
  197. package/lib/module/components/LineLayer.js +27 -0
  198. package/lib/module/components/LineLayer.js.map +1 -0
  199. package/lib/module/components/MapView.js +730 -0
  200. package/lib/module/components/MapView.js.map +1 -0
  201. package/lib/module/components/MarkerView.js +93 -0
  202. package/lib/module/components/MarkerView.js.map +1 -0
  203. package/lib/module/components/NativeBridgeComponent.js +78 -0
  204. package/lib/module/components/NativeBridgeComponent.js.map +1 -0
  205. package/lib/module/components/NativeUserLocation.js +33 -0
  206. package/lib/module/components/NativeUserLocation.js.map +1 -0
  207. package/lib/module/components/PointAnnotation.js +112 -0
  208. package/lib/module/components/PointAnnotation.js.map +1 -0
  209. package/lib/module/components/RasterDemSource.js +86 -0
  210. package/lib/module/components/RasterDemSource.js.map +1 -0
  211. package/lib/module/components/RasterLayer.js +76 -0
  212. package/lib/module/components/RasterLayer.js.map +1 -0
  213. package/lib/module/components/RasterSource.js +103 -0
  214. package/lib/module/components/RasterSource.js.map +1 -0
  215. package/lib/module/components/ShapeSource.js +184 -0
  216. package/lib/module/components/ShapeSource.js.map +1 -0
  217. package/lib/module/components/SkyLayer.js +64 -0
  218. package/lib/module/components/SkyLayer.js.map +1 -0
  219. package/lib/module/components/Style.js +259 -0
  220. package/lib/module/components/Style.js.map +1 -0
  221. package/lib/module/components/SymbolLayer.js +40 -0
  222. package/lib/module/components/SymbolLayer.js.map +1 -0
  223. package/lib/module/components/Terrain.js +27 -0
  224. package/lib/module/components/Terrain.js.map +1 -0
  225. package/lib/module/components/UserLocation.js +246 -0
  226. package/lib/module/components/UserLocation.js.map +1 -0
  227. package/lib/module/components/VectorSource.js +166 -0
  228. package/lib/module/components/VectorSource.js.map +1 -0
  229. package/lib/module/components/annotations/Annotation.js +97 -0
  230. package/lib/module/components/annotations/Annotation.js.map +1 -0
  231. package/lib/module/global.d.js +2 -0
  232. package/lib/module/global.d.js.map +1 -0
  233. package/lib/module/index.js +105 -0
  234. package/lib/module/index.js.map +1 -0
  235. package/lib/module/index.web.js +3 -0
  236. package/lib/module/index.web.js.map +1 -0
  237. package/lib/module/modules/location/locationManager.js +77 -0
  238. package/lib/module/modules/location/locationManager.js.map +1 -0
  239. package/lib/module/modules/offline/OfflineCreatePackOptions.js +38 -0
  240. package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -0
  241. package/lib/module/modules/offline/OfflinePack.js +34 -0
  242. package/lib/module/modules/offline/OfflinePack.js.map +1 -0
  243. package/lib/module/modules/offline/offlineManager.js +347 -0
  244. package/lib/module/modules/offline/offlineManager.js.map +1 -0
  245. package/lib/module/modules/snapshot/SnapshotOptions.js +53 -0
  246. package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -0
  247. package/lib/module/modules/snapshot/snapshotManager.js +60 -0
  248. package/lib/module/modules/snapshot/snapshotManager.js.map +1 -0
  249. package/lib/module/requestAndroidLocationPermissions.js +19 -0
  250. package/lib/module/requestAndroidLocationPermissions.js.map +1 -0
  251. package/lib/module/types/index.js +2 -0
  252. package/lib/module/types/index.js.map +1 -0
  253. package/lib/module/utils/BridgeValue.js +59 -0
  254. package/lib/module/utils/BridgeValue.js.map +1 -0
  255. package/lib/module/utils/Logger.js +112 -0
  256. package/lib/module/utils/Logger.js.map +1 -0
  257. package/lib/module/utils/MapboxStyles.d.js +179 -0
  258. package/lib/module/utils/MapboxStyles.d.js.map +1 -0
  259. package/lib/module/utils/StyleValue.js +34 -0
  260. package/lib/module/utils/StyleValue.js.map +1 -0
  261. package/lib/module/utils/animated/Animated.js +25 -0
  262. package/lib/module/utils/animated/Animated.js.map +1 -0
  263. package/lib/module/utils/deprecation.js +33 -0
  264. package/lib/module/utils/deprecation.js.map +1 -0
  265. package/lib/module/utils/filterUtils.js +7 -0
  266. package/lib/module/utils/filterUtils.js.map +1 -0
  267. package/lib/module/utils/geoUtils.d.js +2 -0
  268. package/lib/module/utils/geoUtils.d.js.map +1 -0
  269. package/lib/module/utils/geoUtils.js +50 -0
  270. package/lib/module/utils/geoUtils.js.map +1 -0
  271. package/lib/module/utils/index.d.js +2 -0
  272. package/lib/module/utils/index.d.js.map +1 -0
  273. package/lib/module/utils/index.js +99 -0
  274. package/lib/module/utils/index.js.map +1 -0
  275. package/lib/module/utils/styleMap.js +1505 -0
  276. package/lib/module/utils/styleMap.js.map +1 -0
  277. package/lib/module/web/MapContext.js +4 -0
  278. package/lib/module/web/MapContext.js.map +1 -0
  279. package/lib/module/web/MapboxModule.js +13 -0
  280. package/lib/module/web/MapboxModule.js.map +1 -0
  281. package/lib/module/web/UnimplementedComponent.js +8 -0
  282. package/lib/module/web/UnimplementedComponent.js.map +1 -0
  283. package/lib/module/web/components/Camera.js +40 -0
  284. package/lib/module/web/components/Camera.js.map +1 -0
  285. package/lib/module/web/components/MapView.js +60 -0
  286. package/lib/module/web/components/MapView.js.map +1 -0
  287. package/lib/module/web/index.js +16 -0
  288. package/lib/module/web/index.js.map +1 -0
  289. package/lib/module/web/utils/Logger.js +93 -0
  290. package/lib/module/web/utils/Logger.js.map +1 -0
  291. package/lib/typescript/components/AbstractLayer.d.ts +28 -0
  292. package/lib/typescript/components/AbstractLayer.d.ts.map +1 -0
  293. package/lib/typescript/components/AbstractSource.d.ts +9 -0
  294. package/lib/typescript/components/AbstractSource.d.ts.map +1 -0
  295. package/lib/typescript/components/Atmosphere.d.ts +9 -0
  296. package/lib/typescript/components/Atmosphere.d.ts.map +1 -0
  297. package/lib/typescript/components/Camera.d.ts +119 -0
  298. package/lib/typescript/components/Camera.d.ts.map +1 -0
  299. package/lib/typescript/components/HeadingIndicator.d.ts +7 -0
  300. package/lib/typescript/components/HeadingIndicator.d.ts.map +1 -0
  301. package/lib/typescript/components/LineLayer.d.ts +65 -0
  302. package/lib/typescript/components/LineLayer.d.ts.map +1 -0
  303. package/lib/typescript/components/MarkerView.d.ts +52 -0
  304. package/lib/typescript/components/MarkerView.d.ts.map +1 -0
  305. package/lib/typescript/components/NativeBridgeComponent.d.ts +50 -0
  306. package/lib/typescript/components/NativeBridgeComponent.d.ts.map +1 -0
  307. package/lib/typescript/components/PointAnnotation.d.ts +162 -0
  308. package/lib/typescript/components/PointAnnotation.d.ts.map +1 -0
  309. package/lib/typescript/components/ShapeSource.d.ts +222 -0
  310. package/lib/typescript/components/ShapeSource.d.ts.map +1 -0
  311. package/lib/typescript/components/SymbolLayer.d.ts +65 -0
  312. package/lib/typescript/components/SymbolLayer.d.ts.map +1 -0
  313. package/lib/typescript/components/Terrain.d.ts +20 -0
  314. package/lib/typescript/components/Terrain.d.ts.map +1 -0
  315. package/lib/typescript/requestAndroidLocationPermissions.d.ts +2 -0
  316. package/lib/typescript/requestAndroidLocationPermissions.d.ts.map +1 -0
  317. package/lib/typescript/types/index.d.ts +16 -0
  318. package/lib/typescript/types/index.d.ts.map +1 -0
  319. package/lib/typescript/utils/BridgeValue.d.ts +46 -0
  320. package/lib/typescript/utils/BridgeValue.d.ts.map +1 -0
  321. package/lib/typescript/utils/StyleValue.d.ts +10 -0
  322. package/lib/typescript/utils/StyleValue.d.ts.map +1 -0
  323. package/lib/typescript/utils/deprecation.d.ts +12 -0
  324. package/lib/typescript/utils/deprecation.d.ts.map +1 -0
  325. package/lib/typescript/utils/filterUtils.d.ts +2 -0
  326. package/lib/typescript/utils/filterUtils.d.ts.map +1 -0
  327. package/lib/typescript/utils/styleMap.d.ts +1489 -0
  328. package/lib/typescript/utils/styleMap.d.ts.map +1 -0
  329. package/lib/typescript/web/MapContext.d.ts +7 -0
  330. package/lib/typescript/web/MapContext.d.ts.map +1 -0
  331. package/lib/typescript/web/components/Camera.d.ts +18 -0
  332. package/lib/typescript/web/components/Camera.d.ts.map +1 -0
  333. package/lib/typescript/web/components/MapView.d.ts +20 -0
  334. package/lib/typescript/web/components/MapView.d.ts.map +1 -0
  335. package/lib/typescript/web/utils/Logger.d.ts +48 -0
  336. package/lib/typescript/web/utils/Logger.d.ts.map +1 -0
  337. package/package.json +39 -6
  338. package/plugin/jest.config.js +1 -0
  339. package/plugin/src/withMapbox.ts +365 -0
  340. package/plugin/tsconfig.json +9 -0
  341. package/.eslintrc.js +0 -111
  342. package/.gitattributes +0 -1
  343. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -112
  344. package/.github/ISSUE_TEMPLATE/bug_setup.md +0 -23
  345. package/.github/ISSUE_TEMPLATE/feature.md +0 -15
  346. package/.github/dependabot.yml +0 -42
  347. package/.github/label-actions.yml +0 -26
  348. package/.github/pull_request_template.md +0 -27
  349. package/.github/stale.yml +0 -11
  350. package/.github/workflows/android-actions.yml +0 -56
  351. package/.github/workflows/bump-version.yml +0 -54
  352. package/.github/workflows/ios-actions.yml +0 -81
  353. package/.github/workflows/label-actions.yml +0 -17
  354. package/.github/workflows/on-push.yml +0 -131
  355. package/.github/workflows/publish.yml +0 -29
  356. package/.husky/pre-commit +0 -5
  357. package/.nvmrc +0 -2
  358. package/.prettierrc.js +0 -4
  359. package/.sonarcloud.properties +0 -15
  360. package/CONTRIBUTING.md +0 -30
  361. package/README-v10.md +0 -86
  362. package/RELEASE.md +0 -28
  363. package/babel.config.js +0 -9
  364. package/docs/Annotation.md +0 -39
  365. package/docs/Annotations.md +0 -20
  366. package/docs/Atmosphere.md +0 -265
  367. package/docs/BackgroundLayer.md +0 -166
  368. package/docs/Callout.md +0 -15
  369. package/docs/Camera.md +0 -152
  370. package/docs/CircleLayer.md +0 -470
  371. package/docs/CustomHttpHeaders.md +0 -89
  372. package/docs/FillExtrusionLayer.md +0 -346
  373. package/docs/FillLayer.md +0 -310
  374. package/docs/GettingStarted.md +0 -87
  375. package/docs/HeadingIndicator.md +0 -10
  376. package/docs/HeatmapLayer.md +0 -215
  377. package/docs/ImageSource.md +0 -13
  378. package/docs/Images.md +0 -12
  379. package/docs/Light.md +0 -159
  380. package/docs/LineLayer.md +0 -606
  381. package/docs/Logger.md +0 -22
  382. package/docs/MapView.md +0 -228
  383. package/docs/MapboxGL.md +0 -83
  384. package/docs/MarkerView.md +0 -26
  385. package/docs/NativeUserLocation.md +0 -11
  386. package/docs/OfflineManager.md +0 -264
  387. package/docs/PointAnnotation.md +0 -42
  388. package/docs/RasterDemSource.md +0 -15
  389. package/docs/RasterLayer.md +0 -357
  390. package/docs/RasterSource.md +0 -19
  391. package/docs/ShapeSource.md +0 -106
  392. package/docs/SkyLayer.md +0 -259
  393. package/docs/Style.md +0 -12
  394. package/docs/StyleSheet.md +0 -226
  395. package/docs/SymbolLayer.md +0 -1659
  396. package/docs/Terrain.md +0 -77
  397. package/docs/UserLocation.md +0 -39
  398. package/docs/VectorSource.md +0 -49
  399. package/docs/docs.json +0 -6571
  400. package/docs/snapshotManager.md +0 -55
  401. package/javascript/components/LineLayer.js +0 -94
  402. package/scripts/.eslintrc.js +0 -12
  403. package/scripts/autogenHelpers/DocJSONBuilder.js +0 -458
  404. package/scripts/autogenHelpers/JSDocNodeTree.js +0 -134
  405. package/scripts/autogenHelpers/MarkdownBuilder.js +0 -38
  406. package/scripts/autogenHelpers/globals.js +0 -518
  407. package/scripts/autogenerate.js +0 -545
  408. package/scripts/download-style-spec.sh +0 -15
  409. package/scripts/templates/MapboxStyles.ts.ejs +0 -97
  410. package/scripts/templates/RCTMGLStyle.h.ejs +0 -34
  411. package/scripts/templates/RCTMGLStyle.m.ejs +0 -106
  412. package/scripts/templates/RCTMGLStyle.swift.ejs +0 -116
  413. package/scripts/templates/RCTMGLStyleFactory.java.ejs +0 -108
  414. package/scripts/templates/RCTMGLStyleFactoryv10.java.ejs +0 -116
  415. package/scripts/templates/component.md.ejs +0 -122
  416. package/scripts/templates/index.d.ts.ejs +0 -56
  417. package/scripts/templates/styleMap.ts.ejs +0 -118
  418. package/setup-jest.js +0 -125
  419. package/style-spec/v8.json +0 -6727
  420. package/tsconfig.json +0 -24
@@ -1,87 +0,0 @@
1
- # Getting Started
2
-
3
- Congratulations, you successfully installed rnmapbox/maps! 🎉
4
- Where to go from here?
5
- You can head straight to [examples](/example) folder if you want to jump into the deep end.
6
- However, if you prefer an easier ramp-up, then make sure to stick around and check out the guides below.
7
-
8
- ## Setting your accessToken
9
-
10
- In order to work, mapbox requires you to create an accessToken and set it in your app.
11
- If you haven't created one yet, make sure to sign up for an account [here](https://www.mapbox.com/signup/)
12
- You can create and manage your access tokens on your [Mapbox Account page](https://www.mapbox.com/account/)
13
- Once you have your accessToken, set it like this
14
-
15
- ```js
16
- import MapboxGL from "@rnmapbox/maps";
17
-
18
- MapboxGL.setAccessToken("<YOUR_ACCESSTOKEN>");
19
- ```
20
-
21
- ## Setting connection status [Android only]
22
-
23
- If you are hosting styles and sources on localhost, you might need to set the connection status manually for Mapbox to be able to use them. See [mapbox/mapbox-gl-native#12819](https://github.com/mapbox/mapbox-gl-native/issues/12819).
24
-
25
- Manually sets the connectivity state of the app, bypassing any checks to the ConnectivityManager. Set to `true` for connected, `false` for disconnected, and `null` for ConnectivityManager to determine.
26
-
27
- ```js
28
- import MapboxGL from "@rnmapbox/maps";
29
-
30
- MapboxGL.setConnected(true);
31
- ```
32
-
33
- ## Disabling Telemetry
34
-
35
- By default mapbox collects telemetry.
36
- If you would like to programmatically disable this within your app add the code below.
37
-
38
- ```js
39
- componentDidMount() {
40
- MapboxGL.setTelemetryEnabled(false);
41
- }
42
- ```
43
-
44
- For more information on mapbox and telemetry: [https://www.mapbox.com/telemetry](https://www.mapbox.com/telemetry)
45
-
46
- ## Show a map
47
-
48
- ```js
49
- import React, { Component } from "react";
50
- import { StyleSheet, View } from "react-native";
51
- import MapboxGL from "@rnmapbox/maps";
52
-
53
- MapboxGL.setAccessToken("<YOUR_ACCESSTOKEN>");
54
-
55
- const styles = StyleSheet.create({
56
- page: {
57
- flex: 1,
58
- justifyContent: "center",
59
- alignItems: "center",
60
- backgroundColor: "#F5FCFF"
61
- },
62
- container: {
63
- height: 300,
64
- width: 300,
65
- backgroundColor: "tomato"
66
- },
67
- map: {
68
- flex: 1
69
- }
70
- });
71
-
72
- export default class App extends Component {
73
- componentDidMount() {
74
- MapboxGL.setTelemetryEnabled(false);
75
- }
76
-
77
- render() {
78
- return (
79
- <View style={styles.page}>
80
- <View style={styles.container}>
81
- <MapboxGL.MapView style={styles.map} />
82
- </View>
83
- </View>
84
- );
85
- }
86
- }
87
- ```
@@ -1,10 +0,0 @@
1
- <!-- This file was autogenerated from HeadingIndicator.tsx do not modify -->
2
- # <MapboxGL.HeadingIndicator />
3
-
4
-
5
- ## props
6
- | Prop | Type | Default | Required | Description |
7
- | ---- | :-- | :----- | :------ | :---------- |
8
- | heading | `number` | `none` | `false` | FIX ME NO DESCRIPTION |
9
-
10
-
@@ -1,215 +0,0 @@
1
- <!-- This file was autogenerated from HeatmapLayer.js do not modify -->
2
- # <MapboxGL.HeatmapLayer />
3
- HeatmapLayer is a style layer that renders one or more filled circles on the map.
4
-
5
- ## props
6
- | Prop | Type | Default | Required | Description |
7
- | ---- | :-- | :----- | :------ | :---------- |
8
- | id | `string` | `none` | `true` | A string that uniquely identifies the source in the style to which it is added. |
9
- | sourceID | `string` | `MapboxGL.StyleSource.DefaultSourceID` | `false` | The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
- | sourceLayerID | `string` | `none` | `false` | Identifier of the layer within the source identified by the sourceID property<br/>from which the receiver obtains the data to style. |
11
- | aboveLayerID | `string` | `none` | `false` | Inserts a layer above aboveLayerID. |
12
- | belowLayerID | `string` | `none` | `false` | Inserts a layer below belowLayerID |
13
- | layerIndex | `number` | `none` | `false` | Inserts a layer at a specified index |
14
- | filter | `array` | `none` | `false` | Filter only the features in the source layer that satisfy a condition that you define |
15
- | minZoomLevel | `number` | `none` | `false` | The minimum zoom level at which the layer gets parsed and appears. |
16
- | maxZoomLevel | `number` | `none` | `false` | The maximum zoom level at which the layer gets parsed and appears. |
17
- | style | `union` | `none` | `false` | Customizable style attributes |
18
-
19
-
20
- ## styles
21
-
22
- * <a href="#visibility">visibility</a><br/>
23
- * <a href="#heatmapradius">heatmapRadius</a><br/>
24
- * <a href="#heatmapweight">heatmapWeight</a><br/>
25
- * <a href="#heatmapintensity">heatmapIntensity</a><br/>
26
- * <a href="#heatmapcolor">heatmapColor</a><br/>
27
- * <a href="#heatmapopacity">heatmapOpacity</a><br/>
28
-
29
- ___
30
-
31
- ### visibility
32
- Name: `visibility`
33
-
34
- ### Description
35
- Whether this layer is displayed.
36
-
37
- ### Type
38
- `enum`
39
- ### Default Value
40
- `visible`
41
-
42
- ### Supported Values
43
- **visible** - The layer is shown.<br />
44
- **none** - The layer is not shown.<br />
45
-
46
-
47
-
48
- ___
49
-
50
- ### heatmapRadius
51
- Name: `heatmapRadius`
52
-
53
- ### Description
54
- Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed. `queryRenderedFeatures` on heatmap layers will return points within this radius.
55
-
56
- ### Type
57
- `number`
58
- ### Default Value
59
- `30`
60
-
61
- ### Units
62
- `pixels`
63
-
64
- ### Minimum
65
- `1`
66
-
67
-
68
- ### Expression
69
-
70
- Parameters: `zoom, feature, feature-state`
71
- ___
72
-
73
- ### Name
74
-
75
- `heatmapRadiusTransition`
76
-
77
- ### Description
78
-
79
- The transition affecting any changes to this layer’s heatmapRadius property.
80
-
81
- ### Type
82
-
83
- `{ duration, delay }`
84
-
85
- ### Units
86
- `milliseconds`
87
-
88
- ### Default Value
89
- `{duration: 300, delay: 0}`
90
-
91
-
92
- ___
93
-
94
- ### heatmapWeight
95
- Name: `heatmapWeight`
96
-
97
- ### Description
98
- A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.
99
-
100
- ### Type
101
- `number`
102
- ### Default Value
103
- `1`
104
-
105
- ### Minimum
106
- `0`
107
-
108
-
109
- ### Expression
110
-
111
- Parameters: `zoom, feature, feature-state`
112
-
113
- ___
114
-
115
- ### heatmapIntensity
116
- Name: `heatmapIntensity`
117
-
118
- ### Description
119
- Similar to `heatmapWeight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
120
-
121
- ### Type
122
- `number`
123
- ### Default Value
124
- `1`
125
-
126
- ### Minimum
127
- `0`
128
-
129
-
130
- ### Expression
131
-
132
- Parameters: `zoom`
133
- ___
134
-
135
- ### Name
136
-
137
- `heatmapIntensityTransition`
138
-
139
- ### Description
140
-
141
- The transition affecting any changes to this layer’s heatmapIntensity property.
142
-
143
- ### Type
144
-
145
- `{ duration, delay }`
146
-
147
- ### Units
148
- `milliseconds`
149
-
150
- ### Default Value
151
- `{duration: 300, delay: 0}`
152
-
153
-
154
- ___
155
-
156
- ### heatmapColor
157
- Name: `heatmapColor`
158
-
159
- ### Description
160
- Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmapDensity"]` as input.
161
-
162
- ### Type
163
- `color`
164
- ### Default Value
165
- `interpolate,linear,heatmap-density,0,rgba(0, 0, 255, 0),0.1,royalblue,0.3,cyan,0.5,lime,0.7,yellow,1,red`
166
-
167
-
168
- ### Expression
169
-
170
- Parameters: `heatmap-density`
171
-
172
- ___
173
-
174
- ### heatmapOpacity
175
- Name: `heatmapOpacity`
176
-
177
- ### Description
178
- The global opacity at which the heatmap layer will be drawn.
179
-
180
- ### Type
181
- `number`
182
- ### Default Value
183
- `1`
184
-
185
- ### Minimum
186
- `0`
187
-
188
-
189
- ### Maximum
190
- `1`
191
-
192
- ### Expression
193
-
194
- Parameters: `zoom`
195
- ___
196
-
197
- ### Name
198
-
199
- `heatmapOpacityTransition`
200
-
201
- ### Description
202
-
203
- The transition affecting any changes to this layer’s heatmapOpacity property.
204
-
205
- ### Type
206
-
207
- `{ duration, delay }`
208
-
209
- ### Units
210
- `milliseconds`
211
-
212
- ### Default Value
213
- `{duration: 300, delay: 0}`
214
-
215
-
@@ -1,13 +0,0 @@
1
- <!-- This file was autogenerated from ImageSource.js do not modify -->
2
- # <MapboxGL.ImageSource />
3
- ImageSource is a content source that is used for a georeferenced raster image to be shown on the map.
4
- The georeferenced image scales and rotates as the user zooms and rotates the map
5
-
6
- ## props
7
- | Prop | Type | Default | Required | Description |
8
- | ---- | :-- | :----- | :------ | :---------- |
9
- | id | `string` | `none` | `true` | A string that uniquely identifies the source. |
10
- | url | `union` | `none` | `false` | An HTTP(S) URL, absolute file URL, or local file URL to the source image.<br/>Gifs are currently not supported. |
11
- | coordinates | `array` | `none` | `true` | The top left, top right, bottom right, and bottom left coordinates for the image. |
12
-
13
-
package/docs/Images.md DELETED
@@ -1,12 +0,0 @@
1
- <!-- This file was autogenerated from Images.js do not modify -->
2
- # <MapboxGL.Images />
3
- Images defines the images used in Symbol etc. layers.
4
-
5
- ## props
6
- | Prop | Type | Default | Required | Description |
7
- | ---- | :-- | :----- | :------ | :---------- |
8
- | images | `object` | `none` | `false` | Specifies the external images in key-value pairs required for the shape source.<br/>Keys are names - see iconImage expressions, values can be either urls-s objects<br/>with format {uri: 'http://...'}` or `require('image.png')` or `import 'image.png'` |
9
- | nativeAssetImages | `array` | `none` | `false` | If you have an asset under Image.xcassets on iOS and the drawables directory on android<br/>you can specify an array of string names with assets as the key `['pin']`. |
10
- | onImageMissing | `func` | `none` | `false` | Gets called when a Layer is trying to render an image whose key is not present in<br/>any of the `Images` component of the Map. |
11
-
12
-
package/docs/Light.md DELETED
@@ -1,159 +0,0 @@
1
- <!-- This file was autogenerated from Light.js do not modify -->
2
- # <MapboxGL.Light />
3
- Light represents the light source for extruded geometries
4
-
5
- ## props
6
- | Prop | Type | Default | Required | Description |
7
- | ---- | :-- | :----- | :------ | :---------- |
8
- | style | `custom` | `none` | `false` | Customizable style attributes |
9
-
10
-
11
- ## styles
12
-
13
- * <a href="#anchor">anchor</a><br/>
14
- * <a href="#position">position</a><br/>
15
- * <a href="#color">color</a><br/>
16
- * <a href="#intensity">intensity</a><br/>
17
-
18
- ___
19
-
20
- ### anchor
21
- Name: `anchor`
22
-
23
- ### Description
24
- Whether extruded geometries are lit relative to the map or viewport.
25
-
26
- ### Type
27
- `enum`
28
- ### Default Value
29
- `viewport`
30
-
31
- ### Supported Values
32
- **map** - The position of the light source is aligned to the rotation of the map.<br />
33
- **viewport** - The position of the light source is aligned to the rotation of the viewport.<br />
34
-
35
-
36
- ### Expression
37
-
38
- Parameters: `zoom`
39
-
40
- ___
41
-
42
- ### position
43
- Name: `position`
44
-
45
- ### Description
46
- Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).
47
-
48
- ### Type
49
- `array<number>`
50
- ### Default Value
51
- `[1.15,210,30]`
52
-
53
-
54
- ### Expression
55
-
56
- Parameters: `zoom`
57
- ___
58
-
59
- ### Name
60
-
61
- `positionTransition`
62
-
63
- ### Description
64
-
65
- The transition affecting any changes to this layer’s position property.
66
-
67
- ### Type
68
-
69
- `{ duration, delay }`
70
-
71
- ### Units
72
- `milliseconds`
73
-
74
- ### Default Value
75
- `{duration: 300, delay: 0}`
76
-
77
-
78
- ___
79
-
80
- ### color
81
- Name: `color`
82
-
83
- ### Description
84
- Color tint for lighting extruded geometries.
85
-
86
- ### Type
87
- `color`
88
- ### Default Value
89
- `#ffffff`
90
-
91
-
92
- ### Expression
93
-
94
- Parameters: `zoom`
95
- ___
96
-
97
- ### Name
98
-
99
- `colorTransition`
100
-
101
- ### Description
102
-
103
- The transition affecting any changes to this layer’s color property.
104
-
105
- ### Type
106
-
107
- `{ duration, delay }`
108
-
109
- ### Units
110
- `milliseconds`
111
-
112
- ### Default Value
113
- `{duration: 300, delay: 0}`
114
-
115
-
116
- ___
117
-
118
- ### intensity
119
- Name: `intensity`
120
-
121
- ### Description
122
- Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
123
-
124
- ### Type
125
- `number`
126
- ### Default Value
127
- `0.5`
128
-
129
- ### Minimum
130
- `0`
131
-
132
-
133
- ### Maximum
134
- `1`
135
-
136
- ### Expression
137
-
138
- Parameters: `zoom`
139
- ___
140
-
141
- ### Name
142
-
143
- `intensityTransition`
144
-
145
- ### Description
146
-
147
- The transition affecting any changes to this layer’s intensity property.
148
-
149
- ### Type
150
-
151
- `{ duration, delay }`
152
-
153
- ### Units
154
- `milliseconds`
155
-
156
- ### Default Value
157
- `{duration: 300, delay: 0}`
158
-
159
-