@maplibre/maplibre-react-native 8.6.0-beta.0

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 (381) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc.js +158 -0
  3. package/.gitattributes +1 -0
  4. package/.nvmrc +1 -0
  5. package/.prettierrc.js +7 -0
  6. package/.sonarcloud.properties +15 -0
  7. package/CHANGELOG.md +367 -0
  8. package/CODE_OF_CONDUCT.md +2 -0
  9. package/CONTRIBUTING.md +34 -0
  10. package/LICENSE.md +9 -0
  11. package/README.md +224 -0
  12. package/RELEASE.md +30 -0
  13. package/android/build.gradle +34 -0
  14. package/android/install.md +16 -0
  15. package/android/rctmgl/.settings/org.eclipse.buildship.core.prefs +2 -0
  16. package/android/rctmgl/build.gradle +61 -0
  17. package/android/rctmgl/proguard-rules.pro +25 -0
  18. package/android/rctmgl/src/main/AndroidManifest.xml +4 -0
  19. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/RCTMGLPackage.java +99 -0
  20. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractEvent.java +35 -0
  21. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractEventEmitter.java +80 -0
  22. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractMapFeature.java +19 -0
  23. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/MarkerView.java +23 -0
  24. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/MarkerViewManager.java +67 -0
  25. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCallout.java +15 -0
  26. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCalloutManager.java +22 -0
  27. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.java +112 -0
  28. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.java +45 -0
  29. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotation.java +360 -0
  30. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotationManager.java +88 -0
  31. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraStop.java +249 -0
  32. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraUpdateItem.java +125 -0
  33. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraUpdateQueue.java +73 -0
  34. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCamera.java +530 -0
  35. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCameraManager.java +101 -0
  36. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/constants/CameraMode.java +22 -0
  37. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImages.java +234 -0
  38. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImagesManager.java +103 -0
  39. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/LocationComponentManager.java +149 -0
  40. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocation.java +66 -0
  41. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocationManager.java +35 -0
  42. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/LayerSourceInfo.java +59 -0
  43. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapView.java +16 -0
  44. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapViewManager.java +31 -0
  45. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java +1527 -0
  46. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapViewManager.java +353 -0
  47. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/helpers/CameraChangeTracker.java +41 -0
  48. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyle.java +83 -0
  49. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFactory.java +2242 -0
  50. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFunctionParser.java +108 -0
  51. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleValue.java +212 -0
  52. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTLayer.java +287 -0
  53. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayer.java +27 -0
  54. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayerManager.java +64 -0
  55. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayer.java +55 -0
  56. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayerManager.java +77 -0
  57. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayer.java +55 -0
  58. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayerManager.java +80 -0
  59. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayer.java +55 -0
  60. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayerManager.java +80 -0
  61. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayer.java +55 -0
  62. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayerManager.java +77 -0
  63. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayer.java +55 -0
  64. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayerManager.java +79 -0
  65. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayer.java +27 -0
  66. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayerManager.java +64 -0
  67. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayer.java +55 -0
  68. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayerManager.java +75 -0
  69. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLight.java +65 -0
  70. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLightManager.java +29 -0
  71. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSource.java +81 -0
  72. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSourceManager.java +72 -0
  73. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSource.java +45 -0
  74. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSourceManager.java +44 -0
  75. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSource.java +302 -0
  76. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSourceManager.java +227 -0
  77. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSource.java +97 -0
  78. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSourceManager.java +80 -0
  79. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSource.java +64 -0
  80. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSourceManager.java +84 -0
  81. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTSource.java +244 -0
  82. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/AbstractEvent.java +66 -0
  83. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/AndroidCallbackEvent.java +38 -0
  84. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/EventEmitter.java +45 -0
  85. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/FeatureClickEvent.java +79 -0
  86. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/IEvent.java +18 -0
  87. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/ImageMissingEvent.java +42 -0
  88. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/LocationEvent.java +100 -0
  89. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapChangeEvent.java +47 -0
  90. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapClickEvent.java +51 -0
  91. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapUserTrackingModeEvent.java +36 -0
  92. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/OfflineEvent.java +29 -0
  93. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/PointAnnotationClickEvent.java +46 -0
  94. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/PointAnnotationDragEvent.java +51 -0
  95. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/constants/EventKeys.java +39 -0
  96. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/constants/EventTypes.java +51 -0
  97. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/http/CustomHeadersInterceptor.java +38 -0
  98. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/LocationManager.java +168 -0
  99. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserLocation.java +63 -0
  100. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserLocationVerticalAlignment.java +11 -0
  101. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserTrackingMode.java +63 -0
  102. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserTrackingState.java +19 -0
  103. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLocationModule.java +158 -0
  104. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLogging.java +140 -0
  105. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLModule.java +348 -0
  106. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java +597 -0
  107. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java +139 -0
  108. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/BitmapUtils.java +129 -0
  109. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ConvertUtils.java +257 -0
  110. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/DownloadMapImageTask.java +159 -0
  111. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ExpressionParser.java +74 -0
  112. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/GeoJSONUtils.java +209 -0
  113. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/GeoViewport.java +38 -0
  114. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ImageEntry.java +25 -0
  115. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ResourceUtils.java +30 -0
  116. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/SimpleEventCallback.java +30 -0
  117. package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/SphericalMercator.java +69 -0
  118. package/android/rctmgl/src/main/res/drawable/empty.xml +5 -0
  119. package/android/rctmgl/src/main/res/drawable/empty_drawable.png +0 -0
  120. package/android/rctmgl/src/main/res/drawable-xxhdpi/red_marker.png +0 -0
  121. package/android/rctmgl/src/main/res/layout/annotation.xml +17 -0
  122. package/android/rctmgl/src/main/res/values/strings.xml +3 -0
  123. package/android/settings.gradle +1 -0
  124. package/app.plugin.js +1 -0
  125. package/assets/heading.png +0 -0
  126. package/assets/heading@2x.png +0 -0
  127. package/assets/heading@3x.png +0 -0
  128. package/assets/indoor_building_map_android.png +0 -0
  129. package/assets/indoor_building_map_ios.png +0 -0
  130. package/assets/mapbox_logo.png +0 -0
  131. package/babel.config.js +9 -0
  132. package/docs/Annotation.md +39 -0
  133. package/docs/Annotations.md +17 -0
  134. package/docs/BackgroundLayer.md +166 -0
  135. package/docs/Callout.md +15 -0
  136. package/docs/Camera.md +162 -0
  137. package/docs/CircleLayer.md +453 -0
  138. package/docs/CustomHttpHeaders.md +87 -0
  139. package/docs/FillExtrusionLayer.md +327 -0
  140. package/docs/FillLayer.md +293 -0
  141. package/docs/GettingStarted.md +72 -0
  142. package/docs/HeadingIndicator.md +10 -0
  143. package/docs/HeatmapLayer.md +215 -0
  144. package/docs/ImageSource.md +12 -0
  145. package/docs/Images.md +12 -0
  146. package/docs/Light.md +159 -0
  147. package/docs/LineLayer.md +567 -0
  148. package/docs/Logger.md +23 -0
  149. package/docs/MapView.md +211 -0
  150. package/docs/MapboxGL.md +65 -0
  151. package/docs/MarkerView.md +14 -0
  152. package/docs/NativeUserLocation.md +11 -0
  153. package/docs/OfflineManager.md +246 -0
  154. package/docs/PointAnnotation.md +34 -0
  155. package/docs/RasterLayer.md +357 -0
  156. package/docs/RasterSource.md +17 -0
  157. package/docs/ShapeSource.md +100 -0
  158. package/docs/Style.md +10 -0
  159. package/docs/StyleSheet.md +430 -0
  160. package/docs/SymbolLayer.md +1658 -0
  161. package/docs/UserLocation.md +39 -0
  162. package/docs/VectorSource.md +48 -0
  163. package/docs/docs.json +6093 -0
  164. package/docs/snapshotManager.md +53 -0
  165. package/index.d.ts +953 -0
  166. package/ios/RCTMGL/CameraMode.h +18 -0
  167. package/ios/RCTMGL/CameraMode.m +18 -0
  168. package/ios/RCTMGL/CameraStop.h +26 -0
  169. package/ios/RCTMGL/CameraStop.m +83 -0
  170. package/ios/RCTMGL/CameraUpdateItem.h +18 -0
  171. package/ios/RCTMGL/CameraUpdateItem.m +178 -0
  172. package/ios/RCTMGL/CameraUpdateQueue.h +21 -0
  173. package/ios/RCTMGL/CameraUpdateQueue.m +74 -0
  174. package/ios/RCTMGL/FilterParser.h +14 -0
  175. package/ios/RCTMGL/FilterParser.m +22 -0
  176. package/ios/RCTMGL/MGLCustomHeaders.h +20 -0
  177. package/ios/RCTMGL/MGLCustomHeaders.m +98 -0
  178. package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.h +23 -0
  179. package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.m +474 -0
  180. package/ios/RCTMGL/MGLModule.h +13 -0
  181. package/ios/RCTMGL/MGLModule.m +269 -0
  182. package/ios/RCTMGL/MGLOfflineModule.h +19 -0
  183. package/ios/RCTMGL/MGLOfflineModule.m +516 -0
  184. package/ios/RCTMGL/MGLSnapshotModule.h +13 -0
  185. package/ios/RCTMGL/MGLSnapshotModule.m +80 -0
  186. package/ios/RCTMGL/MGLUserLocationHeadingArrowLayer.h +11 -0
  187. package/ios/RCTMGL/MGLUserLocationHeadingArrowLayer.m +57 -0
  188. package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.h +11 -0
  189. package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.m +102 -0
  190. package/ios/RCTMGL/MGLUserLocationHeadingIndicator.h +10 -0
  191. package/ios/RCTMGL/RCTConvert+Mapbox.h +16 -0
  192. package/ios/RCTMGL/RCTConvert+Mapbox.m +32 -0
  193. package/ios/RCTMGL/RCTMGL.h +13 -0
  194. package/ios/RCTMGL/RCTMGL.m +13 -0
  195. package/ios/RCTMGL/RCTMGLBackgroundLayer.h +14 -0
  196. package/ios/RCTMGL/RCTMGLBackgroundLayer.m +27 -0
  197. package/ios/RCTMGL/RCTMGLBackgroundLayerManager.h +13 -0
  198. package/ios/RCTMGL/RCTMGLBackgroundLayerManager.m +35 -0
  199. package/ios/RCTMGL/RCTMGLCallout.h +15 -0
  200. package/ios/RCTMGL/RCTMGLCallout.m +74 -0
  201. package/ios/RCTMGL/RCTMGLCalloutManager.h +13 -0
  202. package/ios/RCTMGL/RCTMGLCalloutManager.m +21 -0
  203. package/ios/RCTMGL/RCTMGLCamera.h +39 -0
  204. package/ios/RCTMGL/RCTMGLCamera.m +258 -0
  205. package/ios/RCTMGL/RCTMGLCameraManager.h +13 -0
  206. package/ios/RCTMGL/RCTMGLCameraManager.m +52 -0
  207. package/ios/RCTMGL/RCTMGLCircleLayer.h +13 -0
  208. package/ios/RCTMGL/RCTMGLCircleLayer.m +34 -0
  209. package/ios/RCTMGL/RCTMGLCircleLayerManager.h +13 -0
  210. package/ios/RCTMGL/RCTMGLCircleLayerManager.m +39 -0
  211. package/ios/RCTMGL/RCTMGLEvent.h +21 -0
  212. package/ios/RCTMGL/RCTMGLEvent.m +47 -0
  213. package/ios/RCTMGL/RCTMGLEventProtocol.h +16 -0
  214. package/ios/RCTMGL/RCTMGLEventTypes.h +50 -0
  215. package/ios/RCTMGL/RCTMGLEventTypes.m +49 -0
  216. package/ios/RCTMGL/RCTMGLFillExtrusionLayer.h +14 -0
  217. package/ios/RCTMGL/RCTMGLFillExtrusionLayer.m +32 -0
  218. package/ios/RCTMGL/RCTMGLFillExtrusionLayerManager.h +13 -0
  219. package/ios/RCTMGL/RCTMGLFillExtrusionLayerManager.m +39 -0
  220. package/ios/RCTMGL/RCTMGLFillLayer.h +14 -0
  221. package/ios/RCTMGL/RCTMGLFillLayer.m +33 -0
  222. package/ios/RCTMGL/RCTMGLFillLayerManager.h +13 -0
  223. package/ios/RCTMGL/RCTMGLFillLayerManager.m +37 -0
  224. package/ios/RCTMGL/RCTMGLHeatmapLayer.h +12 -0
  225. package/ios/RCTMGL/RCTMGLHeatmapLayer.m +30 -0
  226. package/ios/RCTMGL/RCTMGLHeatmapLayerManager.h +12 -0
  227. package/ios/RCTMGL/RCTMGLHeatmapLayerManager.m +38 -0
  228. package/ios/RCTMGL/RCTMGLImageQueue.h +19 -0
  229. package/ios/RCTMGL/RCTMGLImageQueue.m +57 -0
  230. package/ios/RCTMGL/RCTMGLImageQueueOperation.h +17 -0
  231. package/ios/RCTMGL/RCTMGLImageQueueOperation.m +138 -0
  232. package/ios/RCTMGL/RCTMGLImageSource.h +16 -0
  233. package/ios/RCTMGL/RCTMGLImageSource.m +60 -0
  234. package/ios/RCTMGL/RCTMGLImageSourceManager.h +13 -0
  235. package/ios/RCTMGL/RCTMGLImageSourceManager.m +25 -0
  236. package/ios/RCTMGL/RCTMGLImages.h +25 -0
  237. package/ios/RCTMGL/RCTMGLImages.m +126 -0
  238. package/ios/RCTMGL/RCTMGLImagesManager.h +5 -0
  239. package/ios/RCTMGL/RCTMGLImagesManager.m +21 -0
  240. package/ios/RCTMGL/RCTMGLLayer.h +52 -0
  241. package/ios/RCTMGL/RCTMGLLayer.m +236 -0
  242. package/ios/RCTMGL/RCTMGLLight.h +17 -0
  243. package/ios/RCTMGL/RCTMGLLight.m +46 -0
  244. package/ios/RCTMGL/RCTMGLLightManager.h +13 -0
  245. package/ios/RCTMGL/RCTMGLLightManager.m +23 -0
  246. package/ios/RCTMGL/RCTMGLLineLayer.h +14 -0
  247. package/ios/RCTMGL/RCTMGLLineLayer.m +33 -0
  248. package/ios/RCTMGL/RCTMGLLineLayerManager.h +13 -0
  249. package/ios/RCTMGL/RCTMGLLineLayerManager.m +40 -0
  250. package/ios/RCTMGL/RCTMGLLocation.h +19 -0
  251. package/ios/RCTMGL/RCTMGLLocation.m +32 -0
  252. package/ios/RCTMGL/RCTMGLLocationManager.h +30 -0
  253. package/ios/RCTMGL/RCTMGLLocationManager.m +180 -0
  254. package/ios/RCTMGL/RCTMGLLocationManagerDelegate.h +20 -0
  255. package/ios/RCTMGL/RCTMGLLocationModule.h +15 -0
  256. package/ios/RCTMGL/RCTMGLLocationModule.m +99 -0
  257. package/ios/RCTMGL/RCTMGLLogging.h +18 -0
  258. package/ios/RCTMGL/RCTMGLLogging.m +132 -0
  259. package/ios/RCTMGL/RCTMGLMapTouchEvent.h +25 -0
  260. package/ios/RCTMGL/RCTMGLMapTouchEvent.m +77 -0
  261. package/ios/RCTMGL/RCTMGLMapView.h +91 -0
  262. package/ios/RCTMGL/RCTMGLMapView.m +536 -0
  263. package/ios/RCTMGL/RCTMGLMapViewManager.h +17 -0
  264. package/ios/RCTMGL/RCTMGLMapViewManager.m +625 -0
  265. package/ios/RCTMGL/RCTMGLNativeUserLocation.h +18 -0
  266. package/ios/RCTMGL/RCTMGLNativeUserLocation.m +49 -0
  267. package/ios/RCTMGL/RCTMGLNativeUserLocationManager.h +5 -0
  268. package/ios/RCTMGL/RCTMGLNativeUserLocationManager.m +25 -0
  269. package/ios/RCTMGL/RCTMGLPointAnnotation.h +41 -0
  270. package/ios/RCTMGL/RCTMGLPointAnnotation.m +251 -0
  271. package/ios/RCTMGL/RCTMGLPointAnnotationManager.h +13 -0
  272. package/ios/RCTMGL/RCTMGLPointAnnotationManager.m +36 -0
  273. package/ios/RCTMGL/RCTMGLRasterLayer.h +14 -0
  274. package/ios/RCTMGL/RCTMGLRasterLayer.m +30 -0
  275. package/ios/RCTMGL/RCTMGLRasterLayerManager.h +13 -0
  276. package/ios/RCTMGL/RCTMGLRasterLayerManager.m +35 -0
  277. package/ios/RCTMGL/RCTMGLRasterSource.h +16 -0
  278. package/ios/RCTMGL/RCTMGLRasterSource.m +35 -0
  279. package/ios/RCTMGL/RCTMGLRasterSourceManager.h +13 -0
  280. package/ios/RCTMGL/RCTMGLRasterSourceManager.m +32 -0
  281. package/ios/RCTMGL/RCTMGLShapeSource.h +52 -0
  282. package/ios/RCTMGL/RCTMGLShapeSource.m +180 -0
  283. package/ios/RCTMGL/RCTMGLShapeSourceManager.h +14 -0
  284. package/ios/RCTMGL/RCTMGLShapeSourceManager.m +205 -0
  285. package/ios/RCTMGL/RCTMGLSource.h +35 -0
  286. package/ios/RCTMGL/RCTMGLSource.m +143 -0
  287. package/ios/RCTMGL/RCTMGLStyle.h +219 -0
  288. package/ios/RCTMGL/RCTMGLStyle.m +1654 -0
  289. package/ios/RCTMGL/RCTMGLStyleValue.h +27 -0
  290. package/ios/RCTMGL/RCTMGLStyleValue.m +167 -0
  291. package/ios/RCTMGL/RCTMGLSymbolLayer.h +19 -0
  292. package/ios/RCTMGL/RCTMGLSymbolLayer.m +121 -0
  293. package/ios/RCTMGL/RCTMGLSymbolLayerManager.h +13 -0
  294. package/ios/RCTMGL/RCTMGLSymbolLayerManager.m +40 -0
  295. package/ios/RCTMGL/RCTMGLTileSource.h +22 -0
  296. package/ios/RCTMGL/RCTMGLTileSource.m +31 -0
  297. package/ios/RCTMGL/RCTMGLUserLocation.h +15 -0
  298. package/ios/RCTMGL/RCTMGLUserLocation.m +38 -0
  299. package/ios/RCTMGL/RCTMGLUtils.h +31 -0
  300. package/ios/RCTMGL/RCTMGLUtils.m +218 -0
  301. package/ios/RCTMGL/RCTMGLVectorLayer.h +15 -0
  302. package/ios/RCTMGL/RCTMGLVectorLayer.m +59 -0
  303. package/ios/RCTMGL/RCTMGLVectorSource.h +16 -0
  304. package/ios/RCTMGL/RCTMGLVectorSource.m +28 -0
  305. package/ios/RCTMGL/RCTMGLVectorSourceManager.h +14 -0
  306. package/ios/RCTMGL/RCTMGLVectorSourceManager.m +79 -0
  307. package/ios/RCTMGL/RNMBImageUtils.h +17 -0
  308. package/ios/RCTMGL/RNMBImageUtils.m +31 -0
  309. package/ios/RCTMGL/ViewManager.h +16 -0
  310. package/ios/RCTMGL/ViewManager.m +63 -0
  311. package/ios/RCTMGL/index.d.ts +1164 -0
  312. package/ios/RCTMGL.xcodeproj/project.pbxproj +774 -0
  313. package/ios/install.md +44 -0
  314. package/javascript/components/AbstractLayer.js +75 -0
  315. package/javascript/components/AbstractSource.js +15 -0
  316. package/javascript/components/BackgroundLayer.js +97 -0
  317. package/javascript/components/Callout.js +139 -0
  318. package/javascript/components/Camera.js +665 -0
  319. package/javascript/components/CircleLayer.js +101 -0
  320. package/javascript/components/FillExtrusionLayer.js +98 -0
  321. package/javascript/components/FillLayer.js +94 -0
  322. package/javascript/components/HeadingIndicator.js +31 -0
  323. package/javascript/components/HeatmapLayer.js +99 -0
  324. package/javascript/components/ImageSource.js +82 -0
  325. package/javascript/components/Images.js +119 -0
  326. package/javascript/components/Light.js +47 -0
  327. package/javascript/components/LineLayer.js +94 -0
  328. package/javascript/components/MapView.js +817 -0
  329. package/javascript/components/MarkerView.js +87 -0
  330. package/javascript/components/NativeBridgeComponent.js +86 -0
  331. package/javascript/components/NativeUserLocation.js +41 -0
  332. package/javascript/components/PointAnnotation.js +216 -0
  333. package/javascript/components/RasterLayer.js +95 -0
  334. package/javascript/components/RasterSource.js +124 -0
  335. package/javascript/components/ShapeSource.js +357 -0
  336. package/javascript/components/Style.js +264 -0
  337. package/javascript/components/SymbolLayer.js +120 -0
  338. package/javascript/components/UserLocation.js +273 -0
  339. package/javascript/components/VectorSource.js +200 -0
  340. package/javascript/components/annotations/Annotation.js +122 -0
  341. package/javascript/index.js +153 -0
  342. package/javascript/modules/location/locationManager.js +101 -0
  343. package/javascript/modules/offline/OfflineCreatePackOptions.js +46 -0
  344. package/javascript/modules/offline/OfflinePack.js +40 -0
  345. package/javascript/modules/offline/offlineManager.js +378 -0
  346. package/javascript/modules/snapshot/SnapshotOptions.js +67 -0
  347. package/javascript/modules/snapshot/snapshotManager.js +62 -0
  348. package/javascript/utils/BridgeValue.js +81 -0
  349. package/javascript/utils/Logger.js +114 -0
  350. package/javascript/utils/animated/Animated.js +39 -0
  351. package/javascript/utils/animated/AnimatedCoordinatesArray.js +191 -0
  352. package/javascript/utils/animated/AnimatedExtractCoordinateFromArray.js +43 -0
  353. package/javascript/utils/animated/AnimatedPoint.js +126 -0
  354. package/javascript/utils/animated/AnimatedRouteCoordinatesArray.js +124 -0
  355. package/javascript/utils/animated/AnimatedShape.js +72 -0
  356. package/javascript/utils/deprecation.js +25 -0
  357. package/javascript/utils/filterUtils.js +7 -0
  358. package/javascript/utils/geoUtils.js +73 -0
  359. package/javascript/utils/index.js +113 -0
  360. package/javascript/utils/styleMap.js +1901 -0
  361. package/maplibre-react-native.podspec +79 -0
  362. package/package.json +120 -0
  363. package/plugin/build/withMapbox.d.ts +12 -0
  364. package/plugin/build/withMapbox.js +119 -0
  365. package/plugin/install.md +32 -0
  366. package/react-native.config.js +10 -0
  367. package/scripts/autogenHelpers/DocJSONBuilder.js +458 -0
  368. package/scripts/autogenHelpers/JSDocNodeTree.js +131 -0
  369. package/scripts/autogenHelpers/MarkdownBuilder.js +29 -0
  370. package/scripts/autogenHelpers/globals.js +507 -0
  371. package/scripts/autogenerate.js +374 -0
  372. package/scripts/download-style-spec.sh +15 -0
  373. package/scripts/templates/RCTMGLStyle.h.ejs +33 -0
  374. package/scripts/templates/RCTMGLStyle.m.ejs +97 -0
  375. package/scripts/templates/RCTMGLStyleFactory.java.ejs +107 -0
  376. package/scripts/templates/component.md.ejs +122 -0
  377. package/scripts/templates/index.d.ts.ejs +56 -0
  378. package/scripts/templates/styleMap.js.ejs +115 -0
  379. package/setup-jest.js +121 -0
  380. package/style-spec/v8.json +5798 -0
  381. package/tsconfig.json +65 -0
@@ -0,0 +1,1164 @@
1
+ /* eslint-disable */
2
+ // DO NOT MODIFY
3
+ // THIS FILE IS AUTOGENERATED
4
+
5
+ export interface ConstantProps {
6
+ styletype: string;
7
+ payload: {
8
+ value: any;
9
+ };
10
+ }
11
+
12
+ export interface StyleFunctionProps {
13
+ styletype: string;
14
+ payload: {
15
+ fn: string;
16
+ attributeName: string;
17
+ stops: any[];
18
+ mode: any;
19
+ };
20
+ }
21
+
22
+ export interface TransitionProps {
23
+ duration: number;
24
+ delay: number;
25
+ }
26
+
27
+ export type TranslationProps = { x: number; y: number } | number[];
28
+
29
+ export interface fillLayerStyleProps {
30
+ /**
31
+ * Whether this layer is displayed.
32
+ */
33
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
34
+
35
+ /**
36
+ * Whether or not the fill should be antialiased.
37
+ */
38
+ fillAntialias: Value<boolean, ["zoom"]>;
39
+
40
+ /**
41
+ * The opacity of the entire fill layer. In contrast to the `fillColor`, this value will also affect the 1px stroke around the fill, if the stroke is used.
42
+ */
43
+ fillOpacity: Value<number, ["zoom", "feature", "feature-state"]>;
44
+
45
+ /**
46
+ * The transition affecting any changes to this layer’s fillOpacity property.
47
+ */
48
+ fillOpacityTransition: TransitionProps;
49
+
50
+ /**
51
+ * The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
52
+ *
53
+ * @disabledBy fillPattern
54
+ */
55
+ fillColor: Value<string, ["zoom", "feature", "feature-state"]>;
56
+
57
+ /**
58
+ * The transition affecting any changes to this layer’s fillColor property.
59
+ */
60
+ fillColorTransition: TransitionProps;
61
+
62
+ /**
63
+ * The outline color of the fill. Matches the value of `fillColor` if unspecified.
64
+ *
65
+ * @disabledBy fillPattern
66
+ */
67
+ fillOutlineColor: Value<string, ["zoom", "feature", "feature-state"]>;
68
+
69
+ /**
70
+ * The transition affecting any changes to this layer’s fillOutlineColor property.
71
+ */
72
+ fillOutlineColorTransition: TransitionProps;
73
+
74
+ /**
75
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
76
+ */
77
+ fillTranslate: Value<Translation, ["zoom"]>;
78
+
79
+ /**
80
+ * The transition affecting any changes to this layer’s fillTranslate property.
81
+ */
82
+ fillTranslateTransition: TransitionProps;
83
+
84
+ /**
85
+ * Controls the frame of reference for `fillTranslate`.
86
+ *
87
+ * @requires fillTranslate
88
+ */
89
+ fillTranslateAnchor: Value<Translation, ["zoom"]>;
90
+
91
+ /**
92
+ * Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
93
+ */
94
+ fillPattern: Value<ResolvedImageType, ["zoom", "feature"]>;
95
+
96
+ /**
97
+ * The transition affecting any changes to this layer’s fillPattern property.
98
+ */
99
+ fillPatternTransition: TransitionProps;
100
+ }
101
+
102
+ export interface lineLayerStyleProps {
103
+ /**
104
+ * The display of line endings.
105
+ */
106
+ lineCap: Value<Enum<LineCapEnum, LineCapEnumValues>, ["zoom"]>;
107
+
108
+ /**
109
+ * The display of lines when joining.
110
+ */
111
+ lineJoin: Value<Enum<LineJoinEnum, LineJoinEnumValues>, ["zoom", "feature"]>;
112
+
113
+ /**
114
+ * Used to automatically convert miter joins to bevel joins for sharp angles.
115
+ */
116
+ lineMiterLimit: Value<number, ["zoom"]>;
117
+
118
+ /**
119
+ * Used to automatically convert round joins to miter joins for shallow angles.
120
+ */
121
+ lineRoundLimit: Value<number, ["zoom"]>;
122
+
123
+ /**
124
+ * Whether this layer is displayed.
125
+ */
126
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
127
+
128
+ /**
129
+ * The opacity at which the line will be drawn.
130
+ */
131
+ lineOpacity: Value<number, ["zoom", "feature", "feature-state"]>;
132
+
133
+ /**
134
+ * The transition affecting any changes to this layer’s lineOpacity property.
135
+ */
136
+ lineOpacityTransition: TransitionProps;
137
+
138
+ /**
139
+ * The color with which the line will be drawn.
140
+ *
141
+ * @disabledBy linePattern
142
+ */
143
+ lineColor: Value<string, ["zoom", "feature", "feature-state"]>;
144
+
145
+ /**
146
+ * The transition affecting any changes to this layer’s lineColor property.
147
+ */
148
+ lineColorTransition: TransitionProps;
149
+
150
+ /**
151
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
152
+ */
153
+ lineTranslate: Value<Translation, ["zoom"]>;
154
+
155
+ /**
156
+ * The transition affecting any changes to this layer’s lineTranslate property.
157
+ */
158
+ lineTranslateTransition: TransitionProps;
159
+
160
+ /**
161
+ * Controls the frame of reference for `lineTranslate`.
162
+ *
163
+ * @requires lineTranslate
164
+ */
165
+ lineTranslateAnchor: Value<Translation, ["zoom"]>;
166
+
167
+ /**
168
+ * Stroke thickness.
169
+ */
170
+ lineWidth: Value<number, ["zoom", "feature", "feature-state"]>;
171
+
172
+ /**
173
+ * The transition affecting any changes to this layer’s lineWidth property.
174
+ */
175
+ lineWidthTransition: TransitionProps;
176
+
177
+ /**
178
+ * Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
179
+ */
180
+ lineGapWidth: Value<number, ["zoom", "feature", "feature-state"]>;
181
+
182
+ /**
183
+ * The transition affecting any changes to this layer’s lineGapWidth property.
184
+ */
185
+ lineGapWidthTransition: TransitionProps;
186
+
187
+ /**
188
+ * The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.
189
+ */
190
+ lineOffset: Value<number, ["zoom", "feature", "feature-state"]>;
191
+
192
+ /**
193
+ * The transition affecting any changes to this layer’s lineOffset property.
194
+ */
195
+ lineOffsetTransition: TransitionProps;
196
+
197
+ /**
198
+ * Blur applied to the line, in pixels.
199
+ */
200
+ lineBlur: Value<number, ["zoom", "feature", "feature-state"]>;
201
+
202
+ /**
203
+ * The transition affecting any changes to this layer’s lineBlur property.
204
+ */
205
+ lineBlurTransition: TransitionProps;
206
+
207
+ /**
208
+ * Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoomDependent expressions will be evaluated only at integer zoom levels.
209
+ *
210
+ * @disabledBy linePattern
211
+ */
212
+ lineDasharray: Value<number[], ["zoom"]>;
213
+
214
+ /**
215
+ * The transition affecting any changes to this layer’s lineDasharray property.
216
+ */
217
+ lineDasharrayTransition: TransitionProps;
218
+
219
+ /**
220
+ * Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
221
+ */
222
+ linePattern: Value<ResolvedImageType, ["zoom", "feature"]>;
223
+
224
+ /**
225
+ * The transition affecting any changes to this layer’s linePattern property.
226
+ */
227
+ linePatternTransition: TransitionProps;
228
+
229
+ /**
230
+ * Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.
231
+ *
232
+ * @disabledBy lineDasharray, linePattern
233
+ */
234
+ lineGradient: Value<string, ["line-progress"]>;
235
+ }
236
+
237
+ export interface symbolLayerStyleProps {
238
+ /**
239
+ * Label placement relative to its geometry.
240
+ */
241
+ symbolPlacement: Value<
242
+ Enum<SymbolPlacementEnum, SymbolPlacementEnumValues>,
243
+ ["zoom"]
244
+ >;
245
+
246
+ /**
247
+ * Distance between two symbol anchors.
248
+ */
249
+ symbolSpacing: Value<number, ["zoom"]>;
250
+
251
+ /**
252
+ * 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.
253
+ */
254
+ symbolAvoidEdges: Value<boolean, ["zoom"]>;
255
+
256
+ /**
257
+ * Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key when they overlap. Features with a lower sort key will have priority over other features when doing placement.
258
+ */
259
+ symbolSortKey: Value<number, ["zoom", "feature"]>;
260
+
261
+ /**
262
+ * Controls the order in which overlapping symbols in the same layer are rendered
263
+ */
264
+ symbolZOrder: Value<Enum<SymbolZOrderEnum, SymbolZOrderEnumValues>, ["zoom"]>;
265
+
266
+ /**
267
+ * If true, the icon will be visible even if it collides with other previously drawn symbols.
268
+ *
269
+ * @requires iconImage
270
+ */
271
+ iconAllowOverlap: Value<boolean, ["zoom"]>;
272
+
273
+ /**
274
+ * If true, other symbols can be visible even if they collide with the icon.
275
+ *
276
+ * @requires iconImage
277
+ */
278
+ iconIgnorePlacement: Value<boolean, ["zoom"]>;
279
+
280
+ /**
281
+ * If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.
282
+ *
283
+ * @requires iconImage, textField
284
+ */
285
+ iconOptional: Value<boolean, ["zoom"]>;
286
+
287
+ /**
288
+ * In combination with `symbolPlacement`, determines the rotation behavior of icons.
289
+ *
290
+ * @requires iconImage
291
+ */
292
+ iconRotationAlignment: Value<
293
+ Enum<IconRotationAlignmentEnum, IconRotationAlignmentEnumValues>,
294
+ ["zoom"]
295
+ >;
296
+
297
+ /**
298
+ * 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.
299
+ *
300
+ * @requires iconImage
301
+ */
302
+ iconSize: Value<number, ["zoom", "feature"]>;
303
+
304
+ /**
305
+ * Scales the icon to fit around the associated text.
306
+ *
307
+ * @requires iconImage, textField
308
+ */
309
+ iconTextFit: Value<Enum<IconTextFitEnum, IconTextFitEnumValues>, ["zoom"]>;
310
+
311
+ /**
312
+ * Size of the additional area added to dimensions determined by `iconTextFit`, in clockwise order: top, right, bottom, left.
313
+ *
314
+ * @requires iconImage, textField
315
+ */
316
+ iconTextFitPadding: Value<number[], ["zoom"]>;
317
+
318
+ /**
319
+ * Name of image in sprite to use for drawing an image background.
320
+ */
321
+ iconImage: Value<ResolvedImageType, ["zoom", "feature"]>;
322
+
323
+ /**
324
+ * Rotates the icon clockwise.
325
+ *
326
+ * @requires iconImage
327
+ */
328
+ iconRotate: Value<number, ["zoom", "feature"]>;
329
+
330
+ /**
331
+ * Size of the additional area around the icon bounding box used for detecting symbol collisions.
332
+ *
333
+ * @requires iconImage
334
+ */
335
+ iconPadding: Value<number, ["zoom"]>;
336
+
337
+ /**
338
+ * If true, the icon may be flipped to prevent it from being rendered upsideDown.
339
+ *
340
+ * @requires iconImage
341
+ */
342
+ iconKeepUpright: Value<boolean, ["zoom"]>;
343
+
344
+ /**
345
+ * 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.
346
+ *
347
+ * @requires iconImage
348
+ */
349
+ iconOffset: Value<number[], ["zoom", "feature"]>;
350
+
351
+ /**
352
+ * Part of the icon placed closest to the anchor.
353
+ *
354
+ * @requires iconImage
355
+ */
356
+ iconAnchor: Value<
357
+ Enum<IconAnchorEnum, IconAnchorEnumValues>,
358
+ ["zoom", "feature"]
359
+ >;
360
+
361
+ /**
362
+ * Orientation of icon when map is pitched.
363
+ *
364
+ * @requires iconImage
365
+ */
366
+ iconPitchAlignment: Value<
367
+ Enum<IconPitchAlignmentEnum, IconPitchAlignmentEnumValues>,
368
+ ["zoom"]
369
+ >;
370
+
371
+ /**
372
+ * Orientation of text when map is pitched.
373
+ *
374
+ * @requires textField
375
+ */
376
+ textPitchAlignment: Value<
377
+ Enum<TextPitchAlignmentEnum, TextPitchAlignmentEnumValues>,
378
+ ["zoom"]
379
+ >;
380
+
381
+ /**
382
+ * In combination with `symbolPlacement`, determines the rotation behavior of the individual glyphs forming the text.
383
+ *
384
+ * @requires textField
385
+ */
386
+ textRotationAlignment: Value<
387
+ Enum<TextRotationAlignmentEnum, TextRotationAlignmentEnumValues>,
388
+ ["zoom"]
389
+ >;
390
+
391
+ /**
392
+ * 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.
393
+ */
394
+ textField: Value<FormattedString, ["zoom", "feature"]>;
395
+
396
+ /**
397
+ * Font stack to use for displaying text.
398
+ *
399
+ * @requires textField
400
+ */
401
+ textFont: Value<string[], ["zoom", "feature"]>;
402
+
403
+ /**
404
+ * Font size.
405
+ *
406
+ * @requires textField
407
+ */
408
+ textSize: Value<number, ["zoom", "feature"]>;
409
+
410
+ /**
411
+ * The maximum line width for text wrapping.
412
+ *
413
+ * @requires textField
414
+ */
415
+ textMaxWidth: Value<number, ["zoom", "feature"]>;
416
+
417
+ /**
418
+ * Text leading value for multiLine text.
419
+ *
420
+ * @requires textField
421
+ */
422
+ textLineHeight: Value<number, ["zoom"]>;
423
+
424
+ /**
425
+ * Text tracking amount.
426
+ *
427
+ * @requires textField
428
+ */
429
+ textLetterSpacing: Value<number, ["zoom", "feature"]>;
430
+
431
+ /**
432
+ * Text justification options.
433
+ *
434
+ * @requires textField
435
+ */
436
+ textJustify: Value<
437
+ Enum<TextJustifyEnum, TextJustifyEnumValues>,
438
+ ["zoom", "feature"]
439
+ >;
440
+
441
+ /**
442
+ * 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.
443
+ *
444
+ * @requires textField
445
+ */
446
+ textRadialOffset: Value<number, ["zoom", "feature"]>;
447
+
448
+ /**
449
+ * 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`.
450
+ *
451
+ * @requires textField
452
+ */
453
+ textVariableAnchor: Value<
454
+ Enum<TextVariableAnchorEnum, TextVariableAnchorEnumValues>[],
455
+ ["zoom"]
456
+ >;
457
+
458
+ /**
459
+ * Part of the text placed closest to the anchor.
460
+ *
461
+ * @requires textField
462
+ *
463
+ * @disabledBy textVariableAnchor
464
+ */
465
+ textAnchor: Value<
466
+ Enum<TextAnchorEnum, TextAnchorEnumValues>,
467
+ ["zoom", "feature"]
468
+ >;
469
+
470
+ /**
471
+ * Maximum angle change between adjacent characters.
472
+ *
473
+ * @requires textField
474
+ */
475
+ textMaxAngle: Value<number, ["zoom"]>;
476
+
477
+ /**
478
+ * 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. The order of elements in an array define priority order for the placement of an orientation variant.
479
+ *
480
+ * @requires textField
481
+ */
482
+ textWritingMode: Value<
483
+ Enum<TextWritingModeEnum, TextWritingModeEnumValues>[],
484
+ ["zoom"]
485
+ >;
486
+
487
+ /**
488
+ * Rotates the text clockwise.
489
+ *
490
+ * @requires textField
491
+ */
492
+ textRotate: Value<number, ["zoom", "feature"]>;
493
+
494
+ /**
495
+ * Size of the additional area around the text bounding box used for detecting symbol collisions.
496
+ *
497
+ * @requires textField
498
+ */
499
+ textPadding: Value<number, ["zoom"]>;
500
+
501
+ /**
502
+ * If true, the text may be flipped vertically to prevent it from being rendered upsideDown.
503
+ *
504
+ * @requires textField
505
+ */
506
+ textKeepUpright: Value<boolean, ["zoom"]>;
507
+
508
+ /**
509
+ * Specifies how to capitalize text, similar to the CSS `textTransform` property.
510
+ *
511
+ * @requires textField
512
+ */
513
+ textTransform: Value<
514
+ Enum<TextTransformEnum, TextTransformEnumValues>,
515
+ ["zoom", "feature"]
516
+ >;
517
+
518
+ /**
519
+ * 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.
520
+ *
521
+ * @requires textField
522
+ *
523
+ * @disabledBy textRadialOffset
524
+ */
525
+ textOffset: Value<number[], ["zoom", "feature"]>;
526
+
527
+ /**
528
+ * If true, the text will be visible even if it collides with other previously drawn symbols.
529
+ *
530
+ * @requires textField
531
+ */
532
+ textAllowOverlap: Value<boolean, ["zoom"]>;
533
+
534
+ /**
535
+ * If true, other symbols can be visible even if they collide with the text.
536
+ *
537
+ * @requires textField
538
+ */
539
+ textIgnorePlacement: Value<boolean, ["zoom"]>;
540
+
541
+ /**
542
+ * If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.
543
+ *
544
+ * @requires textField, iconImage
545
+ */
546
+ textOptional: Value<boolean, ["zoom"]>;
547
+
548
+ /**
549
+ * Whether this layer is displayed.
550
+ */
551
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
552
+
553
+ /**
554
+ * The opacity at which the icon will be drawn.
555
+ *
556
+ * @requires iconImage
557
+ */
558
+ iconOpacity: Value<number, ["zoom", "feature", "feature-state"]>;
559
+
560
+ /**
561
+ * The transition affecting any changes to this layer’s iconOpacity property.
562
+ */
563
+ iconOpacityTransition: TransitionProps;
564
+
565
+ /**
566
+ * The color of the icon. This can only be used with sdf icons.
567
+ *
568
+ * @requires iconImage
569
+ */
570
+ iconColor: Value<string, ["zoom", "feature", "feature-state"]>;
571
+
572
+ /**
573
+ * The transition affecting any changes to this layer’s iconColor property.
574
+ */
575
+ iconColorTransition: TransitionProps;
576
+
577
+ /**
578
+ * The color of the icon's halo. Icon halos can only be used with SDF icons.
579
+ *
580
+ * @requires iconImage
581
+ */
582
+ iconHaloColor: Value<string, ["zoom", "feature", "feature-state"]>;
583
+
584
+ /**
585
+ * The transition affecting any changes to this layer’s iconHaloColor property.
586
+ */
587
+ iconHaloColorTransition: TransitionProps;
588
+
589
+ /**
590
+ * Distance of halo to the icon outline.
591
+ *
592
+ * @requires iconImage
593
+ */
594
+ iconHaloWidth: Value<number, ["zoom", "feature", "feature-state"]>;
595
+
596
+ /**
597
+ * The transition affecting any changes to this layer’s iconHaloWidth property.
598
+ */
599
+ iconHaloWidthTransition: TransitionProps;
600
+
601
+ /**
602
+ * Fade out the halo towards the outside.
603
+ *
604
+ * @requires iconImage
605
+ */
606
+ iconHaloBlur: Value<number, ["zoom", "feature", "feature-state"]>;
607
+
608
+ /**
609
+ * The transition affecting any changes to this layer’s iconHaloBlur property.
610
+ */
611
+ iconHaloBlurTransition: TransitionProps;
612
+
613
+ /**
614
+ * 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.
615
+ *
616
+ * @requires iconImage
617
+ */
618
+ iconTranslate: Value<Translation, ["zoom"]>;
619
+
620
+ /**
621
+ * The transition affecting any changes to this layer’s iconTranslate property.
622
+ */
623
+ iconTranslateTransition: TransitionProps;
624
+
625
+ /**
626
+ * Controls the frame of reference for `iconTranslate`.
627
+ *
628
+ * @requires iconImage, iconTranslate
629
+ */
630
+ iconTranslateAnchor: Value<Translation, ["zoom"]>;
631
+
632
+ /**
633
+ * The opacity at which the text will be drawn.
634
+ *
635
+ * @requires textField
636
+ */
637
+ textOpacity: Value<number, ["zoom", "feature", "feature-state"]>;
638
+
639
+ /**
640
+ * The transition affecting any changes to this layer’s textOpacity property.
641
+ */
642
+ textOpacityTransition: TransitionProps;
643
+
644
+ /**
645
+ * The color with which the text will be drawn.
646
+ *
647
+ * @requires textField
648
+ */
649
+ textColor: Value<string, ["zoom", "feature", "feature-state"]>;
650
+
651
+ /**
652
+ * The transition affecting any changes to this layer’s textColor property.
653
+ */
654
+ textColorTransition: TransitionProps;
655
+
656
+ /**
657
+ * The color of the text's halo, which helps it stand out from backgrounds.
658
+ *
659
+ * @requires textField
660
+ */
661
+ textHaloColor: Value<string, ["zoom", "feature", "feature-state"]>;
662
+
663
+ /**
664
+ * The transition affecting any changes to this layer’s textHaloColor property.
665
+ */
666
+ textHaloColorTransition: TransitionProps;
667
+
668
+ /**
669
+ * Distance of halo to the font outline. Max text halo width is 1/4 of the fontSize.
670
+ *
671
+ * @requires textField
672
+ */
673
+ textHaloWidth: Value<number, ["zoom", "feature", "feature-state"]>;
674
+
675
+ /**
676
+ * The transition affecting any changes to this layer’s textHaloWidth property.
677
+ */
678
+ textHaloWidthTransition: TransitionProps;
679
+
680
+ /**
681
+ * The halo's fadeout distance towards the outside.
682
+ *
683
+ * @requires textField
684
+ */
685
+ textHaloBlur: Value<number, ["zoom", "feature", "feature-state"]>;
686
+
687
+ /**
688
+ * The transition affecting any changes to this layer’s textHaloBlur property.
689
+ */
690
+ textHaloBlurTransition: TransitionProps;
691
+
692
+ /**
693
+ * 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.
694
+ *
695
+ * @requires textField
696
+ */
697
+ textTranslate: Value<Translation, ["zoom"]>;
698
+
699
+ /**
700
+ * The transition affecting any changes to this layer’s textTranslate property.
701
+ */
702
+ textTranslateTransition: TransitionProps;
703
+
704
+ /**
705
+ * Controls the frame of reference for `textTranslate`.
706
+ *
707
+ * @requires textField, textTranslate
708
+ */
709
+ textTranslateAnchor: Value<Translation, ["zoom"]>;
710
+ }
711
+
712
+ export interface circleLayerStyleProps {
713
+ /**
714
+ * Whether this layer is displayed.
715
+ */
716
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
717
+
718
+ /**
719
+ * Circle radius.
720
+ */
721
+ circleRadius: Value<number, ["zoom", "feature", "feature-state"]>;
722
+
723
+ /**
724
+ * The transition affecting any changes to this layer’s circleRadius property.
725
+ */
726
+ circleRadiusTransition: TransitionProps;
727
+
728
+ /**
729
+ * The fill color of the circle.
730
+ */
731
+ circleColor: Value<string, ["zoom", "feature", "feature-state"]>;
732
+
733
+ /**
734
+ * The transition affecting any changes to this layer’s circleColor property.
735
+ */
736
+ circleColorTransition: TransitionProps;
737
+
738
+ /**
739
+ * Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
740
+ */
741
+ circleBlur: Value<number, ["zoom", "feature", "feature-state"]>;
742
+
743
+ /**
744
+ * The transition affecting any changes to this layer’s circleBlur property.
745
+ */
746
+ circleBlurTransition: TransitionProps;
747
+
748
+ /**
749
+ * The opacity at which the circle will be drawn.
750
+ */
751
+ circleOpacity: Value<number, ["zoom", "feature", "feature-state"]>;
752
+
753
+ /**
754
+ * The transition affecting any changes to this layer’s circleOpacity property.
755
+ */
756
+ circleOpacityTransition: TransitionProps;
757
+
758
+ /**
759
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
760
+ */
761
+ circleTranslate: Value<Translation, ["zoom"]>;
762
+
763
+ /**
764
+ * The transition affecting any changes to this layer’s circleTranslate property.
765
+ */
766
+ circleTranslateTransition: TransitionProps;
767
+
768
+ /**
769
+ * Controls the frame of reference for `circleTranslate`.
770
+ *
771
+ * @requires circleTranslate
772
+ */
773
+ circleTranslateAnchor: Value<Translation, ["zoom"]>;
774
+
775
+ /**
776
+ * Controls the scaling behavior of the circle when the map is pitched.
777
+ */
778
+ circlePitchScale: Value<
779
+ Enum<CirclePitchScaleEnum, CirclePitchScaleEnumValues>,
780
+ ["zoom"]
781
+ >;
782
+
783
+ /**
784
+ * Orientation of circle when map is pitched.
785
+ */
786
+ circlePitchAlignment: Value<
787
+ Enum<CirclePitchAlignmentEnum, CirclePitchAlignmentEnumValues>,
788
+ ["zoom"]
789
+ >;
790
+
791
+ /**
792
+ * The width of the circle's stroke. Strokes are placed outside of the `circleRadius`.
793
+ */
794
+ circleStrokeWidth: Value<number, ["zoom", "feature", "feature-state"]>;
795
+
796
+ /**
797
+ * The transition affecting any changes to this layer’s circleStrokeWidth property.
798
+ */
799
+ circleStrokeWidthTransition: TransitionProps;
800
+
801
+ /**
802
+ * The stroke color of the circle.
803
+ */
804
+ circleStrokeColor: Value<string, ["zoom", "feature", "feature-state"]>;
805
+
806
+ /**
807
+ * The transition affecting any changes to this layer’s circleStrokeColor property.
808
+ */
809
+ circleStrokeColorTransition: TransitionProps;
810
+
811
+ /**
812
+ * The opacity of the circle's stroke.
813
+ */
814
+ circleStrokeOpacity: Value<number, ["zoom", "feature", "feature-state"]>;
815
+
816
+ /**
817
+ * The transition affecting any changes to this layer’s circleStrokeOpacity property.
818
+ */
819
+ circleStrokeOpacityTransition: TransitionProps;
820
+ }
821
+
822
+ export interface heatmapLayerStyleProps {
823
+ /**
824
+ * Whether this layer is displayed.
825
+ */
826
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
827
+
828
+ /**
829
+ * Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.
830
+ */
831
+ heatmapRadius: Value<number, ["zoom", "feature", "feature-state"]>;
832
+
833
+ /**
834
+ * The transition affecting any changes to this layer’s heatmapRadius property.
835
+ */
836
+ heatmapRadiusTransition: TransitionProps;
837
+
838
+ /**
839
+ * A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.
840
+ */
841
+ heatmapWeight: Value<number, ["zoom", "feature", "feature-state"]>;
842
+
843
+ /**
844
+ * Similar to `heatmapWeight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
845
+ */
846
+ heatmapIntensity: Value<number, ["zoom"]>;
847
+
848
+ /**
849
+ * The transition affecting any changes to this layer’s heatmapIntensity property.
850
+ */
851
+ heatmapIntensityTransition: TransitionProps;
852
+
853
+ /**
854
+ * Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmapDensity"]` as input.
855
+ */
856
+ heatmapColor: Value<string, ["heatmap-density"]>;
857
+
858
+ /**
859
+ * The global opacity at which the heatmap layer will be drawn.
860
+ */
861
+ heatmapOpacity: Value<number, ["zoom"]>;
862
+
863
+ /**
864
+ * The transition affecting any changes to this layer’s heatmapOpacity property.
865
+ */
866
+ heatmapOpacityTransition: TransitionProps;
867
+ }
868
+
869
+ export interface fillExtrusionLayerStyleProps {
870
+ /**
871
+ * Whether this layer is displayed.
872
+ */
873
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
874
+
875
+ /**
876
+ * The opacity of the entire fill extrusion layer. This is rendered on a perLayer, not perFeature, basis, and dataDriven styling is not available.
877
+ */
878
+ fillExtrusionOpacity: Value<number, ["zoom"]>;
879
+
880
+ /**
881
+ * The transition affecting any changes to this layer’s fillExtrusionOpacity property.
882
+ */
883
+ fillExtrusionOpacityTransition: TransitionProps;
884
+
885
+ /**
886
+ * The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fillExtrusionOpacity` to set layer opacity.
887
+ *
888
+ * @disabledBy fillExtrusionPattern
889
+ */
890
+ fillExtrusionColor: Value<string, ["zoom", "feature", "feature-state"]>;
891
+
892
+ /**
893
+ * The transition affecting any changes to this layer’s fillExtrusionColor property.
894
+ */
895
+ fillExtrusionColorTransition: TransitionProps;
896
+
897
+ /**
898
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.
899
+ */
900
+ fillExtrusionTranslate: Value<Translation, ["zoom"]>;
901
+
902
+ /**
903
+ * The transition affecting any changes to this layer’s fillExtrusionTranslate property.
904
+ */
905
+ fillExtrusionTranslateTransition: TransitionProps;
906
+
907
+ /**
908
+ * Controls the frame of reference for `fillExtrusionTranslate`.
909
+ *
910
+ * @requires fillExtrusionTranslate
911
+ */
912
+ fillExtrusionTranslateAnchor: Value<Translation, ["zoom"]>;
913
+
914
+ /**
915
+ * Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
916
+ */
917
+ fillExtrusionPattern: Value<ResolvedImageType, ["zoom", "feature"]>;
918
+
919
+ /**
920
+ * The transition affecting any changes to this layer’s fillExtrusionPattern property.
921
+ */
922
+ fillExtrusionPatternTransition: TransitionProps;
923
+
924
+ /**
925
+ * The height with which to extrude this layer.
926
+ */
927
+ fillExtrusionHeight: Value<number, ["zoom", "feature", "feature-state"]>;
928
+
929
+ /**
930
+ * The transition affecting any changes to this layer’s fillExtrusionHeight property.
931
+ */
932
+ fillExtrusionHeightTransition: TransitionProps;
933
+
934
+ /**
935
+ * The height with which to extrude the base of this layer. Must be less than or equal to `fillExtrusionHeight`.
936
+ *
937
+ * @requires fillExtrusionHeight
938
+ */
939
+ fillExtrusionBase: Value<number, ["zoom", "feature", "feature-state"]>;
940
+
941
+ /**
942
+ * The transition affecting any changes to this layer’s fillExtrusionBase property.
943
+ */
944
+ fillExtrusionBaseTransition: TransitionProps;
945
+ }
946
+
947
+ export interface rasterLayerStyleProps {
948
+ /**
949
+ * Whether this layer is displayed.
950
+ */
951
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
952
+
953
+ /**
954
+ * The opacity at which the image will be drawn.
955
+ */
956
+ rasterOpacity: Value<number, ["zoom"]>;
957
+
958
+ /**
959
+ * The transition affecting any changes to this layer’s rasterOpacity property.
960
+ */
961
+ rasterOpacityTransition: TransitionProps;
962
+
963
+ /**
964
+ * Rotates hues around the color wheel.
965
+ */
966
+ rasterHueRotate: Value<number, ["zoom"]>;
967
+
968
+ /**
969
+ * The transition affecting any changes to this layer’s rasterHueRotate property.
970
+ */
971
+ rasterHueRotateTransition: TransitionProps;
972
+
973
+ /**
974
+ * Increase or reduce the brightness of the image. The value is the minimum brightness.
975
+ */
976
+ rasterBrightnessMin: Value<number, ["zoom"]>;
977
+
978
+ /**
979
+ * The transition affecting any changes to this layer’s rasterBrightnessMin property.
980
+ */
981
+ rasterBrightnessMinTransition: TransitionProps;
982
+
983
+ /**
984
+ * Increase or reduce the brightness of the image. The value is the maximum brightness.
985
+ */
986
+ rasterBrightnessMax: Value<number, ["zoom"]>;
987
+
988
+ /**
989
+ * The transition affecting any changes to this layer’s rasterBrightnessMax property.
990
+ */
991
+ rasterBrightnessMaxTransition: TransitionProps;
992
+
993
+ /**
994
+ * Increase or reduce the saturation of the image.
995
+ */
996
+ rasterSaturation: Value<number, ["zoom"]>;
997
+
998
+ /**
999
+ * The transition affecting any changes to this layer’s rasterSaturation property.
1000
+ */
1001
+ rasterSaturationTransition: TransitionProps;
1002
+
1003
+ /**
1004
+ * Increase or reduce the contrast of the image.
1005
+ */
1006
+ rasterContrast: Value<number, ["zoom"]>;
1007
+
1008
+ /**
1009
+ * The transition affecting any changes to this layer’s rasterContrast property.
1010
+ */
1011
+ rasterContrastTransition: TransitionProps;
1012
+
1013
+ /**
1014
+ * The resampling/interpolation method to use for overscaling, also known as texture magnification filter
1015
+ */
1016
+ rasterResampling: Value<
1017
+ Enum<RasterResamplingEnum, RasterResamplingEnumValues>,
1018
+ ["zoom"]
1019
+ >;
1020
+
1021
+ /**
1022
+ * Fade duration when a new tile is added.
1023
+ */
1024
+ rasterFadeDuration: Value<number, ["zoom"]>;
1025
+ }
1026
+
1027
+ export interface hillshadeLayerStyleProps {
1028
+ /**
1029
+ * Whether this layer is displayed.
1030
+ */
1031
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
1032
+
1033
+ /**
1034
+ * The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshadeIlluminationAnchor` is set to `viewport` and due north if `hillshadeIlluminationAnchor` is set to `map`.
1035
+ */
1036
+ hillshadeIlluminationDirection: Value<number, ["zoom"]>;
1037
+
1038
+ /**
1039
+ * Direction of light source when map is rotated.
1040
+ */
1041
+ hillshadeIlluminationAnchor: Value<
1042
+ Enum<
1043
+ HillshadeIlluminationAnchorEnum,
1044
+ HillshadeIlluminationAnchorEnumValues
1045
+ >,
1046
+ ["zoom"]
1047
+ >;
1048
+
1049
+ /**
1050
+ * Intensity of the hillshade
1051
+ */
1052
+ hillshadeExaggeration: Value<number, ["zoom"]>;
1053
+
1054
+ /**
1055
+ * The transition affecting any changes to this layer’s hillshadeExaggeration property.
1056
+ */
1057
+ hillshadeExaggerationTransition: TransitionProps;
1058
+
1059
+ /**
1060
+ * The shading color of areas that face away from the light source.
1061
+ */
1062
+ hillshadeShadowColor: Value<string, ["zoom"]>;
1063
+
1064
+ /**
1065
+ * The transition affecting any changes to this layer’s hillshadeShadowColor property.
1066
+ */
1067
+ hillshadeShadowColorTransition: TransitionProps;
1068
+
1069
+ /**
1070
+ * The shading color of areas that faces towards the light source.
1071
+ */
1072
+ hillshadeHighlightColor: Value<string, ["zoom"]>;
1073
+
1074
+ /**
1075
+ * The transition affecting any changes to this layer’s hillshadeHighlightColor property.
1076
+ */
1077
+ hillshadeHighlightColorTransition: TransitionProps;
1078
+
1079
+ /**
1080
+ * The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
1081
+ */
1082
+ hillshadeAccentColor: Value<string, ["zoom"]>;
1083
+
1084
+ /**
1085
+ * The transition affecting any changes to this layer’s hillshadeAccentColor property.
1086
+ */
1087
+ hillshadeAccentColorTransition: TransitionProps;
1088
+ }
1089
+
1090
+ export interface backgroundLayerStyleProps {
1091
+ /**
1092
+ * Whether this layer is displayed.
1093
+ */
1094
+ visibility: Enum<VisibilityEnum, VisibilityEnumValues>;
1095
+
1096
+ /**
1097
+ * The color with which the background will be drawn.
1098
+ *
1099
+ * @disabledBy backgroundPattern
1100
+ */
1101
+ backgroundColor: Value<string, ["zoom"]>;
1102
+
1103
+ /**
1104
+ * The transition affecting any changes to this layer’s backgroundColor property.
1105
+ */
1106
+ backgroundColorTransition: TransitionProps;
1107
+
1108
+ /**
1109
+ * Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
1110
+ */
1111
+ backgroundPattern: Value<ResolvedImageType, ["zoom"]>;
1112
+
1113
+ /**
1114
+ * The transition affecting any changes to this layer’s backgroundPattern property.
1115
+ */
1116
+ backgroundPatternTransition: TransitionProps;
1117
+
1118
+ /**
1119
+ * The opacity at which the background will be drawn.
1120
+ */
1121
+ backgroundOpacity: Value<number, ["zoom"]>;
1122
+
1123
+ /**
1124
+ * The transition affecting any changes to this layer’s backgroundOpacity property.
1125
+ */
1126
+ backgroundOpacityTransition: TransitionProps;
1127
+ }
1128
+
1129
+ export interface lightLayerStyleProps {
1130
+ /**
1131
+ * Whether extruded geometries are lit relative to the map or viewport.
1132
+ */
1133
+ anchor: Value<Enum<AnchorEnum, AnchorEnumValues>, ["zoom"]>;
1134
+
1135
+ /**
1136
+ * Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).
1137
+ */
1138
+ position: Value<number[], ["zoom"]>;
1139
+
1140
+ /**
1141
+ * The transition affecting any changes to this layer’s position property.
1142
+ */
1143
+ positionTransition: TransitionProps;
1144
+
1145
+ /**
1146
+ * Color tint for lighting extruded geometries.
1147
+ */
1148
+ color: Value<string, ["zoom"]>;
1149
+
1150
+ /**
1151
+ * The transition affecting any changes to this layer’s color property.
1152
+ */
1153
+ colorTransition: TransitionProps;
1154
+
1155
+ /**
1156
+ * Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
1157
+ */
1158
+ intensity: Value<number, ["zoom"]>;
1159
+
1160
+ /**
1161
+ * The transition affecting any changes to this layer’s intensity property.
1162
+ */
1163
+ intensityTransition: TransitionProps;
1164
+ }