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

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 (416) 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 +1 -1
  8. package/ios/RCTMGL/MGLModule.m +2 -1
  9. package/ios/RCTMGL-v10/MGLModule.m +3 -1
  10. package/ios/RCTMGL-v10/MGLModule.swift +15 -2
  11. package/javascript/components/AbstractLayer.tsx +2 -1
  12. package/javascript/components/Camera.tsx +1 -2
  13. package/javascript/index.js +2 -2
  14. package/javascript/requestAndroidLocationPermissions.ts +1 -2
  15. package/javascript/utils/{MapboxStyles.ts → MapboxStyles.d.ts} +0 -0
  16. package/javascript/utils/StyleValue.ts +3 -8
  17. package/lib/commonjs/classes/AnimatedCoordinatesArray.js +165 -0
  18. package/lib/commonjs/classes/AnimatedCoordinatesArray.js.map +1 -0
  19. package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js +44 -0
  20. package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js.map +1 -0
  21. package/lib/commonjs/classes/AnimatedPoint.js +117 -0
  22. package/lib/commonjs/classes/AnimatedPoint.js.map +1 -0
  23. package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js +155 -0
  24. package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js.map +1 -0
  25. package/lib/commonjs/classes/AnimatedShape.js +78 -0
  26. package/lib/commonjs/classes/AnimatedShape.js.map +1 -0
  27. package/lib/commonjs/classes/index.d.js +17 -0
  28. package/lib/commonjs/classes/index.d.js.map +1 -0
  29. package/lib/commonjs/classes/index.js +61 -0
  30. package/lib/commonjs/classes/index.js.map +1 -0
  31. package/lib/commonjs/components/AbstractLayer.js +61 -0
  32. package/lib/commonjs/components/AbstractLayer.js.map +1 -0
  33. package/lib/commonjs/components/AbstractSource.js +26 -0
  34. package/lib/commonjs/components/AbstractSource.js.map +1 -0
  35. package/lib/commonjs/components/Atmosphere.js +26 -0
  36. package/lib/commonjs/components/Atmosphere.js.map +1 -0
  37. package/lib/commonjs/components/BackgroundLayer.js +82 -0
  38. package/lib/commonjs/components/BackgroundLayer.js.map +1 -0
  39. package/lib/commonjs/components/Callout.js +119 -0
  40. package/lib/commonjs/components/Callout.js.map +1 -0
  41. package/lib/commonjs/components/Camera.js +336 -0
  42. package/lib/commonjs/components/Camera.js.map +1 -0
  43. package/lib/commonjs/components/CircleLayer.js +87 -0
  44. package/lib/commonjs/components/CircleLayer.js.map +1 -0
  45. package/lib/commonjs/components/FillExtrusionLayer.js +89 -0
  46. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -0
  47. package/lib/commonjs/components/FillLayer.js +89 -0
  48. package/lib/commonjs/components/FillLayer.js.map +1 -0
  49. package/lib/commonjs/components/HeadingIndicator.js +33 -0
  50. package/lib/commonjs/components/HeadingIndicator.js.map +1 -0
  51. package/lib/commonjs/components/HeatmapLayer.js +90 -0
  52. package/lib/commonjs/components/HeatmapLayer.js.map +1 -0
  53. package/lib/commonjs/components/ImageSource.js +66 -0
  54. package/lib/commonjs/components/ImageSource.js.map +1 -0
  55. package/lib/commonjs/components/Images.js +98 -0
  56. package/lib/commonjs/components/Images.js.map +1 -0
  57. package/lib/commonjs/components/Light.js +51 -0
  58. package/lib/commonjs/components/Light.js.map +1 -0
  59. package/lib/commonjs/components/LineLayer.js +89 -0
  60. package/lib/commonjs/components/LineLayer.js.map +1 -0
  61. package/lib/commonjs/components/MapView.js +740 -0
  62. package/lib/commonjs/components/MapView.js.map +1 -0
  63. package/lib/commonjs/components/MarkerView.js +102 -0
  64. package/lib/commonjs/components/MarkerView.js.map +1 -0
  65. package/lib/commonjs/components/NativeBridgeComponent.js +85 -0
  66. package/lib/commonjs/components/NativeBridgeComponent.js.map +1 -0
  67. package/lib/commonjs/components/NativeUserLocation.js +41 -0
  68. package/lib/commonjs/components/NativeUserLocation.js.map +1 -0
  69. package/lib/commonjs/components/PointAnnotation.js +121 -0
  70. package/lib/commonjs/components/PointAnnotation.js.map +1 -0
  71. package/lib/commonjs/components/RasterDemSource.js +95 -0
  72. package/lib/commonjs/components/RasterDemSource.js.map +1 -0
  73. package/lib/commonjs/components/RasterLayer.js +85 -0
  74. package/lib/commonjs/components/RasterLayer.js.map +1 -0
  75. package/lib/commonjs/components/RasterSource.js +112 -0
  76. package/lib/commonjs/components/RasterSource.js.map +1 -0
  77. package/lib/commonjs/components/ShapeSource.js +193 -0
  78. package/lib/commonjs/components/ShapeSource.js.map +1 -0
  79. package/lib/commonjs/components/SkyLayer.js +73 -0
  80. package/lib/commonjs/components/SkyLayer.js.map +1 -0
  81. package/lib/commonjs/components/Style.js +269 -0
  82. package/lib/commonjs/components/Style.js.map +1 -0
  83. package/lib/commonjs/components/SymbolLayer.js +49 -0
  84. package/lib/commonjs/components/SymbolLayer.js.map +1 -0
  85. package/lib/commonjs/components/Terrain.js +37 -0
  86. package/lib/commonjs/components/Terrain.js.map +1 -0
  87. package/lib/commonjs/components/UserLocation.js +255 -0
  88. package/lib/commonjs/components/UserLocation.js.map +1 -0
  89. package/lib/commonjs/components/VectorSource.js +175 -0
  90. package/lib/commonjs/components/VectorSource.js.map +1 -0
  91. package/lib/commonjs/components/annotations/Annotation.js +105 -0
  92. package/lib/commonjs/components/annotations/Annotation.js.map +1 -0
  93. package/lib/commonjs/global.d.js +2 -0
  94. package/lib/commonjs/global.d.js.map +1 -0
  95. package/lib/commonjs/index.js +331 -0
  96. package/lib/commonjs/index.js.map +1 -0
  97. package/lib/commonjs/index.web.js +27 -0
  98. package/lib/commonjs/index.web.js.map +1 -0
  99. package/lib/commonjs/modules/location/locationManager.js +85 -0
  100. package/lib/commonjs/modules/location/locationManager.js.map +1 -0
  101. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +45 -0
  102. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -0
  103. package/lib/commonjs/modules/offline/OfflinePack.js +41 -0
  104. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
  105. package/lib/commonjs/modules/offline/offlineManager.js +356 -0
  106. package/lib/commonjs/modules/offline/offlineManager.js.map +1 -0
  107. package/lib/commonjs/modules/snapshot/SnapshotOptions.js +60 -0
  108. package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -0
  109. package/lib/commonjs/modules/snapshot/snapshotManager.js +68 -0
  110. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -0
  111. package/lib/commonjs/requestAndroidLocationPermissions.js +25 -0
  112. package/lib/commonjs/requestAndroidLocationPermissions.js.map +1 -0
  113. package/lib/commonjs/types/index.js +6 -0
  114. package/lib/commonjs/types/index.js.map +1 -0
  115. package/lib/commonjs/utils/BridgeValue.js +66 -0
  116. package/lib/commonjs/utils/BridgeValue.js.map +1 -0
  117. package/lib/commonjs/utils/Logger.js +119 -0
  118. package/lib/commonjs/utils/Logger.js.map +1 -0
  119. package/lib/commonjs/utils/MapboxStyles.d.js +183 -0
  120. package/lib/commonjs/utils/MapboxStyles.d.js.map +1 -0
  121. package/lib/commonjs/utils/StyleValue.js +41 -0
  122. package/lib/commonjs/utils/StyleValue.js.map +1 -0
  123. package/lib/commonjs/utils/animated/Animated.js +33 -0
  124. package/lib/commonjs/utils/animated/Animated.js.map +1 -0
  125. package/lib/commonjs/utils/deprecation.js +40 -0
  126. package/lib/commonjs/utils/deprecation.js.map +1 -0
  127. package/lib/commonjs/utils/filterUtils.js +13 -0
  128. package/lib/commonjs/utils/filterUtils.js.map +1 -0
  129. package/lib/commonjs/utils/geoUtils.d.js +2 -0
  130. package/lib/commonjs/utils/geoUtils.d.js.map +1 -0
  131. package/lib/commonjs/utils/geoUtils.js +65 -0
  132. package/lib/commonjs/utils/geoUtils.js.map +1 -0
  133. package/lib/commonjs/utils/index.d.js +2 -0
  134. package/lib/commonjs/utils/index.d.js.map +1 -0
  135. package/lib/commonjs/utils/index.js +122 -0
  136. package/lib/commonjs/utils/index.js.map +1 -0
  137. package/lib/commonjs/utils/styleMap.js +1530 -0
  138. package/lib/commonjs/utils/styleMap.js.map +1 -0
  139. package/lib/commonjs/web/MapContext.js +12 -0
  140. package/lib/commonjs/web/MapContext.js.map +1 -0
  141. package/lib/commonjs/web/MapboxModule.js +21 -0
  142. package/lib/commonjs/web/MapboxModule.js.map +1 -0
  143. package/lib/commonjs/web/UnimplementedComponent.js +16 -0
  144. package/lib/commonjs/web/UnimplementedComponent.js.map +1 -0
  145. package/lib/commonjs/web/components/Camera.js +48 -0
  146. package/lib/commonjs/web/components/Camera.js.map +1 -0
  147. package/lib/commonjs/web/components/MapView.js +67 -0
  148. package/lib/commonjs/web/components/MapView.js.map +1 -0
  149. package/lib/commonjs/web/index.js +41 -0
  150. package/lib/commonjs/web/index.js.map +1 -0
  151. package/lib/commonjs/web/utils/Logger.js +100 -0
  152. package/lib/commonjs/web/utils/Logger.js.map +1 -0
  153. package/lib/module/classes/AnimatedCoordinatesArray.js +158 -0
  154. package/lib/module/classes/AnimatedCoordinatesArray.js.map +1 -0
  155. package/lib/module/classes/AnimatedExtractCoordinateFromArray.js +37 -0
  156. package/lib/module/classes/AnimatedExtractCoordinateFromArray.js.map +1 -0
  157. package/lib/module/classes/AnimatedPoint.js +110 -0
  158. package/lib/module/classes/AnimatedPoint.js.map +1 -0
  159. package/lib/module/classes/AnimatedRouteCoordinatesArray.js +148 -0
  160. package/lib/module/classes/AnimatedRouteCoordinatesArray.js.map +1 -0
  161. package/lib/module/classes/AnimatedShape.js +71 -0
  162. package/lib/module/classes/AnimatedShape.js.map +1 -0
  163. package/lib/module/classes/index.d.js +6 -0
  164. package/lib/module/classes/index.d.js.map +1 -0
  165. package/lib/module/classes/index.js +6 -0
  166. package/lib/module/classes/index.js.map +1 -0
  167. package/lib/module/components/AbstractLayer.js +54 -0
  168. package/lib/module/components/AbstractLayer.js.map +1 -0
  169. package/lib/module/components/AbstractSource.js +18 -0
  170. package/lib/module/components/AbstractSource.js.map +1 -0
  171. package/lib/module/components/Atmosphere.js +16 -0
  172. package/lib/module/components/Atmosphere.js.map +1 -0
  173. package/lib/module/components/BackgroundLayer.js +73 -0
  174. package/lib/module/components/BackgroundLayer.js.map +1 -0
  175. package/lib/module/components/Callout.js +110 -0
  176. package/lib/module/components/Callout.js.map +1 -0
  177. package/lib/module/components/Camera.js +326 -0
  178. package/lib/module/components/Camera.js.map +1 -0
  179. package/lib/module/components/CircleLayer.js +78 -0
  180. package/lib/module/components/CircleLayer.js.map +1 -0
  181. package/lib/module/components/FillExtrusionLayer.js +80 -0
  182. package/lib/module/components/FillExtrusionLayer.js.map +1 -0
  183. package/lib/module/components/FillLayer.js +80 -0
  184. package/lib/module/components/FillLayer.js.map +1 -0
  185. package/lib/module/components/HeadingIndicator.js +25 -0
  186. package/lib/module/components/HeadingIndicator.js.map +1 -0
  187. package/lib/module/components/HeatmapLayer.js +81 -0
  188. package/lib/module/components/HeatmapLayer.js.map +1 -0
  189. package/lib/module/components/ImageSource.js +57 -0
  190. package/lib/module/components/ImageSource.js.map +1 -0
  191. package/lib/module/components/Images.js +89 -0
  192. package/lib/module/components/Images.js.map +1 -0
  193. package/lib/module/components/Light.js +42 -0
  194. package/lib/module/components/Light.js.map +1 -0
  195. package/lib/module/components/LineLayer.js +80 -0
  196. package/lib/module/components/LineLayer.js.map +1 -0
  197. package/lib/module/components/MapView.js +730 -0
  198. package/lib/module/components/MapView.js.map +1 -0
  199. package/lib/module/components/MarkerView.js +93 -0
  200. package/lib/module/components/MarkerView.js.map +1 -0
  201. package/lib/module/components/NativeBridgeComponent.js +78 -0
  202. package/lib/module/components/NativeBridgeComponent.js.map +1 -0
  203. package/lib/module/components/NativeUserLocation.js +33 -0
  204. package/lib/module/components/NativeUserLocation.js.map +1 -0
  205. package/lib/module/components/PointAnnotation.js +112 -0
  206. package/lib/module/components/PointAnnotation.js.map +1 -0
  207. package/lib/module/components/RasterDemSource.js +86 -0
  208. package/lib/module/components/RasterDemSource.js.map +1 -0
  209. package/lib/module/components/RasterLayer.js +76 -0
  210. package/lib/module/components/RasterLayer.js.map +1 -0
  211. package/lib/module/components/RasterSource.js +103 -0
  212. package/lib/module/components/RasterSource.js.map +1 -0
  213. package/lib/module/components/ShapeSource.js +184 -0
  214. package/lib/module/components/ShapeSource.js.map +1 -0
  215. package/lib/module/components/SkyLayer.js +64 -0
  216. package/lib/module/components/SkyLayer.js.map +1 -0
  217. package/lib/module/components/Style.js +259 -0
  218. package/lib/module/components/Style.js.map +1 -0
  219. package/lib/module/components/SymbolLayer.js +40 -0
  220. package/lib/module/components/SymbolLayer.js.map +1 -0
  221. package/lib/module/components/Terrain.js +27 -0
  222. package/lib/module/components/Terrain.js.map +1 -0
  223. package/lib/module/components/UserLocation.js +246 -0
  224. package/lib/module/components/UserLocation.js.map +1 -0
  225. package/lib/module/components/VectorSource.js +166 -0
  226. package/lib/module/components/VectorSource.js.map +1 -0
  227. package/lib/module/components/annotations/Annotation.js +97 -0
  228. package/lib/module/components/annotations/Annotation.js.map +1 -0
  229. package/lib/module/global.d.js +2 -0
  230. package/lib/module/global.d.js.map +1 -0
  231. package/lib/module/index.js +105 -0
  232. package/lib/module/index.js.map +1 -0
  233. package/lib/module/index.web.js +3 -0
  234. package/lib/module/index.web.js.map +1 -0
  235. package/lib/module/modules/location/locationManager.js +77 -0
  236. package/lib/module/modules/location/locationManager.js.map +1 -0
  237. package/lib/module/modules/offline/OfflineCreatePackOptions.js +38 -0
  238. package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -0
  239. package/lib/module/modules/offline/OfflinePack.js +34 -0
  240. package/lib/module/modules/offline/OfflinePack.js.map +1 -0
  241. package/lib/module/modules/offline/offlineManager.js +347 -0
  242. package/lib/module/modules/offline/offlineManager.js.map +1 -0
  243. package/lib/module/modules/snapshot/SnapshotOptions.js +53 -0
  244. package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -0
  245. package/lib/module/modules/snapshot/snapshotManager.js +60 -0
  246. package/lib/module/modules/snapshot/snapshotManager.js.map +1 -0
  247. package/lib/module/requestAndroidLocationPermissions.js +19 -0
  248. package/lib/module/requestAndroidLocationPermissions.js.map +1 -0
  249. package/lib/module/types/index.js +2 -0
  250. package/lib/module/types/index.js.map +1 -0
  251. package/lib/module/utils/BridgeValue.js +59 -0
  252. package/lib/module/utils/BridgeValue.js.map +1 -0
  253. package/lib/module/utils/Logger.js +112 -0
  254. package/lib/module/utils/Logger.js.map +1 -0
  255. package/lib/module/utils/MapboxStyles.d.js +179 -0
  256. package/lib/module/utils/MapboxStyles.d.js.map +1 -0
  257. package/lib/module/utils/StyleValue.js +34 -0
  258. package/lib/module/utils/StyleValue.js.map +1 -0
  259. package/lib/module/utils/animated/Animated.js +25 -0
  260. package/lib/module/utils/animated/Animated.js.map +1 -0
  261. package/lib/module/utils/deprecation.js +33 -0
  262. package/lib/module/utils/deprecation.js.map +1 -0
  263. package/lib/module/utils/filterUtils.js +7 -0
  264. package/lib/module/utils/filterUtils.js.map +1 -0
  265. package/lib/module/utils/geoUtils.d.js +2 -0
  266. package/lib/module/utils/geoUtils.d.js.map +1 -0
  267. package/lib/module/utils/geoUtils.js +50 -0
  268. package/lib/module/utils/geoUtils.js.map +1 -0
  269. package/lib/module/utils/index.d.js +2 -0
  270. package/lib/module/utils/index.d.js.map +1 -0
  271. package/lib/module/utils/index.js +99 -0
  272. package/lib/module/utils/index.js.map +1 -0
  273. package/lib/module/utils/styleMap.js +1505 -0
  274. package/lib/module/utils/styleMap.js.map +1 -0
  275. package/lib/module/web/MapContext.js +4 -0
  276. package/lib/module/web/MapContext.js.map +1 -0
  277. package/lib/module/web/MapboxModule.js +13 -0
  278. package/lib/module/web/MapboxModule.js.map +1 -0
  279. package/lib/module/web/UnimplementedComponent.js +8 -0
  280. package/lib/module/web/UnimplementedComponent.js.map +1 -0
  281. package/lib/module/web/components/Camera.js +40 -0
  282. package/lib/module/web/components/Camera.js.map +1 -0
  283. package/lib/module/web/components/MapView.js +60 -0
  284. package/lib/module/web/components/MapView.js.map +1 -0
  285. package/lib/module/web/index.js +16 -0
  286. package/lib/module/web/index.js.map +1 -0
  287. package/lib/module/web/utils/Logger.js +93 -0
  288. package/lib/module/web/utils/Logger.js.map +1 -0
  289. package/lib/typescript/components/AbstractLayer.d.ts +28 -0
  290. package/lib/typescript/components/AbstractLayer.d.ts.map +1 -0
  291. package/lib/typescript/components/AbstractSource.d.ts +9 -0
  292. package/lib/typescript/components/AbstractSource.d.ts.map +1 -0
  293. package/lib/typescript/components/Atmosphere.d.ts +9 -0
  294. package/lib/typescript/components/Atmosphere.d.ts.map +1 -0
  295. package/lib/typescript/components/Camera.d.ts +119 -0
  296. package/lib/typescript/components/Camera.d.ts.map +1 -0
  297. package/lib/typescript/components/HeadingIndicator.d.ts +7 -0
  298. package/lib/typescript/components/HeadingIndicator.d.ts.map +1 -0
  299. package/lib/typescript/components/MarkerView.d.ts +52 -0
  300. package/lib/typescript/components/MarkerView.d.ts.map +1 -0
  301. package/lib/typescript/components/NativeBridgeComponent.d.ts +50 -0
  302. package/lib/typescript/components/NativeBridgeComponent.d.ts.map +1 -0
  303. package/lib/typescript/components/PointAnnotation.d.ts +162 -0
  304. package/lib/typescript/components/PointAnnotation.d.ts.map +1 -0
  305. package/lib/typescript/components/ShapeSource.d.ts +222 -0
  306. package/lib/typescript/components/ShapeSource.d.ts.map +1 -0
  307. package/lib/typescript/components/SymbolLayer.d.ts +65 -0
  308. package/lib/typescript/components/SymbolLayer.d.ts.map +1 -0
  309. package/lib/typescript/components/Terrain.d.ts +20 -0
  310. package/lib/typescript/components/Terrain.d.ts.map +1 -0
  311. package/lib/typescript/requestAndroidLocationPermissions.d.ts +2 -0
  312. package/lib/typescript/requestAndroidLocationPermissions.d.ts.map +1 -0
  313. package/lib/typescript/types/index.d.ts +16 -0
  314. package/lib/typescript/types/index.d.ts.map +1 -0
  315. package/lib/typescript/utils/BridgeValue.d.ts +46 -0
  316. package/lib/typescript/utils/BridgeValue.d.ts.map +1 -0
  317. package/lib/typescript/utils/StyleValue.d.ts +10 -0
  318. package/lib/typescript/utils/StyleValue.d.ts.map +1 -0
  319. package/lib/typescript/utils/deprecation.d.ts +12 -0
  320. package/lib/typescript/utils/deprecation.d.ts.map +1 -0
  321. package/lib/typescript/utils/filterUtils.d.ts +2 -0
  322. package/lib/typescript/utils/filterUtils.d.ts.map +1 -0
  323. package/lib/typescript/utils/styleMap.d.ts +1489 -0
  324. package/lib/typescript/utils/styleMap.d.ts.map +1 -0
  325. package/lib/typescript/web/MapContext.d.ts +7 -0
  326. package/lib/typescript/web/MapContext.d.ts.map +1 -0
  327. package/lib/typescript/web/components/Camera.d.ts +18 -0
  328. package/lib/typescript/web/components/Camera.d.ts.map +1 -0
  329. package/lib/typescript/web/components/MapView.d.ts +20 -0
  330. package/lib/typescript/web/components/MapView.d.ts.map +1 -0
  331. package/lib/typescript/web/utils/Logger.d.ts +48 -0
  332. package/lib/typescript/web/utils/Logger.d.ts.map +1 -0
  333. package/package.json +38 -6
  334. package/plugin/jest.config.js +1 -0
  335. package/plugin/src/withMapbox.ts +365 -0
  336. package/plugin/tsconfig.json +9 -0
  337. package/.eslintrc.js +0 -111
  338. package/.gitattributes +0 -1
  339. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -112
  340. package/.github/ISSUE_TEMPLATE/bug_setup.md +0 -23
  341. package/.github/ISSUE_TEMPLATE/feature.md +0 -15
  342. package/.github/dependabot.yml +0 -42
  343. package/.github/label-actions.yml +0 -26
  344. package/.github/pull_request_template.md +0 -27
  345. package/.github/stale.yml +0 -11
  346. package/.github/workflows/android-actions.yml +0 -56
  347. package/.github/workflows/bump-version.yml +0 -54
  348. package/.github/workflows/ios-actions.yml +0 -81
  349. package/.github/workflows/label-actions.yml +0 -17
  350. package/.github/workflows/on-push.yml +0 -131
  351. package/.github/workflows/publish.yml +0 -29
  352. package/.husky/pre-commit +0 -5
  353. package/.nvmrc +0 -2
  354. package/.prettierrc.js +0 -4
  355. package/.sonarcloud.properties +0 -15
  356. package/CONTRIBUTING.md +0 -30
  357. package/README-v10.md +0 -86
  358. package/RELEASE.md +0 -28
  359. package/app.plugin.js +0 -1
  360. package/babel.config.js +0 -9
  361. package/docs/Annotation.md +0 -39
  362. package/docs/Annotations.md +0 -20
  363. package/docs/Atmosphere.md +0 -265
  364. package/docs/BackgroundLayer.md +0 -166
  365. package/docs/Callout.md +0 -15
  366. package/docs/Camera.md +0 -152
  367. package/docs/CircleLayer.md +0 -470
  368. package/docs/CustomHttpHeaders.md +0 -89
  369. package/docs/FillExtrusionLayer.md +0 -346
  370. package/docs/FillLayer.md +0 -310
  371. package/docs/GettingStarted.md +0 -87
  372. package/docs/HeadingIndicator.md +0 -10
  373. package/docs/HeatmapLayer.md +0 -215
  374. package/docs/ImageSource.md +0 -13
  375. package/docs/Images.md +0 -12
  376. package/docs/Light.md +0 -159
  377. package/docs/LineLayer.md +0 -606
  378. package/docs/Logger.md +0 -22
  379. package/docs/MapView.md +0 -228
  380. package/docs/MapboxGL.md +0 -83
  381. package/docs/MarkerView.md +0 -26
  382. package/docs/NativeUserLocation.md +0 -11
  383. package/docs/OfflineManager.md +0 -264
  384. package/docs/PointAnnotation.md +0 -42
  385. package/docs/RasterDemSource.md +0 -15
  386. package/docs/RasterLayer.md +0 -357
  387. package/docs/RasterSource.md +0 -19
  388. package/docs/ShapeSource.md +0 -106
  389. package/docs/SkyLayer.md +0 -259
  390. package/docs/Style.md +0 -12
  391. package/docs/StyleSheet.md +0 -226
  392. package/docs/SymbolLayer.md +0 -1659
  393. package/docs/Terrain.md +0 -77
  394. package/docs/UserLocation.md +0 -39
  395. package/docs/VectorSource.md +0 -49
  396. package/docs/docs.json +0 -6571
  397. package/docs/snapshotManager.md +0 -55
  398. package/scripts/.eslintrc.js +0 -12
  399. package/scripts/autogenHelpers/DocJSONBuilder.js +0 -458
  400. package/scripts/autogenHelpers/JSDocNodeTree.js +0 -134
  401. package/scripts/autogenHelpers/MarkdownBuilder.js +0 -38
  402. package/scripts/autogenHelpers/globals.js +0 -518
  403. package/scripts/autogenerate.js +0 -545
  404. package/scripts/download-style-spec.sh +0 -15
  405. package/scripts/templates/MapboxStyles.ts.ejs +0 -97
  406. package/scripts/templates/RCTMGLStyle.h.ejs +0 -34
  407. package/scripts/templates/RCTMGLStyle.m.ejs +0 -106
  408. package/scripts/templates/RCTMGLStyle.swift.ejs +0 -116
  409. package/scripts/templates/RCTMGLStyleFactory.java.ejs +0 -108
  410. package/scripts/templates/RCTMGLStyleFactoryv10.java.ejs +0 -116
  411. package/scripts/templates/component.md.ejs +0 -122
  412. package/scripts/templates/index.d.ts.ejs +0 -56
  413. package/scripts/templates/styleMap.ts.ejs +0 -118
  414. package/setup-jest.js +0 -125
  415. package/style-spec/v8.json +0 -6727
  416. package/tsconfig.json +0 -24
package/docs/MapView.md DELETED
@@ -1,228 +0,0 @@
1
- <!-- This file was autogenerated from MapView.js do not modify -->
2
- # <MapboxGL.MapView />
3
- MapView backed by Mapbox Native GL
4
-
5
- ## props
6
- | Prop | Type | Default | Required | Description |
7
- | ---- | :-- | :----- | :------ | :---------- |
8
- | contentInset | `union` | `none` | `false` | The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport. |
9
- | projection | `enum` | `'mercator'` | `false` | The projection used when rendering the map |
10
- | style | `any` | `none` | `false` | Style for wrapping React Native View |
11
- | styleURL | `string` | `none` | `false` | Style URL for map - notice, if non is set it _will_ default to `MapboxGL.StyleURL.Street` |
12
- | styleJSON | `string` | `none` | `false` | StyleJSON for map - according to TileJSON specs: https://github.com/mapbox/tilejson-spec |
13
- | preferredFramesPerSecond | `number` | `none` | `false` | iOS: The preferred frame rate at which the map view is rendered.<br/>The default value for this property is MGLMapViewPreferredFramesPerSecondDefault,<br/>which will adaptively set the preferred frame rate based on the capability of<br/>the user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.<br/><br/>Android: The maximum frame rate at which the map view is rendered, but it can't exceed the ability of device hardware.<br/>This property can be set to arbitrary integer values. |
14
- | localizeLabels | `bool` | `false` | `false` | Automatically change the language of the map labels to the system’s preferred language,<br/>this is not something that can be toggled on/off |
15
- | zoomEnabled | `bool` | `none` | `false` | Enable/Disable zoom on the map |
16
- | scrollEnabled | `bool` | `true` | `false` | Enable/Disable scroll on the map |
17
- | pitchEnabled | `bool` | `true` | `false` | Enable/Disable pitch on map |
18
- | rotateEnabled | `bool` | `true` | `false` | Enable/Disable rotation on map |
19
- | attributionEnabled | `bool` | `true` | `false` | The Mapbox terms of service, which governs the use of Mapbox-hosted vector tiles and styles,<br/>[requires](https://www.mapbox.com/help/how-attribution-works/) these copyright notices to accompany any map that features Mapbox-designed styles, OpenStreetMap data, or other Mapbox data such as satellite or terrain data.<br/>If that applies to this map view, do not hide this view or remove any notices from it.<br/><br/>You are additionally [required](https://www.mapbox.com/help/how-mobile-apps-work/#telemetry) to provide users with the option to disable anonymous usage and location sharing (telemetry).<br/>If this view is hidden, you must implement this setting elsewhere in your app. See our website for [Android](https://www.mapbox.com/android-docs/map-sdk/overview/#telemetry-opt-out) and [iOS](https://www.mapbox.com/ios-sdk/#telemetry_opt_out) for implementation details.<br/><br/>Enable/Disable attribution on map. For iOS you need to add MGLMapboxMetricsEnabledSettingShownInApp=YES<br/>to your Info.plist |
20
- | attributionPosition | `custom` | `none` | `false` | Adds attribution offset, e.g. `{top: 8, left: 8}` will put attribution button in top-left corner of the map. By default on Android, the attribution with information icon (i) will be on the bottom left, while on iOS the mapbox logo will be on bottom left with information icon (i) on bottom right. Read more about mapbox attribution [here](https://docs.mapbox.com/help/getting-started/attribution/) |
21
- | tintColor | `union` | `none` | `false` | MapView's tintColor |
22
- | logoEnabled | `bool` | `true` | `false` | Enable/Disable the logo on the map. |
23
- | logoPosition | `custom` | `none` | `false` | Adds logo offset, e.g. `{top: 8, left: 8}` will put the logo in top-left corner of the map |
24
- | compassEnabled | `bool` | `false` | `false` | Enable/Disable the compass from appearing on the map |
25
- | compassFadeWhenNorth | `bool` | `false` | `false` | [`mapbox` (v10) implementation only] Enable/Disable if the compass should fade out when the map is pointing north |
26
- | compassPosition | `custom` | `none` | `false` | [`mapbox` (v10) implementation only] Adds compass offset, e.g. `{top: 8, left: 8}` will put the compass in top-left corner of the map |
27
- | compassViewPosition | `number` | `none` | `false` | Change corner of map the compass starts at. 0: TopLeft, 1: TopRight, 2: BottomLeft, 3: BottomRight |
28
- | compassViewMargins | `object` | `none` | `false` | Add margins to the compass with x and y values |
29
- | scaleBarEnabled | `bool` | `true` | `false` | [`mapbox` (v10) implementation only] Enable/Disable the scale bar from appearing on the map |
30
- | scaleBarPosition | `custom` | `none` | `false` | [`mapbox` (v10) implementation only] Adds scale bar offset, e.g. `{top: 8, left: 8}` will put the scale bar in top-left corner of the map |
31
- | surfaceView | `bool` | `false` | `false` | [Android only] Enable/Disable use of GLSurfaceView instead of TextureView. |
32
- | onPress | `func` | `none` | `false` | Map press listener, gets called when a user presses the map |
33
- | onLongPress | `func` | `none` | `false` | Map long press listener, gets called when a user long presses the map |
34
- | onRegionWillChange | `func` | `none` | `false` | <v10 only<br/><br/>This event is triggered whenever the currently displayed map region is about to change. |
35
- | onRegionIsChanging | `func` | `none` | `false` | This event is triggered whenever the currently displayed map region is changing. |
36
- | onRegionDidChange | `func` | `none` | `false` | This event is triggered whenever the currently displayed map region finished changing. |
37
- | onCameraChanged | `func` | `none` | `false` | iOS, v10 only, deprecated will be removed in next version - please use onRegionIsChanging. |
38
- | onMapIdle | `func` | `none` | `false` | iOS, v10 only, deprecated will be removed in next version - please use onRegionDidChange |
39
- | onWillStartLoadingMap | `func` | `none` | `false` | This event is triggered when the map is about to start loading a new map style. |
40
- | onDidFinishLoadingMap | `func` | `none` | `false` | This is triggered when the map has successfully loaded a new map style. |
41
- | onDidFailLoadingMap | `func` | `none` | `false` | This event is triggered when the map has failed to load a new map style. |
42
- | onWillStartRenderingFrame | `func` | `none` | `false` | This event is triggered when the map will start rendering a frame. |
43
- | onDidFinishRenderingFrame | `func` | `none` | `false` | This event is triggered when the map finished rendering a frame. |
44
- | onDidFinishRenderingFrameFully | `func` | `none` | `false` | This event is triggered when the map fully finished rendering a frame. |
45
- | onWillStartRenderingMap | `func` | `none` | `false` | This event is triggered when the map will start rendering the map. |
46
- | onDidFinishRenderingMap | `func` | `none` | `false` | This event is triggered when the map finished rendering the map. |
47
- | onDidFinishRenderingMapFully | `func` | `none` | `false` | This event is triggered when the map fully finished rendering the map. |
48
- | onUserLocationUpdate | `func` | `none` | `false` | This event is triggered when the user location is updated. |
49
- | onDidFinishLoadingStyle | `func` | `none` | `false` | This event is triggered when a style has finished loading. |
50
- | regionWillChangeDebounceTime | `number` | `10` | `false` | The emitted frequency of regionwillchange events |
51
- | regionDidChangeDebounceTime | `number` | `500` | `false` | The emitted frequency of regiondidchange events |
52
-
53
- ## methods
54
- ### getPointInView(coordinate)
55
-
56
- Converts a geographic coordinate to a point in the given view’s coordinate system.
57
-
58
- #### arguments
59
- | Name | Type | Required | Description |
60
- | ---- | :--: | :------: | :----------: |
61
- | `coordinate` | `Array` | `Yes` | A point expressed in the map view's coordinate system. |
62
-
63
-
64
-
65
- ```javascript
66
- const pointInView = await this._map.getPointInView([-37.817070, 144.949901]);
67
- ```
68
-
69
-
70
- ### getCoordinateFromView(point)
71
-
72
- Converts a point in the given view’s coordinate system to a geographic coordinate.
73
-
74
- #### arguments
75
- | Name | Type | Required | Description |
76
- | ---- | :--: | :------: | :----------: |
77
- | `point` | `Array` | `Yes` | A point expressed in the given view’s coordinate system. |
78
-
79
-
80
-
81
- ```javascript
82
- const coordinate = await this._map.getCoordinateFromView([100, 100]);
83
- ```
84
-
85
-
86
- ### getVisibleBounds()
87
-
88
- The coordinate bounds (ne, sw) visible in the user’s viewport.
89
-
90
- #### arguments
91
- | Name | Type | Required | Description |
92
- | ---- | :--: | :------: | :----------: |
93
-
94
-
95
-
96
-
97
- ```javascript
98
- const visibleBounds = await this._map.getVisibleBounds();
99
- ```
100
-
101
-
102
- ### queryRenderedFeaturesAtPoint(coordinate[, filter][, layerIDs])
103
-
104
- Returns an array of rendered map features that intersect with a given point.
105
-
106
- #### arguments
107
- | Name | Type | Required | Description |
108
- | ---- | :--: | :------: | :----------: |
109
- | `coordinate` | `Array` | `Yes` | A point expressed in the map view’s coordinate system. |
110
- | `filter` | `Array` | `No` | A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
111
- | `layerIDs` | `Array` | `No` | A array of layer id's to filter the features by |
112
-
113
-
114
-
115
- ```javascript
116
- this._map.queryRenderedFeaturesAtPoint([30, 40], ['==', 'type', 'Point'], ['id1', 'id2'])
117
- ```
118
-
119
-
120
- ### queryRenderedFeaturesInRect(bbox[, filter][, layerIDs])
121
-
122
- Returns an array of rendered map features that intersect with the given rectangle,<br/>restricted to the given style layers and filtered by the given predicate. In v10,<br/>passing an empty array will query the entire visible bounds of the map.
123
-
124
- #### arguments
125
- | Name | Type | Required | Description |
126
- | ---- | :--: | :------: | :----------: |
127
- | `bbox` | `Array` | `Yes` | A rectangle expressed in the map view’s coordinate system. For v10, this can be an empty array to query the visible map area. |
128
- | `filter` | `Array` | `No` | A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
129
- | `layerIDs` | `Array` | `No` | A array of layer id's to filter the features by |
130
-
131
-
132
-
133
- ```javascript
134
- this._map.queryRenderedFeaturesInRect([30, 40, 20, 10], ['==', 'type', 'Point'], ['id1', 'id2'])
135
- ```
136
-
137
-
138
- ### setCamera()
139
-
140
- Map camera will perform updates based on provided config. Deprecated use Camera#setCamera.
141
-
142
- #### arguments
143
- | Name | Type | Required | Description |
144
- | ---- | :--: | :------: | :----------: |
145
-
146
-
147
-
148
- ### takeSnap([writeToDisk])
149
-
150
- Takes snapshot of map with current tiles and returns a URI to the image
151
-
152
- #### arguments
153
- | Name | Type | Required | Description |
154
- | ---- | :--: | :------: | :----------: |
155
- | `writeToDisk` | `Boolean` | `No` | If true will create a temp file, otherwise it is in base64 |
156
-
157
-
158
- ### getZoom()
159
-
160
- Returns the current zoom of the map view.
161
-
162
- #### arguments
163
- | Name | Type | Required | Description |
164
- | ---- | :--: | :------: | :----------: |
165
-
166
-
167
-
168
-
169
- ```javascript
170
- const zoom = await this._map.getZoom();
171
- ```
172
-
173
-
174
- ### getCenter()
175
-
176
- Returns the map's geographical centerpoint
177
-
178
- #### arguments
179
- | Name | Type | Required | Description |
180
- | ---- | :--: | :------: | :----------: |
181
-
182
-
183
-
184
-
185
- ```javascript
186
- const center = await this._map.getCenter();
187
- ```
188
-
189
-
190
- ### queryTerrainElevation(coordinate)
191
-
192
- Queries the currently loaded data for elevation at a geographical location.<br/>The elevation is returned in meters relative to mean sea-level.<br/>Returns null if terrain is disabled or if terrain data for the location hasn't been loaded yet.
193
-
194
- #### arguments
195
- | Name | Type | Required | Description |
196
- | ---- | :--: | :------: | :----------: |
197
- | `coordinate` | `Array` | `Yes` | the coordinates to query elevation at |
198
-
199
-
200
- ### setSourceVisibility(visible, sourceId[, sourceLayerId])
201
-
202
- Sets the visibility of all the layers referencing the specified `sourceLayerId` and/or `sourceId`
203
-
204
- #### arguments
205
- | Name | Type | Required | Description |
206
- | ---- | :--: | :------: | :----------: |
207
- | `visible` | `boolean` | `Yes` | Visibility of the layers |
208
- | `sourceId` | `String` | `Yes` | Identifier of the target source (e.g. 'composite') |
209
- | `sourceLayerId` | `String` | `No` | Identifier of the target source-layer (e.g. 'building') |
210
-
211
-
212
-
213
- ```javascript
214
- await this._map.setSourceVisibility(false, 'composite', 'building')
215
- ```
216
-
217
-
218
- ### showAttribution()
219
-
220
- Show the attribution and telemetry action sheet.<br/>If you implement a custom attribution button, you should add this action to the button.
221
-
222
- #### arguments
223
- | Name | Type | Required | Description |
224
- | ---- | :--: | :------: | :----------: |
225
-
226
-
227
-
228
-
package/docs/MapboxGL.md DELETED
@@ -1,83 +0,0 @@
1
- # MapboxGL
2
-
3
- ## methods
4
- ### setAccessToken(accessToken)
5
-
6
- #### arguments
7
- | Name | Type | Required | Description |
8
- | ---- | :--: | :------: | :----------: |
9
- | `accessToken` | `String` | `Yes` | required acessToken to pull mapbox tiles, can be `null` if other tiles are used |
10
-
11
- #### Description
12
- sets the accessToken, which is required when you want to use mapbox tiles
13
- not required when using other tiles
14
-
15
- ### setWellKnownTileServer(tileServer)
16
-
17
- #### arguments
18
- | Name | Type | Required | Description |
19
- | ---- | :--: | :------: | :----------: |
20
- | `tileServer` | `String` | `Yes` | tile server |
21
-
22
- #### Description
23
- No-op on non MapLibre implemntations. Use MapboxGL.TileServers.Mapbox to consume mapbox tiles with maplibre. *Note*: Consuming mapbox with MapLibre has different pricing than with the official SDK. Other values: MapboxGL.TileServers.MapLibre, MapboxGL.TileServers.MapTiler
24
-
25
- ### getAccessToken()
26
-
27
- #### arguments
28
- | Name | Type | Required | Description |
29
- | ---- | :--: | :------: | :----------: |
30
- | `accessToken` | `String` | `Yes` | required acessToken to pull mapbox tiles, can be `null` if other tiles are used |
31
-
32
- #### Description
33
- gets the accessToken
34
-
35
-
36
- ### addCustomHeader(headerName, headerValue)
37
-
38
- #### arguments
39
- | Name | Type | Required | Description |
40
- | ---- | :--: | :------: | :----------: |
41
- | `headerName` | `String` | `Yes` | name for customHeader |
42
- | `headerValue` | `String` | `Yes` | value for customHeader |
43
-
44
- #### Description
45
- also see [CustomHttpHeaders](/docs/CustomHttpHeaders.md)
46
-
47
-
48
- ### removeCustomHeader(headerName)
49
-
50
- #### arguments
51
- | Name | Type | Required | Description |
52
- | ---- | :--: | :------: | :----------: |
53
- | `headerName` | `String` | `Yes` | name of customHeader to be removed |
54
-
55
- #### Description
56
- also see [CustomHttpHeaders](/docs/CustomHttpHeaders.md)
57
-
58
- ### setTelemetryEnabled(telemetryEnabled)
59
-
60
- #### arguments
61
- | Name | Type | Required | Description |
62
- | ---- | :--: | :------: | :----------: |
63
- | `telemetryEnabled` | `Boolean` | `Yes` | |
64
-
65
- #### Description
66
- If mapbox' telemetry should be enabled or not
67
-
68
- ## Android only
69
- ### requestAndroidLocationPermissions()
70
- #### Description
71
- Opens Android Location Permission prompt.
72
- Returns a Promise which resolves into a boolean.
73
- Either permission was granted or denied.
74
-
75
-
76
- ### setConnected(connected)
77
- #### arguments
78
- | Name | Type | Required | Description |
79
- | ---- | :--: | :------: | :----------: |
80
- | `connected` | `Boolean` | `Yes` | whether or not mapbox is told to be connected or not |
81
-
82
- ### Description
83
- If you want to fully block online map - maybe to force offline maps
@@ -1,26 +0,0 @@
1
- <!-- This file was autogenerated from MarkerView.tsx do not modify -->
2
- # <MapboxGL.MarkerView />
3
- MarkerView represents an interactive React Native marker on the map.
4
-
5
- If you have static views, consider using PointAnnotation or SymbolLayer to display
6
- an image, as they'll offer much better performance. Mapbox suggests using this
7
- component for a maximum of around 100 views displayed at one time.
8
-
9
- This is implemented with view annotations on [Android](https://docs.mapbox.com/android/maps/guides/annotations/view-annotations/)
10
- and [iOS](https://docs.mapbox.com/ios/maps/guides/annotations/view-annotations).
11
-
12
- This component has no dedicated `onPress` method. Instead, you should handle gestures
13
- with the React views passed in as `children`.
14
-
15
- ## props
16
- | Prop | Type | Default | Required | Description |
17
- | ---- | :-- | :----- | :------ | :---------- |
18
- | coordinate | `tuple` | `none` | `true` | The center point (specified as a map coordinate) of the marker. |
19
- | anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Any coordinate between (0, 0) and (1, 1), where (0, 0) is the top-left corner of<br/>the view, and (1, 1) is the bottom-right corner. Defaults to the center at (0.5, 0.5). |
20
- | &nbsp;&nbsp;x | `number` | `none` | `true` | FIX ME NO DESCRIPTION |
21
- | &nbsp;&nbsp;y | `number` | `none` | `true` | FIX ME NO DESCRIPTION |
22
- | allowOverlap | `boolean` | `false` | `false` | @v10<br/><br/>Whether or not nearby markers on the map should all be displayed. If false, adjacent<br/>markers will 'collapse' and only one will be shown. Defaults to false. |
23
- | isSelected | `boolean` | `false` | `false` | FIX ME NO DESCRIPTION |
24
- | children | `ReactReactElement` | `none` | `true` | One or more valid React Native views. |
25
-
26
-
@@ -1,11 +0,0 @@
1
- <!-- This file was autogenerated from NativeUserLocation.js do not modify -->
2
- # <MapboxGL.NativeUserLocation />
3
-
4
-
5
- ## props
6
- | Prop | Type | Default | Required | Description |
7
- | ---- | :-- | :----- | :------ | :---------- |
8
- | androidRenderMode | `enum` | `none` | `false` | Android render mode.<br/><br/> - normal: just a circle<br/> - compass: triangle with heading<br/> - gps: large arrow<br/><br/>@platform android |
9
- | iosShowsUserHeadingIndicator | `bool` | `none` | `false` | iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.<br/><br/>@platform ios |
10
-
11
-
@@ -1,264 +0,0 @@
1
- <!-- This file was autogenerated from offlineManager.js do not modify -->
2
- # <MapboxGL.offlineManager />
3
- OfflineManager implements a singleton (shared object) that manages offline packs.
4
- All of this class’s instance methods are asynchronous, reflecting the fact that offline resources are stored in a database.
5
- The shared object maintains a canonical collection of offline packs.
6
-
7
-
8
- ## methods
9
- ### createPack(options[, progressListener][, errorListener])
10
-
11
- Creates and registers an offline pack that downloads the resources needed to use the given region offline.
12
-
13
- #### arguments
14
- | Name | Type | Required | Description |
15
- | ---- | :--: | :------: | :----------: |
16
- | `options` | `OfflineCreatePackOptions` | `Yes` | Create options for a offline pack that specifices zoom levels, style url, and the region to download. |
17
- | `progressListener` | `Callback` | `No` | Callback that listens for status events while downloading the offline resource. |
18
- | `errorListener` | `Callback` | `No` | Callback that listens for status events while downloading the offline resource. |
19
-
20
-
21
-
22
- ```javascript
23
- const progressListener = (offlineRegion, status) => console.log(offlineRegion, status);
24
- const errorListener = (offlineRegion, err) => console.log(offlineRegion, err);
25
-
26
- await MapboxGL.offlineManager.createPack({
27
- name: 'offlinePack',
28
- styleURL: 'mapbox://...',
29
- minZoom: 14,
30
- maxZoom: 20,
31
- bounds: [[neLng, neLat], [swLng, swLat]]
32
- }, progressListener, errorListener)
33
- ```
34
-
35
-
36
- ### invalidatePack(name)
37
-
38
- Invalidates the specified offline pack. This method checks that the tiles in the specified offline pack match those from the server. Local tiles that do not match the latest version on the server are updated.This is more efficient than deleting the offline pack and downloading it again. If the data stored locally matches that on the server, new data will not be downloaded.
39
-
40
- #### arguments
41
- | Name | Type | Required | Description |
42
- | ---- | :--: | :------: | :----------: |
43
- | `name` | `String` | `Yes` | Name of the offline pack. |
44
-
45
-
46
-
47
- ```javascript
48
- await MapboxGL.offlineManager.invalidatePack('packName')
49
- ```
50
-
51
-
52
- ### deletePack(name)
53
-
54
- Unregisters the given offline pack and allows resources that are no longer required by any remaining packs to be potentially freed.
55
-
56
- #### arguments
57
- | Name | Type | Required | Description |
58
- | ---- | :--: | :------: | :----------: |
59
- | `name` | `String` | `Yes` | Name of the offline pack. |
60
-
61
-
62
-
63
- ```javascript
64
- await MapboxGL.offlineManager.deletePack('packName')
65
- ```
66
-
67
-
68
- ### invalidateAmbientCache()
69
-
70
- Forces a revalidation of the tiles in the ambient cache and downloads a fresh version of the tiles from the tile server.<br/>This is the recommend method for clearing the cache.<br/>This is the most efficient method because tiles in the ambient cache are re-downloaded to remove outdated data from a device.<br/>It does not erase resources from the ambient cache or delete the database, which can be computationally expensive operations that may carry unintended side effects.
71
-
72
- #### arguments
73
- | Name | Type | Required | Description |
74
- | ---- | :--: | :------: | :----------: |
75
-
76
-
77
-
78
-
79
- ```javascript
80
- await MapboxGL.offlineManager.invalidateAmbientCache();
81
- ```
82
-
83
-
84
- ### clearAmbientCache()
85
-
86
- Erases resources from the ambient cache.<br/>This method clears the cache and decreases the amount of space that map resources take up on the device.
87
-
88
- #### arguments
89
- | Name | Type | Required | Description |
90
- | ---- | :--: | :------: | :----------: |
91
-
92
-
93
-
94
-
95
- ```javascript
96
- await MapboxGL.offlineManager.clearAmbientCache();
97
- ```
98
-
99
-
100
- ### migrateOfflineCache()
101
-
102
- Migrates the offline cache from pre-v10 SDKs to the new v10 cache location
103
-
104
- #### arguments
105
- | Name | Type | Required | Description |
106
- | ---- | :--: | :------: | :----------: |
107
-
108
-
109
-
110
-
111
- ```javascript
112
- await MapboxGL.offlineManager.migrateOfflineCache()
113
- ```
114
-
115
-
116
- ### setMaximumAmbientCacheSize(size)
117
-
118
- Sets the maximum size of the ambient cache in bytes. Disables the ambient cache if set to 0.<br/>This method may be computationally expensive because it will erase resources from the ambient cache if its size is decreased.
119
-
120
- #### arguments
121
- | Name | Type | Required | Description |
122
- | ---- | :--: | :------: | :----------: |
123
- | `size` | `Number` | `Yes` | Size of ambient cache. |
124
-
125
-
126
-
127
- ```javascript
128
- await MapboxGL.offlineManager.setMaximumAmbientCacheSize(5000000);
129
- ```
130
-
131
-
132
- ### resetDatabase()
133
-
134
- Deletes the existing database, which includes both the ambient cache and offline packs, then reinitializes it.
135
-
136
- #### arguments
137
- | Name | Type | Required | Description |
138
- | ---- | :--: | :------: | :----------: |
139
-
140
-
141
-
142
-
143
- ```javascript
144
- await MapboxGL.offlineManager.resetDatabase();
145
- ```
146
-
147
-
148
- ### getPacks()
149
-
150
- Retrieves all the current offline packs that are stored in the database.
151
-
152
- #### arguments
153
- | Name | Type | Required | Description |
154
- | ---- | :--: | :------: | :----------: |
155
-
156
-
157
-
158
-
159
- ```javascript
160
- const offlinePacks = await MapboxGL.offlineManager.getPacks();
161
- ```
162
-
163
-
164
- ### getPack(name)
165
-
166
- Retrieves an offline pack that is stored in the database by name.
167
-
168
- #### arguments
169
- | Name | Type | Required | Description |
170
- | ---- | :--: | :------: | :----------: |
171
- | `name` | `String` | `Yes` | Name of the offline pack. |
172
-
173
-
174
-
175
- ```javascript
176
- const offlinePack = await MapboxGL.offlineManager.getPack();
177
- ```
178
-
179
-
180
- ### mergeOfflineRegions(path)
181
-
182
- Sideloads offline db
183
-
184
- #### arguments
185
- | Name | Type | Required | Description |
186
- | ---- | :--: | :------: | :----------: |
187
- | `path` | `String` | `Yes` | Path to offline tile db on file system. |
188
-
189
-
190
-
191
- ```javascript
192
- await MapboxGL.offlineManager.mergeOfflineRegions(path);
193
- ```
194
-
195
-
196
- ### setTileCountLimit(limit)
197
-
198
- Sets the maximum number of Mapbox-hosted tiles that may be downloaded and stored on the current device.<br/>The Mapbox Terms of Service prohibit changing or bypassing this limit without permission from Mapbox.
199
-
200
- #### arguments
201
- | Name | Type | Required | Description |
202
- | ---- | :--: | :------: | :----------: |
203
- | `limit` | `Number` | `Yes` | Map tile limit count. |
204
-
205
-
206
-
207
- ```javascript
208
- MapboxGL.offlineManager.setTileCountLimit(1000);
209
- ```
210
-
211
-
212
- ### setProgressEventThrottle(throttleValue)
213
-
214
- Sets the period at which download status events will be sent over the React Native bridge.<br/>The default is 500ms.
215
-
216
- #### arguments
217
- | Name | Type | Required | Description |
218
- | ---- | :--: | :------: | :----------: |
219
- | `throttleValue` | `Number` | `Yes` | event throttle value in ms. |
220
-
221
-
222
-
223
- ```javascript
224
- MapboxGL.offlineManager.setProgressEventThrottle(500);
225
- ```
226
-
227
-
228
- ### subscribe(packName, progressListener, errorListener)
229
-
230
- Subscribe to download status/error events for the requested offline pack.<br/>Note that createPack calls this internally if listeners are provided.
231
-
232
- #### arguments
233
- | Name | Type | Required | Description |
234
- | ---- | :--: | :------: | :----------: |
235
- | `packName` | `String` | `Yes` | Name of the offline pack. |
236
- | `progressListener` | `Callback` | `Yes` | Callback that listens for status events while downloading the offline resource. |
237
- | `errorListener` | `Callback` | `Yes` | Callback that listens for status events while downloading the offline resource. |
238
-
239
-
240
-
241
- ```javascript
242
- const progressListener = (offlinePack, status) => console.log(offlinePack, status)
243
- const errorListener = (offlinePack, err) => console.log(offlinePack, err)
244
- MapboxGL.offlineManager.subscribe('packName', progressListener, errorListener)
245
- ```
246
-
247
-
248
- ### unsubscribe(packName)
249
-
250
- Unsubscribes any listeners associated with the offline pack.<br/>It's a good idea to call this on componentWillUnmount.
251
-
252
- #### arguments
253
- | Name | Type | Required | Description |
254
- | ---- | :--: | :------: | :----------: |
255
- | `packName` | `String` | `Yes` | Name of the offline pack. |
256
-
257
-
258
-
259
- ```javascript
260
- MapboxGL.offlineManager.unsubscribe('packName')
261
- ```
262
-
263
-
264
-
@@ -1,42 +0,0 @@
1
- <!-- This file was autogenerated from PointAnnotation.tsx do not modify -->
2
- # <MapboxGL.PointAnnotation />
3
- PointAnnotation represents a one-dimensional shape located at a single geographical coordinate.
4
-
5
- Consider using ShapeSource and SymbolLayer instead, if you have many points and you have static images,
6
- they'll offer much better performance.
7
-
8
- If you need interactive views please use MarkerView,
9
- as with PointAnnotation child views are rendered onto a bitmap
10
-
11
- ## props
12
- | Prop | Type | Default | Required | Description |
13
- | ---- | :-- | :----- | :------ | :---------- |
14
- | id | `string` | `none` | `true` | A string that uniquely identifies the annotation |
15
- | title | `string` | `none` | `false` | The string containing the annotation’s title. Note this is required to be set if you want to see a callout appear on iOS. |
16
- | snippet | `string` | `none` | `false` | The string containing the annotation’s snippet(subtitle). Not displayed in the default callout. |
17
- | selected | `boolean` | `none` | `false` | Manually selects/deselects annotation |
18
- | draggable | `boolean` | `false` | `false` | Enable or disable dragging. Defaults to false. |
19
- | coordinate | `tuple` | `none` | `true` | The center point (specified as a map coordinate) of the annotation. |
20
- | anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
21
- | &nbsp;&nbsp;x | `number` | `none` | `true` | See anchor |
22
- | &nbsp;&nbsp;y | `number` | `none` | `true` | See anchor |
23
- | onSelected | `func` | `none` | `false` | This callback is fired once this annotation is selected. Returns a Feature as the first param.<br/>*signature:*`(payload:{feature: Feature}) => void` |
24
- | onDeselected | `func` | `none` | `false` | This callback is fired once this annotation is deselected.<br/>*signature:*`(payload:{feature: Feature}) => void` |
25
- | onDragStart | `func` | `none` | `false` | This callback is fired once this annotation has started being dragged.<br/>*signature:*`(payload:{feature: Feature}) => void` |
26
- | onDragEnd | `func` | `none` | `false` | This callback is fired once this annotation has stopped being dragged.<br/>*signature:*`(payload:{feature: Feature}) => void` |
27
- | onDrag | `func` | `none` | `false` | This callback is fired while this annotation is being dragged.<br/>*signature:*`(payload:{feature: Feature}) => void` |
28
- | children | `ReactReactElement` | `none` | `true` | Expects one child, and an optional callout can be added as well |
29
- | style | `ViewProps['style']` | `none` | `false` | FIX ME NO DESCRIPTION |
30
-
31
- ## methods
32
- ### refresh()
33
-
34
- On v10 and pre v10 android point annotation is rendered offscreen with a canvas into an image.<br/>To rerender the image from the current state of the view call refresh.<br/>Call this for example from Image#onLoad.
35
-
36
- #### arguments
37
- | Name | Type | Required | Description |
38
- | ---- | :--: | :------: | :----------: |
39
-
40
-
41
-
42
-
@@ -1,15 +0,0 @@
1
- <!-- This file was autogenerated from RasterDemSource.js do not modify -->
2
- # <MapboxGL.RasterDemSource />
3
-
4
-
5
- ## props
6
- | Prop | Type | Default | Required | Description |
7
- | ---- | :-- | :----- | :------ | :---------- |
8
- | id | `string` | `MapboxGL.StyleSource.DefaultSourceID` | `false` | A string that uniquely identifies the source. |
9
- | url | `string` | `none` | `false` | A URL to a TileJSON configuration file describing the source’s contents and other metadata. |
10
- | tileUrlTemplates | `array` | `none` | `false` | An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.<br/>Example: https://example.com/raster-tiles/{z}/{x}/{y}.png |
11
- | minZoomLevel | `number` | `none` | `false` | An unsigned integer that specifies the minimum zoom level at which to display tiles from the source.<br/>The value should be between 0 and 22, inclusive, and less than<br/>maxZoomLevel, if specified. The default value for this option is 0. |
12
- | maxZoomLevel | `number` | `none` | `false` | An unsigned integer that specifies the maximum zoom level at which to display tiles from the source.<br/>The value should be between 0 and 22, inclusive, and less than<br/>minZoomLevel, if specified. The default value for this option is 22. |
13
- | tileSize | `number` | `none` | `false` | Size of the map tiles.<br/>Mapbox urls default to 256, all others default to 512. |
14
-
15
-