@rnmapbox/maps 10.1.0 → 10.1.2

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 (661) hide show
  1. package/CHANGELOG.md +9 -5
  2. package/README.md +5 -31
  3. package/android/build.gradle +6 -2
  4. package/android/install.md +5 -21
  5. package/android/src/main/AndroidManifest.xml +1 -1
  6. package/android/src/main/java/com/rnmapbox/rnmbx/RNMBXPackage.kt +76 -12
  7. package/android/src/main/java/com/rnmapbox/rnmbx/components/AbstractEvent.kt +24 -0
  8. package/android/src/main/java/com/rnmapbox/rnmbx/components/AbstractEventEmitter.kt +5 -0
  9. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerView.kt +17 -6
  10. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContent.kt +31 -0
  11. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContentManager.kt +23 -0
  12. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewManager.kt +8 -9
  13. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXPointAnnotation.kt +33 -35
  14. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXPointAnnotationManager.kt +8 -7
  15. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +4 -4
  16. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXVIewportManager.kt +55 -0
  17. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt +408 -0
  18. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewportModule.kt +66 -0
  19. package/android/src/main/java/com/rnmapbox/rnmbx/components/images/ImageManager.kt +53 -0
  20. package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImages.kt +2 -1
  21. package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt +31 -6
  22. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/LocationComponentManager.kt +78 -47
  23. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProvider.kt +114 -0
  24. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt +54 -0
  25. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocation.kt +246 -25
  26. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocationManager.kt +90 -7
  27. package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/NativeMapViewModule.kt +1 -8
  28. package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapView.kt +185 -114
  29. package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt +16 -8
  30. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyle.kt +1 -1
  31. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +1184 -109
  32. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXCircleLayerManager.kt +8 -0
  33. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillLayerManager.kt +12 -5
  34. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHeatmapLayerManager.kt +7 -0
  35. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLayer.kt +25 -6
  36. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLineLayerManager.kt +7 -0
  37. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayer.kt +33 -0
  38. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt +85 -0
  39. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayer.kt +4 -0
  40. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayerManager.kt +8 -2
  41. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSymbolLayerManager.kt +8 -0
  42. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/codeparts/LayerManagerCommonProps.codepart-kt.ejs +59 -0
  43. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModels.kt +33 -0
  44. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModelsManager.kt +59 -0
  45. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSource.kt +56 -6
  46. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt +7 -5
  47. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSource.kt +1 -1
  48. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSourceManager.kt +5 -4
  49. package/android/src/main/java/com/rnmapbox/rnmbx/events/AndroidCallbackEvent.java +1 -1
  50. package/android/src/main/java/com/rnmapbox/rnmbx/events/FeatureClickEvent.java +3 -3
  51. package/android/src/main/java/com/rnmapbox/rnmbx/events/IEvent.kt +1 -4
  52. package/android/src/main/java/com/rnmapbox/rnmbx/events/ImageMissingEvent.java +1 -1
  53. package/android/src/main/java/com/rnmapbox/rnmbx/events/LocationEvent.kt +1 -1
  54. package/android/src/main/java/com/rnmapbox/rnmbx/events/MapChangeEvent.kt +1 -1
  55. package/android/src/main/java/com/rnmapbox/rnmbx/events/MapClickEvent.java +2 -2
  56. package/android/src/main/java/com/rnmapbox/rnmbx/events/MapUserTrackingModeEvent.kt +4 -4
  57. package/android/src/main/java/com/rnmapbox/rnmbx/events/PointAnnotationClickEvent.java +1 -1
  58. package/android/src/main/java/com/rnmapbox/rnmbx/events/PointAnnotationDragEvent.java +3 -3
  59. package/android/src/main/java/com/rnmapbox/rnmbx/events/constants/EventKeys.kt +44 -0
  60. package/android/src/main/java/com/rnmapbox/rnmbx/modules/RNMBXModule.kt +18 -1
  61. package/android/src/main/java/com/rnmapbox/rnmbx/modules/RNMBXOfflineModule.kt +4 -1
  62. package/android/src/main/java/com/rnmapbox/rnmbx/modules/RNMBXOfflineModuleLegacy.kt +444 -0
  63. package/android/src/main/java/com/rnmapbox/rnmbx/shape_animators/RNMBXMovePointShapeAnimatorModule.kt +55 -0
  64. package/android/src/main/java/com/rnmapbox/rnmbx/shape_animators/ShapeAnimatorCommon.kt +110 -0
  65. package/android/src/main/java/com/rnmapbox/rnmbx/utils/BitmapUtils.kt +3 -0
  66. package/android/src/main/java/com/rnmapbox/rnmbx/utils/DownloadMapImageTask.kt +5 -2
  67. package/android/src/main/java/com/rnmapbox/rnmbx/utils/GeoJSONUtils.kt +5 -0
  68. package/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/ReadableArray.kt +21 -1
  69. package/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/ReadableMap.kt +111 -0
  70. package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Annotation.kt +33 -1
  71. package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Cancelable.kt +15 -0
  72. package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Image.kt +17 -1
  73. package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Layer.kt +7 -0
  74. package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Location.kt +6 -9
  75. package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/MapboxMap.kt +11 -0
  76. package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/OfflineManager.kt +6 -0
  77. package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +395 -0
  78. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Annotation.kt +29 -1
  79. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Cancelable.kt +3 -0
  80. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Image.kt +21 -1
  81. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Layer.kt +3 -0
  82. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Location.kt +2 -2
  83. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/MapboxMap.kt +5 -0
  84. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/OfflineManager.kt +4 -0
  85. package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +8 -0
  86. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCircleLayerManagerDelegate.java +9 -6
  87. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCircleLayerManagerInterface.java +3 -2
  88. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCustomLocationProviderManagerDelegate.java +35 -0
  89. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCustomLocationProviderManagerInterface.java +18 -0
  90. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXFillLayerManagerDelegate.java +9 -6
  91. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXFillLayerManagerInterface.java +3 -2
  92. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXHeatmapLayerManagerDelegate.java +9 -6
  93. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXHeatmapLayerManagerInterface.java +3 -2
  94. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXLineLayerManagerDelegate.java +9 -6
  95. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXLineLayerManagerInterface.java +3 -2
  96. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMapViewManagerDelegate.java +3 -0
  97. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMapViewManagerInterface.java +1 -0
  98. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMarkerViewContentManagerDelegate.java +25 -0
  99. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMarkerViewContentManagerInterface.java +16 -0
  100. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMarkerViewManagerDelegate.java +3 -0
  101. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMarkerViewManagerInterface.java +1 -0
  102. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelLayerManagerDelegate.java +65 -0
  103. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelLayerManagerInterface.java +28 -0
  104. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelsManagerDelegate.java +32 -0
  105. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelsManagerInterface.java +17 -0
  106. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXNativeUserLocationManagerDelegate.java +23 -2
  107. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXNativeUserLocationManagerInterface.java +8 -1
  108. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterLayerManagerDelegate.java +9 -6
  109. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterLayerManagerInterface.java +3 -2
  110. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXSymbolLayerManagerDelegate.java +9 -6
  111. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXSymbolLayerManagerInterface.java +3 -2
  112. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXViewportManagerDelegate.java +35 -0
  113. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXViewportManagerInterface.java +18 -0
  114. package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXMovePointShapeAnimatorModuleSpec.java +44 -0
  115. package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXViewportModuleSpec.java +49 -0
  116. package/ios/RNMBX/CommonLayerProperties.H +2 -0
  117. package/ios/RNMBX/CustomHttpHeaders.swift +2 -9
  118. package/ios/RNMBX/ImageManager.swift +41 -0
  119. package/ios/RNMBX/RNMBXCamera.swift +4 -4
  120. package/ios/RNMBX/RNMBXCustomLocationProvider.swift +274 -0
  121. package/ios/RNMBX/RNMBXCustomLocationProviderComponentView.h +15 -0
  122. package/ios/RNMBX/RNMBXCustomLocationProviderComponentView.mm +67 -0
  123. package/ios/RNMBX/RNMBXCustomLocationProviderVIewManager.swift +13 -0
  124. package/ios/RNMBX/RNMBXCustomLocationProviderViewManager.m +10 -0
  125. package/ios/RNMBX/RNMBXEvent.swift +2 -0
  126. package/ios/RNMBX/RNMBXFabricPropConvert.h +47 -0
  127. package/ios/RNMBX/RNMBXFabricPropConvert.mm +136 -0
  128. package/ios/RNMBX/RNMBXImageModule.mm +2 -2
  129. package/ios/RNMBX/RNMBXImages.swift +22 -6
  130. package/ios/RNMBX/RNMBXImagesComponentView.mm +19 -1
  131. package/ios/RNMBX/RNMBXInteractiveElement.swift +1 -1
  132. package/ios/RNMBX/RNMBXLayer.swift +27 -0
  133. package/ios/RNMBX/RNMBXLocationModule.swift +25 -14
  134. package/ios/RNMBX/RNMBXLocationModuleV11.swift +81 -14
  135. package/ios/RNMBX/RNMBXLogging.swift +8 -0
  136. package/ios/RNMBX/RNMBXMapView.swift +521 -210
  137. package/ios/RNMBX/RNMBXMapViewComponentView.mm +28 -20
  138. package/ios/RNMBX/RNMBXMapViewManager.m +1 -0
  139. package/ios/RNMBX/RNMBXMapViewManager.swift +0 -1
  140. package/ios/RNMBX/RNMBXMapViewModule.mm +0 -1
  141. package/ios/RNMBX/RNMBXMarkerView.swift +11 -3
  142. package/ios/RNMBX/RNMBXMarkerViewComponentView.mm +5 -0
  143. package/ios/RNMBX/RNMBXMarkerViewContentComponentView.h +15 -0
  144. package/ios/RNMBX/RNMBXMarkerViewContentComponentView.mm +55 -0
  145. package/ios/RNMBX/RNMBXMarkerViewContentManager.m +6 -0
  146. package/ios/RNMBX/RNMBXMarkerViewContentManager.swift +14 -0
  147. package/ios/RNMBX/RNMBXMarkerViewManager.m +1 -0
  148. package/ios/RNMBX/RNMBXModelLayer.swift +59 -0
  149. package/ios/RNMBX/RNMBXModelLayerComponentView.h +15 -0
  150. package/ios/RNMBX/RNMBXModelLayerComponentView.mm +70 -0
  151. package/ios/RNMBX/RNMBXModelLayerViewManager.m +12 -0
  152. package/ios/RNMBX/RNMBXModelLayerViewManager.swift +13 -0
  153. package/ios/RNMBX/RNMBXModels.swift +63 -0
  154. package/ios/RNMBX/RNMBXModelsComponentView.h +17 -0
  155. package/ios/RNMBX/RNMBXModelsComponentView.mm +67 -0
  156. package/ios/RNMBX/RNMBXModelsManager.mm +9 -0
  157. package/ios/RNMBX/RNMBXModelsManager.swift +13 -0
  158. package/ios/RNMBX/RNMBXModule.m +1 -1
  159. package/ios/RNMBX/RNMBXModule.swift +24 -0
  160. package/ios/RNMBX/RNMBXNativeUserLocation.swift +248 -19
  161. package/ios/RNMBX/RNMBXNativeUserLocationComponentView.mm +15 -6
  162. package/ios/RNMBX/RNMBXNativeUserLocationViewManager.m +8 -0
  163. package/ios/RNMBX/RNMBXOfflineModule.m +1 -1
  164. package/ios/RNMBX/RNMBXOfflineModuleLegacy.m +33 -0
  165. package/ios/RNMBX/RNMBXOfflineModuleLegacy.swift +431 -0
  166. package/ios/RNMBX/RNMBXPointAnnotation.swift +34 -1
  167. package/ios/RNMBX/RNMBXPointAnnotationModule.mm +2 -2
  168. package/ios/RNMBX/RNMBXShapeSource.swift +54 -15
  169. package/ios/RNMBX/RNMBXStyle.swift +786 -1
  170. package/ios/RNMBX/RNMBXStyleValue.swift +56 -4
  171. package/ios/RNMBX/RNMBXUtils.swift +2 -7
  172. package/ios/RNMBX/RNMBXViewport.swift +349 -0
  173. package/ios/RNMBX/RNMBXViewportComponentView.h +17 -0
  174. package/ios/RNMBX/RNMBXViewportComponentView.mm +119 -0
  175. package/ios/RNMBX/RNMBXViewportManager.m +12 -0
  176. package/ios/RNMBX/RNMBXViewportManager.swift +38 -0
  177. package/ios/RNMBX/RNMBXViewportModule.h +18 -0
  178. package/ios/RNMBX/RNMBXViewportModule.mm +87 -0
  179. package/ios/RNMBX/ShapeAnimators/RNMBXMovePointShapeAnimatorModule.m +61 -0
  180. package/ios/RNMBX/ShapeAnimators/RNMBXMovePointShapeAnimatorModule.swift +47 -0
  181. package/ios/RNMBX/ShapeAnimators/ShapeAnimatorCommon.swift +76 -0
  182. package/ios/RNMBX/ShapeAnimators/ShapeAnimatorManager.swift +45 -0
  183. package/ios/RNMBX/Uitls/PropertyChanges.swift +57 -0
  184. package/ios/RNMBX/rnmapbox_maps-Swift.pre.h +3 -0
  185. package/ios/install.md +5 -26
  186. package/lib/commonjs/Mapbox.js +63 -0
  187. package/lib/commonjs/Mapbox.js.map +1 -1
  188. package/lib/commonjs/RNMBXModule.js +3 -1
  189. package/lib/commonjs/RNMBXModule.js.map +1 -1
  190. package/lib/commonjs/classes/AnimatedCoordinatesArray.js.map +1 -1
  191. package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js.map +1 -1
  192. package/lib/commonjs/classes/AnimatedPoint.js.map +1 -1
  193. package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js.map +1 -1
  194. package/lib/commonjs/classes/AnimatedShape.js.map +1 -1
  195. package/lib/commonjs/classes/index.d.js.map +1 -1
  196. package/lib/commonjs/classes/index.js.map +1 -1
  197. package/lib/commonjs/components/AbstractLayer.js +1 -1
  198. package/lib/commonjs/components/AbstractLayer.js.map +1 -1
  199. package/lib/commonjs/components/AbstractSource.js.map +1 -1
  200. package/lib/commonjs/components/Annotation.js.map +1 -1
  201. package/lib/commonjs/components/Atmosphere.js.map +1 -1
  202. package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
  203. package/lib/commonjs/components/Callout.js.map +1 -1
  204. package/lib/commonjs/components/Camera.js.map +1 -1
  205. package/lib/commonjs/components/CircleLayer.js +7 -2
  206. package/lib/commonjs/components/CircleLayer.js.map +1 -1
  207. package/lib/commonjs/components/{NativeUserLocation.js → CustomLocationProvider.js} +5 -5
  208. package/lib/commonjs/components/CustomLocationProvider.js.map +1 -0
  209. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
  210. package/lib/commonjs/components/FillLayer.js +7 -2
  211. package/lib/commonjs/components/FillLayer.js.map +1 -1
  212. package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
  213. package/lib/commonjs/components/HeatmapLayer.js +7 -2
  214. package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
  215. package/lib/commonjs/components/Image.js.map +1 -1
  216. package/lib/commonjs/components/ImageSource.js.map +1 -1
  217. package/lib/commonjs/components/Images.js.map +1 -1
  218. package/lib/commonjs/components/Light.js.map +1 -1
  219. package/lib/commonjs/components/LineLayer.js +7 -2
  220. package/lib/commonjs/components/LineLayer.js.map +1 -1
  221. package/lib/commonjs/components/LocationPuck.js +66 -0
  222. package/lib/commonjs/components/LocationPuck.js.map +1 -0
  223. package/lib/commonjs/components/MapView.js +0 -8
  224. package/lib/commonjs/components/MapView.js.map +1 -1
  225. package/lib/commonjs/components/MarkerView.js +5 -3
  226. package/lib/commonjs/components/MarkerView.js.map +1 -1
  227. package/lib/commonjs/components/ModelLayer.js +37 -0
  228. package/lib/commonjs/components/ModelLayer.js.map +1 -0
  229. package/lib/commonjs/components/Models.js +43 -0
  230. package/lib/commonjs/components/Models.js.map +1 -0
  231. package/lib/commonjs/components/NativeBridgeComponent.js.map +1 -1
  232. package/lib/commonjs/components/PointAnnotation.js.map +1 -1
  233. package/lib/commonjs/components/RasterDemSource.js.map +1 -1
  234. package/lib/commonjs/components/RasterLayer.js +7 -2
  235. package/lib/commonjs/components/RasterLayer.js.map +1 -1
  236. package/lib/commonjs/components/RasterSource.js.map +1 -1
  237. package/lib/commonjs/components/ShapeSource.js.map +1 -1
  238. package/lib/commonjs/components/SkyLayer.js +2 -2
  239. package/lib/commonjs/components/SkyLayer.js.map +1 -1
  240. package/lib/commonjs/components/Style.js.map +1 -1
  241. package/lib/commonjs/components/StyleImport.js.map +1 -1
  242. package/lib/commonjs/components/SymbolLayer.js +7 -2
  243. package/lib/commonjs/components/SymbolLayer.js.map +1 -1
  244. package/lib/commonjs/components/Terrain.js.map +1 -1
  245. package/lib/commonjs/components/UserLocation.js +2 -2
  246. package/lib/commonjs/components/UserLocation.js.map +1 -1
  247. package/lib/commonjs/components/VectorSource.js.map +1 -1
  248. package/lib/commonjs/components/Viewport.js +105 -0
  249. package/lib/commonjs/components/Viewport.js.map +1 -0
  250. package/lib/commonjs/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
  251. package/lib/commonjs/global.d.js.map +1 -1
  252. package/lib/commonjs/index.js.map +1 -1
  253. package/lib/commonjs/index.web.js.map +1 -1
  254. package/lib/commonjs/modules/location/locationManager.js.map +1 -1
  255. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
  256. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
  257. package/lib/commonjs/modules/offline/OfflinePackLegacy.js +40 -0
  258. package/lib/commonjs/modules/offline/OfflinePackLegacy.js.map +1 -0
  259. package/lib/commonjs/modules/offline/offlineManager.js +4 -4
  260. package/lib/commonjs/modules/offline/offlineManager.js.map +1 -1
  261. package/lib/commonjs/modules/offline/offlineManagerLegacy.js +166 -0
  262. package/lib/commonjs/modules/offline/offlineManagerLegacy.js.map +1 -0
  263. package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
  264. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -1
  265. package/lib/commonjs/requestAndroidLocationPermissions.js.map +1 -1
  266. package/lib/commonjs/shape_animators/MovePointShapeAnimator.js +21 -0
  267. package/lib/commonjs/shape_animators/MovePointShapeAnimator.js.map +1 -0
  268. package/lib/commonjs/shape_animators/ShapeAnimatorManager.js +15 -0
  269. package/lib/commonjs/shape_animators/ShapeAnimatorManager.js.map +1 -0
  270. package/lib/commonjs/specs/NativeMapViewModule.js.map +1 -1
  271. package/lib/commonjs/specs/NativeRNMBXImageModule.js.map +1 -1
  272. package/lib/commonjs/specs/NativeRNMBXMovePointShapeAnimatorModule.js +10 -0
  273. package/lib/commonjs/specs/NativeRNMBXMovePointShapeAnimatorModule.js.map +1 -0
  274. package/lib/commonjs/specs/NativeRNMBXPointAnnotationModule.js.map +1 -1
  275. package/lib/commonjs/specs/NativeRNMBXShapeSourceModule.js.map +1 -1
  276. package/lib/commonjs/specs/NativeRNMBXViewportModule.js +10 -0
  277. package/lib/commonjs/specs/NativeRNMBXViewportModule.js.map +1 -0
  278. package/lib/commonjs/specs/RNMBXAtmosphereNativeComponent.js.map +1 -1
  279. package/lib/commonjs/specs/RNMBXBackgroundLayerNativeComponent.js.map +1 -1
  280. package/lib/commonjs/specs/RNMBXCalloutNativeComponent.js.map +1 -1
  281. package/lib/commonjs/specs/RNMBXCameraNativeComponent.js.map +1 -1
  282. package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js +2 -0
  283. package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
  284. package/lib/commonjs/specs/RNMBXCustomLocationProviderNativeComponent.js +11 -0
  285. package/lib/commonjs/specs/RNMBXCustomLocationProviderNativeComponent.js.map +1 -0
  286. package/lib/commonjs/specs/RNMBXFillExtrusionLayerNativeComponent.js.map +1 -1
  287. package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js +2 -0
  288. package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
  289. package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js +2 -0
  290. package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
  291. package/lib/commonjs/specs/RNMBXImageNativeComponent.js.map +1 -1
  292. package/lib/commonjs/specs/RNMBXImageSourceNativeComponent.js.map +1 -1
  293. package/lib/commonjs/specs/RNMBXImagesNativeComponent.js.map +1 -1
  294. package/lib/commonjs/specs/RNMBXLightNativeComponent.js.map +1 -1
  295. package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js +2 -0
  296. package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
  297. package/lib/commonjs/specs/RNMBXMapViewNativeComponent.js.map +1 -1
  298. package/lib/commonjs/specs/RNMBXMarkerViewContentNativeComponent.js +11 -0
  299. package/lib/commonjs/specs/RNMBXMarkerViewContentNativeComponent.js.map +1 -0
  300. package/lib/commonjs/specs/RNMBXMarkerViewNativeComponent.js.map +1 -1
  301. package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.js +13 -0
  302. package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.js.map +1 -0
  303. package/lib/commonjs/specs/RNMBXModelsNativeComponent.js +10 -0
  304. package/lib/commonjs/specs/RNMBXModelsNativeComponent.js.map +1 -0
  305. package/lib/commonjs/specs/RNMBXNativeUserLocationNativeComponent.js +1 -0
  306. package/lib/commonjs/specs/RNMBXNativeUserLocationNativeComponent.js.map +1 -1
  307. package/lib/commonjs/specs/RNMBXPointAnnotationNativeComponent.js.map +1 -1
  308. package/lib/commonjs/specs/RNMBXRasterDemSourceNativeComponent.js.map +1 -1
  309. package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js +2 -0
  310. package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
  311. package/lib/commonjs/specs/RNMBXRasterSourceNativeComponent.js.map +1 -1
  312. package/lib/commonjs/specs/RNMBXShapeSourceNativeComponent.js.map +1 -1
  313. package/lib/commonjs/specs/RNMBXSkyLayerNativeComponent.js.map +1 -1
  314. package/lib/commonjs/specs/RNMBXStyleImportNativeComponent.js.map +1 -1
  315. package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js +2 -0
  316. package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
  317. package/lib/commonjs/specs/RNMBXTerrainNativeComponent.js.map +1 -1
  318. package/lib/commonjs/specs/RNMBXVectorSourceNativeComponent.js.map +1 -1
  319. package/lib/commonjs/specs/RNMBXViewportNativeComponent.js +36 -0
  320. package/lib/commonjs/specs/RNMBXViewportNativeComponent.js.map +1 -0
  321. package/lib/commonjs/specs/codegenUtils.js.map +1 -1
  322. package/lib/commonjs/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +18 -0
  323. package/lib/commonjs/types/BaseProps.js.map +1 -1
  324. package/lib/commonjs/types/OnPressEvent.js.map +1 -1
  325. package/lib/commonjs/types/Position.js.map +1 -1
  326. package/lib/commonjs/types/index.js.map +1 -1
  327. package/lib/commonjs/utils/BridgeValue.js.map +1 -1
  328. package/lib/commonjs/utils/Logger.js.map +1 -1
  329. package/lib/commonjs/utils/MapboxStyles.d.js +5 -0
  330. package/lib/commonjs/utils/MapboxStyles.d.js.map +1 -1
  331. package/lib/commonjs/utils/StyleValue.js.map +1 -1
  332. package/lib/commonjs/utils/animated/Animated.js.map +1 -1
  333. package/lib/commonjs/utils/checkRequiredProps.js.map +1 -1
  334. package/lib/commonjs/utils/deprecation.js.map +1 -1
  335. package/lib/commonjs/utils/filterUtils.js.map +1 -1
  336. package/lib/commonjs/utils/geoUtils.js.map +1 -1
  337. package/lib/commonjs/utils/getAnnotationsLayerID.js.map +1 -1
  338. package/lib/commonjs/utils/index.js.map +1 -1
  339. package/lib/commonjs/utils/nativeRef.js.map +1 -1
  340. package/lib/commonjs/utils/styleMap.js +67 -2
  341. package/lib/commonjs/utils/styleMap.js.map +1 -1
  342. package/lib/commonjs/web/MapContext.js.map +1 -1
  343. package/lib/commonjs/web/MapboxModule.js.map +1 -1
  344. package/lib/commonjs/web/UnimplementedComponent.js.map +1 -1
  345. package/lib/commonjs/web/components/Camera.js.map +1 -1
  346. package/lib/commonjs/web/components/MapView.js.map +1 -1
  347. package/lib/commonjs/web/index.js.map +1 -1
  348. package/lib/commonjs/web/utils/Logger.js.map +1 -1
  349. package/lib/module/Mapbox.js +18 -0
  350. package/lib/module/Mapbox.js.map +1 -1
  351. package/lib/module/RNMBXModule.js +1 -0
  352. package/lib/module/RNMBXModule.js.map +1 -1
  353. package/lib/module/classes/AnimatedCoordinatesArray.js.map +1 -1
  354. package/lib/module/classes/AnimatedExtractCoordinateFromArray.js.map +1 -1
  355. package/lib/module/classes/AnimatedPoint.js.map +1 -1
  356. package/lib/module/classes/AnimatedRouteCoordinatesArray.js.map +1 -1
  357. package/lib/module/classes/AnimatedShape.js.map +1 -1
  358. package/lib/module/classes/index.d.js.map +1 -1
  359. package/lib/module/classes/index.js.map +1 -1
  360. package/lib/module/components/AbstractLayer.js +1 -1
  361. package/lib/module/components/AbstractLayer.js.map +1 -1
  362. package/lib/module/components/AbstractSource.js.map +1 -1
  363. package/lib/module/components/Annotation.js.map +1 -1
  364. package/lib/module/components/Atmosphere.js.map +1 -1
  365. package/lib/module/components/BackgroundLayer.js.map +1 -1
  366. package/lib/module/components/Callout.js.map +1 -1
  367. package/lib/module/components/Camera.js.map +1 -1
  368. package/lib/module/components/CircleLayer.js +7 -2
  369. package/lib/module/components/CircleLayer.js.map +1 -1
  370. package/lib/module/components/CustomLocationProvider.js +7 -0
  371. package/lib/module/components/CustomLocationProvider.js.map +1 -0
  372. package/lib/module/components/FillExtrusionLayer.js.map +1 -1
  373. package/lib/module/components/FillLayer.js +7 -2
  374. package/lib/module/components/FillLayer.js.map +1 -1
  375. package/lib/module/components/HeadingIndicator.js.map +1 -1
  376. package/lib/module/components/HeatmapLayer.js +7 -2
  377. package/lib/module/components/HeatmapLayer.js.map +1 -1
  378. package/lib/module/components/Image.js.map +1 -1
  379. package/lib/module/components/ImageSource.js.map +1 -1
  380. package/lib/module/components/Images.js.map +1 -1
  381. package/lib/module/components/Light.js.map +1 -1
  382. package/lib/module/components/LineLayer.js +7 -2
  383. package/lib/module/components/LineLayer.js.map +1 -1
  384. package/lib/module/components/LocationPuck.js +57 -0
  385. package/lib/module/components/LocationPuck.js.map +1 -0
  386. package/lib/module/components/MapView.js +0 -8
  387. package/lib/module/components/MapView.js.map +1 -1
  388. package/lib/module/components/MarkerView.js +5 -3
  389. package/lib/module/components/MarkerView.js.map +1 -1
  390. package/lib/module/components/ModelLayer.js +30 -0
  391. package/lib/module/components/ModelLayer.js.map +1 -0
  392. package/lib/module/components/Models.js +36 -0
  393. package/lib/module/components/Models.js.map +1 -0
  394. package/lib/module/components/NativeBridgeComponent.js.map +1 -1
  395. package/lib/module/components/PointAnnotation.js.map +1 -1
  396. package/lib/module/components/RasterDemSource.js.map +1 -1
  397. package/lib/module/components/RasterLayer.js +7 -2
  398. package/lib/module/components/RasterLayer.js.map +1 -1
  399. package/lib/module/components/RasterSource.js.map +1 -1
  400. package/lib/module/components/ShapeSource.js.map +1 -1
  401. package/lib/module/components/SkyLayer.js +2 -2
  402. package/lib/module/components/SkyLayer.js.map +1 -1
  403. package/lib/module/components/Style.js.map +1 -1
  404. package/lib/module/components/StyleImport.js.map +1 -1
  405. package/lib/module/components/SymbolLayer.js +7 -2
  406. package/lib/module/components/SymbolLayer.js.map +1 -1
  407. package/lib/module/components/Terrain.js.map +1 -1
  408. package/lib/module/components/UserLocation.js +1 -1
  409. package/lib/module/components/UserLocation.js.map +1 -1
  410. package/lib/module/components/VectorSource.js.map +1 -1
  411. package/lib/module/components/Viewport.js +96 -0
  412. package/lib/module/components/Viewport.js.map +1 -0
  413. package/lib/module/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
  414. package/lib/module/global.d.js.map +1 -1
  415. package/lib/module/index.js.map +1 -1
  416. package/lib/module/index.web.js.map +1 -1
  417. package/lib/module/modules/location/locationManager.js.map +1 -1
  418. package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
  419. package/lib/module/modules/offline/OfflinePack.js.map +1 -1
  420. package/lib/module/modules/offline/OfflinePackLegacy.js +34 -0
  421. package/lib/module/modules/offline/OfflinePackLegacy.js.map +1 -0
  422. package/lib/module/modules/offline/offlineManager.js +4 -4
  423. package/lib/module/modules/offline/offlineManager.js.map +1 -1
  424. package/lib/module/modules/offline/offlineManagerLegacy.js +154 -0
  425. package/lib/module/modules/offline/offlineManagerLegacy.js.map +1 -0
  426. package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
  427. package/lib/module/modules/snapshot/snapshotManager.js.map +1 -1
  428. package/lib/module/requestAndroidLocationPermissions.js.map +1 -1
  429. package/lib/module/shape_animators/MovePointShapeAnimator.js +13 -0
  430. package/lib/module/shape_animators/MovePointShapeAnimator.js.map +1 -0
  431. package/lib/module/shape_animators/ShapeAnimatorManager.js +8 -0
  432. package/lib/module/shape_animators/ShapeAnimatorManager.js.map +1 -0
  433. package/lib/module/specs/NativeMapViewModule.js.map +1 -1
  434. package/lib/module/specs/NativeRNMBXImageModule.js.map +1 -1
  435. package/lib/module/specs/NativeRNMBXMovePointShapeAnimatorModule.js +6 -0
  436. package/lib/module/specs/NativeRNMBXMovePointShapeAnimatorModule.js.map +1 -0
  437. package/lib/module/specs/NativeRNMBXPointAnnotationModule.js.map +1 -1
  438. package/lib/module/specs/NativeRNMBXShapeSourceModule.js.map +1 -1
  439. package/lib/module/specs/NativeRNMBXViewportModule.js +6 -0
  440. package/lib/module/specs/NativeRNMBXViewportModule.js.map +1 -0
  441. package/lib/module/specs/RNMBXAtmosphereNativeComponent.js.map +1 -1
  442. package/lib/module/specs/RNMBXBackgroundLayerNativeComponent.js.map +1 -1
  443. package/lib/module/specs/RNMBXCalloutNativeComponent.js.map +1 -1
  444. package/lib/module/specs/RNMBXCameraNativeComponent.js.map +1 -1
  445. package/lib/module/specs/RNMBXCircleLayerNativeComponent.js +3 -0
  446. package/lib/module/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
  447. package/lib/module/specs/RNMBXCustomLocationProviderNativeComponent.js +6 -0
  448. package/lib/module/specs/RNMBXCustomLocationProviderNativeComponent.js.map +1 -0
  449. package/lib/module/specs/RNMBXFillExtrusionLayerNativeComponent.js.map +1 -1
  450. package/lib/module/specs/RNMBXFillLayerNativeComponent.js +3 -0
  451. package/lib/module/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
  452. package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js +3 -0
  453. package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
  454. package/lib/module/specs/RNMBXImageNativeComponent.js.map +1 -1
  455. package/lib/module/specs/RNMBXImageSourceNativeComponent.js.map +1 -1
  456. package/lib/module/specs/RNMBXImagesNativeComponent.js.map +1 -1
  457. package/lib/module/specs/RNMBXLightNativeComponent.js.map +1 -1
  458. package/lib/module/specs/RNMBXLineLayerNativeComponent.js +3 -0
  459. package/lib/module/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
  460. package/lib/module/specs/RNMBXMapViewNativeComponent.js.map +1 -1
  461. package/lib/module/specs/RNMBXMarkerViewContentNativeComponent.js +6 -0
  462. package/lib/module/specs/RNMBXMarkerViewContentNativeComponent.js.map +1 -0
  463. package/lib/module/specs/RNMBXMarkerViewNativeComponent.js.map +1 -1
  464. package/lib/module/specs/RNMBXModelLayerNativeComponent.js +9 -0
  465. package/lib/module/specs/RNMBXModelLayerNativeComponent.js.map +1 -0
  466. package/lib/module/specs/RNMBXModelsNativeComponent.js +3 -0
  467. package/lib/module/specs/RNMBXModelsNativeComponent.js.map +1 -0
  468. package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.js +3 -0
  469. package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.js.map +1 -1
  470. package/lib/module/specs/RNMBXPointAnnotationNativeComponent.js.map +1 -1
  471. package/lib/module/specs/RNMBXRasterDemSourceNativeComponent.js.map +1 -1
  472. package/lib/module/specs/RNMBXRasterLayerNativeComponent.js +3 -0
  473. package/lib/module/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
  474. package/lib/module/specs/RNMBXRasterSourceNativeComponent.js.map +1 -1
  475. package/lib/module/specs/RNMBXShapeSourceNativeComponent.js.map +1 -1
  476. package/lib/module/specs/RNMBXSkyLayerNativeComponent.js.map +1 -1
  477. package/lib/module/specs/RNMBXStyleImportNativeComponent.js.map +1 -1
  478. package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js +3 -0
  479. package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
  480. package/lib/module/specs/RNMBXTerrainNativeComponent.js.map +1 -1
  481. package/lib/module/specs/RNMBXVectorSourceNativeComponent.js.map +1 -1
  482. package/lib/module/specs/RNMBXViewportNativeComponent.js +33 -0
  483. package/lib/module/specs/RNMBXViewportNativeComponent.js.map +1 -0
  484. package/lib/module/specs/codegenUtils.js.map +1 -1
  485. package/lib/module/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +18 -0
  486. package/lib/module/types/BaseProps.js.map +1 -1
  487. package/lib/module/types/OnPressEvent.js.map +1 -1
  488. package/lib/module/types/Position.js.map +1 -1
  489. package/lib/module/types/index.js.map +1 -1
  490. package/lib/module/utils/BridgeValue.js.map +1 -1
  491. package/lib/module/utils/Logger.js.map +1 -1
  492. package/lib/module/utils/MapboxStyles.d.js +5 -0
  493. package/lib/module/utils/MapboxStyles.d.js.map +1 -1
  494. package/lib/module/utils/StyleValue.js.map +1 -1
  495. package/lib/module/utils/animated/Animated.js.map +1 -1
  496. package/lib/module/utils/checkRequiredProps.js.map +1 -1
  497. package/lib/module/utils/deprecation.js.map +1 -1
  498. package/lib/module/utils/filterUtils.js.map +1 -1
  499. package/lib/module/utils/geoUtils.js.map +1 -1
  500. package/lib/module/utils/getAnnotationsLayerID.js.map +1 -1
  501. package/lib/module/utils/index.js.map +1 -1
  502. package/lib/module/utils/nativeRef.js.map +1 -1
  503. package/lib/module/utils/styleMap.js +67 -2
  504. package/lib/module/utils/styleMap.js.map +1 -1
  505. package/lib/module/web/MapContext.js.map +1 -1
  506. package/lib/module/web/MapboxModule.js.map +1 -1
  507. package/lib/module/web/UnimplementedComponent.js.map +1 -1
  508. package/lib/module/web/components/Camera.js.map +1 -1
  509. package/lib/module/web/components/MapView.js.map +1 -1
  510. package/lib/module/web/index.js.map +1 -1
  511. package/lib/module/web/utils/Logger.js.map +1 -1
  512. package/lib/typescript/src/Mapbox.d.ts +16 -2
  513. package/lib/typescript/src/Mapbox.d.ts.map +1 -1
  514. package/lib/typescript/src/RNMBXModule.d.ts +1 -1
  515. package/lib/typescript/src/RNMBXModule.d.ts.map +1 -1
  516. package/lib/typescript/src/components/AbstractLayer.d.ts +9 -4
  517. package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
  518. package/lib/typescript/src/components/Camera.d.ts +5 -3
  519. package/lib/typescript/src/components/Camera.d.ts.map +1 -1
  520. package/lib/typescript/src/components/CircleLayer.d.ts +11 -3
  521. package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -1
  522. package/lib/typescript/src/components/CustomLocationProvider.d.ts +15 -0
  523. package/lib/typescript/src/components/CustomLocationProvider.d.ts.map +1 -0
  524. package/lib/typescript/src/components/FillLayer.d.ts +10 -1
  525. package/lib/typescript/src/components/FillLayer.d.ts.map +1 -1
  526. package/lib/typescript/src/components/HeatmapLayer.d.ts +12 -4
  527. package/lib/typescript/src/components/HeatmapLayer.d.ts.map +1 -1
  528. package/lib/typescript/src/components/Images.d.ts +1 -1
  529. package/lib/typescript/src/components/LineLayer.d.ts +10 -1
  530. package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
  531. package/lib/typescript/src/components/LocationPuck.d.ts +85 -0
  532. package/lib/typescript/src/components/LocationPuck.d.ts.map +1 -0
  533. package/lib/typescript/src/components/MapView.d.ts +6 -6
  534. package/lib/typescript/src/components/MapView.d.ts.map +1 -1
  535. package/lib/typescript/src/components/MarkerView.d.ts +5 -1
  536. package/lib/typescript/src/components/MarkerView.d.ts.map +1 -1
  537. package/lib/typescript/src/components/ModelLayer.d.ts +77 -0
  538. package/lib/typescript/src/components/ModelLayer.d.ts.map +1 -0
  539. package/lib/typescript/src/components/Models.d.ts +15 -0
  540. package/lib/typescript/src/components/Models.d.ts.map +1 -0
  541. package/lib/typescript/src/components/RasterLayer.d.ts +11 -2
  542. package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -1
  543. package/lib/typescript/src/components/SymbolLayer.d.ts +17 -5
  544. package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -1
  545. package/lib/typescript/src/components/UserLocation.d.ts +1 -0
  546. package/lib/typescript/src/components/UserLocation.d.ts.map +1 -1
  547. package/lib/typescript/src/components/Viewport.d.ts +136 -0
  548. package/lib/typescript/src/components/Viewport.d.ts.map +1 -0
  549. package/lib/typescript/src/modules/offline/OfflinePackLegacy.d.ts +24 -0
  550. package/lib/typescript/src/modules/offline/OfflinePackLegacy.d.ts.map +1 -0
  551. package/lib/typescript/src/modules/offline/offlineManager.d.ts +1 -1
  552. package/lib/typescript/src/modules/offline/offlineManager.d.ts.map +1 -1
  553. package/lib/typescript/src/modules/offline/offlineManagerLegacy.d.ts +93 -0
  554. package/lib/typescript/src/modules/offline/offlineManagerLegacy.d.ts.map +1 -0
  555. package/lib/typescript/src/shape_animators/MovePointShapeAnimator.d.ts +7 -0
  556. package/lib/typescript/src/shape_animators/MovePointShapeAnimator.d.ts.map +1 -0
  557. package/lib/typescript/src/shape_animators/ShapeAnimatorManager.d.ts +5 -0
  558. package/lib/typescript/src/shape_animators/ShapeAnimatorManager.d.ts.map +1 -0
  559. package/lib/typescript/src/specs/NativeMapViewModule.d.ts +0 -1
  560. package/lib/typescript/src/specs/NativeMapViewModule.d.ts.map +1 -1
  561. package/lib/typescript/src/specs/NativeRNMBXImageModule.d.ts +0 -1
  562. package/lib/typescript/src/specs/NativeRNMBXImageModule.d.ts.map +1 -1
  563. package/lib/typescript/src/specs/NativeRNMBXMovePointShapeAnimatorModule.d.ts +10 -0
  564. package/lib/typescript/src/specs/NativeRNMBXMovePointShapeAnimatorModule.d.ts.map +1 -0
  565. package/lib/typescript/src/specs/NativeRNMBXPointAnnotationModule.d.ts +0 -1
  566. package/lib/typescript/src/specs/NativeRNMBXPointAnnotationModule.d.ts.map +1 -1
  567. package/lib/typescript/src/specs/NativeRNMBXShapeSourceModule.d.ts +0 -1
  568. package/lib/typescript/src/specs/NativeRNMBXShapeSourceModule.d.ts.map +1 -1
  569. package/lib/typescript/src/specs/NativeRNMBXViewportModule.d.ts +35 -0
  570. package/lib/typescript/src/specs/NativeRNMBXViewportModule.d.ts.map +1 -0
  571. package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts +16 -11
  572. package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -1
  573. package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts +12 -0
  574. package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts.map +1 -0
  575. package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts +9 -4
  576. package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -1
  577. package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts +9 -4
  578. package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -1
  579. package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts +9 -4
  580. package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -1
  581. package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts +1 -0
  582. package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts.map +1 -1
  583. package/lib/typescript/src/specs/RNMBXMarkerViewContentNativeComponent.d.ts +6 -0
  584. package/lib/typescript/src/specs/RNMBXMarkerViewContentNativeComponent.d.ts.map +1 -0
  585. package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts +1 -0
  586. package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts.map +1 -1
  587. package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts +28 -0
  588. package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +1 -0
  589. package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts +15 -0
  590. package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts.map +1 -0
  591. package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts +20 -3
  592. package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts.map +1 -1
  593. package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts +9 -4
  594. package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -1
  595. package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts +9 -4
  596. package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -1
  597. package/lib/typescript/src/specs/RNMBXViewportNativeComponent.d.ts +59 -0
  598. package/lib/typescript/src/specs/RNMBXViewportNativeComponent.d.ts.map +1 -0
  599. package/lib/typescript/src/specs/codegenUtils.d.ts +0 -1
  600. package/lib/typescript/src/specs/codegenUtils.d.ts.map +1 -1
  601. package/lib/typescript/src/types/Position.d.ts +3 -0
  602. package/lib/typescript/src/types/Position.d.ts.map +1 -1
  603. package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
  604. package/package.json +11 -10
  605. package/plugin/install.md +6 -14
  606. package/rnmapbox-maps.podspec +26 -4
  607. package/setup-jest.js +30 -1
  608. package/src/Mapbox.ts +21 -0
  609. package/src/RNMBXModule.ts +2 -0
  610. package/src/components/AbstractLayer.tsx +11 -5
  611. package/src/components/Camera.tsx +8 -3
  612. package/src/components/CircleLayer.tsx +17 -5
  613. package/src/components/CustomLocationProvider.tsx +22 -0
  614. package/src/components/FillLayer.tsx +16 -3
  615. package/src/components/HeatmapLayer.tsx +18 -6
  616. package/src/components/Images.tsx +1 -1
  617. package/src/components/LineLayer.tsx +16 -3
  618. package/src/components/LocationPuck.tsx +143 -0
  619. package/src/components/MapView.tsx +7 -9
  620. package/src/components/MarkerView.tsx +12 -5
  621. package/src/components/ModelLayer.tsx +107 -0
  622. package/src/components/Models.tsx +44 -0
  623. package/src/components/RasterLayer.tsx +17 -4
  624. package/src/components/SkyLayer.tsx +2 -2
  625. package/src/components/SymbolLayer.tsx +26 -7
  626. package/src/components/UserLocation.tsx +2 -1
  627. package/src/components/Viewport.tsx +330 -0
  628. package/src/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
  629. package/src/modules/offline/OfflinePackLegacy.ts +55 -0
  630. package/src/modules/offline/offlineManager.ts +4 -4
  631. package/src/modules/offline/offlineManagerLegacy.ts +181 -0
  632. package/src/shape_animators/MovePointShapeAnimator.ts +18 -0
  633. package/src/shape_animators/ShapeAnimatorManager.tsx +8 -0
  634. package/src/specs/NativeRNMBXMovePointShapeAnimatorModule.ts +16 -0
  635. package/src/specs/NativeRNMBXViewportModule.ts +41 -0
  636. package/src/specs/RNMBXCircleLayerNativeComponent.ts +21 -12
  637. package/src/specs/RNMBXCustomLocationProviderNativeComponent.ts +19 -0
  638. package/src/specs/RNMBXFillLayerNativeComponent.ts +13 -4
  639. package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +13 -4
  640. package/src/specs/RNMBXLineLayerNativeComponent.ts +13 -4
  641. package/src/specs/RNMBXMapViewNativeComponent.ts +2 -0
  642. package/src/specs/RNMBXMarkerViewContentNativeComponent.ts +9 -0
  643. package/src/specs/RNMBXMarkerViewNativeComponent.ts +1 -0
  644. package/src/specs/RNMBXModelLayerNativeComponent.ts +38 -0
  645. package/src/specs/RNMBXModelsNativeComponent.ts +18 -0
  646. package/src/specs/RNMBXNativeUserLocationNativeComponent.ts +29 -3
  647. package/src/specs/RNMBXRasterLayerNativeComponent.ts +13 -4
  648. package/src/specs/RNMBXSymbolLayerNativeComponent.ts +13 -4
  649. package/src/specs/RNMBXViewportNativeComponent.ts +117 -0
  650. package/src/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +18 -0
  651. package/src/types/Position.ts +3 -0
  652. package/src/utils/MapboxStyles.d.ts +526 -63
  653. package/src/utils/styleMap.ts +69 -2
  654. package/android/src/main/java/com/rnmapbox/rnmbx/components/AbstractEvent.java +0 -35
  655. package/android/src/main/java/com/rnmapbox/rnmbx/events/constants/EventKeys.java +0 -39
  656. package/lib/commonjs/components/NativeUserLocation.js.map +0 -1
  657. package/lib/module/components/NativeUserLocation.js +0 -7
  658. package/lib/module/components/NativeUserLocation.js.map +0 -1
  659. package/lib/typescript/src/components/NativeUserLocation.d.ts +0 -22
  660. package/lib/typescript/src/components/NativeUserLocation.d.ts.map +0 -1
  661. package/src/components/NativeUserLocation.tsx +0 -29
@@ -409,6 +409,13 @@ enum HillshadeIlluminationAnchorEnum {
409
409
  Viewport = 'viewport',
410
410
  }
411
411
  type HillshadeIlluminationAnchorEnumValues = 'map' | 'viewport';
412
+ enum ModelTypeEnum {
413
+ /** Integrated to 3D scene, using depth testing, along with terrain, fill-extrusions and custom layer. */
414
+ Common3d = 'common-3d',
415
+ /** Displayed over other 3D content, occluded by terrain. */
416
+ LocationIndicator = 'location-indicator',
417
+ }
418
+ type ModelTypeEnumValues = 'common-3d' | 'location-indicator';
412
419
  enum SkyTypeEnum {
413
420
  /** Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`. */
414
421
  Gradient = 'gradient',
@@ -434,7 +441,7 @@ export interface FillLayerStyleProps {
434
441
  /**
435
442
  * Whether this layer is displayed.
436
443
  */
437
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
444
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
438
445
  /**
439
446
  * Whether or not the fill should be antialiased.
440
447
  */
@@ -442,7 +449,10 @@ export interface FillLayerStyleProps {
442
449
  /**
443
450
  * 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.
444
451
  */
445
- fillOpacity?: Value<number, ['zoom', 'feature', 'feature-state']>;
452
+ fillOpacity?: Value<
453
+ number,
454
+ ['zoom', 'feature', 'feature-state', 'measure-light']
455
+ >;
446
456
 
447
457
  /**
448
458
  * The transition affecting any changes to this layer’s fillOpacity property.
@@ -453,7 +463,10 @@ export interface FillLayerStyleProps {
453
463
  *
454
464
  * @disabledBy fillPattern
455
465
  */
456
- fillColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
466
+ fillColor?: Value<
467
+ string,
468
+ ['zoom', 'feature', 'feature-state', 'measure-light']
469
+ >;
457
470
 
458
471
  /**
459
472
  * The transition affecting any changes to this layer’s fillColor property.
@@ -464,7 +477,10 @@ export interface FillLayerStyleProps {
464
477
  *
465
478
  * @disabledBy fillPattern
466
479
  */
467
- fillOutlineColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
480
+ fillOutlineColor?: Value<
481
+ string,
482
+ ['zoom', 'feature', 'feature-state', 'measure-light']
483
+ >;
468
484
 
469
485
  /**
470
486
  * The transition affecting any changes to this layer’s fillOutlineColor property.
@@ -492,6 +508,17 @@ export interface FillLayerStyleProps {
492
508
  * 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.
493
509
  */
494
510
  fillPattern?: Value<ResolvedImageType, ['zoom', 'feature']>;
511
+ /**
512
+ * Controls the intensity of light emitted on the source features.
513
+ *
514
+ * @requires lights
515
+ */
516
+ fillEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
517
+
518
+ /**
519
+ * The transition affecting any changes to this layer’s fillEmissiveStrength property.
520
+ */
521
+ fillEmissiveStrengthTransition?: Transition;
495
522
  }
496
523
  export interface LineLayerStyleProps {
497
524
  /**
@@ -517,11 +544,14 @@ export interface LineLayerStyleProps {
517
544
  /**
518
545
  * Whether this layer is displayed.
519
546
  */
520
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
547
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
521
548
  /**
522
549
  * The opacity at which the line will be drawn.
523
550
  */
524
- lineOpacity?: Value<number, ['zoom', 'feature', 'feature-state']>;
551
+ lineOpacity?: Value<
552
+ number,
553
+ ['zoom', 'feature', 'feature-state', 'measure-light']
554
+ >;
525
555
 
526
556
  /**
527
557
  * The transition affecting any changes to this layer’s lineOpacity property.
@@ -532,7 +562,10 @@ export interface LineLayerStyleProps {
532
562
  *
533
563
  * @disabledBy linePattern
534
564
  */
535
- lineColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
565
+ lineColor?: Value<
566
+ string,
567
+ ['zoom', 'feature', 'feature-state', 'measure-light']
568
+ >;
536
569
 
537
570
  /**
538
571
  * The transition affecting any changes to this layer’s lineColor property.
@@ -559,7 +592,10 @@ export interface LineLayerStyleProps {
559
592
  /**
560
593
  * Stroke thickness.
561
594
  */
562
- lineWidth?: Value<number, ['zoom', 'feature', 'feature-state']>;
595
+ lineWidth?: Value<
596
+ number,
597
+ ['zoom', 'feature', 'feature-state', 'measure-light']
598
+ >;
563
599
 
564
600
  /**
565
601
  * The transition affecting any changes to this layer’s lineWidth property.
@@ -568,7 +604,10 @@ export interface LineLayerStyleProps {
568
604
  /**
569
605
  * Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
570
606
  */
571
- lineGapWidth?: Value<number, ['zoom', 'feature', 'feature-state']>;
607
+ lineGapWidth?: Value<
608
+ number,
609
+ ['zoom', 'feature', 'feature-state', 'measure-light']
610
+ >;
572
611
 
573
612
  /**
574
613
  * The transition affecting any changes to this layer’s lineGapWidth property.
@@ -577,7 +616,10 @@ export interface LineLayerStyleProps {
577
616
  /**
578
617
  * 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.
579
618
  */
580
- lineOffset?: Value<number, ['zoom', 'feature', 'feature-state']>;
619
+ lineOffset?: Value<
620
+ number,
621
+ ['zoom', 'feature', 'feature-state', 'measure-light']
622
+ >;
581
623
 
582
624
  /**
583
625
  * The transition affecting any changes to this layer’s lineOffset property.
@@ -586,7 +628,10 @@ export interface LineLayerStyleProps {
586
628
  /**
587
629
  * Blur applied to the line, in pixels.
588
630
  */
589
- lineBlur?: Value<number, ['zoom', 'feature', 'feature-state']>;
631
+ lineBlur?: Value<
632
+ number,
633
+ ['zoom', 'feature', 'feature-state', 'measure-light']
634
+ >;
590
635
 
591
636
  /**
592
637
  * The transition affecting any changes to this layer’s lineBlur property.
@@ -603,7 +648,7 @@ export interface LineLayerStyleProps {
603
648
  */
604
649
  linePattern?: Value<ResolvedImageType, ['zoom', 'feature']>;
605
650
  /**
606
- * Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.
651
+ * A gradient used to color a line feature at various distances along its length. Defined using a `step` or `interpolate` expression which outputs a color for each corresponding `lineProgress` input value. `lineProgress` is a percentage of the line feature's total length as measured on the webmercator projected coordinate plane (a `number` between `0` and `1`). Can only be used with GeoJSON sources that specify `"lineMetrics": true`.
607
652
  *
608
653
  * @disabledBy linePattern
609
654
  */
@@ -612,6 +657,17 @@ export interface LineLayerStyleProps {
612
657
  * The line part between [trimStart, trimEnd] will be marked as transparent to make a route vanishing effect. The line trimOff offset is based on the whole line range [0.0, 1.0].
613
658
  */
614
659
  lineTrimOffset?: number[];
660
+ /**
661
+ * Controls the intensity of light emitted on the source features.
662
+ *
663
+ * @requires lights
664
+ */
665
+ lineEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
666
+
667
+ /**
668
+ * The transition affecting any changes to this layer’s lineEmissiveStrength property.
669
+ */
670
+ lineEmissiveStrengthTransition?: Transition;
615
671
  }
616
672
  export interface SymbolLayerStyleProps {
617
673
  /**
@@ -630,7 +686,7 @@ export interface SymbolLayerStyleProps {
630
686
  */
631
687
  symbolAvoidEdges?: Value<boolean, ['zoom']>;
632
688
  /**
633
- * 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.
689
+ * 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.
634
690
  */
635
691
  symbolSortKey?: Value<number, ['zoom', 'feature']>;
636
692
  /**
@@ -678,13 +734,16 @@ export interface SymbolLayerStyleProps {
678
734
  *
679
735
  * @requires iconImage, textField
680
736
  */
681
- iconTextFit?: Value<Enum<IconTextFitEnum, IconTextFitEnumValues>, ['zoom']>;
737
+ iconTextFit?: Value<
738
+ Enum<IconTextFitEnum, IconTextFitEnumValues>,
739
+ ['zoom', 'feature']
740
+ >;
682
741
  /**
683
742
  * Size of the additional area added to dimensions determined by `iconTextFit`, in clockwise order: top, right, bottom, left.
684
743
  *
685
744
  * @requires iconImage, textField
686
745
  */
687
- iconTextFitPadding?: Value<number[], ['zoom']>;
746
+ iconTextFitPadding?: Value<number[], ['zoom', 'feature']>;
688
747
  /**
689
748
  * Name of image in sprite to use for drawing an image background.
690
749
  */
@@ -889,13 +948,16 @@ export interface SymbolLayerStyleProps {
889
948
  /**
890
949
  * Whether this layer is displayed.
891
950
  */
892
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
951
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
893
952
  /**
894
953
  * The opacity at which the icon will be drawn.
895
954
  *
896
955
  * @requires iconImage
897
956
  */
898
- iconOpacity?: Value<number, ['zoom', 'feature', 'feature-state']>;
957
+ iconOpacity?: Value<
958
+ number,
959
+ ['zoom', 'feature', 'feature-state', 'measure-light']
960
+ >;
899
961
 
900
962
  /**
901
963
  * The transition affecting any changes to this layer’s iconOpacity property.
@@ -906,7 +968,10 @@ export interface SymbolLayerStyleProps {
906
968
  *
907
969
  * @requires iconImage
908
970
  */
909
- iconColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
971
+ iconColor?: Value<
972
+ string,
973
+ ['zoom', 'feature', 'feature-state', 'measure-light']
974
+ >;
910
975
 
911
976
  /**
912
977
  * The transition affecting any changes to this layer’s iconColor property.
@@ -917,7 +982,10 @@ export interface SymbolLayerStyleProps {
917
982
  *
918
983
  * @requires iconImage
919
984
  */
920
- iconHaloColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
985
+ iconHaloColor?: Value<
986
+ string,
987
+ ['zoom', 'feature', 'feature-state', 'measure-light']
988
+ >;
921
989
 
922
990
  /**
923
991
  * The transition affecting any changes to this layer’s iconHaloColor property.
@@ -928,7 +996,10 @@ export interface SymbolLayerStyleProps {
928
996
  *
929
997
  * @requires iconImage
930
998
  */
931
- iconHaloWidth?: Value<number, ['zoom', 'feature', 'feature-state']>;
999
+ iconHaloWidth?: Value<
1000
+ number,
1001
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1002
+ >;
932
1003
 
933
1004
  /**
934
1005
  * The transition affecting any changes to this layer’s iconHaloWidth property.
@@ -939,7 +1010,10 @@ export interface SymbolLayerStyleProps {
939
1010
  *
940
1011
  * @requires iconImage
941
1012
  */
942
- iconHaloBlur?: Value<number, ['zoom', 'feature', 'feature-state']>;
1013
+ iconHaloBlur?: Value<
1014
+ number,
1015
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1016
+ >;
943
1017
 
944
1018
  /**
945
1019
  * The transition affecting any changes to this layer’s iconHaloBlur property.
@@ -970,7 +1044,10 @@ export interface SymbolLayerStyleProps {
970
1044
  *
971
1045
  * @requires textField
972
1046
  */
973
- textOpacity?: Value<number, ['zoom', 'feature', 'feature-state']>;
1047
+ textOpacity?: Value<
1048
+ number,
1049
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1050
+ >;
974
1051
 
975
1052
  /**
976
1053
  * The transition affecting any changes to this layer’s textOpacity property.
@@ -981,7 +1058,10 @@ export interface SymbolLayerStyleProps {
981
1058
  *
982
1059
  * @requires textField
983
1060
  */
984
- textColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
1061
+ textColor?: Value<
1062
+ string,
1063
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1064
+ >;
985
1065
 
986
1066
  /**
987
1067
  * The transition affecting any changes to this layer’s textColor property.
@@ -992,7 +1072,10 @@ export interface SymbolLayerStyleProps {
992
1072
  *
993
1073
  * @requires textField
994
1074
  */
995
- textHaloColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
1075
+ textHaloColor?: Value<
1076
+ string,
1077
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1078
+ >;
996
1079
 
997
1080
  /**
998
1081
  * The transition affecting any changes to this layer’s textHaloColor property.
@@ -1003,7 +1086,10 @@ export interface SymbolLayerStyleProps {
1003
1086
  *
1004
1087
  * @requires textField
1005
1088
  */
1006
- textHaloWidth?: Value<number, ['zoom', 'feature', 'feature-state']>;
1089
+ textHaloWidth?: Value<
1090
+ number,
1091
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1092
+ >;
1007
1093
 
1008
1094
  /**
1009
1095
  * The transition affecting any changes to this layer’s textHaloWidth property.
@@ -1014,7 +1100,10 @@ export interface SymbolLayerStyleProps {
1014
1100
  *
1015
1101
  * @requires textField
1016
1102
  */
1017
- textHaloBlur?: Value<number, ['zoom', 'feature', 'feature-state']>;
1103
+ textHaloBlur?: Value<
1104
+ number,
1105
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1106
+ >;
1018
1107
 
1019
1108
  /**
1020
1109
  * The transition affecting any changes to this layer’s textHaloBlur property.
@@ -1040,6 +1129,44 @@ export interface SymbolLayerStyleProps {
1040
1129
  Enum<TextTranslateAnchorEnum, TextTranslateAnchorEnumValues>,
1041
1130
  ['zoom']
1042
1131
  >;
1132
+ /**
1133
+ * Position symbol on buildings (both fill extrusions and models) roof tops. In order to have minimal impact on performance, this is supported only when `fillExtrusionHeight` is not zoomDependent and not edited after initial bucket creation. For fading in buildings when zooming in, fillExtrusionVerticalScale should be used and symbols would raise with building roofs. Symbols are sorted by elevation, except in case when `viewportY` sorting or `symbolSortKey` are applied.
1134
+ */
1135
+ symbolZElevate?: Value<boolean, ['zoom']>;
1136
+ /**
1137
+ * Controls the intensity of light emitted on the source features.
1138
+ *
1139
+ * @requires lights
1140
+ */
1141
+ iconEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
1142
+
1143
+ /**
1144
+ * The transition affecting any changes to this layer’s iconEmissiveStrength property.
1145
+ */
1146
+ iconEmissiveStrengthTransition?: Transition;
1147
+ /**
1148
+ * Controls the intensity of light emitted on the source features.
1149
+ *
1150
+ * @requires lights
1151
+ */
1152
+ textEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
1153
+
1154
+ /**
1155
+ * The transition affecting any changes to this layer’s textEmissiveStrength property.
1156
+ */
1157
+ textEmissiveStrengthTransition?: Transition;
1158
+ /**
1159
+ * Controls the transition progress between the image variants of iconImage. Zero means the first variant is used, one is the second, and in between they are blended together.
1160
+ */
1161
+ iconImageCrossFade?: Value<
1162
+ number,
1163
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1164
+ >;
1165
+
1166
+ /**
1167
+ * The transition affecting any changes to this layer’s iconImageCrossFade property.
1168
+ */
1169
+ iconImageCrossFadeTransition?: Transition;
1043
1170
  }
1044
1171
  export interface CircleLayerStyleProps {
1045
1172
  /**
@@ -1049,11 +1176,14 @@ export interface CircleLayerStyleProps {
1049
1176
  /**
1050
1177
  * Whether this layer is displayed.
1051
1178
  */
1052
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
1179
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1053
1180
  /**
1054
1181
  * Circle radius.
1055
1182
  */
1056
- circleRadius?: Value<number, ['zoom', 'feature', 'feature-state']>;
1183
+ circleRadius?: Value<
1184
+ number,
1185
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1186
+ >;
1057
1187
 
1058
1188
  /**
1059
1189
  * The transition affecting any changes to this layer’s circleRadius property.
@@ -1062,7 +1192,10 @@ export interface CircleLayerStyleProps {
1062
1192
  /**
1063
1193
  * The fill color of the circle.
1064
1194
  */
1065
- circleColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
1195
+ circleColor?: Value<
1196
+ string,
1197
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1198
+ >;
1066
1199
 
1067
1200
  /**
1068
1201
  * The transition affecting any changes to this layer’s circleColor property.
@@ -1071,7 +1204,10 @@ export interface CircleLayerStyleProps {
1071
1204
  /**
1072
1205
  * Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
1073
1206
  */
1074
- circleBlur?: Value<number, ['zoom', 'feature', 'feature-state']>;
1207
+ circleBlur?: Value<
1208
+ number,
1209
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1210
+ >;
1075
1211
 
1076
1212
  /**
1077
1213
  * The transition affecting any changes to this layer’s circleBlur property.
@@ -1080,7 +1216,10 @@ export interface CircleLayerStyleProps {
1080
1216
  /**
1081
1217
  * The opacity at which the circle will be drawn.
1082
1218
  */
1083
- circleOpacity?: Value<number, ['zoom', 'feature', 'feature-state']>;
1219
+ circleOpacity?: Value<
1220
+ number,
1221
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1222
+ >;
1084
1223
 
1085
1224
  /**
1086
1225
  * The transition affecting any changes to this layer’s circleOpacity property.
@@ -1121,7 +1260,10 @@ export interface CircleLayerStyleProps {
1121
1260
  /**
1122
1261
  * The width of the circle's stroke. Strokes are placed outside of the `circleRadius`.
1123
1262
  */
1124
- circleStrokeWidth?: Value<number, ['zoom', 'feature', 'feature-state']>;
1263
+ circleStrokeWidth?: Value<
1264
+ number,
1265
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1266
+ >;
1125
1267
 
1126
1268
  /**
1127
1269
  * The transition affecting any changes to this layer’s circleStrokeWidth property.
@@ -1130,7 +1272,10 @@ export interface CircleLayerStyleProps {
1130
1272
  /**
1131
1273
  * The stroke color of the circle.
1132
1274
  */
1133
- circleStrokeColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
1275
+ circleStrokeColor?: Value<
1276
+ string,
1277
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1278
+ >;
1134
1279
 
1135
1280
  /**
1136
1281
  * The transition affecting any changes to this layer’s circleStrokeColor property.
@@ -1139,22 +1284,39 @@ export interface CircleLayerStyleProps {
1139
1284
  /**
1140
1285
  * The opacity of the circle's stroke.
1141
1286
  */
1142
- circleStrokeOpacity?: Value<number, ['zoom', 'feature', 'feature-state']>;
1287
+ circleStrokeOpacity?: Value<
1288
+ number,
1289
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1290
+ >;
1143
1291
 
1144
1292
  /**
1145
1293
  * The transition affecting any changes to this layer’s circleStrokeOpacity property.
1146
1294
  */
1147
1295
  circleStrokeOpacityTransition?: Transition;
1296
+ /**
1297
+ * Controls the intensity of light emitted on the source features.
1298
+ *
1299
+ * @requires lights
1300
+ */
1301
+ circleEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
1302
+
1303
+ /**
1304
+ * The transition affecting any changes to this layer’s circleEmissiveStrength property.
1305
+ */
1306
+ circleEmissiveStrengthTransition?: Transition;
1148
1307
  }
1149
1308
  export interface HeatmapLayerStyleProps {
1150
1309
  /**
1151
1310
  * Whether this layer is displayed.
1152
1311
  */
1153
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
1312
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1154
1313
  /**
1155
1314
  * Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed. `queryRenderedFeatures` on heatmap layers will return points within this radius.
1156
1315
  */
1157
- heatmapRadius?: Value<number, ['zoom', 'feature', 'feature-state']>;
1316
+ heatmapRadius?: Value<
1317
+ number,
1318
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1319
+ >;
1158
1320
 
1159
1321
  /**
1160
1322
  * The transition affecting any changes to this layer’s heatmapRadius property.
@@ -1163,7 +1325,10 @@ export interface HeatmapLayerStyleProps {
1163
1325
  /**
1164
1326
  * 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.
1165
1327
  */
1166
- heatmapWeight?: Value<number, ['zoom', 'feature', 'feature-state']>;
1328
+ heatmapWeight?: Value<
1329
+ number,
1330
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1331
+ >;
1167
1332
  /**
1168
1333
  * Similar to `heatmapWeight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
1169
1334
  */
@@ -1174,7 +1339,7 @@ export interface HeatmapLayerStyleProps {
1174
1339
  */
1175
1340
  heatmapIntensityTransition?: Transition;
1176
1341
  /**
1177
- * Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmapDensity"]` as input.
1342
+ * Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmapDensity"]` as input.
1178
1343
  */
1179
1344
  heatmapColor?: Value<string, ['heatmap-density']>;
1180
1345
  /**
@@ -1191,7 +1356,7 @@ export interface FillExtrusionLayerStyleProps {
1191
1356
  /**
1192
1357
  * Whether this layer is displayed.
1193
1358
  */
1194
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
1359
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1195
1360
  /**
1196
1361
  * The opacity of the entire fill extrusion layer. This is rendered on a perLayer, not perFeature, basis, and dataDriven styling is not available.
1197
1362
  */
@@ -1206,7 +1371,10 @@ export interface FillExtrusionLayerStyleProps {
1206
1371
  *
1207
1372
  * @disabledBy fillExtrusionPattern
1208
1373
  */
1209
- fillExtrusionColor?: Value<string, ['zoom', 'feature', 'feature-state']>;
1374
+ fillExtrusionColor?: Value<
1375
+ string,
1376
+ ['zoom', 'feature', 'feature-state', 'measure-light']
1377
+ >;
1210
1378
 
1211
1379
  /**
1212
1380
  * The transition affecting any changes to this layer’s fillExtrusionColor property.
@@ -1261,12 +1429,141 @@ export interface FillExtrusionLayerStyleProps {
1261
1429
  * Whether to apply a vertical gradient to the sides of a fillExtrusion layer. If true, sides will be shaded slightly darker farther down.
1262
1430
  */
1263
1431
  fillExtrusionVerticalGradient?: Value<boolean, ['zoom']>;
1432
+ /**
1433
+ * Indicates whether top edges should be rounded when fillExtrusionEdgeRadius has a value greater than 0. If false, rounded edges are only applied to the sides. Default is true.
1434
+ *
1435
+ * @requires fillExtrusionEdgeRadius
1436
+ */
1437
+ fillExtrusionRoundedRoof?: Value<boolean, ['zoom']>;
1438
+ /**
1439
+ * Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the most plausible results for buildings.
1440
+ *
1441
+ * @requires lights, fillExtrusionEdgeRadius
1442
+ *
1443
+ * @disabledBy fillExtrusionFloodLightIntensity
1444
+ */
1445
+ fillExtrusionAmbientOcclusionWallRadius?: Value<number, ['zoom']>;
1446
+
1447
+ /**
1448
+ * The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionWallRadius property.
1449
+ */
1450
+ fillExtrusionAmbientOcclusionWallRadiusTransition?: Transition;
1451
+ /**
1452
+ * The extent of the ambient occlusion effect on the ground beneath the extruded buildings in meters.
1453
+ *
1454
+ * @requires lights
1455
+ *
1456
+ * @disabledBy fillExtrusionFloodLightIntensity
1457
+ */
1458
+ fillExtrusionAmbientOcclusionGroundRadius?: Value<number, ['zoom']>;
1459
+
1460
+ /**
1461
+ * The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionGroundRadius property.
1462
+ */
1463
+ fillExtrusionAmbientOcclusionGroundRadiusTransition?: Transition;
1464
+ /**
1465
+ * Provides a control to futher fineTune the look of the ambient occlusion on the ground beneath the extruded buildings. Lower values give the effect a more solid look while higher values make it smoother.
1466
+ *
1467
+ * @requires lights
1468
+ *
1469
+ * @disabledBy fillExtrusionFloodLightIntensity
1470
+ */
1471
+ fillExtrusionAmbientOcclusionGroundAttenuation?: Value<number, ['zoom']>;
1472
+
1473
+ /**
1474
+ * The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionGroundAttenuation property.
1475
+ */
1476
+ fillExtrusionAmbientOcclusionGroundAttenuationTransition?: Transition;
1477
+ /**
1478
+ * The color of the flood light effect on the walls of the extruded buildings.
1479
+ *
1480
+ * @requires lights
1481
+ *
1482
+ * @disabledBy fillExtrusionAmbientOcclusionIntensity
1483
+ */
1484
+ fillExtrusionFloodLightColor?: Value<string, ['zoom', 'measure-light']>;
1485
+
1486
+ /**
1487
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightColor property.
1488
+ */
1489
+ fillExtrusionFloodLightColorTransition?: Transition;
1490
+ /**
1491
+ * The intensity of the flood light color.
1492
+ *
1493
+ * @requires lights
1494
+ *
1495
+ * @disabledBy fillExtrusionAmbientOcclusionIntensity
1496
+ */
1497
+ fillExtrusionFloodLightIntensity?: Value<number, ['zoom', 'measure-light']>;
1498
+
1499
+ /**
1500
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightIntensity property.
1501
+ */
1502
+ fillExtrusionFloodLightIntensityTransition?: Transition;
1503
+ /**
1504
+ * The extent of the flood light effect on the walls of the extruded buildings in meters.
1505
+ *
1506
+ * @requires lights
1507
+ *
1508
+ * @disabledBy fillExtrusionAmbientOcclusionIntensity
1509
+ */
1510
+ fillExtrusionFloodLightWallRadius?: Value<
1511
+ number,
1512
+ ['feature', 'feature-state']
1513
+ >;
1514
+
1515
+ /**
1516
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightWallRadius property.
1517
+ */
1518
+ fillExtrusionFloodLightWallRadiusTransition?: Transition;
1519
+ /**
1520
+ * The extent of the flood light effect on the ground beneath the extruded buildings in meters.
1521
+ *
1522
+ * @requires lights
1523
+ *
1524
+ * @disabledBy fillExtrusionAmbientOcclusionIntensity
1525
+ */
1526
+ fillExtrusionFloodLightGroundRadius?: Value<
1527
+ number,
1528
+ ['feature', 'feature-state']
1529
+ >;
1530
+
1531
+ /**
1532
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightGroundRadius property.
1533
+ */
1534
+ fillExtrusionFloodLightGroundRadiusTransition?: Transition;
1535
+ /**
1536
+ * Provides a control to futher fineTune the look of the flood light on the ground beneath the extruded buildings. Lower values give the effect a more solid look while higher values make it smoother.
1537
+ *
1538
+ * @requires lights
1539
+ *
1540
+ * @disabledBy fillExtrusionAmbientOcclusionIntensity
1541
+ */
1542
+ fillExtrusionFloodLightGroundAttenuation?: Value<number, ['zoom']>;
1543
+
1544
+ /**
1545
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightGroundAttenuation property.
1546
+ */
1547
+ fillExtrusionFloodLightGroundAttenuationTransition?: Transition;
1548
+ /**
1549
+ * A global multiplier that can be used to scale base, height, AO, and flood light of the fill extrusions.
1550
+ */
1551
+ fillExtrusionVerticalScale?: Value<number, ['zoom']>;
1552
+
1553
+ /**
1554
+ * The transition affecting any changes to this layer’s fillExtrusionVerticalScale property.
1555
+ */
1556
+ fillExtrusionVerticalScaleTransition?: Transition;
1557
+ /**
1558
+ * This parameter defines the range for the fadeOut effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.
1559
+ */
1560
+ fillExtrusionCutoffFadeRange?: Value<number>;
1264
1561
  }
1265
1562
  export interface RasterLayerStyleProps {
1266
1563
  /**
1267
1564
  * Whether this layer is displayed.
1268
1565
  */
1269
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
1566
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1270
1567
  /**
1271
1568
  * The opacity at which the image will be drawn.
1272
1569
  */
@@ -1332,14 +1629,40 @@ export interface RasterLayerStyleProps {
1332
1629
  * Fade duration when a new tile is added.
1333
1630
  */
1334
1631
  rasterFadeDuration?: Value<number, ['zoom']>;
1632
+ /**
1633
+ * Defines a color map by which to colorize a raster layer, parameterized by the `["rasterValue"]` expression and evaluated at 256 uniformly spaced steps over the range specified by `rasterColorRange`.
1634
+ */
1635
+ rasterColor?: Value<string, ['raster-value']>;
1636
+ /**
1637
+ * When `rasterColor` is active, specifies the combination of source RGB channels used to compute the raster value. Computed using the equation `mix.r * src.r + mix.g * src.g + mix.b * src.b + mix.a`. The first three components specify the mix of source red, green, and blue channels, respectively. The fourth component serves as a constant offset and is *not* multipled by source alpha. Source alpha is instead carried through and applied as opacity to the colorized result. Default value corresponds to RGB luminosity.
1638
+ *
1639
+ * @requires rasterColor
1640
+ */
1641
+ rasterColorMix?: Value<number[], ['zoom']>;
1642
+
1643
+ /**
1644
+ * The transition affecting any changes to this layer’s rasterColorMix property.
1645
+ */
1646
+ rasterColorMixTransition?: Transition;
1647
+ /**
1648
+ * When `rasterColor` is active, specifies the range over which `rasterColor` is tabulated. Units correspond to the computed raster value via `rasterColorMix`.
1649
+ *
1650
+ * @requires rasterColor
1651
+ */
1652
+ rasterColorRange?: Value<number[], ['zoom']>;
1653
+
1654
+ /**
1655
+ * The transition affecting any changes to this layer’s rasterColorRange property.
1656
+ */
1657
+ rasterColorRangeTransition?: Transition;
1335
1658
  }
1336
1659
  export interface HillshadeLayerStyleProps {
1337
1660
  /**
1338
1661
  * Whether this layer is displayed.
1339
1662
  */
1340
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
1663
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1341
1664
  /**
1342
- * 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`.
1665
+ * 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` and no 3d lights enabled. If `hillshadeIlluminationAnchor` is set to `map` and 3d lights enabled, the direction from 3d lights is used instead.
1343
1666
  */
1344
1667
  hillshadeIlluminationDirection?: Value<number, ['zoom']>;
1345
1668
  /**
@@ -1364,7 +1687,7 @@ export interface HillshadeLayerStyleProps {
1364
1687
  /**
1365
1688
  * The shading color of areas that face away from the light source.
1366
1689
  */
1367
- hillshadeShadowColor?: Value<string, ['zoom']>;
1690
+ hillshadeShadowColor?: Value<string, ['zoom', 'measure-light']>;
1368
1691
 
1369
1692
  /**
1370
1693
  * The transition affecting any changes to this layer’s hillshadeShadowColor property.
@@ -1373,7 +1696,7 @@ export interface HillshadeLayerStyleProps {
1373
1696
  /**
1374
1697
  * The shading color of areas that faces towards the light source.
1375
1698
  */
1376
- hillshadeHighlightColor?: Value<string, ['zoom']>;
1699
+ hillshadeHighlightColor?: Value<string, ['zoom', 'measure-light']>;
1377
1700
 
1378
1701
  /**
1379
1702
  * The transition affecting any changes to this layer’s hillshadeHighlightColor property.
@@ -1382,18 +1705,146 @@ export interface HillshadeLayerStyleProps {
1382
1705
  /**
1383
1706
  * The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
1384
1707
  */
1385
- hillshadeAccentColor?: Value<string, ['zoom']>;
1708
+ hillshadeAccentColor?: Value<string, ['zoom', 'measure-light']>;
1386
1709
 
1387
1710
  /**
1388
1711
  * The transition affecting any changes to this layer’s hillshadeAccentColor property.
1389
1712
  */
1390
1713
  hillshadeAccentColorTransition?: Transition;
1391
1714
  }
1715
+ export interface ModelLayerStyleProps {
1716
+ /**
1717
+ * Whether this layer is displayed.
1718
+ */
1719
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1720
+ /**
1721
+ * Model to render.
1722
+ */
1723
+ modelId?: Value<string, ['zoom', 'feature']>;
1724
+ /**
1725
+ * The opacity of the model layer.
1726
+ */
1727
+ modelOpacity?: Value<number, ['zoom']>;
1728
+
1729
+ /**
1730
+ * The transition affecting any changes to this layer’s modelOpacity property.
1731
+ */
1732
+ modelOpacityTransition?: Transition;
1733
+ /**
1734
+ * The rotation of the model in euler angles [lon, lat, z].
1735
+ */
1736
+ modelRotation?: Value<number[], ['feature', 'feature-state', 'zoom']>;
1737
+
1738
+ /**
1739
+ * The transition affecting any changes to this layer’s modelRotation property.
1740
+ */
1741
+ modelRotationTransition?: Transition;
1742
+ /**
1743
+ * The scale of the model. Expressions that are zoomDependent are not supported if using GeoJSON or vector tile as the model layer source.
1744
+ */
1745
+ modelScale?: Value<number[], ['feature', 'feature-state', 'zoom']>;
1746
+
1747
+ /**
1748
+ * The transition affecting any changes to this layer’s modelScale property.
1749
+ */
1750
+ modelScaleTransition?: Transition;
1751
+ /**
1752
+ * The translation of the model in meters in form of [longitudal, latitudal, altitude] offsets.
1753
+ */
1754
+ modelTranslation?: Value<number[], ['feature', 'feature-state', 'zoom']>;
1755
+
1756
+ /**
1757
+ * The transition affecting any changes to this layer’s modelTranslation property.
1758
+ */
1759
+ modelTranslationTransition?: Transition;
1760
+ /**
1761
+ * The tint color of the model layer. modelColorMixIntensity (defaults to 0) defines tint(mix) intensity this means that, this color is not used unless modelColorMixIntensity gets value greater than 0. Expressions that depend on measureLight are not supported when using GeoJSON or vector tile as the model layer source.
1762
+ */
1763
+ modelColor?: Value<
1764
+ string,
1765
+ ['feature', 'feature-state', 'measure-light', 'zoom']
1766
+ >;
1767
+
1768
+ /**
1769
+ * The transition affecting any changes to this layer’s modelColor property.
1770
+ */
1771
+ modelColorTransition?: Transition;
1772
+ /**
1773
+ * Intensity of modelColor (on a scale from 0 to 1) in color mix with original 3D model's colors. Higher number will present a higher modelColor contribution in mix. Expressions that depend on measureLight are not supported when using GeoJSON or vector tile as the model layer source.
1774
+ */
1775
+ modelColorMixIntensity?: Value<
1776
+ number,
1777
+ ['feature', 'feature-state', 'measure-light']
1778
+ >;
1779
+
1780
+ /**
1781
+ * The transition affecting any changes to this layer’s modelColorMixIntensity property.
1782
+ */
1783
+ modelColorMixIntensityTransition?: Transition;
1784
+ /**
1785
+ * Defines rendering behavior of model in respect to other 3D scene objects.
1786
+ */
1787
+ modelType?: Enum<ModelTypeEnum, ModelTypeEnumValues>;
1788
+ /**
1789
+ * Enable/Disable shadow casting for this layer
1790
+ */
1791
+ modelCastShadows?: Value<boolean>;
1792
+ /**
1793
+ * Enable/Disable shadow receiving for this layer
1794
+ */
1795
+ modelReceiveShadows?: Value<boolean>;
1796
+ /**
1797
+ * Intensity of the ambient occlusion if present in the 3D model.
1798
+ */
1799
+ modelAmbientOcclusionIntensity?: Value<number, ['zoom']>;
1800
+
1801
+ /**
1802
+ * The transition affecting any changes to this layer’s modelAmbientOcclusionIntensity property.
1803
+ */
1804
+ modelAmbientOcclusionIntensityTransition?: Transition;
1805
+ /**
1806
+ * Strength of the emission. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors). Expressions that depend on measureLight are not supported when using GeoJSON or vector tile as the model layer source.
1807
+ */
1808
+ modelEmissiveStrength?: Value<
1809
+ number,
1810
+ ['feature', 'feature-state', 'measure-light']
1811
+ >;
1812
+
1813
+ /**
1814
+ * The transition affecting any changes to this layer’s modelEmissiveStrength property.
1815
+ */
1816
+ modelEmissiveStrengthTransition?: Transition;
1817
+ /**
1818
+ * Material roughness. Material is fully smooth for value 0, and fully rough for value 1. Affects only layers using batchedModel source.
1819
+ */
1820
+ modelRoughness?: Value<number, ['feature', 'feature-state']>;
1821
+
1822
+ /**
1823
+ * The transition affecting any changes to this layer’s modelRoughness property.
1824
+ */
1825
+ modelRoughnessTransition?: Transition;
1826
+ /**
1827
+ * Emissive strength multiplier along model height (gradient begin, gradient end, value at begin, value at end, gradient curve power (logarithmic scale, curve power = pow(10, val)).
1828
+ */
1829
+ modelHeightBasedEmissiveStrengthMultiplier?: Value<
1830
+ number[],
1831
+ ['feature', 'feature-state', 'measure-light']
1832
+ >;
1833
+
1834
+ /**
1835
+ * The transition affecting any changes to this layer’s modelHeightBasedEmissiveStrengthMultiplier property.
1836
+ */
1837
+ modelHeightBasedEmissiveStrengthMultiplierTransition?: Transition;
1838
+ /**
1839
+ * This parameter defines the range for the fadeOut effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.
1840
+ */
1841
+ modelCutoffFadeRange?: Value<number>;
1842
+ }
1392
1843
  export interface BackgroundLayerStyleProps {
1393
1844
  /**
1394
1845
  * Whether this layer is displayed.
1395
1846
  */
1396
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
1847
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1397
1848
  /**
1398
1849
  * The color with which the background will be drawn.
1399
1850
  *
@@ -1418,12 +1869,23 @@ export interface BackgroundLayerStyleProps {
1418
1869
  * The transition affecting any changes to this layer’s backgroundOpacity property.
1419
1870
  */
1420
1871
  backgroundOpacityTransition?: Transition;
1872
+ /**
1873
+ * Controls the intensity of light emitted on the source features.
1874
+ *
1875
+ * @requires lights
1876
+ */
1877
+ backgroundEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
1878
+
1879
+ /**
1880
+ * The transition affecting any changes to this layer’s backgroundEmissiveStrength property.
1881
+ */
1882
+ backgroundEmissiveStrengthTransition?: Transition;
1421
1883
  }
1422
1884
  export interface SkyLayerStyleProps {
1423
1885
  /**
1424
1886
  * Whether this layer is displayed.
1425
1887
  */
1426
- visibility?: Enum<VisibilityEnum, VisibilityEnumValues>;
1888
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1427
1889
  /**
1428
1890
  * The type of the sky
1429
1891
  */
@@ -1503,7 +1965,7 @@ export interface AtmosphereLayerStyleProps {
1503
1965
  /**
1504
1966
  * The start and end distance range in which fog fades from fully transparent to fully opaque. The distance to the point at the center of the map is defined as zero, so that negative range values are closer to the camera, and positive values are farther away.
1505
1967
  */
1506
- range?: Value<number[], ['zoom']>;
1968
+ range?: Value<number[], ['zoom', 'measure-light']>;
1507
1969
 
1508
1970
  /**
1509
1971
  * The transition affecting any changes to this layer’s range property.
@@ -1512,7 +1974,7 @@ export interface AtmosphereLayerStyleProps {
1512
1974
  /**
1513
1975
  * The color of the atmosphere region immediately below the horizon and within the `range` and above the horizon and within `horizonBlend`. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.
1514
1976
  */
1515
- color?: Value<string, ['zoom']>;
1977
+ color?: Value<string, ['zoom', 'measure-light']>;
1516
1978
 
1517
1979
  /**
1518
1980
  * The transition affecting any changes to this layer’s color property.
@@ -1521,7 +1983,7 @@ export interface AtmosphereLayerStyleProps {
1521
1983
  /**
1522
1984
  * The color of the atmosphere region above the horizon, `highColor` extends further above the horizon than the `color` property and its spread can be controlled with `horizonBlend`. The opacity can be set to `0` to remove the high atmosphere color contribution.
1523
1985
  */
1524
- highColor?: Value<string, ['zoom']>;
1986
+ highColor?: Value<string, ['zoom', 'measure-light']>;
1525
1987
 
1526
1988
  /**
1527
1989
  * The transition affecting any changes to this layer’s highColor property.
@@ -1530,7 +1992,7 @@ export interface AtmosphereLayerStyleProps {
1530
1992
  /**
1531
1993
  * The color of the region above the horizon and after the end of the `horizonBlend` contribution. The opacity can be set to `0` to have a transparent background.
1532
1994
  */
1533
- spaceColor?: Value<string, ['zoom']>;
1995
+ spaceColor?: Value<string, ['zoom', 'measure-light']>;
1534
1996
 
1535
1997
  /**
1536
1998
  * The transition affecting any changes to this layer’s spaceColor property.
@@ -1539,7 +2001,7 @@ export interface AtmosphereLayerStyleProps {
1539
2001
  /**
1540
2002
  * Horizon blend applies a smooth fade from the color of the atmosphere to the color of space. A value of zero leaves a sharp transition from atmosphere to space. Increasing the value blends the color of atmosphere into increasingly high angles of the sky.
1541
2003
  */
1542
- horizonBlend?: Value<number, ['zoom']>;
2004
+ horizonBlend?: Value<number, ['zoom', 'measure-light']>;
1543
2005
 
1544
2006
  /**
1545
2007
  * The transition affecting any changes to this layer’s horizonBlend property.
@@ -1548,29 +2010,29 @@ export interface AtmosphereLayerStyleProps {
1548
2010
  /**
1549
2011
  * A value controlling the star intensity where `0` will show no stars and `1` will show stars at their maximum intensity.
1550
2012
  */
1551
- starIntensity?: Value<number, ['zoom']>;
2013
+ starIntensity?: Value<number, ['zoom', 'measure-light']>;
1552
2014
 
1553
2015
  /**
1554
2016
  * The transition affecting any changes to this layer’s starIntensity property.
1555
2017
  */
1556
2018
  starIntensityTransition?: Transition;
1557
- }
1558
- export interface TerrainLayerStyleProps {
1559
2019
  /**
1560
- * Name of a source of `raster_dem` type to be used for terrain elevation.
2020
+ * An array of two number values, specifying the vertical range, measured in meters, over which the fog should gradually fade out. When both parameters are set to zero, the fog will be rendered without any vertical constraints.
2021
+ */
2022
+ verticalRange?: Value<number[], ['zoom', 'measure-light']>;
2023
+
2024
+ /**
2025
+ * The transition affecting any changes to this layer’s verticalRange property.
1561
2026
  */
1562
- source?: string;
2027
+ verticalRangeTransition?: Transition;
2028
+ }
2029
+ export interface TerrainLayerStyleProps {
1563
2030
  /**
1564
2031
  * Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.
1565
2032
  *
1566
2033
  * @requires source
1567
2034
  */
1568
2035
  exaggeration?: Value<number, ['zoom']>;
1569
-
1570
- /**
1571
- * The transition affecting any changes to this layer’s exaggeration property.
1572
- */
1573
- exaggerationTransition?: Transition;
1574
2036
  }
1575
2037
 
1576
2038
  export type AllLayerStyleProps =
@@ -1582,6 +2044,7 @@ export type AllLayerStyleProps =
1582
2044
  | FillExtrusionLayerStyleProps
1583
2045
  | RasterLayerStyleProps
1584
2046
  | HillshadeLayerStyleProps
2047
+ | ModelLayerStyleProps
1585
2048
  | BackgroundLayerStyleProps
1586
2049
  | SkyLayerStyleProps
1587
2050
  | LightLayerStyleProps