@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkerView.d.ts","sourceRoot":"","sources":["../../../javascript/components/MarkerView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKL,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAStB,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,aAAK,KAAK,GAAG,SAAS,GAAG;IACvB;;OAEG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE7B;;;OAGG;IACH,MAAM,EAAE;QACN,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IAEF;;;;;OAKG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,cAAM,UAAW,SAAQ,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC;IACjD,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC,CAIjC;IAEF,MAAM,CAAC,MAAM,SAAK;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,qBAAqB,IAAI,MAAM;IAQ/B,cAAc,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS;IAOhE,MAAM;CAmDP;AAYD,eAAe,UAAU,CAAC"}
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { type NativeArg } from '../utils';
3
+ export declare type RNMBEvent<PayloadType = {
4
+ [key: string]: string;
5
+ }> = {
6
+ payload: PayloadType;
7
+ type: string;
8
+ };
9
+ declare const NativeBridgeComponent: <Props extends object, BaseComponent extends new (...ags: any[]) => React.Component<Props, {}, any>>(Base: BaseComponent, nativeModuleName: string) => {
10
+ new (...args: any[]): {
11
+ _nativeModuleName: string;
12
+ _onAndroidCallback: (e: any) => void;
13
+ _callbackMap: Map<string, any>;
14
+ _preRefMapMethodQueue: {
15
+ method: {
16
+ name: string;
17
+ args: NativeArg[];
18
+ };
19
+ resolver: (value: NativeArg) => void;
20
+ }[];
21
+ _addAddAndroidCallback<ReturnType_1>(id: string, resolve: (value: ReturnType_1) => void, reject: (error: Error) => void): void;
22
+ _removeAndroidCallback(id: string): void;
23
+ _onAndroidCallbackO(e: React.SyntheticEvent<Element, RNMBEvent>): void;
24
+ _runPendingNativeCommands<RefType>(nativeRef: RefType): Promise<void>;
25
+ _runNativeCommand<RefType_1, ReturnType_2 = NativeArg>(methodName: string, nativeRef: RefType_1, args?: NativeArg[]): Promise<ReturnType_2>;
26
+ context: unknown;
27
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
28
+ forceUpdate(callback?: (() => void) | undefined): void;
29
+ render(): React.ReactNode;
30
+ readonly props: Readonly<Props>;
31
+ state: Readonly<{}>;
32
+ refs: {
33
+ [key: string]: React.ReactInstance;
34
+ };
35
+ componentDidMount?(): void;
36
+ shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<{}>, nextContext: any): boolean;
37
+ componentWillUnmount?(): void;
38
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
39
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<{}>): any;
40
+ componentDidUpdate?(prevProps: Readonly<Props>, prevState: Readonly<{}>, snapshot?: any): void;
41
+ componentWillMount?(): void;
42
+ UNSAFE_componentWillMount?(): void;
43
+ componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
44
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
45
+ componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<{}>, nextContext: any): void;
46
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<{}>, nextContext: any): void;
47
+ };
48
+ } & BaseComponent;
49
+ export default NativeBridgeComponent;
50
+ //# sourceMappingURL=NativeBridgeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeBridgeComponent.d.ts","sourceRoot":"","sources":["../../../javascript/components/NativeBridgeComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,UAAU,CAAC;AAIvE,oBAAY,SAAS,CAAC,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,IAAI;IAC/D,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,qBAAqB,4DAEU,GAAG,EAAE,6EAGtB,MAAM;kBAWD,GAAG,EAAE;2BARP,MAAM;gCACD,GAAG,KAAK,IAAI;sBACtB,IAAI,MAAM,EAAE,GAAG,CAAC;;oBAEpB;gBAAE,MAAM,MAAM,CAAC;gBAAC,IAAI,EAAE,SAAS,EAAE,CAAA;aAAE;8BACzB,SAAS,KAAK,IAAI;;iDAahC,MAAM,oCACsB,IAAI,kBACpB,KAAK,KAAK,IAAI;mCAKL,MAAM;+BAIV,MAAM,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC;;2EAmCjD,MAAM,+BAEZ,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;iBA2BpB,CAAC;AAEJ,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,162 @@
1
+ import React, { SyntheticEvent, type Component } from 'react';
2
+ import { type ViewProps } from 'react-native';
3
+ import { type Feature } from 'geojson';
4
+ import { type RNMBEvent } from './NativeBridgeComponent';
5
+ export declare const NATIVE_MODULE_NAME = "RCTMGLPointAnnotation";
6
+ declare type FeaturePayload = {
7
+ feature: Feature;
8
+ };
9
+ declare type PointAnnotationProps = {
10
+ /**
11
+ * A string that uniquely identifies the annotation
12
+ */
13
+ id: string;
14
+ /**
15
+ * 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
+ */
17
+ title?: string;
18
+ /**
19
+ * The string containing the annotation’s snippet(subtitle). Not displayed in the default callout.
20
+ */
21
+ snippet?: string;
22
+ /**
23
+ * Manually selects/deselects annotation
24
+ */
25
+ selected?: boolean;
26
+ /**
27
+ * Enable or disable dragging. Defaults to false.
28
+ */
29
+ draggable?: boolean;
30
+ /**
31
+ * The center point (specified as a map coordinate) of the annotation.
32
+ */
33
+ coordinate: [number, number];
34
+ /**
35
+ * Specifies the anchor being set on a particular point of the annotation.
36
+ * The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],
37
+ * where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.
38
+ * Note this is only for custom annotations not the default pin view.
39
+ * Defaults to the center of the view.
40
+ */
41
+ anchor?: {
42
+ /**
43
+ * See anchor
44
+ */
45
+ x: number;
46
+ /**
47
+ * See anchor
48
+ */
49
+ y: number;
50
+ };
51
+ /**
52
+ * This callback is fired once this annotation is selected. Returns a Feature as the first param.
53
+ */
54
+ onSelected?: (payload: FeaturePayload) => void;
55
+ /**
56
+ * This callback is fired once this annotation is deselected.
57
+ */
58
+ onDeselected?: (payload: FeaturePayload) => void;
59
+ /**
60
+ * This callback is fired once this annotation has started being dragged.
61
+ */
62
+ onDragStart?: (payload: FeaturePayload) => void;
63
+ /**
64
+ * This callback is fired once this annotation has stopped being dragged.
65
+ */
66
+ onDragEnd?: (payload: FeaturePayload) => void;
67
+ /**
68
+ * This callback is fired while this annotation is being dragged.
69
+ */
70
+ onDrag?: (payload: FeaturePayload) => void;
71
+ /**
72
+ * Expects one child, and an optional callout can be added as well
73
+ */
74
+ children: React.ReactElement;
75
+ style?: ViewProps['style'];
76
+ };
77
+ declare const PointAnnotation_base: {
78
+ new (...args: any[]): {
79
+ _nativeModuleName: string;
80
+ _onAndroidCallback: (e: any) => void;
81
+ _callbackMap: Map<string, any>;
82
+ _preRefMapMethodQueue: {
83
+ method: {
84
+ name: string;
85
+ args: import("../utils").NativeArg[];
86
+ };
87
+ resolver: (value: import("../utils").NativeArg) => void;
88
+ }[];
89
+ _addAddAndroidCallback<ReturnType_1>(id: string, resolve: (value: ReturnType_1) => void, reject: (error: Error) => void): void;
90
+ _removeAndroidCallback(id: string): void;
91
+ _onAndroidCallbackO(e: React.SyntheticEvent<Element, RNMBEvent<{
92
+ [key: string]: string;
93
+ }>>): void;
94
+ _runPendingNativeCommands<RefType>(nativeRef: RefType): Promise<void>;
95
+ _runNativeCommand<RefType_1, ReturnType_2 = import("../utils").NativeArg>(methodName: string, nativeRef: RefType_1, args?: import("../utils").NativeArg[]): Promise<ReturnType_2>;
96
+ context: unknown;
97
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: object) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
98
+ forceUpdate(callback?: (() => void) | undefined): void;
99
+ render(): React.ReactNode;
100
+ readonly props: object;
101
+ state: Readonly<{}>;
102
+ refs: {
103
+ [key: string]: React.ReactInstance;
104
+ };
105
+ componentDidMount?(): void;
106
+ shouldComponentUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): boolean;
107
+ componentWillUnmount?(): void;
108
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
109
+ getSnapshotBeforeUpdate?(prevProps: object, prevState: Readonly<{}>): any;
110
+ componentDidUpdate?(prevProps: object, prevState: Readonly<{}>, snapshot?: any): void;
111
+ componentWillMount?(): void;
112
+ UNSAFE_componentWillMount?(): void;
113
+ componentWillReceiveProps?(nextProps: object, nextContext: any): void;
114
+ UNSAFE_componentWillReceiveProps?(nextProps: object, nextContext: any): void;
115
+ componentWillUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): void;
116
+ UNSAFE_componentWillUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): void;
117
+ };
118
+ } & {
119
+ new (props: PointAnnotationProps | Readonly<PointAnnotationProps>): React.PureComponent<PointAnnotationProps, {}, any>;
120
+ new (props: PointAnnotationProps, context: any): React.PureComponent<PointAnnotationProps, {}, any>;
121
+ contextType?: React.Context<any> | undefined;
122
+ };
123
+ /**
124
+ * PointAnnotation represents a one-dimensional shape located at a single geographical coordinate.
125
+ *
126
+ * Consider using ShapeSource and SymbolLayer instead, if you have many points and you have static images,
127
+ * they'll offer much better performance.
128
+ *
129
+ * If you need interactive views please use MarkerView,
130
+ * as with PointAnnotation child views are rendered onto a bitmap
131
+ */
132
+ declare class PointAnnotation extends PointAnnotation_base {
133
+ static defaultProps: {
134
+ anchor: {
135
+ x: number;
136
+ y: number;
137
+ };
138
+ draggable: boolean;
139
+ };
140
+ _nativeRef: NativePointAnnotationRef | null;
141
+ constructor(props: PointAnnotationProps);
142
+ _onSelected(e: SyntheticEvent<Element, RNMBEvent<FeaturePayload>>): void;
143
+ _onDeselected(e: SyntheticEvent<Element, RNMBEvent<FeaturePayload>>): void;
144
+ _onDragStart(e: SyntheticEvent<Element, RNMBEvent<FeaturePayload>>): void;
145
+ _onDrag(e: SyntheticEvent<Element, RNMBEvent<FeaturePayload>>): void;
146
+ _onDragEnd(e: SyntheticEvent<Element, RNMBEvent<FeaturePayload>>): void;
147
+ _getCoordinate(): string | undefined;
148
+ /**
149
+ * On v10 and pre v10 android point annotation is rendered offscreen with a canvas into an image.
150
+ * To rerender the image from the current state of the view call refresh.
151
+ * Call this for example from Image#onLoad.
152
+ */
153
+ refresh(): void;
154
+ _setNativeRef(nativeRef: NativePointAnnotationRef | null): void;
155
+ render(): JSX.Element;
156
+ }
157
+ declare type NativePointAnnotationProps = Omit<PointAnnotationProps, 'coordinate'> & {
158
+ coordinate: string | undefined;
159
+ };
160
+ declare type NativePointAnnotationRef = Component<NativePointAnnotationProps>;
161
+ export default PointAnnotation;
162
+ //# sourceMappingURL=PointAnnotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PointAnnotation.d.ts","sourceRoot":"","sources":["../../../javascript/components/PointAnnotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAKvC,OAA8B,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEhF,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAU1D,aAAK,cAAc,GAAG;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,aAAK,oBAAoB,GAAG;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE7B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;QACV;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IAEF;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAE/C;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAEjD;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAEhD;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAE9C;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAE3C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAE7B,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF;;;;;;;;GAQG;AACH,cAAM,eAAgB,SAAQ,oBAG7B;IACC,MAAM,CAAC,YAAY;;;;;;MAGjB;IAEF,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAQ;gBAEvC,KAAK,EAAE,oBAAoB;IASvC,WAAW,CAAC,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAMjE,aAAa,CAAC,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAMnE,YAAY,CAAC,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAMlE,OAAO,CAAC,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAM7D,UAAU,CAAC,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAMhE,cAAc,IAAI,MAAM,GAAG,SAAS;IAOpC;;;;OAIG;IACH,OAAO;IAQP,aAAa,CAAC,SAAS,EAAE,wBAAwB,GAAG,IAAI;IAKxD,MAAM;CAyBP;AACD,aAAK,0BAA0B,GAAG,IAAI,CAAC,oBAAoB,EAAE,YAAY,CAAC,GAAG;IAC3E,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,aAAK,wBAAwB,GAAG,SAAS,CAAC,0BAA0B,CAAC,CAAC;AAMtE,eAAe,eAAe,CAAC"}
@@ -0,0 +1,222 @@
1
+ import React from 'react';
2
+ import { NativeMethods, NativeSyntheticEvent } from 'react-native';
3
+ import AbstractSource from './AbstractSource';
4
+ export declare const NATIVE_MODULE_NAME = "RCTMGLShapeSource";
5
+ export declare type OnPressEvent = {
6
+ features: Array<GeoJSON.Feature>;
7
+ coordinates: {
8
+ latitude: number;
9
+ longitude: number;
10
+ };
11
+ point: {
12
+ x: number;
13
+ y: number;
14
+ };
15
+ };
16
+ export declare type Props = {
17
+ /**
18
+ * A string that uniquely identifies the source.
19
+ */
20
+ id: string;
21
+ /**
22
+ * An HTTP(S) URL, absolute file URL, or local file URL relative to the current application’s resource bundle.
23
+ */
24
+ url?: string;
25
+ /**
26
+ * The contents of the source. A shape can represent a GeoJSON geometry, a feature, or a feature collection.
27
+ */
28
+ shape?: GeoJSON.GeometryCollection | GeoJSON.Feature | GeoJSON.FeatureCollection | GeoJSON.Geometry;
29
+ /**
30
+ * Enables clustering on the source for point shapes.
31
+ */
32
+ cluster?: boolean;
33
+ /**
34
+ * Specifies the radius of each cluster if clustering is enabled.
35
+ * A value of 512 produces a radius equal to the width of a tile.
36
+ * The default value is 50.
37
+ */
38
+ clusterRadius?: number;
39
+ /**
40
+ * Specifies the maximum zoom level at which to cluster points if clustering is enabled.
41
+ * Defaults to one zoom level less than the value of maxZoomLevel so that, at the maximum zoom level,
42
+ * the shapes are not clustered.
43
+ */
44
+ clusterMaxZoomLevel?: number;
45
+ /**
46
+ * [`mapbox-gl` (v8) implementation only]
47
+ * Specifies custom properties on the generated clusters if clustering
48
+ * is enabled, aggregating values from clustered points.
49
+ *
50
+ * Has the form `{ "property_name": [operator, map_expression]}`, where
51
+ * `operator` is a custom reduce expression that references a special `["accumulated"]` value -
52
+ * it accumulates the property value from clusters/points the cluster contains
53
+ * `map_expression` produces the value of a single point
54
+ *
55
+ * Example: `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }`
56
+ *
57
+ */
58
+ clusterProperties?: object;
59
+ /**
60
+ * Specifies the maximum zoom level at which to create vector tiles.
61
+ * A greater value produces greater detail at high zoom levels.
62
+ * The default value is 18.
63
+ */
64
+ maxZoomLevel?: number;
65
+ /**
66
+ * Specifies the size of the tile buffer on each side.
67
+ * A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself.
68
+ * Larger values produce fewer rendering artifacts near tile edges and slower performance.
69
+ * The default value is 128.
70
+ */
71
+ buffer?: number;
72
+ /**
73
+ * Specifies the Douglas-Peucker simplification tolerance.
74
+ * A greater value produces simpler geometries and improves performance.
75
+ * The default value is 0.375.
76
+ */
77
+ tolerance?: number;
78
+ /**
79
+ * Whether to calculate line distance metrics.
80
+ * This is required for line layers that specify lineGradient values.
81
+ * The default value is false.
82
+ */
83
+ lineMetrics?: boolean;
84
+ /**
85
+ * Source press listener, gets called when a user presses one of the children layers only
86
+ * if that layer has a higher z-index than another source layers
87
+ *
88
+ * @param {Object} event
89
+ * @param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)
90
+ * @param {Object} event.coordinates - the coordinates of the click
91
+ * @param {Object} event.point - the point of the click
92
+ * @return void
93
+ */
94
+ onPress?: (event: OnPressEvent) => void;
95
+ /**
96
+ * Overrides the default touch hitbox(44x44 pixels) for the source layers
97
+ */
98
+ hitbox?: {
99
+ /**
100
+ * `width` of hitbox
101
+ */
102
+ width: number;
103
+ /**
104
+ * `height` of hitbox
105
+ */
106
+ height: number;
107
+ };
108
+ children: React.ReactElement | React.ReactElement[];
109
+ };
110
+ declare const ShapeSource_base: {
111
+ new (...args: any[]): {
112
+ _nativeModuleName: string;
113
+ _onAndroidCallback: (e: any) => void;
114
+ _callbackMap: Map<string, any>;
115
+ _preRefMapMethodQueue: {
116
+ method: {
117
+ name: string;
118
+ args: import("../utils").NativeArg[];
119
+ };
120
+ resolver: (value: import("../utils").NativeArg) => void;
121
+ }[];
122
+ _addAddAndroidCallback<ReturnType_1>(id: string, resolve: (value: ReturnType_1) => void, reject: (error: Error) => void): void;
123
+ _removeAndroidCallback(id: string): void;
124
+ _onAndroidCallbackO(e: React.SyntheticEvent<Element, import("./NativeBridgeComponent").RNMBEvent<{
125
+ [key: string]: string;
126
+ }>>): void;
127
+ _runPendingNativeCommands<RefType>(nativeRef: RefType): Promise<void>;
128
+ _runNativeCommand<RefType_1, ReturnType_2 = import("../utils").NativeArg>(methodName: string, nativeRef: RefType_1, args?: import("../utils").NativeArg[]): Promise<ReturnType_2>;
129
+ context: unknown;
130
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: object) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
131
+ forceUpdate(callback?: (() => void) | undefined): void;
132
+ render(): React.ReactNode;
133
+ readonly props: object;
134
+ state: Readonly<{}>;
135
+ refs: {
136
+ [key: string]: React.ReactInstance;
137
+ };
138
+ componentDidMount?(): void;
139
+ shouldComponentUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): boolean;
140
+ componentWillUnmount?(): void;
141
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
142
+ getSnapshotBeforeUpdate?(prevProps: object, prevState: Readonly<{}>): any;
143
+ componentDidUpdate?(prevProps: object, prevState: Readonly<{}>, snapshot?: any): void;
144
+ componentWillMount?(): void;
145
+ UNSAFE_componentWillMount?(): void;
146
+ componentWillReceiveProps?(nextProps: object, nextContext: any): void;
147
+ UNSAFE_componentWillReceiveProps?(nextProps: object, nextContext: any): void;
148
+ componentWillUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): void;
149
+ UNSAFE_componentWillUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): void;
150
+ };
151
+ } & {
152
+ new (props: Props | Readonly<Props>): AbstractSource<Props, NativeProps>;
153
+ new (props: Props, context: any): AbstractSource<Props, NativeProps>;
154
+ contextType?: React.Context<any> | undefined;
155
+ };
156
+ /**
157
+ * ShapeSource is a map content source that supplies vector shapes to be shown on the map.
158
+ * The shape may be an url or a GeoJSON object
159
+ */
160
+ export declare class ShapeSource extends ShapeSource_base {
161
+ static NATIVE_ASSETS_KEY: string;
162
+ static defaultProps: {
163
+ id: any;
164
+ };
165
+ constructor(props: Props);
166
+ _setNativeRef(nativeRef: React.Component<NativeProps> & Readonly<NativeMethods>): void;
167
+ /**
168
+ * Returns all features from the source that match the query parameters whether the feature is currently
169
+ * rendered on the map.
170
+ *
171
+ * @example
172
+ * shapeSource.features()
173
+ *
174
+ * @param {Array=} filter - an optional filter statement to filter the returned Features.
175
+ * @return {FeatureCollection}
176
+ */
177
+ features(filter?: Array<string>): Promise<any>;
178
+ /**
179
+ * Returns the zoom needed to expand the cluster.
180
+ *
181
+ * @example
182
+ * const zoom = await shapeSource.getClusterExpansionZoom(clusterId);
183
+ *
184
+ * @param {Feature} feature - The feature cluster to expand.
185
+ * @return {number}
186
+ */
187
+ getClusterExpansionZoom(feature: string | GeoJSON.Feature): Promise<number>;
188
+ /**
189
+ * Returns the FeatureCollection from the cluster.
190
+ *
191
+ * @example
192
+ * const collection = await shapeSource.getClusterLeaves(clusterId, limit, offset);
193
+ *
194
+ * @param {GeoJSON.Feature} feature - The feature cluster to expand.
195
+ * @param {number} limit - The number of points to return.
196
+ * @param {number} offset - The amount of points to skip (for pagination).
197
+ * @return {FeatureCollection}
198
+ */
199
+ getClusterLeaves(feature: number | GeoJSON.Feature, limit: number, offset: number): Promise<any>;
200
+ /**
201
+ * Returns the FeatureCollection from the cluster (on the next zoom level).
202
+ *
203
+ * @example
204
+ * const collection = await shapeSource.getClusterChildren(clusterId);
205
+ *
206
+ * @param {GeoJSON.Feature} feature - The feature cluster to expand.
207
+ * @return {FeatureCollection}
208
+ */
209
+ getClusterChildren(feature: number | GeoJSON.Feature): Promise<any>;
210
+ setNativeProps(props: NativeProps): void;
211
+ _getShape(): string | undefined;
212
+ onPress(event: NativeSyntheticEvent<{
213
+ payload: OnPressEvent;
214
+ }>): void;
215
+ render(): JSX.Element;
216
+ }
217
+ declare type NativeProps = {
218
+ id: string;
219
+ shape?: string;
220
+ };
221
+ export {};
222
+ //# sourceMappingURL=ShapeSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShapeSource.d.ts","sourceRoot":"","sources":["../../../javascript/components/ShapeSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,aAAa,EAEb,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAWtB,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAK9C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAEtD,oBAAY,YAAY,GAAG;IACzB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,KAAK,EAAE;QACL,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;CACH,CAAC;AAKF,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EACF,OAAO,CAAC,kBAAkB,GAC1B,OAAO,CAAC,OAAO,GACf,OAAO,CAAC,iBAAiB,GACzB,OAAO,CAAC,QAAQ,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACrD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF;;;GAGG;AACH,qBAAa,WAAY,SAAQ,gBAGhC;IACC,MAAM,CAAC,iBAAiB,SAAY;IAEpC,MAAM,CAAC,YAAY;;MAEjB;gBAEU,KAAK,EAAE,KAAK;IAIxB,aAAa,CACX,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC;IAMnE;;;;;;;;;OASG;IACG,QAAQ,CAAC,MAAM,GAAE,KAAK,CAAC,MAAM,CAAM;IAczC;;;;;;;;OAQG;IACG,uBAAuB,CAC3B,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAChC,OAAO,CAAC,MAAM,CAAC;IAqBlB;;;;;;;;;;OAUG;IACG,gBAAgB,CACpB,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EACjC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM;IAgChB;;;;;;;;OAQG;IACG,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO;IA+B1D,cAAc,CAAC,KAAK,EAAE,WAAW;IAWjC,SAAS;IAOT,OAAO,CACL,KAAK,EAAE,oBAAoB,CAAC;QAC1B,OAAO,EAAE,YAAY,CAAC;KACvB,CAAC;IA+BJ,MAAM;CA+BP;AAED,aAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,65 @@
1
+ /// <reference types="react" />
2
+ import { Expression, type SymbolLayerStyleProps } from '../utils/MapboxStyles';
3
+ import { type StyleValue } from '../utils/StyleValue';
4
+ import AbstractLayer from './AbstractLayer';
5
+ export declare const NATIVE_MODULE_NAME = "RCTMGLSymbolLayer";
6
+ export declare type Props = {
7
+ /**
8
+ * A string that uniquely identifies the source in the style to which it is added.
9
+ */
10
+ id: string;
11
+ /**
12
+ * The source from which to obtain the data to style.
13
+ * If the source has not yet been added to the current style, the behavior is undefined.
14
+ * Inferred from parent source only if the layer is a direct child to it.
15
+ */
16
+ sourceID?: string;
17
+ /**
18
+ * Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
19
+ */
20
+ sourceLayerID?: string;
21
+ /**
22
+ * Inserts a layer above aboveLayerID.
23
+ */
24
+ aboveLayerID?: string;
25
+ /**
26
+ * Inserts a layer below belowLayerID
27
+ */
28
+ belowLayerID?: string;
29
+ /**
30
+ * Inserts a layer at a specified index
31
+ */
32
+ layerIndex?: number;
33
+ /**
34
+ * Filter only the features in the source layer that satisfy a condition that you define
35
+ */
36
+ filter?: Expression;
37
+ /**
38
+ * The minimum zoom level at which the layer gets parsed and appears.
39
+ */
40
+ minZoomLevel?: number;
41
+ /**
42
+ * The maximum zoom level at which the layer gets parsed and appears.
43
+ */
44
+ maxZoomLevel?: number;
45
+ style: SymbolLayerStyleProps;
46
+ children?: JSX.Element | JSX.Element[];
47
+ };
48
+ declare type NativeTypeProps = Omit<Props, 'style'> & {
49
+ snapshot: boolean;
50
+ reactStyle?: {
51
+ [key: string]: StyleValue;
52
+ };
53
+ };
54
+ /**
55
+ * SymbolLayer is a style layer that renders icon and text labels at points or along lines on the map.
56
+ */
57
+ export declare class SymbolLayer extends AbstractLayer<Props, NativeTypeProps> {
58
+ static defaultProps: {
59
+ sourceID: any;
60
+ };
61
+ _shouldSnapshot(): boolean;
62
+ render(): JSX.Element;
63
+ }
64
+ export {};
65
+ //# sourceMappingURL=SymbolLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../javascript/components/SymbolLayer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAEtD,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,EAAE,qBAAqB,CAAC;IAE7B,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxC,CAAC;AAEF,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAKF;;GAEG;AACH,qBAAa,WAAY,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IACpE,MAAM,CAAC,YAAY;;MAEjB;IAEF,eAAe;IAgBf,MAAM;CAaP"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { TerrainLayerStyleProps, Value } from '../utils/MapboxStyles';
3
+ export declare const NATIVE_MODULE_NAME = "RCTMGLTerrain";
4
+ declare type Props = {
5
+ /**
6
+ * Name of a source of raster_dem type to be used for terrain elevation.
7
+ */
8
+ sourceID: string;
9
+ /**
10
+ * Deprecated, use exaggeration in style instead
11
+ */
12
+ exaggeration?: Value<number, ['zoom']>;
13
+ /**
14
+ * Customizable style attributes
15
+ */
16
+ style: TerrainLayerStyleProps;
17
+ };
18
+ export declare const Terrain: React.MemoExoticComponent<(props: Props) => JSX.Element>;
19
+ export {};
20
+ //# sourceMappingURL=Terrain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Terrain.d.ts","sourceRoot":"","sources":["../../../javascript/components/Terrain.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAG3E,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,aAAK,KAAK,GAAG;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEvC;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,OAAO,oCAAgB,KAAK,iBAoBvC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function requestAndroidLocationPermissions(): Promise<boolean>;
2
+ //# sourceMappingURL=requestAndroidLocationPermissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestAndroidLocationPermissions.d.ts","sourceRoot":"","sources":["../../javascript/requestAndroidLocationPermissions.ts"],"names":[],"mappings":"AAIA,wBAAsB,iCAAiC,IAAI,OAAO,CAAC,OAAO,CAAC,CAwB1E"}
@@ -0,0 +1,16 @@
1
+ import { SyntheticEvent } from 'react';
2
+ import { Animated } from 'react-native';
3
+ import { GeoJsonObject } from 'geojson';
4
+ export declare type MapboxGLEvent<T extends string, P = GeoJSON.Feature, V = Element> = SyntheticEvent<V, {
5
+ type: T;
6
+ payload: P;
7
+ }>;
8
+ export interface AnimatedPoint extends GeoJsonObject {
9
+ readonly type: 'Point';
10
+ coordinates: (Animated.Value | number)[];
11
+ }
12
+ export interface AnimatedShape extends GeoJsonObject {
13
+ readonly type: 'LineString';
14
+ coordinates: (Animated.Value | number)[][];
15
+ }
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../javascript/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,oBAAY,aAAa,CACvB,CAAC,SAAS,MAAM,EAChB,CAAC,GAAG,OAAO,CAAC,OAAO,EACnB,CAAC,GAAG,OAAO,IACT,cAAc,CAAC,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC;AAI/C,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC,EAAE,EAAE,CAAC;CAC5C"}
@@ -0,0 +1,46 @@
1
+ export declare type RawValueType = string | number | boolean | RawValueType[] | {
2
+ [key: string]: RawValueType;
3
+ };
4
+ export declare type StyleValueJSON = {
5
+ type: 'boolean';
6
+ value: boolean;
7
+ } | {
8
+ type: 'number';
9
+ value: number;
10
+ } | {
11
+ type: 'string';
12
+ value: string;
13
+ } | {
14
+ type: 'hashmap';
15
+ value: object;
16
+ } | {
17
+ type: 'array';
18
+ value: unknown[];
19
+ };
20
+ declare type StyleValueTypes = 'boolean' | 'number' | 'string' | 'hashmap' | 'array';
21
+ export default class BridgeValue {
22
+ rawValue: RawValueType;
23
+ constructor(rawValue: RawValueType);
24
+ get type(): StyleValueTypes;
25
+ get value(): string | number | boolean | RawValueType[] | {
26
+ [key: string]: RawValueType;
27
+ } | ({
28
+ type: "boolean";
29
+ value: boolean;
30
+ } | {
31
+ type: "number";
32
+ value: number;
33
+ } | {
34
+ type: "string";
35
+ value: string;
36
+ } | {
37
+ type: "hashmap";
38
+ value: object;
39
+ } | {
40
+ type: "array";
41
+ value: unknown[];
42
+ })[] | StyleValueJSON[][];
43
+ toJSON(formatter?: <T>(arg0: T) => T): StyleValueJSON;
44
+ }
45
+ export {};
46
+ //# sourceMappingURL=BridgeValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BridgeValue.d.ts","sourceRoot":"","sources":["../../../javascript/utils/BridgeValue.ts"],"names":[],"mappings":"AAEA,oBAAY,YAAY,GACpB,MAAM,GACN,MAAM,GACN,OAAO,GACP,YAAY,EAAE,GACd;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,CAAC;AAEpC,oBAAY,cAAc,GACtB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC;AAExC,aAAK,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7E,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,QAAQ,EAAE,YAAY,CAAC;gBAEX,QAAQ,EAAE,YAAY;IAIlC,IAAI,IAAI,IAAI,eAAe,CAmB1B;IAED,IAAI,KAAK;;;;;;;;;;;;;;;;;8BAiCR;IAED,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,cAAc;CAOtD"}
@@ -0,0 +1,10 @@
1
+ import { type StyleValueJSON } from './BridgeValue';
2
+ import { AllLayerStyleProps } from './MapboxStyles';
3
+ export declare type StyleValue = {
4
+ styletype: string;
5
+ stylevalue: StyleValueJSON;
6
+ };
7
+ export declare function transformStyle(style: AllLayerStyleProps): undefined | {
8
+ [key: string]: StyleValue;
9
+ };
10
+ //# sourceMappingURL=StyleValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyleValue.d.ts","sourceRoot":"","sources":["../../../javascript/utils/StyleValue.ts"],"names":[],"mappings":"AAEA,OAAoB,EAElB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGpD,oBAAY,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,cAAc,CAAC;CAC5B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,kBAAkB,GACxB,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAkC3C"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * deprecatedClass: creates a subclass of the class, which prints deprecated warning when called
3
+ */
4
+ export declare function deprecatedClass<C extends new (...args: any[]) => object>(origClass: C, deprecationMessage: string): C;
5
+ /**
6
+ * Copy properties from origObject to newObject, which not exists in newObject,
7
+ * calls onDeprecatedCalled callback in case a copied property is invoked.
8
+ */
9
+ export declare function copyPropertiesAsDeprecated<DeprecatedType extends Record<string, unknown>, WithDeprecatedType extends Record<string, unknown>>(origObject: DeprecatedType, newObject: WithDeprecatedType, onDeprecatedCalled: (key: string) => void, accessors?: {
10
+ [key: string]: (value: unknown) => unknown;
11
+ }): WithDeprecatedType;
12
+ //# sourceMappingURL=deprecation.d.ts.map