@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
@@ -1,1659 +0,0 @@
1
- <!-- This file was autogenerated from SymbolLayer.tsx do not modify -->
2
- # <MapboxGL.SymbolLayer />
3
- SymbolLayer is a style layer that renders icon and text labels at points or along lines on the map.
4
-
5
- ## props
6
- | Prop | Type | Default | Required | Description |
7
- | ---- | :-- | :----- | :------ | :---------- |
8
- | id | `string` | `none` | `true` | A string that uniquely identifies the source in the style to which it is added. |
9
- | sourceID | `string` | `MapboxGL.StyleSource.DefaultSourceID` | `false` | The source from which to obtain the data to style.<br/>If the source has not yet been added to the current style, the behavior is undefined.<br/>Inferred from parent source only if the layer is a direct child to it. |
10
- | sourceLayerID | `string` | `none` | `false` | Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style. |
11
- | aboveLayerID | `string` | `none` | `false` | Inserts a layer above aboveLayerID. |
12
- | belowLayerID | `string` | `none` | `false` | Inserts a layer below belowLayerID |
13
- | layerIndex | `number` | `none` | `false` | Inserts a layer at a specified index |
14
- | filter | `Expression` | `none` | `false` | Filter only the features in the source layer that satisfy a condition that you define |
15
- | minZoomLevel | `number` | `none` | `false` | The minimum zoom level at which the layer gets parsed and appears. |
16
- | maxZoomLevel | `number` | `none` | `false` | The maximum zoom level at which the layer gets parsed and appears. |
17
- | style | `SymbolLayerStyleProps` | `none` | `true` | FIX ME NO DESCRIPTION |
18
- | children | `JSX.Element \| JSX.Element[]` | `none` | `false` | FIX ME NO DESCRIPTION |
19
-
20
-
21
- ## styles
22
-
23
- * <a href="#symbolplacement">symbolPlacement</a><br/>
24
- * <a href="#symbolspacing">symbolSpacing</a><br/>
25
- * <a href="#symbolavoidedges">symbolAvoidEdges</a><br/>
26
- * <a href="#symbolsortkey">symbolSortKey</a><br/>
27
- * <a href="#symbolzorder">symbolZOrder</a><br/>
28
- * <a href="#iconallowoverlap">iconAllowOverlap</a><br/>
29
- * <a href="#iconignoreplacement">iconIgnorePlacement</a><br/>
30
- * <a href="#iconoptional">iconOptional</a><br/>
31
- * <a href="#iconrotationalignment">iconRotationAlignment</a><br/>
32
- * <a href="#iconsize">iconSize</a><br/>
33
- * <a href="#icontextfit">iconTextFit</a><br/>
34
- * <a href="#icontextfitpadding">iconTextFitPadding</a><br/>
35
- * <a href="#iconimage">iconImage</a><br/>
36
- * <a href="#iconrotate">iconRotate</a><br/>
37
- * <a href="#iconpadding">iconPadding</a><br/>
38
- * <a href="#iconkeepupright">iconKeepUpright</a><br/>
39
- * <a href="#iconoffset">iconOffset</a><br/>
40
- * <a href="#iconanchor">iconAnchor</a><br/>
41
- * <a href="#iconpitchalignment">iconPitchAlignment</a><br/>
42
- * <a href="#textpitchalignment">textPitchAlignment</a><br/>
43
- * <a href="#textrotationalignment">textRotationAlignment</a><br/>
44
- * <a href="#textfield">textField</a><br/>
45
- * <a href="#textfont">textFont</a><br/>
46
- * <a href="#textsize">textSize</a><br/>
47
- * <a href="#textmaxwidth">textMaxWidth</a><br/>
48
- * <a href="#textlineheight">textLineHeight</a><br/>
49
- * <a href="#textletterspacing">textLetterSpacing</a><br/>
50
- * <a href="#textjustify">textJustify</a><br/>
51
- * <a href="#textradialoffset">textRadialOffset</a><br/>
52
- * <a href="#textvariableanchor">textVariableAnchor</a><br/>
53
- * <a href="#textanchor">textAnchor</a><br/>
54
- * <a href="#textmaxangle">textMaxAngle</a><br/>
55
- * <a href="#textwritingmode">textWritingMode</a><br/>
56
- * <a href="#textrotate">textRotate</a><br/>
57
- * <a href="#textpadding">textPadding</a><br/>
58
- * <a href="#textkeepupright">textKeepUpright</a><br/>
59
- * <a href="#texttransform">textTransform</a><br/>
60
- * <a href="#textoffset">textOffset</a><br/>
61
- * <a href="#textallowoverlap">textAllowOverlap</a><br/>
62
- * <a href="#textignoreplacement">textIgnorePlacement</a><br/>
63
- * <a href="#textoptional">textOptional</a><br/>
64
- * <a href="#visibility">visibility</a><br/>
65
- * <a href="#iconopacity">iconOpacity</a><br/>
66
- * <a href="#iconcolor">iconColor</a><br/>
67
- * <a href="#iconhalocolor">iconHaloColor</a><br/>
68
- * <a href="#iconhalowidth">iconHaloWidth</a><br/>
69
- * <a href="#iconhaloblur">iconHaloBlur</a><br/>
70
- * <a href="#icontranslate">iconTranslate</a><br/>
71
- * <a href="#icontranslateanchor">iconTranslateAnchor</a><br/>
72
- * <a href="#textopacity">textOpacity</a><br/>
73
- * <a href="#textcolor">textColor</a><br/>
74
- * <a href="#texthalocolor">textHaloColor</a><br/>
75
- * <a href="#texthalowidth">textHaloWidth</a><br/>
76
- * <a href="#texthaloblur">textHaloBlur</a><br/>
77
- * <a href="#texttranslate">textTranslate</a><br/>
78
- * <a href="#texttranslateanchor">textTranslateAnchor</a><br/>
79
-
80
- ___
81
-
82
- ### symbolPlacement
83
- Name: `symbolPlacement`
84
-
85
- ### Description
86
- Label placement relative to its geometry.
87
-
88
- ### Type
89
- `enum`
90
- ### Default Value
91
- `point`
92
-
93
- ### Supported Values
94
- **point** - The label is placed at the point where the geometry is located.<br />
95
- **line** - The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries.<br />
96
- **line-center** - The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries.<br />
97
-
98
-
99
- ### Expression
100
-
101
- Parameters: `zoom`
102
-
103
- ___
104
-
105
- ### symbolSpacing
106
- Name: `symbolSpacing`
107
-
108
- ### Description
109
- Distance between two symbol anchors.
110
-
111
- ### Type
112
- `number`
113
- ### Default Value
114
- `250`
115
-
116
- ### Units
117
- `pixels`
118
-
119
- ### Minimum
120
- `1`
121
-
122
-
123
- ### Expression
124
-
125
- Parameters: `zoom`
126
-
127
- ___
128
-
129
- ### symbolAvoidEdges
130
- Name: `symbolAvoidEdges`
131
-
132
- ### Description
133
- If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.
134
-
135
- ### Type
136
- `boolean`
137
- ### Default Value
138
- `false`
139
-
140
-
141
- ### Expression
142
-
143
- Parameters: `zoom`
144
-
145
- ___
146
-
147
- ### symbolSortKey
148
- Name: `symbolSortKey`
149
-
150
- ### Description
151
- Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `iconAllowOverlap` or `textAllowOverlap` is `false`, features with a lower sort key will have priority during placement. When `iconAllowOverlap` or `textAllowOverlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.
152
-
153
- ### Type
154
- `number`
155
-
156
-
157
- ### Expression
158
-
159
- Parameters: `zoom, feature`
160
-
161
- ___
162
-
163
- ### symbolZOrder
164
- Name: `symbolZOrder`
165
-
166
- ### Description
167
- Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their yPosition relative to the viewport. To control the order and prioritization of symbols otherwise, use `symbolSortKey`.
168
-
169
- ### Type
170
- `enum`
171
- ### Default Value
172
- `auto`
173
-
174
- ### Supported Values
175
- **auto** - Sorts symbols by `symbol-sort-key` if set. Otherwise, sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`.<br />
176
- **viewport-y** - Sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`.<br />
177
- **source** - Sorts symbols by `symbol-sort-key` if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data.<br />
178
-
179
-
180
- ### Expression
181
-
182
- Parameters: `zoom`
183
-
184
- ___
185
-
186
- ### iconAllowOverlap
187
- Name: `iconAllowOverlap`
188
-
189
- ### Description
190
- If true, the icon will be visible even if it collides with other previously drawn symbols.
191
-
192
- ### Type
193
- `boolean`
194
- ### Default Value
195
- `false`
196
-
197
-
198
- ### Requires
199
- `iconImage`
200
-
201
- ### Expression
202
-
203
- Parameters: `zoom`
204
-
205
- ___
206
-
207
- ### iconIgnorePlacement
208
- Name: `iconIgnorePlacement`
209
-
210
- ### Description
211
- If true, other symbols can be visible even if they collide with the icon.
212
-
213
- ### Type
214
- `boolean`
215
- ### Default Value
216
- `false`
217
-
218
-
219
- ### Requires
220
- `iconImage`
221
-
222
- ### Expression
223
-
224
- Parameters: `zoom`
225
-
226
- ___
227
-
228
- ### iconOptional
229
- Name: `iconOptional`
230
-
231
- ### Description
232
- If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.
233
-
234
- ### Type
235
- `boolean`
236
- ### Default Value
237
- `false`
238
-
239
-
240
- ### Requires
241
- `iconImage, textField`
242
-
243
- ### Expression
244
-
245
- Parameters: `zoom`
246
-
247
- ___
248
-
249
- ### iconRotationAlignment
250
- Name: `iconRotationAlignment`
251
-
252
- ### Description
253
- In combination with `symbolPlacement`, determines the rotation behavior of icons.
254
-
255
- ### Type
256
- `enum`
257
- ### Default Value
258
- `auto`
259
-
260
- ### Supported Values
261
- **map** - When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line.<br />
262
- **viewport** - Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`.<br />
263
- **auto** - When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`.<br />
264
-
265
-
266
- ### Requires
267
- `iconImage`
268
-
269
- ### Expression
270
-
271
- Parameters: `zoom`
272
-
273
- ___
274
-
275
- ### iconSize
276
- Name: `iconSize`
277
-
278
- ### Description
279
- Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `iconSize`. 1 is the original size; 3 triples the size of the image.
280
-
281
- ### Type
282
- `number`
283
- ### Default Value
284
- `1`
285
-
286
- ### Units
287
- `factor of the original icon size`
288
-
289
- ### Minimum
290
- `0`
291
-
292
-
293
- ### Requires
294
- `iconImage`
295
-
296
- ### Expression
297
-
298
- Parameters: `zoom, feature`
299
-
300
- ___
301
-
302
- ### iconTextFit
303
- Name: `iconTextFit`
304
-
305
- ### Description
306
- Scales the icon to fit around the associated text.
307
-
308
- ### Type
309
- `enum`
310
- ### Default Value
311
- `none`
312
-
313
- ### Supported Values
314
- **none** - The icon is displayed at its intrinsic aspect ratio.<br />
315
- **width** - The icon is scaled in the x-dimension to fit the width of the text.<br />
316
- **height** - The icon is scaled in the y-dimension to fit the height of the text.<br />
317
- **both** - The icon is scaled in both x- and y-dimensions.<br />
318
-
319
-
320
- ### Requires
321
- `iconImage, textField`
322
-
323
- ### Expression
324
-
325
- Parameters: `zoom`
326
-
327
- ___
328
-
329
- ### iconTextFitPadding
330
- Name: `iconTextFitPadding`
331
-
332
- ### Description
333
- Size of the additional area added to dimensions determined by `iconTextFit`, in clockwise order: top, right, bottom, left.
334
-
335
- ### Type
336
- `array<number>`
337
- ### Default Value
338
- `[0,0,0,0]`
339
-
340
- ### Units
341
- `pixels`
342
-
343
-
344
- ### Requires
345
- `iconImage, textField`
346
-
347
- ### Expression
348
-
349
- Parameters: `zoom`
350
-
351
- ___
352
-
353
- ### iconImage
354
- Name: `iconImage`
355
-
356
- ### Description
357
- Name of image in sprite to use for drawing an image background.
358
-
359
- ### Type
360
- `resolvedImage`
361
-
362
-
363
- ### Expression
364
-
365
- Parameters: `zoom, feature`
366
-
367
- ___
368
-
369
- ### iconRotate
370
- Name: `iconRotate`
371
-
372
- ### Description
373
- Rotates the icon clockwise.
374
-
375
- ### Type
376
- `number`
377
- ### Default Value
378
- `0`
379
-
380
- ### Units
381
- `degrees`
382
-
383
-
384
- ### Requires
385
- `iconImage`
386
-
387
- ### Expression
388
-
389
- Parameters: `zoom, feature`
390
-
391
- ___
392
-
393
- ### iconPadding
394
- Name: `iconPadding`
395
-
396
- ### Description
397
- Size of the additional area around the icon bounding box used for detecting symbol collisions.
398
-
399
- ### Type
400
- `number`
401
- ### Default Value
402
- `2`
403
-
404
- ### Units
405
- `pixels`
406
-
407
- ### Minimum
408
- `0`
409
-
410
-
411
- ### Requires
412
- `iconImage`
413
-
414
- ### Expression
415
-
416
- Parameters: `zoom`
417
-
418
- ___
419
-
420
- ### iconKeepUpright
421
- Name: `iconKeepUpright`
422
-
423
- ### Description
424
- If true, the icon may be flipped to prevent it from being rendered upsideDown.
425
-
426
- ### Type
427
- `boolean`
428
- ### Default Value
429
- `false`
430
-
431
-
432
- ### Requires
433
- `iconImage`
434
-
435
- ### Expression
436
-
437
- Parameters: `zoom`
438
-
439
- ___
440
-
441
- ### iconOffset
442
- Name: `iconOffset`
443
-
444
- ### Description
445
- Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `iconSize` to obtain the final offset in pixels. When combined with `iconRotate` the offset will be as if the rotated direction was up.
446
-
447
- ### Type
448
- `array<number>`
449
- ### Default Value
450
- `[0,0]`
451
-
452
-
453
- ### Requires
454
- `iconImage`
455
-
456
- ### Expression
457
-
458
- Parameters: `zoom, feature`
459
-
460
- ___
461
-
462
- ### iconAnchor
463
- Name: `iconAnchor`
464
-
465
- ### Description
466
- Part of the icon placed closest to the anchor.
467
-
468
- ### Type
469
- `enum`
470
- ### Default Value
471
- `center`
472
-
473
- ### Supported Values
474
- **center** - The center of the icon is placed closest to the anchor.<br />
475
- **left** - The left side of the icon is placed closest to the anchor.<br />
476
- **right** - The right side of the icon is placed closest to the anchor.<br />
477
- **top** - The top of the icon is placed closest to the anchor.<br />
478
- **bottom** - The bottom of the icon is placed closest to the anchor.<br />
479
- **top-left** - The top left corner of the icon is placed closest to the anchor.<br />
480
- **top-right** - The top right corner of the icon is placed closest to the anchor.<br />
481
- **bottom-left** - The bottom left corner of the icon is placed closest to the anchor.<br />
482
- **bottom-right** - The bottom right corner of the icon is placed closest to the anchor.<br />
483
-
484
-
485
- ### Requires
486
- `iconImage`
487
-
488
- ### Expression
489
-
490
- Parameters: `zoom, feature`
491
-
492
- ___
493
-
494
- ### iconPitchAlignment
495
- Name: `iconPitchAlignment`
496
-
497
- ### Description
498
- Orientation of icon when map is pitched.
499
-
500
- ### Type
501
- `enum`
502
- ### Default Value
503
- `auto`
504
-
505
- ### Supported Values
506
- **map** - The icon is aligned to the plane of the map.<br />
507
- **viewport** - The icon is aligned to the plane of the viewport.<br />
508
- **auto** - Automatically matches the value of `icon-rotation-alignment`.<br />
509
-
510
-
511
- ### Requires
512
- `iconImage`
513
-
514
- ### Expression
515
-
516
- Parameters: `zoom`
517
-
518
- ___
519
-
520
- ### textPitchAlignment
521
- Name: `textPitchAlignment`
522
-
523
- ### Description
524
- Orientation of text when map is pitched.
525
-
526
- ### Type
527
- `enum`
528
- ### Default Value
529
- `auto`
530
-
531
- ### Supported Values
532
- **map** - The text is aligned to the plane of the map.<br />
533
- **viewport** - The text is aligned to the plane of the viewport.<br />
534
- **auto** - Automatically matches the value of `text-rotation-alignment`.<br />
535
-
536
-
537
- ### Requires
538
- `textField`
539
-
540
- ### Expression
541
-
542
- Parameters: `zoom`
543
-
544
- ___
545
-
546
- ### textRotationAlignment
547
- Name: `textRotationAlignment`
548
-
549
- ### Description
550
- In combination with `symbolPlacement`, determines the rotation behavior of the individual glyphs forming the text.
551
-
552
- ### Type
553
- `enum`
554
- ### Default Value
555
- `auto`
556
-
557
- ### Supported Values
558
- **map** - When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line.<br />
559
- **viewport** - Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`.<br />
560
- **auto** - When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`.<br />
561
-
562
-
563
- ### Requires
564
- `textField`
565
-
566
- ### Expression
567
-
568
- Parameters: `zoom`
569
-
570
- ___
571
-
572
- ### textField
573
- Name: `textField`
574
-
575
- ### Description
576
- Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options. SDF images are not supported in formatted text and will be ignored.
577
-
578
- ### Type
579
- `formatted`
580
- ### Default Value
581
- ``
582
-
583
-
584
- ### Expression
585
-
586
- Parameters: `zoom, feature`
587
-
588
- ___
589
-
590
- ### textFont
591
- Name: `textFont`
592
-
593
- ### Description
594
- Font stack to use for displaying text.
595
-
596
- ### Type
597
- `array<string>`
598
- ### Default Value
599
- `[Open Sans Regular,Arial Unicode MS Regular]`
600
-
601
-
602
- ### Requires
603
- `textField`
604
-
605
- ### Supported Style Functions
606
- `camera`
607
- ### Expression
608
-
609
- Parameters: `zoom, feature`
610
-
611
- ___
612
-
613
- ### textSize
614
- Name: `textSize`
615
-
616
- ### Description
617
- Font size.
618
-
619
- ### Type
620
- `number`
621
- ### Default Value
622
- `16`
623
-
624
- ### Units
625
- `pixels`
626
-
627
- ### Minimum
628
- `0`
629
-
630
-
631
- ### Requires
632
- `textField`
633
-
634
- ### Expression
635
-
636
- Parameters: `zoom, feature`
637
-
638
- ___
639
-
640
- ### textMaxWidth
641
- Name: `textMaxWidth`
642
-
643
- ### Description
644
- The maximum line width for text wrapping.
645
-
646
- ### Type
647
- `number`
648
- ### Default Value
649
- `10`
650
-
651
- ### Units
652
- `ems`
653
-
654
- ### Minimum
655
- `0`
656
-
657
-
658
- ### Requires
659
- `textField`
660
-
661
- ### Supported Style Functions
662
- `camera`
663
- ### Expression
664
-
665
- Parameters: `zoom, feature`
666
-
667
- ___
668
-
669
- ### textLineHeight
670
- Name: `textLineHeight`
671
-
672
- ### Description
673
- Text leading value for multiLine text.
674
-
675
- ### Type
676
- `number`
677
- ### Default Value
678
- `1.2`
679
-
680
- ### Units
681
- `ems`
682
-
683
-
684
- ### Requires
685
- `textField`
686
-
687
- ### Expression
688
-
689
- Parameters: `zoom, feature`
690
-
691
- ___
692
-
693
- ### textLetterSpacing
694
- Name: `textLetterSpacing`
695
-
696
- ### Description
697
- Text tracking amount.
698
-
699
- ### Type
700
- `number`
701
- ### Default Value
702
- `0`
703
-
704
- ### Units
705
- `ems`
706
-
707
-
708
- ### Requires
709
- `textField`
710
-
711
- ### Supported Style Functions
712
- `camera`
713
- ### Expression
714
-
715
- Parameters: `zoom, feature`
716
-
717
- ___
718
-
719
- ### textJustify
720
- Name: `textJustify`
721
-
722
- ### Description
723
- Text justification options.
724
-
725
- ### Type
726
- `enum`
727
- ### Default Value
728
- `center`
729
-
730
- ### Supported Values
731
- **auto** - The text is aligned towards the anchor position.<br />
732
- **left** - The text is aligned to the left.<br />
733
- **center** - The text is centered.<br />
734
- **right** - The text is aligned to the right.<br />
735
-
736
-
737
- ### Requires
738
- `textField`
739
-
740
- ### Supported Style Functions
741
- `camera`
742
- ### Expression
743
-
744
- Parameters: `zoom, feature`
745
-
746
- ___
747
-
748
- ### textRadialOffset
749
- Name: `textRadialOffset`
750
-
751
- ### Description
752
- Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `textVariableAnchor`, which defaults to using the twoDimensional `textOffset` if present.
753
-
754
- ### Type
755
- `number`
756
- ### Default Value
757
- `0`
758
-
759
- ### Units
760
- `ems`
761
-
762
-
763
- ### Requires
764
- `textField`
765
-
766
- ### Expression
767
-
768
- Parameters: `zoom, feature`
769
-
770
- ___
771
-
772
- ### textVariableAnchor
773
- Name: `textVariableAnchor`
774
-
775
- ### Description
776
- To increase the chance of placing highPriority labels on the map, you can provide an array of `textAnchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `textJustify: auto` to choose justification based on anchor position. To apply an offset, use the `textRadialOffset` or the twoDimensional `textOffset`.
777
-
778
- ### Type
779
- `array<enum>`
780
-
781
-
782
- ### Requires
783
- `textField`
784
-
785
- ### Expression
786
-
787
- Parameters: `zoom`
788
-
789
- ___
790
-
791
- ### textAnchor
792
- Name: `textAnchor`
793
-
794
- ### Description
795
- Part of the text placed closest to the anchor.
796
-
797
- ### Type
798
- `enum`
799
- ### Default Value
800
- `center`
801
-
802
- ### Supported Values
803
- **center** - The center of the text is placed closest to the anchor.<br />
804
- **left** - The left side of the text is placed closest to the anchor.<br />
805
- **right** - The right side of the text is placed closest to the anchor.<br />
806
- **top** - The top of the text is placed closest to the anchor.<br />
807
- **bottom** - The bottom of the text is placed closest to the anchor.<br />
808
- **top-left** - The top left corner of the text is placed closest to the anchor.<br />
809
- **top-right** - The top right corner of the text is placed closest to the anchor.<br />
810
- **bottom-left** - The bottom left corner of the text is placed closest to the anchor.<br />
811
- **bottom-right** - The bottom right corner of the text is placed closest to the anchor.<br />
812
-
813
-
814
- ### Requires
815
- `textField`
816
-
817
- ### Disabled By
818
- `textVariableAnchor`
819
-
820
- ### Supported Style Functions
821
- `camera`
822
- ### Expression
823
-
824
- Parameters: `zoom, feature`
825
-
826
- ___
827
-
828
- ### textMaxAngle
829
- Name: `textMaxAngle`
830
-
831
- ### Description
832
- Maximum angle change between adjacent characters.
833
-
834
- ### Type
835
- `number`
836
- ### Default Value
837
- `45`
838
-
839
- ### Units
840
- `degrees`
841
-
842
-
843
- ### Requires
844
- `textField`
845
-
846
- ### Expression
847
-
848
- Parameters: `zoom`
849
-
850
- ___
851
-
852
- ### textWritingMode
853
- Name: `textWritingMode`
854
-
855
- ### Description
856
- The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. For symbol with point placement, the order of elements in an array define priority order for the placement of an orientation variant. For symbol with line placement, the default text writing mode is either ['horizontal', 'vertical'] or ['vertical', 'horizontal'], the order doesn't affect the placement.
857
-
858
- ### Type
859
- `array<enum>`
860
-
861
-
862
- ### Requires
863
- `textField`
864
-
865
- ### Expression
866
-
867
- Parameters: `zoom`
868
-
869
- ___
870
-
871
- ### textRotate
872
- Name: `textRotate`
873
-
874
- ### Description
875
- Rotates the text clockwise.
876
-
877
- ### Type
878
- `number`
879
- ### Default Value
880
- `0`
881
-
882
- ### Units
883
- `degrees`
884
-
885
-
886
- ### Requires
887
- `textField`
888
-
889
- ### Expression
890
-
891
- Parameters: `zoom, feature`
892
-
893
- ___
894
-
895
- ### textPadding
896
- Name: `textPadding`
897
-
898
- ### Description
899
- Size of the additional area around the text bounding box used for detecting symbol collisions.
900
-
901
- ### Type
902
- `number`
903
- ### Default Value
904
- `2`
905
-
906
- ### Units
907
- `pixels`
908
-
909
- ### Minimum
910
- `0`
911
-
912
-
913
- ### Requires
914
- `textField`
915
-
916
- ### Expression
917
-
918
- Parameters: `zoom`
919
-
920
- ___
921
-
922
- ### textKeepUpright
923
- Name: `textKeepUpright`
924
-
925
- ### Description
926
- If true, the text may be flipped vertically to prevent it from being rendered upsideDown.
927
-
928
- ### Type
929
- `boolean`
930
- ### Default Value
931
- `true`
932
-
933
-
934
- ### Requires
935
- `textField`
936
-
937
- ### Expression
938
-
939
- Parameters: `zoom`
940
-
941
- ___
942
-
943
- ### textTransform
944
- Name: `textTransform`
945
-
946
- ### Description
947
- Specifies how to capitalize text, similar to the CSS `textTransform` property.
948
-
949
- ### Type
950
- `enum`
951
- ### Default Value
952
- `none`
953
-
954
- ### Supported Values
955
- **none** - The text is not altered.<br />
956
- **uppercase** - Forces all letters to be displayed in uppercase.<br />
957
- **lowercase** - Forces all letters to be displayed in lowercase.<br />
958
-
959
-
960
- ### Requires
961
- `textField`
962
-
963
- ### Expression
964
-
965
- Parameters: `zoom, feature`
966
-
967
- ___
968
-
969
- ### textOffset
970
- Name: `textOffset`
971
-
972
- ### Description
973
- Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with textVariableAnchor, input values will be taken as absolute values. Offsets along the x and yAxis will be applied automatically based on the anchor position.
974
-
975
- ### Type
976
- `array<number>`
977
- ### Default Value
978
- `[0,0]`
979
-
980
- ### Units
981
- `ems`
982
-
983
-
984
- ### Requires
985
- `textField`
986
-
987
- ### Disabled By
988
- `textRadialOffset`
989
-
990
- ### Expression
991
-
992
- Parameters: `zoom, feature`
993
-
994
- ___
995
-
996
- ### textAllowOverlap
997
- Name: `textAllowOverlap`
998
-
999
- ### Description
1000
- If true, the text will be visible even if it collides with other previously drawn symbols.
1001
-
1002
- ### Type
1003
- `boolean`
1004
- ### Default Value
1005
- `false`
1006
-
1007
-
1008
- ### Requires
1009
- `textField`
1010
-
1011
- ### Expression
1012
-
1013
- Parameters: `zoom`
1014
-
1015
- ___
1016
-
1017
- ### textIgnorePlacement
1018
- Name: `textIgnorePlacement`
1019
-
1020
- ### Description
1021
- If true, other symbols can be visible even if they collide with the text.
1022
-
1023
- ### Type
1024
- `boolean`
1025
- ### Default Value
1026
- `false`
1027
-
1028
-
1029
- ### Requires
1030
- `textField`
1031
-
1032
- ### Expression
1033
-
1034
- Parameters: `zoom`
1035
-
1036
- ___
1037
-
1038
- ### textOptional
1039
- Name: `textOptional`
1040
-
1041
- ### Description
1042
- If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.
1043
-
1044
- ### Type
1045
- `boolean`
1046
- ### Default Value
1047
- `false`
1048
-
1049
-
1050
- ### Requires
1051
- `textField, iconImage`
1052
-
1053
- ### Expression
1054
-
1055
- Parameters: `zoom`
1056
-
1057
- ___
1058
-
1059
- ### visibility
1060
- Name: `visibility`
1061
-
1062
- ### Description
1063
- Whether this layer is displayed.
1064
-
1065
- ### Type
1066
- `enum`
1067
- ### Default Value
1068
- `visible`
1069
-
1070
- ### Supported Values
1071
- **visible** - The layer is shown.<br />
1072
- **none** - The layer is not shown.<br />
1073
-
1074
-
1075
-
1076
- ___
1077
-
1078
- ### iconOpacity
1079
- Name: `iconOpacity`
1080
-
1081
- ### Description
1082
- The opacity at which the icon will be drawn.
1083
-
1084
- ### Type
1085
- `number`
1086
- ### Default Value
1087
- `1`
1088
-
1089
- ### Minimum
1090
- `0`
1091
-
1092
-
1093
- ### Maximum
1094
- `1`
1095
-
1096
- ### Requires
1097
- `iconImage`
1098
-
1099
- ### Expression
1100
-
1101
- Parameters: `zoom, feature, feature-state`
1102
- ___
1103
-
1104
- ### Name
1105
-
1106
- `iconOpacityTransition`
1107
-
1108
- ### Description
1109
-
1110
- The transition affecting any changes to this layer’s iconOpacity property.
1111
-
1112
- ### Type
1113
-
1114
- `{ duration, delay }`
1115
-
1116
- ### Units
1117
- `milliseconds`
1118
-
1119
- ### Default Value
1120
- `{duration: 300, delay: 0}`
1121
-
1122
-
1123
- ___
1124
-
1125
- ### iconColor
1126
- Name: `iconColor`
1127
-
1128
- ### Description
1129
- The color of the icon. This can only be used with [SDF icons](/help/troubleshooting/usingRecolorableImagesInMapboxMaps/).
1130
-
1131
- ### Type
1132
- `color`
1133
- ### Default Value
1134
- `#000000`
1135
-
1136
-
1137
- ### Requires
1138
- `iconImage`
1139
-
1140
- ### Expression
1141
-
1142
- Parameters: `zoom, feature, feature-state`
1143
- ___
1144
-
1145
- ### Name
1146
-
1147
- `iconColorTransition`
1148
-
1149
- ### Description
1150
-
1151
- The transition affecting any changes to this layer’s iconColor property.
1152
-
1153
- ### Type
1154
-
1155
- `{ duration, delay }`
1156
-
1157
- ### Units
1158
- `milliseconds`
1159
-
1160
- ### Default Value
1161
- `{duration: 300, delay: 0}`
1162
-
1163
-
1164
- ___
1165
-
1166
- ### iconHaloColor
1167
- Name: `iconHaloColor`
1168
-
1169
- ### Description
1170
- The color of the icon's halo. Icon halos can only be used with [SDF icons](/help/troubleshooting/usingRecolorableImagesInMapboxMaps/).
1171
-
1172
- ### Type
1173
- `color`
1174
- ### Default Value
1175
- `rgba(0, 0, 0, 0)`
1176
-
1177
-
1178
- ### Requires
1179
- `iconImage`
1180
-
1181
- ### Expression
1182
-
1183
- Parameters: `zoom, feature, feature-state`
1184
- ___
1185
-
1186
- ### Name
1187
-
1188
- `iconHaloColorTransition`
1189
-
1190
- ### Description
1191
-
1192
- The transition affecting any changes to this layer’s iconHaloColor property.
1193
-
1194
- ### Type
1195
-
1196
- `{ duration, delay }`
1197
-
1198
- ### Units
1199
- `milliseconds`
1200
-
1201
- ### Default Value
1202
- `{duration: 300, delay: 0}`
1203
-
1204
-
1205
- ___
1206
-
1207
- ### iconHaloWidth
1208
- Name: `iconHaloWidth`
1209
-
1210
- ### Description
1211
- Distance of halo to the icon outline.
1212
-
1213
- ### Type
1214
- `number`
1215
- ### Default Value
1216
- `0`
1217
-
1218
- ### Units
1219
- `pixels`
1220
-
1221
- ### Minimum
1222
- `0`
1223
-
1224
-
1225
- ### Requires
1226
- `iconImage`
1227
-
1228
- ### Expression
1229
-
1230
- Parameters: `zoom, feature, feature-state`
1231
- ___
1232
-
1233
- ### Name
1234
-
1235
- `iconHaloWidthTransition`
1236
-
1237
- ### Description
1238
-
1239
- The transition affecting any changes to this layer’s iconHaloWidth property.
1240
-
1241
- ### Type
1242
-
1243
- `{ duration, delay }`
1244
-
1245
- ### Units
1246
- `milliseconds`
1247
-
1248
- ### Default Value
1249
- `{duration: 300, delay: 0}`
1250
-
1251
-
1252
- ___
1253
-
1254
- ### iconHaloBlur
1255
- Name: `iconHaloBlur`
1256
-
1257
- ### Description
1258
- Fade out the halo towards the outside.
1259
-
1260
- ### Type
1261
- `number`
1262
- ### Default Value
1263
- `0`
1264
-
1265
- ### Units
1266
- `pixels`
1267
-
1268
- ### Minimum
1269
- `0`
1270
-
1271
-
1272
- ### Requires
1273
- `iconImage`
1274
-
1275
- ### Expression
1276
-
1277
- Parameters: `zoom, feature, feature-state`
1278
- ___
1279
-
1280
- ### Name
1281
-
1282
- `iconHaloBlurTransition`
1283
-
1284
- ### Description
1285
-
1286
- The transition affecting any changes to this layer’s iconHaloBlur property.
1287
-
1288
- ### Type
1289
-
1290
- `{ duration, delay }`
1291
-
1292
- ### Units
1293
- `milliseconds`
1294
-
1295
- ### Default Value
1296
- `{duration: 300, delay: 0}`
1297
-
1298
-
1299
- ___
1300
-
1301
- ### iconTranslate
1302
- Name: `iconTranslate`
1303
-
1304
- ### Description
1305
- Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
1306
-
1307
- ### Type
1308
- `array<number>`
1309
- ### Default Value
1310
- `[0,0]`
1311
-
1312
- ### Units
1313
- `pixels`
1314
-
1315
-
1316
- ### Requires
1317
- `iconImage`
1318
-
1319
- ### Expression
1320
-
1321
- Parameters: `zoom`
1322
- ___
1323
-
1324
- ### Name
1325
-
1326
- `iconTranslateTransition`
1327
-
1328
- ### Description
1329
-
1330
- The transition affecting any changes to this layer’s iconTranslate property.
1331
-
1332
- ### Type
1333
-
1334
- `{ duration, delay }`
1335
-
1336
- ### Units
1337
- `milliseconds`
1338
-
1339
- ### Default Value
1340
- `{duration: 300, delay: 0}`
1341
-
1342
-
1343
- ___
1344
-
1345
- ### iconTranslateAnchor
1346
- Name: `iconTranslateAnchor`
1347
-
1348
- ### Description
1349
- Controls the frame of reference for `iconTranslate`.
1350
-
1351
- ### Type
1352
- `enum`
1353
- ### Default Value
1354
- `map`
1355
-
1356
- ### Supported Values
1357
- **map** - Icons are translated relative to the map.<br />
1358
- **viewport** - Icons are translated relative to the viewport.<br />
1359
-
1360
-
1361
- ### Requires
1362
- `iconImage, iconTranslate`
1363
-
1364
- ### Expression
1365
-
1366
- Parameters: `zoom`
1367
-
1368
- ___
1369
-
1370
- ### textOpacity
1371
- Name: `textOpacity`
1372
-
1373
- ### Description
1374
- The opacity at which the text will be drawn.
1375
-
1376
- ### Type
1377
- `number`
1378
- ### Default Value
1379
- `1`
1380
-
1381
- ### Minimum
1382
- `0`
1383
-
1384
-
1385
- ### Maximum
1386
- `1`
1387
-
1388
- ### Requires
1389
- `textField`
1390
-
1391
- ### Expression
1392
-
1393
- Parameters: `zoom, feature, feature-state`
1394
- ___
1395
-
1396
- ### Name
1397
-
1398
- `textOpacityTransition`
1399
-
1400
- ### Description
1401
-
1402
- The transition affecting any changes to this layer’s textOpacity property.
1403
-
1404
- ### Type
1405
-
1406
- `{ duration, delay }`
1407
-
1408
- ### Units
1409
- `milliseconds`
1410
-
1411
- ### Default Value
1412
- `{duration: 300, delay: 0}`
1413
-
1414
-
1415
- ___
1416
-
1417
- ### textColor
1418
- Name: `textColor`
1419
-
1420
- ### Description
1421
- The color with which the text will be drawn.
1422
-
1423
- ### Type
1424
- `color`
1425
- ### Default Value
1426
- `#000000`
1427
-
1428
-
1429
- ### Requires
1430
- `textField`
1431
-
1432
- ### Expression
1433
-
1434
- Parameters: `zoom, feature, feature-state`
1435
- ___
1436
-
1437
- ### Name
1438
-
1439
- `textColorTransition`
1440
-
1441
- ### Description
1442
-
1443
- The transition affecting any changes to this layer’s textColor property.
1444
-
1445
- ### Type
1446
-
1447
- `{ duration, delay }`
1448
-
1449
- ### Units
1450
- `milliseconds`
1451
-
1452
- ### Default Value
1453
- `{duration: 300, delay: 0}`
1454
-
1455
-
1456
- ___
1457
-
1458
- ### textHaloColor
1459
- Name: `textHaloColor`
1460
-
1461
- ### Description
1462
- The color of the text's halo, which helps it stand out from backgrounds.
1463
-
1464
- ### Type
1465
- `color`
1466
- ### Default Value
1467
- `rgba(0, 0, 0, 0)`
1468
-
1469
-
1470
- ### Requires
1471
- `textField`
1472
-
1473
- ### Expression
1474
-
1475
- Parameters: `zoom, feature, feature-state`
1476
- ___
1477
-
1478
- ### Name
1479
-
1480
- `textHaloColorTransition`
1481
-
1482
- ### Description
1483
-
1484
- The transition affecting any changes to this layer’s textHaloColor property.
1485
-
1486
- ### Type
1487
-
1488
- `{ duration, delay }`
1489
-
1490
- ### Units
1491
- `milliseconds`
1492
-
1493
- ### Default Value
1494
- `{duration: 300, delay: 0}`
1495
-
1496
-
1497
- ___
1498
-
1499
- ### textHaloWidth
1500
- Name: `textHaloWidth`
1501
-
1502
- ### Description
1503
- Distance of halo to the font outline. Max text halo width is 1/4 of the fontSize.
1504
-
1505
- ### Type
1506
- `number`
1507
- ### Default Value
1508
- `0`
1509
-
1510
- ### Units
1511
- `pixels`
1512
-
1513
- ### Minimum
1514
- `0`
1515
-
1516
-
1517
- ### Requires
1518
- `textField`
1519
-
1520
- ### Expression
1521
-
1522
- Parameters: `zoom, feature, feature-state`
1523
- ___
1524
-
1525
- ### Name
1526
-
1527
- `textHaloWidthTransition`
1528
-
1529
- ### Description
1530
-
1531
- The transition affecting any changes to this layer’s textHaloWidth property.
1532
-
1533
- ### Type
1534
-
1535
- `{ duration, delay }`
1536
-
1537
- ### Units
1538
- `milliseconds`
1539
-
1540
- ### Default Value
1541
- `{duration: 300, delay: 0}`
1542
-
1543
-
1544
- ___
1545
-
1546
- ### textHaloBlur
1547
- Name: `textHaloBlur`
1548
-
1549
- ### Description
1550
- The halo's fadeout distance towards the outside.
1551
-
1552
- ### Type
1553
- `number`
1554
- ### Default Value
1555
- `0`
1556
-
1557
- ### Units
1558
- `pixels`
1559
-
1560
- ### Minimum
1561
- `0`
1562
-
1563
-
1564
- ### Requires
1565
- `textField`
1566
-
1567
- ### Expression
1568
-
1569
- Parameters: `zoom, feature, feature-state`
1570
- ___
1571
-
1572
- ### Name
1573
-
1574
- `textHaloBlurTransition`
1575
-
1576
- ### Description
1577
-
1578
- The transition affecting any changes to this layer’s textHaloBlur property.
1579
-
1580
- ### Type
1581
-
1582
- `{ duration, delay }`
1583
-
1584
- ### Units
1585
- `milliseconds`
1586
-
1587
- ### Default Value
1588
- `{duration: 300, delay: 0}`
1589
-
1590
-
1591
- ___
1592
-
1593
- ### textTranslate
1594
- Name: `textTranslate`
1595
-
1596
- ### Description
1597
- Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
1598
-
1599
- ### Type
1600
- `array<number>`
1601
- ### Default Value
1602
- `[0,0]`
1603
-
1604
- ### Units
1605
- `pixels`
1606
-
1607
-
1608
- ### Requires
1609
- `textField`
1610
-
1611
- ### Expression
1612
-
1613
- Parameters: `zoom`
1614
- ___
1615
-
1616
- ### Name
1617
-
1618
- `textTranslateTransition`
1619
-
1620
- ### Description
1621
-
1622
- The transition affecting any changes to this layer’s textTranslate property.
1623
-
1624
- ### Type
1625
-
1626
- `{ duration, delay }`
1627
-
1628
- ### Units
1629
- `milliseconds`
1630
-
1631
- ### Default Value
1632
- `{duration: 300, delay: 0}`
1633
-
1634
-
1635
- ___
1636
-
1637
- ### textTranslateAnchor
1638
- Name: `textTranslateAnchor`
1639
-
1640
- ### Description
1641
- Controls the frame of reference for `textTranslate`.
1642
-
1643
- ### Type
1644
- `enum`
1645
- ### Default Value
1646
- `map`
1647
-
1648
- ### Supported Values
1649
- **map** - The text is translated relative to the map.<br />
1650
- **viewport** - The text is translated relative to the viewport.<br />
1651
-
1652
-
1653
- ### Requires
1654
- `textField, textTranslate`
1655
-
1656
- ### Expression
1657
-
1658
- Parameters: `zoom`
1659
-