@rnmapbox/maps 10.1.0 → 10.1.1

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 +507 -207
  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
@@ -17,6 +17,7 @@ import com.mapbox.maps.extension.style.layers.generated.HeatmapLayer
17
17
  import com.mapbox.maps.extension.style.layers.generated.HillshadeLayer
18
18
  import com.mapbox.maps.extension.style.atmosphere.generated.Atmosphere
19
19
  import com.mapbox.maps.extension.style.terrain.generated.Terrain
20
+ import com.mapbox.maps.extension.style.layers.generated.ModelLayer
20
21
  // import com.mapbox.maps.extension.style.layers.properties.generated.Visibility
21
22
  import com.mapbox.maps.extension.style.layers.properties.generated.*
22
23
  import com.mapbox.maps.extension.style.types.StyleTransition
@@ -26,6 +27,7 @@ import com.rnmapbox.rnmbx.utils.DownloadMapImageTask.OnAllImagesLoaded
26
27
  import com.rnmapbox.rnmbx.utils.Logger.e
27
28
 
28
29
  import com.rnmapbox.rnmbx.v11compat.light.*;
30
+ import com.rnmapbox.rnmbx.v11compat.stylefactory.*;
29
31
 
30
32
  import java.util.List;
31
33
 
@@ -78,6 +80,10 @@ object RNMBXStyleFactory {
78
80
  }
79
81
  }
80
82
  })
83
+ "fillEmissiveStrength" ->
84
+ setFillEmissiveStrength(layer, styleValue)
85
+ "fillEmissiveStrengthTransition" ->
86
+ setFillEmissiveStrengthTransition(layer, styleValue)
81
87
  }
82
88
  }
83
89
  }
@@ -150,6 +156,10 @@ object RNMBXStyleFactory {
150
156
  setLineGradient(layer, styleValue)
151
157
  "lineTrimOffset" ->
152
158
  setLineTrimOffset(layer, styleValue)
159
+ "lineEmissiveStrength" ->
160
+ setLineEmissiveStrength(layer, styleValue)
161
+ "lineEmissiveStrengthTransition" ->
162
+ setLineEmissiveStrengthTransition(layer, styleValue)
153
163
  }
154
164
  }
155
165
  }
@@ -308,6 +318,28 @@ object RNMBXStyleFactory {
308
318
  setTextTranslateTransition(layer, styleValue)
309
319
  "textTranslateAnchor" ->
310
320
  setTextTranslateAnchor(layer, styleValue)
321
+ "symbolZElevate" ->
322
+ setSymbolZElevate(layer, styleValue)
323
+ "iconEmissiveStrength" ->
324
+ setIconEmissiveStrength(layer, styleValue)
325
+ "iconEmissiveStrengthTransition" ->
326
+ setIconEmissiveStrengthTransition(layer, styleValue)
327
+ "textEmissiveStrength" ->
328
+ setTextEmissiveStrength(layer, styleValue)
329
+ "textEmissiveStrengthTransition" ->
330
+ setTextEmissiveStrengthTransition(layer, styleValue)
331
+ "iconImageCrossFade" ->
332
+ style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
333
+ override fun onAllImagesLoaded() {
334
+ try {
335
+ setIconImageCrossFade(layer, styleValue)
336
+ } catch (exception: RuntimeException) {
337
+ e("RNMBXSymbol",String.format("Exception failed during setIconImageCrossFade: %s", exception.message))
338
+ }
339
+ }
340
+ })
341
+ "iconImageCrossFadeTransition" ->
342
+ setIconImageCrossFadeTransition(layer, styleValue)
311
343
  }
312
344
  }
313
345
  }
@@ -364,6 +396,10 @@ object RNMBXStyleFactory {
364
396
  setCircleStrokeOpacity(layer, styleValue)
365
397
  "circleStrokeOpacityTransition" ->
366
398
  setCircleStrokeOpacityTransition(layer, styleValue)
399
+ "circleEmissiveStrength" ->
400
+ setCircleEmissiveStrength(layer, styleValue)
401
+ "circleEmissiveStrengthTransition" ->
402
+ setCircleEmissiveStrengthTransition(layer, styleValue)
367
403
  }
368
404
  }
369
405
  }
@@ -446,6 +482,46 @@ object RNMBXStyleFactory {
446
482
  setFillExtrusionBaseTransition(layer, styleValue)
447
483
  "fillExtrusionVerticalGradient" ->
448
484
  setFillExtrusionVerticalGradient(layer, styleValue)
485
+ "fillExtrusionRoundedRoof" ->
486
+ setFillExtrusionRoundedRoof(layer, styleValue)
487
+ "fillExtrusionAmbientOcclusionWallRadius" ->
488
+ setFillExtrusionAmbientOcclusionWallRadius(layer, styleValue)
489
+ "fillExtrusionAmbientOcclusionWallRadiusTransition" ->
490
+ setFillExtrusionAmbientOcclusionWallRadiusTransition(layer, styleValue)
491
+ "fillExtrusionAmbientOcclusionGroundRadius" ->
492
+ setFillExtrusionAmbientOcclusionGroundRadius(layer, styleValue)
493
+ "fillExtrusionAmbientOcclusionGroundRadiusTransition" ->
494
+ setFillExtrusionAmbientOcclusionGroundRadiusTransition(layer, styleValue)
495
+ "fillExtrusionAmbientOcclusionGroundAttenuation" ->
496
+ setFillExtrusionAmbientOcclusionGroundAttenuation(layer, styleValue)
497
+ "fillExtrusionAmbientOcclusionGroundAttenuationTransition" ->
498
+ setFillExtrusionAmbientOcclusionGroundAttenuationTransition(layer, styleValue)
499
+ "fillExtrusionFloodLightColor" ->
500
+ setFillExtrusionFloodLightColor(layer, styleValue)
501
+ "fillExtrusionFloodLightColorTransition" ->
502
+ setFillExtrusionFloodLightColorTransition(layer, styleValue)
503
+ "fillExtrusionFloodLightIntensity" ->
504
+ setFillExtrusionFloodLightIntensity(layer, styleValue)
505
+ "fillExtrusionFloodLightIntensityTransition" ->
506
+ setFillExtrusionFloodLightIntensityTransition(layer, styleValue)
507
+ "fillExtrusionFloodLightWallRadius" ->
508
+ setFillExtrusionFloodLightWallRadius(layer, styleValue)
509
+ "fillExtrusionFloodLightWallRadiusTransition" ->
510
+ setFillExtrusionFloodLightWallRadiusTransition(layer, styleValue)
511
+ "fillExtrusionFloodLightGroundRadius" ->
512
+ setFillExtrusionFloodLightGroundRadius(layer, styleValue)
513
+ "fillExtrusionFloodLightGroundRadiusTransition" ->
514
+ setFillExtrusionFloodLightGroundRadiusTransition(layer, styleValue)
515
+ "fillExtrusionFloodLightGroundAttenuation" ->
516
+ setFillExtrusionFloodLightGroundAttenuation(layer, styleValue)
517
+ "fillExtrusionFloodLightGroundAttenuationTransition" ->
518
+ setFillExtrusionFloodLightGroundAttenuationTransition(layer, styleValue)
519
+ "fillExtrusionVerticalScale" ->
520
+ setFillExtrusionVerticalScale(layer, styleValue)
521
+ "fillExtrusionVerticalScaleTransition" ->
522
+ setFillExtrusionVerticalScaleTransition(layer, styleValue)
523
+ "fillExtrusionCutoffFadeRange" ->
524
+ setFillExtrusionCutoffFadeRange(layer, styleValue)
449
525
  }
450
526
  }
451
527
  }
@@ -490,6 +566,16 @@ object RNMBXStyleFactory {
490
566
  setRasterResampling(layer, styleValue)
491
567
  "rasterFadeDuration" ->
492
568
  setRasterFadeDuration(layer, styleValue)
569
+ "rasterColor" ->
570
+ setRasterColor(layer, styleValue)
571
+ "rasterColorMix" ->
572
+ setRasterColorMix(layer, styleValue)
573
+ "rasterColorMixTransition" ->
574
+ setRasterColorMixTransition(layer, styleValue)
575
+ "rasterColorRange" ->
576
+ setRasterColorRange(layer, styleValue)
577
+ "rasterColorRangeTransition" ->
578
+ setRasterColorRangeTransition(layer, styleValue)
493
579
  }
494
580
  }
495
581
  }
@@ -529,6 +615,72 @@ object RNMBXStyleFactory {
529
615
  }
530
616
  }
531
617
  }
618
+ fun setModelLayerStyle(layer: ModelLayer, style: RNMBXStyle ) {
619
+ val styleKeys = style.allStyleKeys
620
+
621
+ if (styleKeys.isEmpty()) {
622
+ return
623
+ }
624
+
625
+ for (styleKey in styleKeys) {
626
+ val styleValue = style.getStyleValueForKey(styleKey)
627
+
628
+ when (styleKey) {
629
+ "visibility" ->
630
+ setVisibility(layer, styleValue)
631
+ "modelId" ->
632
+ setModelId(layer, styleValue)
633
+ "modelOpacity" ->
634
+ setModelOpacity(layer, styleValue)
635
+ "modelOpacityTransition" ->
636
+ setModelOpacityTransition(layer, styleValue)
637
+ "modelRotation" ->
638
+ setModelRotation(layer, styleValue)
639
+ "modelRotationTransition" ->
640
+ setModelRotationTransition(layer, styleValue)
641
+ "modelScale" ->
642
+ setModelScale(layer, styleValue)
643
+ "modelScaleTransition" ->
644
+ setModelScaleTransition(layer, styleValue)
645
+ "modelTranslation" ->
646
+ setModelTranslation(layer, styleValue)
647
+ "modelTranslationTransition" ->
648
+ setModelTranslationTransition(layer, styleValue)
649
+ "modelColor" ->
650
+ setModelColor(layer, styleValue)
651
+ "modelColorTransition" ->
652
+ setModelColorTransition(layer, styleValue)
653
+ "modelColorMixIntensity" ->
654
+ setModelColorMixIntensity(layer, styleValue)
655
+ "modelColorMixIntensityTransition" ->
656
+ setModelColorMixIntensityTransition(layer, styleValue)
657
+ "modelType" ->
658
+ setModelType(layer, styleValue)
659
+ "modelCastShadows" ->
660
+ setModelCastShadows(layer, styleValue)
661
+ "modelReceiveShadows" ->
662
+ setModelReceiveShadows(layer, styleValue)
663
+ "modelAmbientOcclusionIntensity" ->
664
+ setModelAmbientOcclusionIntensity(layer, styleValue)
665
+ "modelAmbientOcclusionIntensityTransition" ->
666
+ setModelAmbientOcclusionIntensityTransition(layer, styleValue)
667
+ "modelEmissiveStrength" ->
668
+ setModelEmissiveStrength(layer, styleValue)
669
+ "modelEmissiveStrengthTransition" ->
670
+ setModelEmissiveStrengthTransition(layer, styleValue)
671
+ "modelRoughness" ->
672
+ setModelRoughness(layer, styleValue)
673
+ "modelRoughnessTransition" ->
674
+ setModelRoughnessTransition(layer, styleValue)
675
+ "modelHeightBasedEmissiveStrengthMultiplier" ->
676
+ setModelHeightBasedEmissiveStrengthMultiplier(layer, styleValue)
677
+ "modelHeightBasedEmissiveStrengthMultiplierTransition" ->
678
+ setModelHeightBasedEmissiveStrengthMultiplierTransition(layer, styleValue)
679
+ "modelCutoffFadeRange" ->
680
+ setModelCutoffFadeRange(layer, styleValue)
681
+ }
682
+ }
683
+ }
532
684
  fun setBackgroundLayerStyle(layer: BackgroundLayer, style: RNMBXStyle ) {
533
685
  val styleKeys = style.allStyleKeys
534
686
 
@@ -560,6 +712,10 @@ object RNMBXStyleFactory {
560
712
  setBackgroundOpacity(layer, styleValue)
561
713
  "backgroundOpacityTransition" ->
562
714
  setBackgroundOpacityTransition(layer, styleValue)
715
+ "backgroundEmissiveStrength" ->
716
+ setBackgroundEmissiveStrength(layer, styleValue)
717
+ "backgroundEmissiveStrengthTransition" ->
718
+ setBackgroundEmissiveStrengthTransition(layer, styleValue)
563
719
  }
564
720
  }
565
721
  }
@@ -662,6 +818,10 @@ object RNMBXStyleFactory {
662
818
  setStarIntensity(layer, styleValue)
663
819
  "starIntensityTransition" ->
664
820
  setStarIntensityTransition(layer, styleValue)
821
+ "verticalRange" ->
822
+ setVerticalRange(layer, styleValue)
823
+ "verticalRangeTransition" ->
824
+ setVerticalRangeTransition(layer, styleValue)
665
825
  }
666
826
  }
667
827
  }
@@ -866,6 +1026,32 @@ object RNMBXStyleFactory {
866
1026
  }
867
1027
  }
868
1028
 
1029
+ fun setFillEmissiveStrength(layer: FillLayer, styleValue: RNMBXStyleValue ) {
1030
+ if (styleValue.isExpression()) {
1031
+ val expression = styleValue.getExpression()
1032
+ if (expression != null) {
1033
+ layer.fillEmissiveStrength(expression)
1034
+ } else {
1035
+ e("RNMBXFill", "Expression for fillEmissiveStrength is null")
1036
+ }
1037
+ } else {
1038
+ val value = styleValue.getDouble(VALUE_KEY)
1039
+ if (value != null) {
1040
+ layer.fillEmissiveStrength(value)
1041
+ } else {
1042
+ e("RNMBXFill", "value for fillEmissiveStrength is null")
1043
+ }
1044
+ }
1045
+ }
1046
+
1047
+
1048
+ fun setFillEmissiveStrengthTransition(layer: FillLayer, styleValue: RNMBXStyleValue) {
1049
+ val transition = styleValue.transition
1050
+ if (transition != null) {
1051
+ layer.fillEmissiveStrengthTransition(transition);
1052
+ }
1053
+ }
1054
+
869
1055
  fun setLineCap(layer: LineLayer, styleValue: RNMBXStyleValue ) {
870
1056
  if (styleValue.isExpression()) {
871
1057
  val expression = styleValue.getExpression()
@@ -1221,6 +1407,32 @@ object RNMBXStyleFactory {
1221
1407
  }
1222
1408
  }
1223
1409
 
1410
+ fun setLineEmissiveStrength(layer: LineLayer, styleValue: RNMBXStyleValue ) {
1411
+ if (styleValue.isExpression()) {
1412
+ val expression = styleValue.getExpression()
1413
+ if (expression != null) {
1414
+ layer.lineEmissiveStrength(expression)
1415
+ } else {
1416
+ e("RNMBXLine", "Expression for lineEmissiveStrength is null")
1417
+ }
1418
+ } else {
1419
+ val value = styleValue.getDouble(VALUE_KEY)
1420
+ if (value != null) {
1421
+ layer.lineEmissiveStrength(value)
1422
+ } else {
1423
+ e("RNMBXLine", "value for lineEmissiveStrength is null")
1424
+ }
1425
+ }
1426
+ }
1427
+
1428
+
1429
+ fun setLineEmissiveStrengthTransition(layer: LineLayer, styleValue: RNMBXStyleValue) {
1430
+ val transition = styleValue.transition
1431
+ if (transition != null) {
1432
+ layer.lineEmissiveStrengthTransition(transition);
1433
+ }
1434
+ }
1435
+
1224
1436
  fun setSymbolPlacement(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
1225
1437
  if (styleValue.isExpression()) {
1226
1438
  val expression = styleValue.getExpression()
@@ -2255,6 +2467,102 @@ object RNMBXStyleFactory {
2255
2467
  }
2256
2468
  }
2257
2469
 
2470
+ fun setSymbolZElevate(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
2471
+ if (styleValue.isExpression()) {
2472
+ val expression = styleValue.getExpression()
2473
+ if (expression != null) {
2474
+ layer.symbolZElevate(expression)
2475
+ } else {
2476
+ e("RNMBXSymbol", "Expression for symbolZElevate is null")
2477
+ }
2478
+ } else {
2479
+ val value = styleValue.getBoolean(VALUE_KEY)
2480
+ if (value != null) {
2481
+ layer.symbolZElevate(value)
2482
+ } else {
2483
+ e("RNMBXSymbol", "value for symbolZElevate is null")
2484
+ }
2485
+ }
2486
+ }
2487
+
2488
+ fun setIconEmissiveStrength(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
2489
+ if (styleValue.isExpression()) {
2490
+ val expression = styleValue.getExpression()
2491
+ if (expression != null) {
2492
+ layer.iconEmissiveStrength(expression)
2493
+ } else {
2494
+ e("RNMBXSymbol", "Expression for iconEmissiveStrength is null")
2495
+ }
2496
+ } else {
2497
+ val value = styleValue.getDouble(VALUE_KEY)
2498
+ if (value != null) {
2499
+ layer.iconEmissiveStrength(value)
2500
+ } else {
2501
+ e("RNMBXSymbol", "value for iconEmissiveStrength is null")
2502
+ }
2503
+ }
2504
+ }
2505
+
2506
+
2507
+ fun setIconEmissiveStrengthTransition(layer: SymbolLayer, styleValue: RNMBXStyleValue) {
2508
+ val transition = styleValue.transition
2509
+ if (transition != null) {
2510
+ layer.iconEmissiveStrengthTransition(transition);
2511
+ }
2512
+ }
2513
+
2514
+ fun setTextEmissiveStrength(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
2515
+ if (styleValue.isExpression()) {
2516
+ val expression = styleValue.getExpression()
2517
+ if (expression != null) {
2518
+ layer.textEmissiveStrength(expression)
2519
+ } else {
2520
+ e("RNMBXSymbol", "Expression for textEmissiveStrength is null")
2521
+ }
2522
+ } else {
2523
+ val value = styleValue.getDouble(VALUE_KEY)
2524
+ if (value != null) {
2525
+ layer.textEmissiveStrength(value)
2526
+ } else {
2527
+ e("RNMBXSymbol", "value for textEmissiveStrength is null")
2528
+ }
2529
+ }
2530
+ }
2531
+
2532
+
2533
+ fun setTextEmissiveStrengthTransition(layer: SymbolLayer, styleValue: RNMBXStyleValue) {
2534
+ val transition = styleValue.transition
2535
+ if (transition != null) {
2536
+ layer.textEmissiveStrengthTransition(transition);
2537
+ }
2538
+ }
2539
+
2540
+ fun setIconImageCrossFade(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
2541
+ if (styleValue.isExpression()) {
2542
+ val expression = styleValue.getExpression()
2543
+ if (expression != null) {
2544
+ layer.iconImageCrossFade(expression)
2545
+ } else {
2546
+ e("RNMBXSymbol", "Expression for iconImageCrossFade is null")
2547
+ }
2548
+ } else {
2549
+ val value = styleValue.getDouble(VALUE_KEY)
2550
+ if (value != null) {
2551
+ layer.iconImageCrossFade(value)
2552
+ } else {
2553
+ e("RNMBXSymbol", "value for iconImageCrossFade is null")
2554
+ }
2555
+ }
2556
+ }
2557
+
2558
+
2559
+ fun setIconImageCrossFadeTransition(layer: SymbolLayer, styleValue: RNMBXStyleValue) {
2560
+ val transition = styleValue.transition
2561
+ if (transition != null) {
2562
+ layer.iconImageCrossFadeTransition(transition);
2563
+ }
2564
+ }
2565
+
2258
2566
  fun setCircleSortKey(layer: CircleLayer, styleValue: RNMBXStyleValue ) {
2259
2567
  if (styleValue.isExpression()) {
2260
2568
  val expression = styleValue.getExpression()
@@ -2524,6 +2832,32 @@ object RNMBXStyleFactory {
2524
2832
  }
2525
2833
  }
2526
2834
 
2835
+ fun setCircleEmissiveStrength(layer: CircleLayer, styleValue: RNMBXStyleValue ) {
2836
+ if (styleValue.isExpression()) {
2837
+ val expression = styleValue.getExpression()
2838
+ if (expression != null) {
2839
+ layer.circleEmissiveStrength(expression)
2840
+ } else {
2841
+ e("RNMBXCircle", "Expression for circleEmissiveStrength is null")
2842
+ }
2843
+ } else {
2844
+ val value = styleValue.getDouble(VALUE_KEY)
2845
+ if (value != null) {
2846
+ layer.circleEmissiveStrength(value)
2847
+ } else {
2848
+ e("RNMBXCircle", "value for circleEmissiveStrength is null")
2849
+ }
2850
+ }
2851
+ }
2852
+
2853
+
2854
+ fun setCircleEmissiveStrengthTransition(layer: CircleLayer, styleValue: RNMBXStyleValue) {
2855
+ val transition = styleValue.transition
2856
+ if (transition != null) {
2857
+ layer.circleEmissiveStrengthTransition(transition);
2858
+ }
2859
+ }
2860
+
2527
2861
  fun setVisibility(layer: HeatmapLayer, styleValue: RNMBXStyleValue ) {
2528
2862
  layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
2529
2863
  }
@@ -2829,333 +3163,1022 @@ object RNMBXStyleFactory {
2829
3163
  }
2830
3164
  }
2831
3165
 
2832
- fun setVisibility(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
2833
- layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
2834
- }
2835
-
2836
- fun setRasterOpacity(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3166
+ fun setFillExtrusionRoundedRoof(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
2837
3167
  if (styleValue.isExpression()) {
2838
3168
  val expression = styleValue.getExpression()
2839
3169
  if (expression != null) {
2840
- layer.rasterOpacity(expression)
3170
+ layer.fillExtrusionRoundedRoof(expression)
2841
3171
  } else {
2842
- e("RNMBXRaster", "Expression for rasterOpacity is null")
3172
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionRoundedRoof is null")
2843
3173
  }
2844
3174
  } else {
2845
- val value = styleValue.getDouble(VALUE_KEY)
3175
+ val value = styleValue.getBoolean(VALUE_KEY)
2846
3176
  if (value != null) {
2847
- layer.rasterOpacity(value)
3177
+ layer.fillExtrusionRoundedRoof(value)
2848
3178
  } else {
2849
- e("RNMBXRaster", "value for rasterOpacity is null")
3179
+ e("RNMBXFillExtrusion", "value for fillExtrusionRoundedRoof is null")
2850
3180
  }
2851
3181
  }
2852
3182
  }
2853
3183
 
2854
-
2855
- fun setRasterOpacityTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
2856
- val transition = styleValue.transition
2857
- if (transition != null) {
2858
- layer.rasterOpacityTransition(transition);
2859
- }
2860
- }
2861
-
2862
- fun setRasterHueRotate(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3184
+ fun setFillExtrusionAmbientOcclusionWallRadius(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
2863
3185
  if (styleValue.isExpression()) {
2864
3186
  val expression = styleValue.getExpression()
2865
3187
  if (expression != null) {
2866
- layer.rasterHueRotate(expression)
3188
+ layer.fillExtrusionAmbientOcclusionWallRadius(expression)
2867
3189
  } else {
2868
- e("RNMBXRaster", "Expression for rasterHueRotate is null")
3190
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionAmbientOcclusionWallRadius is null")
2869
3191
  }
2870
3192
  } else {
2871
3193
  val value = styleValue.getDouble(VALUE_KEY)
2872
3194
  if (value != null) {
2873
- layer.rasterHueRotate(value)
3195
+ layer.fillExtrusionAmbientOcclusionWallRadius(value)
2874
3196
  } else {
2875
- e("RNMBXRaster", "value for rasterHueRotate is null")
3197
+ e("RNMBXFillExtrusion", "value for fillExtrusionAmbientOcclusionWallRadius is null")
2876
3198
  }
2877
3199
  }
2878
3200
  }
2879
3201
 
2880
3202
 
2881
- fun setRasterHueRotateTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3203
+ fun setFillExtrusionAmbientOcclusionWallRadiusTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
2882
3204
  val transition = styleValue.transition
2883
3205
  if (transition != null) {
2884
- layer.rasterHueRotateTransition(transition);
3206
+ layer.fillExtrusionAmbientOcclusionWallRadiusTransition(transition);
2885
3207
  }
2886
3208
  }
2887
3209
 
2888
- fun setRasterBrightnessMin(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3210
+ fun setFillExtrusionAmbientOcclusionGroundRadius(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
2889
3211
  if (styleValue.isExpression()) {
2890
3212
  val expression = styleValue.getExpression()
2891
3213
  if (expression != null) {
2892
- layer.rasterBrightnessMin(expression)
3214
+ layer.fillExtrusionAmbientOcclusionGroundRadius(expression)
2893
3215
  } else {
2894
- e("RNMBXRaster", "Expression for rasterBrightnessMin is null")
3216
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionAmbientOcclusionGroundRadius is null")
2895
3217
  }
2896
3218
  } else {
2897
3219
  val value = styleValue.getDouble(VALUE_KEY)
2898
3220
  if (value != null) {
2899
- layer.rasterBrightnessMin(value)
3221
+ layer.fillExtrusionAmbientOcclusionGroundRadius(value)
2900
3222
  } else {
2901
- e("RNMBXRaster", "value for rasterBrightnessMin is null")
3223
+ e("RNMBXFillExtrusion", "value for fillExtrusionAmbientOcclusionGroundRadius is null")
2902
3224
  }
2903
3225
  }
2904
3226
  }
2905
3227
 
2906
3228
 
2907
- fun setRasterBrightnessMinTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3229
+ fun setFillExtrusionAmbientOcclusionGroundRadiusTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
2908
3230
  val transition = styleValue.transition
2909
3231
  if (transition != null) {
2910
- layer.rasterBrightnessMinTransition(transition);
3232
+ layer.fillExtrusionAmbientOcclusionGroundRadiusTransition(transition);
2911
3233
  }
2912
3234
  }
2913
3235
 
2914
- fun setRasterBrightnessMax(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3236
+ fun setFillExtrusionAmbientOcclusionGroundAttenuation(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
2915
3237
  if (styleValue.isExpression()) {
2916
3238
  val expression = styleValue.getExpression()
2917
3239
  if (expression != null) {
2918
- layer.rasterBrightnessMax(expression)
3240
+ layer.fillExtrusionAmbientOcclusionGroundAttenuation(expression)
2919
3241
  } else {
2920
- e("RNMBXRaster", "Expression for rasterBrightnessMax is null")
3242
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionAmbientOcclusionGroundAttenuation is null")
2921
3243
  }
2922
3244
  } else {
2923
3245
  val value = styleValue.getDouble(VALUE_KEY)
2924
3246
  if (value != null) {
2925
- layer.rasterBrightnessMax(value)
3247
+ layer.fillExtrusionAmbientOcclusionGroundAttenuation(value)
2926
3248
  } else {
2927
- e("RNMBXRaster", "value for rasterBrightnessMax is null")
3249
+ e("RNMBXFillExtrusion", "value for fillExtrusionAmbientOcclusionGroundAttenuation is null")
2928
3250
  }
2929
3251
  }
2930
3252
  }
2931
3253
 
2932
3254
 
2933
- fun setRasterBrightnessMaxTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3255
+ fun setFillExtrusionAmbientOcclusionGroundAttenuationTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
2934
3256
  val transition = styleValue.transition
2935
3257
  if (transition != null) {
2936
- layer.rasterBrightnessMaxTransition(transition);
3258
+ layer.fillExtrusionAmbientOcclusionGroundAttenuationTransition(transition);
2937
3259
  }
2938
3260
  }
2939
3261
 
2940
- fun setRasterSaturation(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3262
+ fun setFillExtrusionFloodLightColor(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
2941
3263
  if (styleValue.isExpression()) {
2942
3264
  val expression = styleValue.getExpression()
2943
3265
  if (expression != null) {
2944
- layer.rasterSaturation(expression)
3266
+ layer.fillExtrusionFloodLightColor(expression)
2945
3267
  } else {
2946
- e("RNMBXRaster", "Expression for rasterSaturation is null")
3268
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionFloodLightColor is null")
2947
3269
  }
2948
3270
  } else {
2949
- val value = styleValue.getDouble(VALUE_KEY)
3271
+ val value = styleValue.getInt(VALUE_KEY)
2950
3272
  if (value != null) {
2951
- layer.rasterSaturation(value)
3273
+ layer.fillExtrusionFloodLightColor(value)
2952
3274
  } else {
2953
- e("RNMBXRaster", "value for rasterSaturation is null")
3275
+ e("RNMBXFillExtrusion", "value for fillExtrusionFloodLightColor is null")
2954
3276
  }
2955
3277
  }
2956
3278
  }
2957
3279
 
2958
3280
 
2959
- fun setRasterSaturationTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3281
+ fun setFillExtrusionFloodLightColorTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
2960
3282
  val transition = styleValue.transition
2961
3283
  if (transition != null) {
2962
- layer.rasterSaturationTransition(transition);
3284
+ layer.fillExtrusionFloodLightColorTransition(transition);
2963
3285
  }
2964
3286
  }
2965
3287
 
2966
- fun setRasterContrast(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3288
+ fun setFillExtrusionFloodLightIntensity(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
2967
3289
  if (styleValue.isExpression()) {
2968
3290
  val expression = styleValue.getExpression()
2969
3291
  if (expression != null) {
2970
- layer.rasterContrast(expression)
3292
+ layer.fillExtrusionFloodLightIntensity(expression)
2971
3293
  } else {
2972
- e("RNMBXRaster", "Expression for rasterContrast is null")
3294
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionFloodLightIntensity is null")
2973
3295
  }
2974
3296
  } else {
2975
3297
  val value = styleValue.getDouble(VALUE_KEY)
2976
3298
  if (value != null) {
2977
- layer.rasterContrast(value)
3299
+ layer.fillExtrusionFloodLightIntensity(value)
2978
3300
  } else {
2979
- e("RNMBXRaster", "value for rasterContrast is null")
3301
+ e("RNMBXFillExtrusion", "value for fillExtrusionFloodLightIntensity is null")
2980
3302
  }
2981
3303
  }
2982
3304
  }
2983
3305
 
2984
3306
 
2985
- fun setRasterContrastTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3307
+ fun setFillExtrusionFloodLightIntensityTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
2986
3308
  val transition = styleValue.transition
2987
3309
  if (transition != null) {
2988
- layer.rasterContrastTransition(transition);
3310
+ layer.fillExtrusionFloodLightIntensityTransition(transition);
2989
3311
  }
2990
3312
  }
2991
3313
 
2992
- fun setRasterResampling(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3314
+ fun setFillExtrusionFloodLightWallRadius(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
2993
3315
  if (styleValue.isExpression()) {
2994
3316
  val expression = styleValue.getExpression()
2995
3317
  if (expression != null) {
2996
- layer.rasterResampling(expression)
3318
+ layer.fillExtrusionFloodLightWallRadius(expression)
2997
3319
  } else {
2998
- e("RNMBXRaster", "Expression for rasterResampling is null")
3320
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionFloodLightWallRadius is null")
2999
3321
  }
3000
3322
  } else {
3001
- layer.rasterResampling(RasterResampling.valueOf(styleValue.getEnumName()))
3323
+ val value = styleValue.getDouble(VALUE_KEY)
3324
+ if (value != null) {
3325
+ layer.fillExtrusionFloodLightWallRadius(value)
3326
+ } else {
3327
+ e("RNMBXFillExtrusion", "value for fillExtrusionFloodLightWallRadius is null")
3328
+ }
3002
3329
  }
3003
3330
  }
3004
3331
 
3005
- fun setRasterFadeDuration(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3332
+
3333
+ fun setFillExtrusionFloodLightWallRadiusTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
3334
+ val transition = styleValue.transition
3335
+ if (transition != null) {
3336
+ layer.fillExtrusionFloodLightWallRadiusTransition(transition);
3337
+ }
3338
+ }
3339
+
3340
+ fun setFillExtrusionFloodLightGroundRadius(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
3006
3341
  if (styleValue.isExpression()) {
3007
3342
  val expression = styleValue.getExpression()
3008
3343
  if (expression != null) {
3009
- layer.rasterFadeDuration(expression)
3344
+ layer.fillExtrusionFloodLightGroundRadius(expression)
3010
3345
  } else {
3011
- e("RNMBXRaster", "Expression for rasterFadeDuration is null")
3346
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionFloodLightGroundRadius is null")
3012
3347
  }
3013
3348
  } else {
3014
3349
  val value = styleValue.getDouble(VALUE_KEY)
3015
3350
  if (value != null) {
3016
- layer.rasterFadeDuration(value)
3351
+ layer.fillExtrusionFloodLightGroundRadius(value)
3017
3352
  } else {
3018
- e("RNMBXRaster", "value for rasterFadeDuration is null")
3353
+ e("RNMBXFillExtrusion", "value for fillExtrusionFloodLightGroundRadius is null")
3019
3354
  }
3020
3355
  }
3021
3356
  }
3022
3357
 
3023
- fun setVisibility(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3024
- layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
3358
+
3359
+ fun setFillExtrusionFloodLightGroundRadiusTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
3360
+ val transition = styleValue.transition
3361
+ if (transition != null) {
3362
+ layer.fillExtrusionFloodLightGroundRadiusTransition(transition);
3363
+ }
3025
3364
  }
3026
3365
 
3027
- fun setHillshadeIlluminationDirection(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3366
+ fun setFillExtrusionFloodLightGroundAttenuation(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
3028
3367
  if (styleValue.isExpression()) {
3029
3368
  val expression = styleValue.getExpression()
3030
3369
  if (expression != null) {
3031
- layer.hillshadeIlluminationDirection(expression)
3370
+ layer.fillExtrusionFloodLightGroundAttenuation(expression)
3032
3371
  } else {
3033
- e("RNMBXHillshade", "Expression for hillshadeIlluminationDirection is null")
3372
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionFloodLightGroundAttenuation is null")
3034
3373
  }
3035
3374
  } else {
3036
3375
  val value = styleValue.getDouble(VALUE_KEY)
3037
3376
  if (value != null) {
3038
- layer.hillshadeIlluminationDirection(value)
3377
+ layer.fillExtrusionFloodLightGroundAttenuation(value)
3039
3378
  } else {
3040
- e("RNMBXHillshade", "value for hillshadeIlluminationDirection is null")
3379
+ e("RNMBXFillExtrusion", "value for fillExtrusionFloodLightGroundAttenuation is null")
3041
3380
  }
3042
3381
  }
3043
3382
  }
3044
3383
 
3045
- fun setHillshadeIlluminationAnchor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3046
- if (styleValue.isExpression()) {
3047
- val expression = styleValue.getExpression()
3048
- if (expression != null) {
3049
- layer.hillshadeIlluminationAnchor(expression)
3050
- } else {
3051
- e("RNMBXHillshade", "Expression for hillshadeIlluminationAnchor is null")
3052
- }
3053
- } else {
3054
- layer.hillshadeIlluminationAnchor(HillshadeIlluminationAnchor.valueOf(styleValue.getEnumName()))
3384
+
3385
+ fun setFillExtrusionFloodLightGroundAttenuationTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
3386
+ val transition = styleValue.transition
3387
+ if (transition != null) {
3388
+ layer.fillExtrusionFloodLightGroundAttenuationTransition(transition);
3055
3389
  }
3056
3390
  }
3057
3391
 
3058
- fun setHillshadeExaggeration(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3392
+ fun setFillExtrusionVerticalScale(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
3059
3393
  if (styleValue.isExpression()) {
3060
3394
  val expression = styleValue.getExpression()
3061
3395
  if (expression != null) {
3062
- layer.hillshadeExaggeration(expression)
3396
+ layer.fillExtrusionVerticalScale(expression)
3063
3397
  } else {
3064
- e("RNMBXHillshade", "Expression for hillshadeExaggeration is null")
3398
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionVerticalScale is null")
3065
3399
  }
3066
3400
  } else {
3067
3401
  val value = styleValue.getDouble(VALUE_KEY)
3068
3402
  if (value != null) {
3069
- layer.hillshadeExaggeration(value)
3403
+ layer.fillExtrusionVerticalScale(value)
3070
3404
  } else {
3071
- e("RNMBXHillshade", "value for hillshadeExaggeration is null")
3405
+ e("RNMBXFillExtrusion", "value for fillExtrusionVerticalScale is null")
3072
3406
  }
3073
3407
  }
3074
3408
  }
3075
3409
 
3076
3410
 
3077
- fun setHillshadeExaggerationTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
3411
+ fun setFillExtrusionVerticalScaleTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
3078
3412
  val transition = styleValue.transition
3079
3413
  if (transition != null) {
3080
- layer.hillshadeExaggerationTransition(transition);
3414
+ layer.fillExtrusionVerticalScaleTransition(transition);
3081
3415
  }
3082
3416
  }
3083
3417
 
3084
- fun setHillshadeShadowColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3418
+ fun setFillExtrusionCutoffFadeRange(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
3419
+ if (styleValue.isExpression()) {
3420
+ val expression = styleValue.getExpression()
3421
+ if (expression != null) {
3422
+ layer.fillExtrusionCutoffFadeRange(expression)
3423
+ } else {
3424
+ e("RNMBXFillExtrusion", "Expression for fillExtrusionCutoffFadeRange is null")
3425
+ }
3426
+ } else {
3427
+ val value = styleValue.getDouble(VALUE_KEY)
3428
+ if (value != null) {
3429
+ layer.fillExtrusionCutoffFadeRange(value)
3430
+ } else {
3431
+ e("RNMBXFillExtrusion", "value for fillExtrusionCutoffFadeRange is null")
3432
+ }
3433
+ }
3434
+ }
3435
+
3436
+ fun setVisibility(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3437
+ layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
3438
+ }
3439
+
3440
+ fun setRasterOpacity(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3441
+ if (styleValue.isExpression()) {
3442
+ val expression = styleValue.getExpression()
3443
+ if (expression != null) {
3444
+ layer.rasterOpacity(expression)
3445
+ } else {
3446
+ e("RNMBXRaster", "Expression for rasterOpacity is null")
3447
+ }
3448
+ } else {
3449
+ val value = styleValue.getDouble(VALUE_KEY)
3450
+ if (value != null) {
3451
+ layer.rasterOpacity(value)
3452
+ } else {
3453
+ e("RNMBXRaster", "value for rasterOpacity is null")
3454
+ }
3455
+ }
3456
+ }
3457
+
3458
+
3459
+ fun setRasterOpacityTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3460
+ val transition = styleValue.transition
3461
+ if (transition != null) {
3462
+ layer.rasterOpacityTransition(transition);
3463
+ }
3464
+ }
3465
+
3466
+ fun setRasterHueRotate(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3467
+ if (styleValue.isExpression()) {
3468
+ val expression = styleValue.getExpression()
3469
+ if (expression != null) {
3470
+ layer.rasterHueRotate(expression)
3471
+ } else {
3472
+ e("RNMBXRaster", "Expression for rasterHueRotate is null")
3473
+ }
3474
+ } else {
3475
+ val value = styleValue.getDouble(VALUE_KEY)
3476
+ if (value != null) {
3477
+ layer.rasterHueRotate(value)
3478
+ } else {
3479
+ e("RNMBXRaster", "value for rasterHueRotate is null")
3480
+ }
3481
+ }
3482
+ }
3483
+
3484
+
3485
+ fun setRasterHueRotateTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3486
+ val transition = styleValue.transition
3487
+ if (transition != null) {
3488
+ layer.rasterHueRotateTransition(transition);
3489
+ }
3490
+ }
3491
+
3492
+ fun setRasterBrightnessMin(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3493
+ if (styleValue.isExpression()) {
3494
+ val expression = styleValue.getExpression()
3495
+ if (expression != null) {
3496
+ layer.rasterBrightnessMin(expression)
3497
+ } else {
3498
+ e("RNMBXRaster", "Expression for rasterBrightnessMin is null")
3499
+ }
3500
+ } else {
3501
+ val value = styleValue.getDouble(VALUE_KEY)
3502
+ if (value != null) {
3503
+ layer.rasterBrightnessMin(value)
3504
+ } else {
3505
+ e("RNMBXRaster", "value for rasterBrightnessMin is null")
3506
+ }
3507
+ }
3508
+ }
3509
+
3510
+
3511
+ fun setRasterBrightnessMinTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3512
+ val transition = styleValue.transition
3513
+ if (transition != null) {
3514
+ layer.rasterBrightnessMinTransition(transition);
3515
+ }
3516
+ }
3517
+
3518
+ fun setRasterBrightnessMax(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3519
+ if (styleValue.isExpression()) {
3520
+ val expression = styleValue.getExpression()
3521
+ if (expression != null) {
3522
+ layer.rasterBrightnessMax(expression)
3523
+ } else {
3524
+ e("RNMBXRaster", "Expression for rasterBrightnessMax is null")
3525
+ }
3526
+ } else {
3527
+ val value = styleValue.getDouble(VALUE_KEY)
3528
+ if (value != null) {
3529
+ layer.rasterBrightnessMax(value)
3530
+ } else {
3531
+ e("RNMBXRaster", "value for rasterBrightnessMax is null")
3532
+ }
3533
+ }
3534
+ }
3535
+
3536
+
3537
+ fun setRasterBrightnessMaxTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3538
+ val transition = styleValue.transition
3539
+ if (transition != null) {
3540
+ layer.rasterBrightnessMaxTransition(transition);
3541
+ }
3542
+ }
3543
+
3544
+ fun setRasterSaturation(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3545
+ if (styleValue.isExpression()) {
3546
+ val expression = styleValue.getExpression()
3547
+ if (expression != null) {
3548
+ layer.rasterSaturation(expression)
3549
+ } else {
3550
+ e("RNMBXRaster", "Expression for rasterSaturation is null")
3551
+ }
3552
+ } else {
3553
+ val value = styleValue.getDouble(VALUE_KEY)
3554
+ if (value != null) {
3555
+ layer.rasterSaturation(value)
3556
+ } else {
3557
+ e("RNMBXRaster", "value for rasterSaturation is null")
3558
+ }
3559
+ }
3560
+ }
3561
+
3562
+
3563
+ fun setRasterSaturationTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3564
+ val transition = styleValue.transition
3565
+ if (transition != null) {
3566
+ layer.rasterSaturationTransition(transition);
3567
+ }
3568
+ }
3569
+
3570
+ fun setRasterContrast(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3571
+ if (styleValue.isExpression()) {
3572
+ val expression = styleValue.getExpression()
3573
+ if (expression != null) {
3574
+ layer.rasterContrast(expression)
3575
+ } else {
3576
+ e("RNMBXRaster", "Expression for rasterContrast is null")
3577
+ }
3578
+ } else {
3579
+ val value = styleValue.getDouble(VALUE_KEY)
3580
+ if (value != null) {
3581
+ layer.rasterContrast(value)
3582
+ } else {
3583
+ e("RNMBXRaster", "value for rasterContrast is null")
3584
+ }
3585
+ }
3586
+ }
3587
+
3588
+
3589
+ fun setRasterContrastTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3590
+ val transition = styleValue.transition
3591
+ if (transition != null) {
3592
+ layer.rasterContrastTransition(transition);
3593
+ }
3594
+ }
3595
+
3596
+ fun setRasterResampling(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3597
+ if (styleValue.isExpression()) {
3598
+ val expression = styleValue.getExpression()
3599
+ if (expression != null) {
3600
+ layer.rasterResampling(expression)
3601
+ } else {
3602
+ e("RNMBXRaster", "Expression for rasterResampling is null")
3603
+ }
3604
+ } else {
3605
+ layer.rasterResampling(RasterResampling.valueOf(styleValue.getEnumName()))
3606
+ }
3607
+ }
3608
+
3609
+ fun setRasterFadeDuration(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3610
+ if (styleValue.isExpression()) {
3611
+ val expression = styleValue.getExpression()
3612
+ if (expression != null) {
3613
+ layer.rasterFadeDuration(expression)
3614
+ } else {
3615
+ e("RNMBXRaster", "Expression for rasterFadeDuration is null")
3616
+ }
3617
+ } else {
3618
+ val value = styleValue.getDouble(VALUE_KEY)
3619
+ if (value != null) {
3620
+ layer.rasterFadeDuration(value)
3621
+ } else {
3622
+ e("RNMBXRaster", "value for rasterFadeDuration is null")
3623
+ }
3624
+ }
3625
+ }
3626
+
3627
+ fun setRasterColor(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3628
+ if (styleValue.isExpression()) {
3629
+ val expression = styleValue.getExpression()
3630
+ if (expression != null) {
3631
+ layer.rasterColor(expression)
3632
+ } else {
3633
+ e("RNMBXRaster", "Expression for rasterColor is null")
3634
+ }
3635
+ } else {
3636
+ val value = styleValue.getInt(VALUE_KEY)
3637
+ if (value != null) {
3638
+ layer.rasterColor(value)
3639
+ } else {
3640
+ e("RNMBXRaster", "value for rasterColor is null")
3641
+ }
3642
+ }
3643
+ }
3644
+
3645
+ fun setRasterColorMix(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3646
+ if (styleValue.isExpression()) {
3647
+ val expression = styleValue.getExpression()
3648
+ if (expression != null) {
3649
+ layer.rasterColorMix(expression)
3650
+ } else {
3651
+ e("RNMBXRaster", "Expression for rasterColorMix is null")
3652
+ }
3653
+ } else {
3654
+ val value = styleValue.getFloatArray(VALUE_KEY)
3655
+ if (value != null) {
3656
+ layer.rasterColorMix(value)
3657
+ } else {
3658
+ e("RNMBXRaster", "value for rasterColorMix is null")
3659
+ }
3660
+ }
3661
+ }
3662
+
3663
+
3664
+ fun setRasterColorMixTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3665
+ val transition = styleValue.transition
3666
+ if (transition != null) {
3667
+ layer.rasterColorMixTransition(transition);
3668
+ }
3669
+ }
3670
+
3671
+ fun setRasterColorRange(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
3672
+ if (styleValue.isExpression()) {
3673
+ val expression = styleValue.getExpression()
3674
+ if (expression != null) {
3675
+ layer.rasterColorRange(expression)
3676
+ } else {
3677
+ e("RNMBXRaster", "Expression for rasterColorRange is null")
3678
+ }
3679
+ } else {
3680
+ val value = styleValue.getFloatArray(VALUE_KEY)
3681
+ if (value != null) {
3682
+ layer.rasterColorRange(value)
3683
+ } else {
3684
+ e("RNMBXRaster", "value for rasterColorRange is null")
3685
+ }
3686
+ }
3687
+ }
3688
+
3689
+
3690
+ fun setRasterColorRangeTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
3691
+ val transition = styleValue.transition
3692
+ if (transition != null) {
3693
+ layer.rasterColorRangeTransition(transition);
3694
+ }
3695
+ }
3696
+
3697
+ fun setVisibility(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3698
+ layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
3699
+ }
3700
+
3701
+ fun setHillshadeIlluminationDirection(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3702
+ if (styleValue.isExpression()) {
3703
+ val expression = styleValue.getExpression()
3704
+ if (expression != null) {
3705
+ layer.hillshadeIlluminationDirection(expression)
3706
+ } else {
3707
+ e("RNMBXHillshade", "Expression for hillshadeIlluminationDirection is null")
3708
+ }
3709
+ } else {
3710
+ val value = styleValue.getDouble(VALUE_KEY)
3711
+ if (value != null) {
3712
+ layer.hillshadeIlluminationDirection(value)
3713
+ } else {
3714
+ e("RNMBXHillshade", "value for hillshadeIlluminationDirection is null")
3715
+ }
3716
+ }
3717
+ }
3718
+
3719
+ fun setHillshadeIlluminationAnchor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3720
+ if (styleValue.isExpression()) {
3721
+ val expression = styleValue.getExpression()
3722
+ if (expression != null) {
3723
+ layer.hillshadeIlluminationAnchor(expression)
3724
+ } else {
3725
+ e("RNMBXHillshade", "Expression for hillshadeIlluminationAnchor is null")
3726
+ }
3727
+ } else {
3728
+ layer.hillshadeIlluminationAnchor(HillshadeIlluminationAnchor.valueOf(styleValue.getEnumName()))
3729
+ }
3730
+ }
3731
+
3732
+ fun setHillshadeExaggeration(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3733
+ if (styleValue.isExpression()) {
3734
+ val expression = styleValue.getExpression()
3735
+ if (expression != null) {
3736
+ layer.hillshadeExaggeration(expression)
3737
+ } else {
3738
+ e("RNMBXHillshade", "Expression for hillshadeExaggeration is null")
3739
+ }
3740
+ } else {
3741
+ val value = styleValue.getDouble(VALUE_KEY)
3742
+ if (value != null) {
3743
+ layer.hillshadeExaggeration(value)
3744
+ } else {
3745
+ e("RNMBXHillshade", "value for hillshadeExaggeration is null")
3746
+ }
3747
+ }
3748
+ }
3749
+
3750
+
3751
+ fun setHillshadeExaggerationTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
3752
+ val transition = styleValue.transition
3753
+ if (transition != null) {
3754
+ layer.hillshadeExaggerationTransition(transition);
3755
+ }
3756
+ }
3757
+
3758
+ fun setHillshadeShadowColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3085
3759
  if (styleValue.isExpression()) {
3086
3760
  val expression = styleValue.getExpression()
3087
3761
  if (expression != null) {
3088
3762
  layer.hillshadeShadowColor(expression)
3089
3763
  } else {
3090
- e("RNMBXHillshade", "Expression for hillshadeShadowColor is null")
3764
+ e("RNMBXHillshade", "Expression for hillshadeShadowColor is null")
3765
+ }
3766
+ } else {
3767
+ val value = styleValue.getInt(VALUE_KEY)
3768
+ if (value != null) {
3769
+ layer.hillshadeShadowColor(value)
3770
+ } else {
3771
+ e("RNMBXHillshade", "value for hillshadeShadowColor is null")
3772
+ }
3773
+ }
3774
+ }
3775
+
3776
+
3777
+ fun setHillshadeShadowColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
3778
+ val transition = styleValue.transition
3779
+ if (transition != null) {
3780
+ layer.hillshadeShadowColorTransition(transition);
3781
+ }
3782
+ }
3783
+
3784
+ fun setHillshadeHighlightColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3785
+ if (styleValue.isExpression()) {
3786
+ val expression = styleValue.getExpression()
3787
+ if (expression != null) {
3788
+ layer.hillshadeHighlightColor(expression)
3789
+ } else {
3790
+ e("RNMBXHillshade", "Expression for hillshadeHighlightColor is null")
3791
+ }
3792
+ } else {
3793
+ val value = styleValue.getInt(VALUE_KEY)
3794
+ if (value != null) {
3795
+ layer.hillshadeHighlightColor(value)
3796
+ } else {
3797
+ e("RNMBXHillshade", "value for hillshadeHighlightColor is null")
3798
+ }
3799
+ }
3800
+ }
3801
+
3802
+
3803
+ fun setHillshadeHighlightColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
3804
+ val transition = styleValue.transition
3805
+ if (transition != null) {
3806
+ layer.hillshadeHighlightColorTransition(transition);
3807
+ }
3808
+ }
3809
+
3810
+ fun setHillshadeAccentColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3811
+ if (styleValue.isExpression()) {
3812
+ val expression = styleValue.getExpression()
3813
+ if (expression != null) {
3814
+ layer.hillshadeAccentColor(expression)
3815
+ } else {
3816
+ e("RNMBXHillshade", "Expression for hillshadeAccentColor is null")
3817
+ }
3818
+ } else {
3819
+ val value = styleValue.getInt(VALUE_KEY)
3820
+ if (value != null) {
3821
+ layer.hillshadeAccentColor(value)
3822
+ } else {
3823
+ e("RNMBXHillshade", "value for hillshadeAccentColor is null")
3824
+ }
3825
+ }
3826
+ }
3827
+
3828
+
3829
+ fun setHillshadeAccentColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
3830
+ val transition = styleValue.transition
3831
+ if (transition != null) {
3832
+ layer.hillshadeAccentColorTransition(transition);
3833
+ }
3834
+ }
3835
+
3836
+ fun setVisibility(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
3837
+ layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
3838
+ }
3839
+
3840
+ fun setModelId(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
3841
+ if (styleValue.isExpression()) {
3842
+ val expression = styleValue.getExpression()
3843
+ if (expression != null) {
3844
+ layer.modelId(expression)
3845
+ } else {
3846
+ e("RNMBXModel", "Expression for modelId is null")
3091
3847
  }
3092
3848
  } else {
3093
- val value = styleValue.getInt(VALUE_KEY)
3849
+ val value = styleValue.getString(VALUE_KEY)
3094
3850
  if (value != null) {
3095
- layer.hillshadeShadowColor(value)
3851
+ layer.modelId(value)
3096
3852
  } else {
3097
- e("RNMBXHillshade", "value for hillshadeShadowColor is null")
3853
+ e("RNMBXModel", "value for modelId is null")
3854
+ }
3855
+ }
3856
+ }
3857
+
3858
+ fun setModelOpacity(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
3859
+ if (styleValue.isExpression()) {
3860
+ val expression = styleValue.getExpression()
3861
+ if (expression != null) {
3862
+ layer.modelOpacity(expression)
3863
+ } else {
3864
+ e("RNMBXModel", "Expression for modelOpacity is null")
3865
+ }
3866
+ } else {
3867
+ val value = styleValue.getDouble(VALUE_KEY)
3868
+ if (value != null) {
3869
+ layer.modelOpacity(value)
3870
+ } else {
3871
+ e("RNMBXModel", "value for modelOpacity is null")
3098
3872
  }
3099
3873
  }
3100
3874
  }
3101
3875
 
3102
3876
 
3103
- fun setHillshadeShadowColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
3877
+ fun setModelOpacityTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
3104
3878
  val transition = styleValue.transition
3105
3879
  if (transition != null) {
3106
- layer.hillshadeShadowColorTransition(transition);
3880
+ layer.modelOpacityTransition(transition);
3107
3881
  }
3108
3882
  }
3109
3883
 
3110
- fun setHillshadeHighlightColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3884
+ fun setModelRotation(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
3111
3885
  if (styleValue.isExpression()) {
3112
3886
  val expression = styleValue.getExpression()
3113
3887
  if (expression != null) {
3114
- layer.hillshadeHighlightColor(expression)
3888
+ layer.modelRotation(expression)
3115
3889
  } else {
3116
- e("RNMBXHillshade", "Expression for hillshadeHighlightColor is null")
3890
+ e("RNMBXModel", "Expression for modelRotation is null")
3117
3891
  }
3118
3892
  } else {
3119
- val value = styleValue.getInt(VALUE_KEY)
3893
+ val value = styleValue.getFloatArray(VALUE_KEY)
3120
3894
  if (value != null) {
3121
- layer.hillshadeHighlightColor(value)
3895
+ layer.modelRotation(value)
3122
3896
  } else {
3123
- e("RNMBXHillshade", "value for hillshadeHighlightColor is null")
3897
+ e("RNMBXModel", "value for modelRotation is null")
3124
3898
  }
3125
3899
  }
3126
3900
  }
3127
3901
 
3128
3902
 
3129
- fun setHillshadeHighlightColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
3903
+ fun setModelRotationTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
3130
3904
  val transition = styleValue.transition
3131
3905
  if (transition != null) {
3132
- layer.hillshadeHighlightColorTransition(transition);
3906
+ layer.modelRotationTransition(transition);
3133
3907
  }
3134
3908
  }
3135
3909
 
3136
- fun setHillshadeAccentColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
3910
+ fun setModelScale(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
3137
3911
  if (styleValue.isExpression()) {
3138
3912
  val expression = styleValue.getExpression()
3139
3913
  if (expression != null) {
3140
- layer.hillshadeAccentColor(expression)
3914
+ layer.modelScale(expression)
3141
3915
  } else {
3142
- e("RNMBXHillshade", "Expression for hillshadeAccentColor is null")
3916
+ e("RNMBXModel", "Expression for modelScale is null")
3917
+ }
3918
+ } else {
3919
+ val value = styleValue.getFloatArray(VALUE_KEY)
3920
+ if (value != null) {
3921
+ layer.modelScale(value)
3922
+ } else {
3923
+ e("RNMBXModel", "value for modelScale is null")
3924
+ }
3925
+ }
3926
+ }
3927
+
3928
+
3929
+ fun setModelScaleTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
3930
+ val transition = styleValue.transition
3931
+ if (transition != null) {
3932
+ layer.modelScaleTransition(transition);
3933
+ }
3934
+ }
3935
+
3936
+ fun setModelTranslation(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
3937
+ if (styleValue.isExpression()) {
3938
+ val expression = styleValue.getExpression()
3939
+ if (expression != null) {
3940
+ layer.modelTranslation(expression)
3941
+ } else {
3942
+ e("RNMBXModel", "Expression for modelTranslation is null")
3943
+ }
3944
+ } else {
3945
+ val value = styleValue.getFloatArray(VALUE_KEY)
3946
+ if (value != null) {
3947
+ layer.modelTranslation(value)
3948
+ } else {
3949
+ e("RNMBXModel", "value for modelTranslation is null")
3950
+ }
3951
+ }
3952
+ }
3953
+
3954
+
3955
+ fun setModelTranslationTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
3956
+ val transition = styleValue.transition
3957
+ if (transition != null) {
3958
+ layer.modelTranslationTransition(transition);
3959
+ }
3960
+ }
3961
+
3962
+ fun setModelColor(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
3963
+ if (styleValue.isExpression()) {
3964
+ val expression = styleValue.getExpression()
3965
+ if (expression != null) {
3966
+ layer.modelColor(expression)
3967
+ } else {
3968
+ e("RNMBXModel", "Expression for modelColor is null")
3143
3969
  }
3144
3970
  } else {
3145
3971
  val value = styleValue.getInt(VALUE_KEY)
3146
3972
  if (value != null) {
3147
- layer.hillshadeAccentColor(value)
3973
+ layer.modelColor(value)
3148
3974
  } else {
3149
- e("RNMBXHillshade", "value for hillshadeAccentColor is null")
3975
+ e("RNMBXModel", "value for modelColor is null")
3150
3976
  }
3151
3977
  }
3152
3978
  }
3153
3979
 
3154
3980
 
3155
- fun setHillshadeAccentColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
3981
+ fun setModelColorTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
3156
3982
  val transition = styleValue.transition
3157
3983
  if (transition != null) {
3158
- layer.hillshadeAccentColorTransition(transition);
3984
+ layer.modelColorTransition(transition);
3985
+ }
3986
+ }
3987
+
3988
+ fun setModelColorMixIntensity(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
3989
+ if (styleValue.isExpression()) {
3990
+ val expression = styleValue.getExpression()
3991
+ if (expression != null) {
3992
+ layer.modelColorMixIntensity(expression)
3993
+ } else {
3994
+ e("RNMBXModel", "Expression for modelColorMixIntensity is null")
3995
+ }
3996
+ } else {
3997
+ val value = styleValue.getDouble(VALUE_KEY)
3998
+ if (value != null) {
3999
+ layer.modelColorMixIntensity(value)
4000
+ } else {
4001
+ e("RNMBXModel", "value for modelColorMixIntensity is null")
4002
+ }
4003
+ }
4004
+ }
4005
+
4006
+
4007
+ fun setModelColorMixIntensityTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
4008
+ val transition = styleValue.transition
4009
+ if (transition != null) {
4010
+ layer.modelColorMixIntensityTransition(transition);
4011
+ }
4012
+ }
4013
+
4014
+ fun setModelType(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
4015
+ if (styleValue.isExpression()) {
4016
+ val expression = styleValue.getExpression()
4017
+ if (expression != null) {
4018
+ layer.modelType(expression)
4019
+ } else {
4020
+ e("RNMBXModel", "Expression for modelType is null")
4021
+ }
4022
+ } else {
4023
+ layer.modelType(ModelType.valueOf(styleValue.getEnumName()))
4024
+ }
4025
+ }
4026
+
4027
+ fun setModelCastShadows(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
4028
+ if (styleValue.isExpression()) {
4029
+ val expression = styleValue.getExpression()
4030
+ if (expression != null) {
4031
+ layer.modelCastShadows(expression)
4032
+ } else {
4033
+ e("RNMBXModel", "Expression for modelCastShadows is null")
4034
+ }
4035
+ } else {
4036
+ val value = styleValue.getBoolean(VALUE_KEY)
4037
+ if (value != null) {
4038
+ layer.modelCastShadows(value)
4039
+ } else {
4040
+ e("RNMBXModel", "value for modelCastShadows is null")
4041
+ }
4042
+ }
4043
+ }
4044
+
4045
+ fun setModelReceiveShadows(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
4046
+ if (styleValue.isExpression()) {
4047
+ val expression = styleValue.getExpression()
4048
+ if (expression != null) {
4049
+ layer.modelReceiveShadows(expression)
4050
+ } else {
4051
+ e("RNMBXModel", "Expression for modelReceiveShadows is null")
4052
+ }
4053
+ } else {
4054
+ val value = styleValue.getBoolean(VALUE_KEY)
4055
+ if (value != null) {
4056
+ layer.modelReceiveShadows(value)
4057
+ } else {
4058
+ e("RNMBXModel", "value for modelReceiveShadows is null")
4059
+ }
4060
+ }
4061
+ }
4062
+
4063
+ fun setModelAmbientOcclusionIntensity(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
4064
+ if (styleValue.isExpression()) {
4065
+ val expression = styleValue.getExpression()
4066
+ if (expression != null) {
4067
+ layer.modelAmbientOcclusionIntensity(expression)
4068
+ } else {
4069
+ e("RNMBXModel", "Expression for modelAmbientOcclusionIntensity is null")
4070
+ }
4071
+ } else {
4072
+ val value = styleValue.getDouble(VALUE_KEY)
4073
+ if (value != null) {
4074
+ layer.modelAmbientOcclusionIntensity(value)
4075
+ } else {
4076
+ e("RNMBXModel", "value for modelAmbientOcclusionIntensity is null")
4077
+ }
4078
+ }
4079
+ }
4080
+
4081
+
4082
+ fun setModelAmbientOcclusionIntensityTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
4083
+ val transition = styleValue.transition
4084
+ if (transition != null) {
4085
+ layer.modelAmbientOcclusionIntensityTransition(transition);
4086
+ }
4087
+ }
4088
+
4089
+ fun setModelEmissiveStrength(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
4090
+ if (styleValue.isExpression()) {
4091
+ val expression = styleValue.getExpression()
4092
+ if (expression != null) {
4093
+ layer.modelEmissiveStrength(expression)
4094
+ } else {
4095
+ e("RNMBXModel", "Expression for modelEmissiveStrength is null")
4096
+ }
4097
+ } else {
4098
+ val value = styleValue.getDouble(VALUE_KEY)
4099
+ if (value != null) {
4100
+ layer.modelEmissiveStrength(value)
4101
+ } else {
4102
+ e("RNMBXModel", "value for modelEmissiveStrength is null")
4103
+ }
4104
+ }
4105
+ }
4106
+
4107
+
4108
+ fun setModelEmissiveStrengthTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
4109
+ val transition = styleValue.transition
4110
+ if (transition != null) {
4111
+ layer.modelEmissiveStrengthTransition(transition);
4112
+ }
4113
+ }
4114
+
4115
+ fun setModelRoughness(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
4116
+ if (styleValue.isExpression()) {
4117
+ val expression = styleValue.getExpression()
4118
+ if (expression != null) {
4119
+ layer.modelRoughness(expression)
4120
+ } else {
4121
+ e("RNMBXModel", "Expression for modelRoughness is null")
4122
+ }
4123
+ } else {
4124
+ val value = styleValue.getDouble(VALUE_KEY)
4125
+ if (value != null) {
4126
+ layer.modelRoughness(value)
4127
+ } else {
4128
+ e("RNMBXModel", "value for modelRoughness is null")
4129
+ }
4130
+ }
4131
+ }
4132
+
4133
+
4134
+ fun setModelRoughnessTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
4135
+ val transition = styleValue.transition
4136
+ if (transition != null) {
4137
+ layer.modelRoughnessTransition(transition);
4138
+ }
4139
+ }
4140
+
4141
+ fun setModelHeightBasedEmissiveStrengthMultiplier(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
4142
+ if (styleValue.isExpression()) {
4143
+ val expression = styleValue.getExpression()
4144
+ if (expression != null) {
4145
+ layer.modelHeightBasedEmissiveStrengthMultiplier(expression)
4146
+ } else {
4147
+ e("RNMBXModel", "Expression for modelHeightBasedEmissiveStrengthMultiplier is null")
4148
+ }
4149
+ } else {
4150
+ val value = styleValue.getFloatArray(VALUE_KEY)
4151
+ if (value != null) {
4152
+ layer.modelHeightBasedEmissiveStrengthMultiplier(value)
4153
+ } else {
4154
+ e("RNMBXModel", "value for modelHeightBasedEmissiveStrengthMultiplier is null")
4155
+ }
4156
+ }
4157
+ }
4158
+
4159
+
4160
+ fun setModelHeightBasedEmissiveStrengthMultiplierTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
4161
+ val transition = styleValue.transition
4162
+ if (transition != null) {
4163
+ layer.modelHeightBasedEmissiveStrengthMultiplierTransition(transition);
4164
+ }
4165
+ }
4166
+
4167
+ fun setModelCutoffFadeRange(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
4168
+ if (styleValue.isExpression()) {
4169
+ val expression = styleValue.getExpression()
4170
+ if (expression != null) {
4171
+ layer.modelCutoffFadeRange(expression)
4172
+ } else {
4173
+ e("RNMBXModel", "Expression for modelCutoffFadeRange is null")
4174
+ }
4175
+ } else {
4176
+ val value = styleValue.getDouble(VALUE_KEY)
4177
+ if (value != null) {
4178
+ layer.modelCutoffFadeRange(value)
4179
+ } else {
4180
+ e("RNMBXModel", "value for modelCutoffFadeRange is null")
4181
+ }
3159
4182
  }
3160
4183
  }
3161
4184
 
@@ -3242,6 +4265,32 @@ object RNMBXStyleFactory {
3242
4265
  }
3243
4266
  }
3244
4267
 
4268
+ fun setBackgroundEmissiveStrength(layer: BackgroundLayer, styleValue: RNMBXStyleValue ) {
4269
+ if (styleValue.isExpression()) {
4270
+ val expression = styleValue.getExpression()
4271
+ if (expression != null) {
4272
+ layer.backgroundEmissiveStrength(expression)
4273
+ } else {
4274
+ e("RNMBXBackground", "Expression for backgroundEmissiveStrength is null")
4275
+ }
4276
+ } else {
4277
+ val value = styleValue.getDouble(VALUE_KEY)
4278
+ if (value != null) {
4279
+ layer.backgroundEmissiveStrength(value)
4280
+ } else {
4281
+ e("RNMBXBackground", "value for backgroundEmissiveStrength is null")
4282
+ }
4283
+ }
4284
+ }
4285
+
4286
+
4287
+ fun setBackgroundEmissiveStrengthTransition(layer: BackgroundLayer, styleValue: RNMBXStyleValue) {
4288
+ val transition = styleValue.transition
4289
+ if (transition != null) {
4290
+ layer.backgroundEmissiveStrengthTransition(transition);
4291
+ }
4292
+ }
4293
+
3245
4294
  fun setVisibility(layer: SkyLayer, styleValue: RNMBXStyleValue ) {
3246
4295
  layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
3247
4296
  }
@@ -3648,6 +4697,32 @@ object RNMBXStyleFactory {
3648
4697
  }
3649
4698
  }
3650
4699
 
4700
+ fun setVerticalRange(layer: Atmosphere, styleValue: RNMBXStyleValue ) {
4701
+ if (styleValue.isExpression()) {
4702
+ val expression = styleValue.getExpression()
4703
+ if (expression != null) {
4704
+ layer.verticalRange(expression)
4705
+ } else {
4706
+ e("RNMBXAtmosphere", "Expression for verticalRange is null")
4707
+ }
4708
+ } else {
4709
+ val value = styleValue.getFloatArray(VALUE_KEY)
4710
+ if (value != null) {
4711
+ layer.verticalRange(value)
4712
+ } else {
4713
+ e("RNMBXAtmosphere", "value for verticalRange is null")
4714
+ }
4715
+ }
4716
+ }
4717
+
4718
+
4719
+ fun setVerticalRangeTransition(layer: Atmosphere, styleValue: RNMBXStyleValue) {
4720
+ val transition = styleValue.transition
4721
+ if (transition != null) {
4722
+ layer.verticalRangeTransition(transition);
4723
+ }
4724
+ }
4725
+
3651
4726
  fun setExaggeration(layer: Terrain, styleValue: RNMBXStyleValue ) {
3652
4727
  if (styleValue.isExpression()) {
3653
4728
  val expression = styleValue.getExpression()