@rnmapbox/maps 10.3.0 → 10.3.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/rnmapbox/rnmbx/RNMBXPackage.kt +4 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerView.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContent.kt +9 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContentManager.kt +7 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewManager.kt +14 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +3 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXVIewportManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImageManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocationManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapView.kt +13 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt +6 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +748 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleImportManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXBackgroundLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXCircleLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillExtrusionLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHeatmapLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHillshadeLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLineLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSkyLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSymbolLayerManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/light/RNMBXLightManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModelsManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/rain/RNMBXRain.kt +83 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/rain/RNMBXRainManager.kt +40 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/snow/RNMBXSnow.kt +66 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/snow/RNMBXSnowManager.kt +40 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXImageSourceManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterDemSourceManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSource.kt +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSourceManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSource.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt +11 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSourceManager.kt +6 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/terrain/RNMBXTerrainManager.kt +6 -0
- package/ios/RNMBX/RNMBXAtmosphereComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXBackgroundLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXBridgeManager.h +8 -0
- package/ios/RNMBX/RNMBXBridgeManager.m +16 -0
- package/ios/RNMBX/RNMBXCamera.swift +5 -2
- package/ios/RNMBX/RNMBXCircleLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXFillExtrusionLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXFillLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXHeatmapLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXHillshadeLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXImageModule.h +1 -0
- package/ios/RNMBX/RNMBXImageModule.mm +15 -2
- package/ios/RNMBX/RNMBXImageQueue.swift +9 -1
- package/ios/RNMBX/RNMBXImages.swift +4 -0
- package/ios/RNMBX/RNMBXImagesComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXLightComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXLineLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXMapView.swift +16 -0
- package/ios/RNMBX/RNMBXMapViewComponentView.mm +10 -0
- package/ios/RNMBX/RNMBXModelLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXRain.swift +92 -0
- package/ios/RNMBX/RNMBXRainComponentView.h +14 -0
- package/ios/RNMBX/RNMBXRainComponentView.mm +80 -0
- package/ios/RNMBX/RNMBXRasterLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXRasterParticleLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXShapeSource.swift +5 -0
- package/ios/RNMBX/RNMBXShapeSourceComponentView.mm +1 -0
- package/ios/RNMBX/RNMBXSkyLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXSnow.swift +76 -0
- package/ios/RNMBX/RNMBXSnowComponentView.h +14 -0
- package/ios/RNMBX/RNMBXSnowComponentView.mm +80 -0
- package/ios/RNMBX/RNMBXStyle.swift +477 -9
- package/ios/RNMBX/RNMBXStyleValue.swift +7 -1
- package/ios/RNMBX/RNMBXSymbolLayerComponentView.mm +2 -1
- package/ios/RNMBX/RNMBXTerrainComponentView.mm +2 -1
- package/lib/commonjs/plugin/build/withMapbox.d.ts +1 -1
- package/lib/commonjs/plugin/install.md +2 -2
- package/lib/commonjs/plugin/src/withMapbox.ts +2 -2
- package/lib/module/Mapbox.native.js +2 -1
- package/lib/module/Mapbox.native.js.map +1 -1
- package/lib/module/components/AbstractLayer.js.map +1 -1
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/Callout.js.map +1 -1
- package/lib/module/components/Image.js.map +1 -1
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +6 -2
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/PointAnnotation.js +11 -4
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/Rain.js +19 -0
- package/lib/module/components/Rain.js.map +1 -0
- package/lib/module/components/ShapeSource.js +1 -0
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/Snow.js +19 -0
- package/lib/module/components/Snow.js.map +1 -0
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/specs/RNMBXCameraNativeComponent.ts +3 -3
- package/lib/module/specs/RNMBXCustomLocationProviderNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXImageSourceNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXMapViewNativeComponent.ts +5 -4
- package/lib/module/specs/RNMBXMarkerViewNativeComponent.ts +2 -2
- package/lib/module/specs/RNMBXModelLayerNativeComponent.ts +2 -2
- package/lib/module/specs/RNMBXModelsNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXRainNativeComponent.ts +13 -0
- package/lib/module/specs/RNMBXRasterArraySourceNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXRasterDemSourceNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXRasterSourceNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXShapeSourceNativeComponent.ts +4 -3
- package/lib/module/specs/RNMBXSnowNativeComponent.ts +13 -0
- package/lib/module/specs/RNMBXVectorSourceNativeComponent.ts +2 -2
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/styleMap.js +26 -0
- package/lib/module/utils/styleMap.js.map +1 -1
- package/lib/module/web/components/Camera.js.map +1 -1
- package/lib/typescript/jest.config.d.ts +3 -3
- package/lib/typescript/jest.config.d.ts.map +1 -1
- package/lib/typescript/plugin/src/withMapbox.d.ts +1 -1
- package/lib/typescript/plugin/src/withMapbox.d.ts.map +1 -1
- package/lib/typescript/scripts/autogenHelpers/examplesJsonSchema.d.ts +1 -1
- package/lib/typescript/scripts/autogenHelpers/examplesJsonSchema.d.ts.map +1 -1
- package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts +71 -2
- package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts.map +1 -1
- package/lib/typescript/scripts/autogenHelpers/globals.d.mts +1 -1
- package/lib/typescript/scripts/autogenHelpers/globals.d.mts.map +1 -1
- package/lib/typescript/src/Mapbox.native.d.ts +3 -1
- package/lib/typescript/src/Mapbox.native.d.ts.map +1 -1
- package/lib/typescript/src/components/AbstractLayer.d.ts +2 -2
- package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/AbstractSource.d.ts +1 -1
- package/lib/typescript/src/components/AbstractSource.d.ts.map +1 -1
- package/lib/typescript/src/components/Annotation.d.ts +4 -4
- package/lib/typescript/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/src/components/Callout.d.ts +5 -5
- package/lib/typescript/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/src/components/Camera.d.ts +1 -1
- package/lib/typescript/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/src/components/CameraGestureObserver.d.ts +1 -1
- package/lib/typescript/src/components/CameraGestureObserver.d.ts.map +1 -1
- package/lib/typescript/src/components/CircleLayer.d.ts +1 -1
- package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/CustomLocationProvider.d.ts +1 -1
- package/lib/typescript/src/components/CustomLocationProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/FillExtrusionLayer.d.ts +1 -1
- package/lib/typescript/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/HeadingIndicator.d.ts +1 -1
- package/lib/typescript/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/HillshadeLayer.d.ts +1 -1
- package/lib/typescript/src/components/HillshadeLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Image.d.ts +1 -1
- package/lib/typescript/src/components/Image.d.ts.map +1 -1
- package/lib/typescript/src/components/ImageSource.d.ts +1 -1
- package/lib/typescript/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/src/components/Images.d.ts +2 -2
- package/lib/typescript/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/src/components/LineLayer.d.ts +1 -1
- package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/MapView.d.ts +5 -1
- package/lib/typescript/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/components/MarkerView.d.ts +1 -1
- package/lib/typescript/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/src/components/ModelLayer.d.ts +1 -1
- package/lib/typescript/src/components/ModelLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/NativeBridgeComponent.d.ts +1 -1
- package/lib/typescript/src/components/NativeBridgeComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/PointAnnotation.d.ts +3 -3
- package/lib/typescript/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/src/components/Rain.d.ts +17 -0
- package/lib/typescript/src/components/Rain.d.ts.map +1 -0
- package/lib/typescript/src/components/RasterArraySource.d.ts +1 -1
- package/lib/typescript/src/components/RasterArraySource.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterLayer.d.ts +1 -1
- package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterParticleLayer.d.ts +1 -1
- package/lib/typescript/src/components/RasterParticleLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterSource.d.ts +1 -1
- package/lib/typescript/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/src/components/ShapeSource.d.ts +8 -3
- package/lib/typescript/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/src/components/SkyLayer.d.ts +1 -1
- package/lib/typescript/src/components/SkyLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Snow.d.ts +8 -0
- package/lib/typescript/src/components/Snow.d.ts.map +1 -0
- package/lib/typescript/src/components/SymbolLayer.d.ts +1 -1
- package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/UserLocation.d.ts +1 -1
- package/lib/typescript/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/src/components/VectorSource.d.ts +2 -2
- package/lib/typescript/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/src/modules/location/locationManager.d.ts +1 -1
- package/lib/typescript/src/modules/location/locationManager.d.ts.map +1 -1
- package/lib/typescript/src/modules/offline/offlineManager.d.ts +1 -1
- package/lib/typescript/src/modules/offline/offlineManager.d.ts.map +1 -1
- package/lib/typescript/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.d.ts +1 -1
- package/lib/typescript/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.d.ts.map +1 -1
- package/lib/typescript/src/shapeAnimators/MovePointShapeAnimator.d.ts +2 -2
- package/lib/typescript/src/shapeAnimators/MovePointShapeAnimator.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCameraNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXCameraNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXImageSourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXImageSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts +2 -1
- package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts +2 -2
- package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts +2 -2
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRainNativeComponent.d.ts +8 -0
- package/lib/typescript/src/specs/RNMBXRainNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXRasterArraySourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXRasterArraySourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterDemSourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXRasterDemSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterSourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXRasterSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXShapeSourceNativeComponent.d.ts +2 -1
- package/lib/typescript/src/specs/RNMBXShapeSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSnowNativeComponent.d.ts +8 -0
- package/lib/typescript/src/specs/RNMBXSnowNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXVectorSourceNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXVectorSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +2 -2
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/Logger.d.ts +1 -1
- package/lib/typescript/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/src/utils/MapboxStyles.d.ts +202 -2
- package/lib/typescript/src/utils/MapboxStyles.d.ts.map +1 -1
- package/lib/typescript/src/utils/StyleValue.d.ts +1 -1
- package/lib/typescript/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/src/utils/index.d.ts +2 -2
- package/lib/typescript/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/nativeRef.d.ts +1 -1
- package/lib/typescript/src/utils/nativeRef.d.ts.map +1 -1
- package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
- package/lib/typescript/src/web/components/Camera.d.ts +3 -3
- package/lib/typescript/src/web/components/Camera.d.ts.map +1 -1
- package/package.json +12 -3
- package/plugin/build/withMapbox.d.ts +1 -1
- package/plugin/install.md +2 -2
- package/plugin/src/withMapbox.ts +2 -2
- package/src/Mapbox.native.ts +3 -1
- package/src/components/AbstractLayer.tsx +2 -2
- package/src/components/AbstractSource.tsx +1 -1
- package/src/components/Annotation.tsx +4 -4
- package/src/components/Callout.tsx +3 -3
- package/src/components/Camera.tsx +1 -1
- package/src/components/CameraGestureObserver.tsx +1 -1
- package/src/components/CircleLayer.tsx +1 -1
- package/src/components/CustomLocationProvider.tsx +1 -1
- package/src/components/FillExtrusionLayer.tsx +1 -1
- package/src/components/HeadingIndicator.tsx +1 -1
- package/src/components/HillshadeLayer.tsx +1 -1
- package/src/components/Image.tsx +1 -1
- package/src/components/ImageSource.tsx +1 -1
- package/src/components/Images.tsx +6 -3
- package/src/components/LineLayer.tsx +1 -1
- package/src/components/MapView.tsx +10 -5
- package/src/components/MarkerView.tsx +10 -3
- package/src/components/ModelLayer.tsx +1 -1
- package/src/components/NativeBridgeComponent.tsx +1 -1
- package/src/components/PointAnnotation.tsx +18 -5
- package/src/components/Rain.tsx +31 -0
- package/src/components/RasterArraySource.tsx +1 -1
- package/src/components/RasterLayer.tsx +1 -1
- package/src/components/RasterParticleLayer.tsx +1 -1
- package/src/components/RasterSource.tsx +1 -1
- package/src/components/ShapeSource.tsx +11 -4
- package/src/components/SkyLayer.tsx +1 -1
- package/src/components/Snow.tsx +22 -0
- package/src/components/SymbolLayer.tsx +1 -1
- package/src/components/UserLocation.tsx +2 -2
- package/src/components/VectorSource.tsx +2 -2
- package/src/modules/location/locationManager.ts +3 -3
- package/src/modules/offline/offlineManager.ts +1 -1
- package/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.ts +1 -1
- package/src/shapeAnimators/MovePointShapeAnimator.ts +2 -2
- package/src/specs/RNMBXCameraNativeComponent.ts +3 -3
- package/src/specs/RNMBXCustomLocationProviderNativeComponent.ts +1 -1
- package/src/specs/RNMBXImageSourceNativeComponent.ts +1 -1
- package/src/specs/RNMBXMapViewNativeComponent.ts +5 -4
- package/src/specs/RNMBXMarkerViewNativeComponent.ts +2 -2
- package/src/specs/RNMBXModelLayerNativeComponent.ts +2 -2
- package/src/specs/RNMBXModelsNativeComponent.ts +1 -1
- package/src/specs/RNMBXNativeUserLocationNativeComponent.ts +1 -1
- package/src/specs/RNMBXRainNativeComponent.ts +13 -0
- package/src/specs/RNMBXRasterArraySourceNativeComponent.ts +1 -1
- package/src/specs/RNMBXRasterDemSourceNativeComponent.ts +1 -1
- package/src/specs/RNMBXRasterSourceNativeComponent.ts +1 -1
- package/src/specs/RNMBXShapeSourceNativeComponent.ts +4 -3
- package/src/specs/RNMBXSnowNativeComponent.ts +13 -0
- package/src/specs/RNMBXVectorSourceNativeComponent.ts +2 -2
- package/src/types/index.ts +2 -2
- package/src/utils/Logger.ts +1 -1
- package/src/utils/MapboxStyles.ts +222 -1
- package/src/utils/StyleValue.ts +1 -1
- package/src/utils/index.ts +3 -3
- package/src/utils/nativeRef.ts +1 -1
- package/src/utils/styleMap.ts +28 -0
- package/src/web/components/Camera.tsx +8 -4
|
@@ -53,7 +53,7 @@ func fillLayer(layer: inout FillLayer, reactStyle:Dictionary<String, Any>, oldRe
|
|
|
53
53
|
self.setFillTranslateAnchor(&layer, styleValue:styleValue);
|
|
54
54
|
} else if (prop == "fillPattern") {
|
|
55
55
|
styleValue.setImage(
|
|
56
|
-
bridge: bridge
|
|
56
|
+
bridge: bridge,
|
|
57
57
|
style: style,
|
|
58
58
|
oldValue: oldReactStyle?[prop],
|
|
59
59
|
setImageOnLayer: { (_) in self.setFillPattern(&layer, styleValue:styleValue) },
|
|
@@ -63,7 +63,7 @@ func fillLayer(layer: inout FillLayer, reactStyle:Dictionary<String, Any>, oldRe
|
|
|
63
63
|
)
|
|
64
64
|
} else if (prop == "fillPatternCrossFade") {
|
|
65
65
|
styleValue.setImage(
|
|
66
|
-
bridge: bridge
|
|
66
|
+
bridge: bridge,
|
|
67
67
|
style: style,
|
|
68
68
|
oldValue: oldReactStyle?[prop],
|
|
69
69
|
setImageOnLayer: { (_) in self.setFillPatternCrossFade(&layer, styleValue:styleValue) },
|
|
@@ -142,7 +142,7 @@ func lineLayer(layer: inout LineLayer, reactStyle:Dictionary<String, Any>, oldRe
|
|
|
142
142
|
self.setLineDasharray(&layer, styleValue:styleValue);
|
|
143
143
|
} else if (prop == "linePattern") {
|
|
144
144
|
styleValue.setImage(
|
|
145
|
-
bridge: bridge
|
|
145
|
+
bridge: bridge,
|
|
146
146
|
style: style,
|
|
147
147
|
oldValue: oldReactStyle?[prop],
|
|
148
148
|
setImageOnLayer: { (_) in self.setLinePattern(&layer, styleValue:styleValue) },
|
|
@@ -168,9 +168,13 @@ func lineLayer(layer: inout LineLayer, reactStyle:Dictionary<String, Any>, oldRe
|
|
|
168
168
|
self.setLineElevationReference(&layer, styleValue:styleValue);
|
|
169
169
|
} else if (prop == "lineCrossSlope") {
|
|
170
170
|
self.setLineCrossSlope(&layer, styleValue:styleValue);
|
|
171
|
+
} else if (prop == "lineElevationGroundScale") {
|
|
172
|
+
self.setLineElevationGroundScale(&layer, styleValue:styleValue);
|
|
173
|
+
} else if (prop == "lineElevationGroundScaleTransition") {
|
|
174
|
+
self.setLineElevationGroundScaleTransition(&layer, styleValue:styleValue);
|
|
171
175
|
} else if (prop == "linePatternCrossFade") {
|
|
172
176
|
styleValue.setImage(
|
|
173
|
-
bridge: bridge
|
|
177
|
+
bridge: bridge,
|
|
174
178
|
style: style,
|
|
175
179
|
oldValue: oldReactStyle?[prop],
|
|
176
180
|
setImageOnLayer: { (_) in self.setLinePatternCrossFade(&layer, styleValue:styleValue) },
|
|
@@ -239,7 +243,7 @@ func symbolLayer(layer: inout SymbolLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
239
243
|
self.setIconTextFitPadding(&layer, styleValue:styleValue);
|
|
240
244
|
} else if (prop == "iconImage") {
|
|
241
245
|
styleValue.setImage(
|
|
242
|
-
bridge: bridge
|
|
246
|
+
bridge: bridge,
|
|
243
247
|
style: style,
|
|
244
248
|
oldValue: oldReactStyle?[prop],
|
|
245
249
|
setImageOnLayer: { (_) in self.setIconImage(&layer, styleValue:styleValue) },
|
|
@@ -375,7 +379,7 @@ func symbolLayer(layer: inout SymbolLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
375
379
|
self.setTextEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
376
380
|
} else if (prop == "iconImageCrossFade") {
|
|
377
381
|
styleValue.setImage(
|
|
378
|
-
bridge: bridge
|
|
382
|
+
bridge: bridge,
|
|
379
383
|
style: style,
|
|
380
384
|
oldValue: oldReactStyle?[prop],
|
|
381
385
|
setImageOnLayer: { (_) in self.setIconImageCrossFade(&layer, styleValue:styleValue) },
|
|
@@ -389,6 +393,12 @@ func symbolLayer(layer: inout SymbolLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
389
393
|
self.setTextOcclusionOpacityTransition(&layer, styleValue:styleValue);
|
|
390
394
|
} else if (prop == "iconColorSaturation") {
|
|
391
395
|
self.setIconColorSaturation(&layer, styleValue:styleValue);
|
|
396
|
+
} else if (prop == "iconColorContrast") {
|
|
397
|
+
self.setIconColorContrast(&layer, styleValue:styleValue);
|
|
398
|
+
} else if (prop == "iconColorBrightnessMin") {
|
|
399
|
+
self.setIconColorBrightnessMin(&layer, styleValue:styleValue);
|
|
400
|
+
} else if (prop == "iconColorBrightnessMax") {
|
|
401
|
+
self.setIconColorBrightnessMax(&layer, styleValue:styleValue);
|
|
392
402
|
} else if (prop == "symbolZOffset") {
|
|
393
403
|
self.setSymbolZOffset(&layer, styleValue:styleValue);
|
|
394
404
|
} else if (prop == "symbolZOffsetTransition") {
|
|
@@ -542,7 +552,7 @@ func fillExtrusionLayer(layer: inout FillExtrusionLayer, reactStyle:Dictionary<S
|
|
|
542
552
|
self.setFillExtrusionTranslateAnchor(&layer, styleValue:styleValue);
|
|
543
553
|
} else if (prop == "fillExtrusionPattern") {
|
|
544
554
|
styleValue.setImage(
|
|
545
|
-
bridge: bridge
|
|
555
|
+
bridge: bridge,
|
|
546
556
|
style: style,
|
|
547
557
|
oldValue: oldReactStyle?[prop],
|
|
548
558
|
setImageOnLayer: { (_) in self.setFillExtrusionPattern(&layer, styleValue:styleValue) },
|
|
@@ -572,7 +582,7 @@ func fillExtrusionLayer(layer: inout FillExtrusionLayer, reactStyle:Dictionary<S
|
|
|
572
582
|
self.setFillExtrusionRoundedRoof(&layer, styleValue:styleValue);
|
|
573
583
|
} else if (prop == "fillExtrusionPatternCrossFade") {
|
|
574
584
|
styleValue.setImage(
|
|
575
|
-
bridge: bridge
|
|
585
|
+
bridge: bridge,
|
|
576
586
|
style: style,
|
|
577
587
|
oldValue: oldReactStyle?[prop],
|
|
578
588
|
setImageOnLayer: { (_) in self.setFillExtrusionPatternCrossFade(&layer, styleValue:styleValue) },
|
|
@@ -630,6 +640,8 @@ func fillExtrusionLayer(layer: inout FillExtrusionLayer, reactStyle:Dictionary<S
|
|
|
630
640
|
self.setFillExtrusionLineWidth(&layer, styleValue:styleValue);
|
|
631
641
|
} else if (prop == "fillExtrusionLineWidthTransition") {
|
|
632
642
|
self.setFillExtrusionLineWidthTransition(&layer, styleValue:styleValue);
|
|
643
|
+
} else if (prop == "fillExtrusionCastShadows") {
|
|
644
|
+
self.setFillExtrusionCastShadows(&layer, styleValue:styleValue);
|
|
633
645
|
} else {
|
|
634
646
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: fill-extrusion")
|
|
635
647
|
}
|
|
@@ -785,6 +797,10 @@ func hillshadeLayer(layer: inout HillshadeLayer, reactStyle:Dictionary<String, A
|
|
|
785
797
|
self.setHillshadeAccentColor(&layer, styleValue:styleValue);
|
|
786
798
|
} else if (prop == "hillshadeAccentColorTransition") {
|
|
787
799
|
self.setHillshadeAccentColorTransition(&layer, styleValue:styleValue);
|
|
800
|
+
} else if (prop == "hillshadeEmissiveStrength") {
|
|
801
|
+
self.setHillshadeEmissiveStrength(&layer, styleValue:styleValue);
|
|
802
|
+
} else if (prop == "hillshadeEmissiveStrengthTransition") {
|
|
803
|
+
self.setHillshadeEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
788
804
|
} else {
|
|
789
805
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: hillshade")
|
|
790
806
|
}
|
|
@@ -891,7 +907,7 @@ func backgroundLayer(layer: inout BackgroundLayer, reactStyle:Dictionary<String,
|
|
|
891
907
|
self.setBackgroundColorTransition(&layer, styleValue:styleValue);
|
|
892
908
|
} else if (prop == "backgroundPattern") {
|
|
893
909
|
styleValue.setImage(
|
|
894
|
-
bridge: bridge
|
|
910
|
+
bridge: bridge,
|
|
895
911
|
style: style,
|
|
896
912
|
oldValue: oldReactStyle?[prop],
|
|
897
913
|
setImageOnLayer: { (_) in self.setBackgroundPattern(&layer, styleValue:styleValue) },
|
|
@@ -1042,6 +1058,124 @@ func atmosphereLayer(layer: inout Atmosphere, reactStyle:Dictionary<String, Any>
|
|
|
1042
1058
|
}
|
|
1043
1059
|
}
|
|
1044
1060
|
|
|
1061
|
+
func snowLayer(layer: inout Snow, reactStyle:Dictionary<String, Any>, oldReactStyle:Dictionary<String, Any>?, applyUpdater: @escaping ((inout Snow)->Void)->Void, isValid: @escaping () -> Bool)
|
|
1062
|
+
{
|
|
1063
|
+
guard self._hasReactStyle(reactStyle) else {
|
|
1064
|
+
Logger.log(level:.error, message: "Invalid style: \(reactStyle)")
|
|
1065
|
+
return
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
let styleProps = reactStyle.keys
|
|
1069
|
+
for prop in styleProps {
|
|
1070
|
+
if (prop == "__MAPBOX_STYLESHEET__") {
|
|
1071
|
+
continue;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
let styleValue = RNMBXStyleValue.make(reactStyle[prop])
|
|
1075
|
+
|
|
1076
|
+
if (prop == "density") {
|
|
1077
|
+
self.setDensity(&layer, styleValue:styleValue);
|
|
1078
|
+
} else if (prop == "densityTransition") {
|
|
1079
|
+
self.setDensityTransition(&layer, styleValue:styleValue);
|
|
1080
|
+
} else if (prop == "intensity") {
|
|
1081
|
+
self.setIntensity(&layer, styleValue:styleValue);
|
|
1082
|
+
} else if (prop == "intensityTransition") {
|
|
1083
|
+
self.setIntensityTransition(&layer, styleValue:styleValue);
|
|
1084
|
+
} else if (prop == "color") {
|
|
1085
|
+
self.setColor(&layer, styleValue:styleValue);
|
|
1086
|
+
} else if (prop == "colorTransition") {
|
|
1087
|
+
self.setColorTransition(&layer, styleValue:styleValue);
|
|
1088
|
+
} else if (prop == "opacity") {
|
|
1089
|
+
self.setOpacity(&layer, styleValue:styleValue);
|
|
1090
|
+
} else if (prop == "opacityTransition") {
|
|
1091
|
+
self.setOpacityTransition(&layer, styleValue:styleValue);
|
|
1092
|
+
} else if (prop == "vignette") {
|
|
1093
|
+
self.setVignette(&layer, styleValue:styleValue);
|
|
1094
|
+
} else if (prop == "vignetteTransition") {
|
|
1095
|
+
self.setVignetteTransition(&layer, styleValue:styleValue);
|
|
1096
|
+
} else if (prop == "vignetteColor") {
|
|
1097
|
+
self.setVignetteColor(&layer, styleValue:styleValue);
|
|
1098
|
+
} else if (prop == "vignetteColorTransition") {
|
|
1099
|
+
self.setVignetteColorTransition(&layer, styleValue:styleValue);
|
|
1100
|
+
} else if (prop == "centerThinning") {
|
|
1101
|
+
self.setCenterThinning(&layer, styleValue:styleValue);
|
|
1102
|
+
} else if (prop == "centerThinningTransition") {
|
|
1103
|
+
self.setCenterThinningTransition(&layer, styleValue:styleValue);
|
|
1104
|
+
} else if (prop == "direction") {
|
|
1105
|
+
self.setDirection(&layer, styleValue:styleValue);
|
|
1106
|
+
} else if (prop == "directionTransition") {
|
|
1107
|
+
self.setDirectionTransition(&layer, styleValue:styleValue);
|
|
1108
|
+
} else if (prop == "flakeSize") {
|
|
1109
|
+
self.setFlakeSize(&layer, styleValue:styleValue);
|
|
1110
|
+
} else if (prop == "flakeSizeTransition") {
|
|
1111
|
+
self.setFlakeSizeTransition(&layer, styleValue:styleValue);
|
|
1112
|
+
} else {
|
|
1113
|
+
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: snow")
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
func rainLayer(layer: inout Rain, reactStyle:Dictionary<String, Any>, oldReactStyle:Dictionary<String, Any>?, applyUpdater: @escaping ((inout Rain)->Void)->Void, isValid: @escaping () -> Bool)
|
|
1119
|
+
{
|
|
1120
|
+
guard self._hasReactStyle(reactStyle) else {
|
|
1121
|
+
Logger.log(level:.error, message: "Invalid style: \(reactStyle)")
|
|
1122
|
+
return
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
let styleProps = reactStyle.keys
|
|
1126
|
+
for prop in styleProps {
|
|
1127
|
+
if (prop == "__MAPBOX_STYLESHEET__") {
|
|
1128
|
+
continue;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
let styleValue = RNMBXStyleValue.make(reactStyle[prop])
|
|
1132
|
+
|
|
1133
|
+
if (prop == "density") {
|
|
1134
|
+
self.setDensity(&layer, styleValue:styleValue);
|
|
1135
|
+
} else if (prop == "densityTransition") {
|
|
1136
|
+
self.setDensityTransition(&layer, styleValue:styleValue);
|
|
1137
|
+
} else if (prop == "intensity") {
|
|
1138
|
+
self.setIntensity(&layer, styleValue:styleValue);
|
|
1139
|
+
} else if (prop == "intensityTransition") {
|
|
1140
|
+
self.setIntensityTransition(&layer, styleValue:styleValue);
|
|
1141
|
+
} else if (prop == "color") {
|
|
1142
|
+
self.setColor(&layer, styleValue:styleValue);
|
|
1143
|
+
} else if (prop == "colorTransition") {
|
|
1144
|
+
self.setColorTransition(&layer, styleValue:styleValue);
|
|
1145
|
+
} else if (prop == "opacity") {
|
|
1146
|
+
self.setOpacity(&layer, styleValue:styleValue);
|
|
1147
|
+
} else if (prop == "opacityTransition") {
|
|
1148
|
+
self.setOpacityTransition(&layer, styleValue:styleValue);
|
|
1149
|
+
} else if (prop == "vignette") {
|
|
1150
|
+
self.setVignette(&layer, styleValue:styleValue);
|
|
1151
|
+
} else if (prop == "vignetteTransition") {
|
|
1152
|
+
self.setVignetteTransition(&layer, styleValue:styleValue);
|
|
1153
|
+
} else if (prop == "vignetteColor") {
|
|
1154
|
+
self.setVignetteColor(&layer, styleValue:styleValue);
|
|
1155
|
+
} else if (prop == "vignetteColorTransition") {
|
|
1156
|
+
self.setVignetteColorTransition(&layer, styleValue:styleValue);
|
|
1157
|
+
} else if (prop == "centerThinning") {
|
|
1158
|
+
self.setCenterThinning(&layer, styleValue:styleValue);
|
|
1159
|
+
} else if (prop == "centerThinningTransition") {
|
|
1160
|
+
self.setCenterThinningTransition(&layer, styleValue:styleValue);
|
|
1161
|
+
} else if (prop == "direction") {
|
|
1162
|
+
self.setDirection(&layer, styleValue:styleValue);
|
|
1163
|
+
} else if (prop == "directionTransition") {
|
|
1164
|
+
self.setDirectionTransition(&layer, styleValue:styleValue);
|
|
1165
|
+
} else if (prop == "dropletSize") {
|
|
1166
|
+
self.setDropletSize(&layer, styleValue:styleValue);
|
|
1167
|
+
} else if (prop == "dropletSizeTransition") {
|
|
1168
|
+
self.setDropletSizeTransition(&layer, styleValue:styleValue);
|
|
1169
|
+
} else if (prop == "distortionStrength") {
|
|
1170
|
+
self.setDistortionStrength(&layer, styleValue:styleValue);
|
|
1171
|
+
} else if (prop == "distortionStrengthTransition") {
|
|
1172
|
+
self.setDistortionStrengthTransition(&layer, styleValue:styleValue);
|
|
1173
|
+
} else {
|
|
1174
|
+
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: rain")
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1045
1179
|
func terrainLayer(layer: inout Terrain, reactStyle:Dictionary<String, Any>, oldReactStyle:Dictionary<String, Any>?, applyUpdater: @escaping ((inout Terrain)->Void)->Void, isValid: @escaping () -> Bool)
|
|
1046
1180
|
{
|
|
1047
1181
|
guard self._hasReactStyle(reactStyle) else {
|
|
@@ -1438,6 +1572,20 @@ func setLineCrossSlope(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
|
1438
1572
|
|
|
1439
1573
|
}
|
|
1440
1574
|
|
|
1575
|
+
func setLineElevationGroundScale(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1576
|
+
{
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
layer.lineElevationGroundScale = styleValue.mglStyleValueNumber();
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
func setLineElevationGroundScaleTransition(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1585
|
+
{
|
|
1586
|
+
layer.lineElevationGroundScaleTransition = styleValue.getTransition();
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1441
1589
|
func setLinePatternCrossFade(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1442
1590
|
{
|
|
1443
1591
|
|
|
@@ -2150,6 +2298,33 @@ func setIconColorSaturation(_ layer: inout SymbolLayer, styleValue: RNMBXStyleVa
|
|
|
2150
2298
|
layer.iconColorSaturation = styleValue.mglStyleValueNumber();
|
|
2151
2299
|
|
|
2152
2300
|
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
func setIconColorContrast(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2304
|
+
{
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
layer.iconColorContrast = styleValue.mglStyleValueNumber();
|
|
2308
|
+
|
|
2309
|
+
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
func setIconColorBrightnessMin(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2313
|
+
{
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
layer.iconColorBrightnessMin = styleValue.mglStyleValueNumber();
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
func setIconColorBrightnessMax(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2322
|
+
{
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
layer.iconColorBrightnessMax = styleValue.mglStyleValueNumber();
|
|
2326
|
+
|
|
2327
|
+
|
|
2153
2328
|
}
|
|
2154
2329
|
|
|
2155
2330
|
func setSymbolZOffset(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
@@ -2751,6 +2926,15 @@ func setFillExtrusionLineWidthTransition(_ layer: inout FillExtrusionLayer, styl
|
|
|
2751
2926
|
layer.fillExtrusionLineWidthTransition = styleValue.getTransition();
|
|
2752
2927
|
}
|
|
2753
2928
|
|
|
2929
|
+
func setFillExtrusionCastShadows(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2930
|
+
{
|
|
2931
|
+
|
|
2932
|
+
|
|
2933
|
+
layer.fillExtrusionCastShadows = styleValue.mglStyleValueBoolean();
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2754
2938
|
|
|
2755
2939
|
|
|
2756
2940
|
func setRasterStyleLayerVisibility(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
@@ -3095,6 +3279,20 @@ func setHillshadeAccentColorTransition(_ layer: inout HillshadeLayer, styleValue
|
|
|
3095
3279
|
layer.hillshadeAccentColorTransition = styleValue.getTransition();
|
|
3096
3280
|
}
|
|
3097
3281
|
|
|
3282
|
+
func setHillshadeEmissiveStrength(_ layer: inout HillshadeLayer, styleValue: RNMBXStyleValue)
|
|
3283
|
+
{
|
|
3284
|
+
|
|
3285
|
+
|
|
3286
|
+
layer.hillshadeEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
3287
|
+
|
|
3288
|
+
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
func setHillshadeEmissiveStrengthTransition(_ layer: inout HillshadeLayer, styleValue: RNMBXStyleValue)
|
|
3292
|
+
{
|
|
3293
|
+
layer.hillshadeEmissiveStrengthTransition = styleValue.getTransition();
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3098
3296
|
|
|
3099
3297
|
|
|
3100
3298
|
func setModelAllowDensityReduction(_ layer: inout ModelLayer, styleValue: RNMBXStyleValue)
|
|
@@ -3616,6 +3814,276 @@ func setVerticalRangeTransition(_ layer: inout Atmosphere, styleValue: RNMBXStyl
|
|
|
3616
3814
|
|
|
3617
3815
|
|
|
3618
3816
|
|
|
3817
|
+
func setDensity(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3818
|
+
{
|
|
3819
|
+
|
|
3820
|
+
|
|
3821
|
+
layer.density = styleValue.mglStyleValueNumber();
|
|
3822
|
+
|
|
3823
|
+
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
func setDensityTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3827
|
+
{
|
|
3828
|
+
layer.densityTransition = styleValue.getTransition();
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
func setIntensity(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3832
|
+
{
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
layer.intensity = styleValue.mglStyleValueNumber();
|
|
3836
|
+
|
|
3837
|
+
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
func setIntensityTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3841
|
+
{
|
|
3842
|
+
layer.intensityTransition = styleValue.getTransition();
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3845
|
+
func setColor(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3846
|
+
{
|
|
3847
|
+
|
|
3848
|
+
|
|
3849
|
+
layer.color = styleValue.mglStyleValueColor();
|
|
3850
|
+
|
|
3851
|
+
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
func setColorTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3855
|
+
{
|
|
3856
|
+
layer.colorTransition = styleValue.getTransition();
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
func setOpacity(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3860
|
+
{
|
|
3861
|
+
|
|
3862
|
+
|
|
3863
|
+
layer.opacity = styleValue.mglStyleValueNumber();
|
|
3864
|
+
|
|
3865
|
+
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
func setOpacityTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3869
|
+
{
|
|
3870
|
+
layer.opacityTransition = styleValue.getTransition();
|
|
3871
|
+
}
|
|
3872
|
+
|
|
3873
|
+
func setVignette(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3874
|
+
{
|
|
3875
|
+
|
|
3876
|
+
|
|
3877
|
+
layer.vignette = styleValue.mglStyleValueNumber();
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
func setVignetteTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3883
|
+
{
|
|
3884
|
+
layer.vignetteTransition = styleValue.getTransition();
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
func setVignetteColor(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3888
|
+
{
|
|
3889
|
+
|
|
3890
|
+
|
|
3891
|
+
layer.vignetteColor = styleValue.mglStyleValueColor();
|
|
3892
|
+
|
|
3893
|
+
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
func setVignetteColorTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3897
|
+
{
|
|
3898
|
+
layer.vignetteColorTransition = styleValue.getTransition();
|
|
3899
|
+
}
|
|
3900
|
+
|
|
3901
|
+
func setCenterThinning(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3902
|
+
{
|
|
3903
|
+
|
|
3904
|
+
|
|
3905
|
+
layer.centerThinning = styleValue.mglStyleValueNumber();
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
func setCenterThinningTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3911
|
+
{
|
|
3912
|
+
layer.centerThinningTransition = styleValue.getTransition();
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
func setDirection(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3916
|
+
{
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
layer.direction = styleValue.mglStyleValueArrayNumber();
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
func setDirectionTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3925
|
+
{
|
|
3926
|
+
layer.directionTransition = styleValue.getTransition();
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
func setFlakeSize(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3930
|
+
{
|
|
3931
|
+
|
|
3932
|
+
|
|
3933
|
+
layer.flakeSize = styleValue.mglStyleValueNumber();
|
|
3934
|
+
|
|
3935
|
+
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
func setFlakeSizeTransition(_ layer: inout Snow, styleValue: RNMBXStyleValue)
|
|
3939
|
+
{
|
|
3940
|
+
layer.flakeSizeTransition = styleValue.getTransition();
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
|
|
3944
|
+
|
|
3945
|
+
func setDensity(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
3946
|
+
{
|
|
3947
|
+
|
|
3948
|
+
|
|
3949
|
+
layer.density = styleValue.mglStyleValueNumber();
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
}
|
|
3953
|
+
|
|
3954
|
+
func setDensityTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
3955
|
+
{
|
|
3956
|
+
layer.densityTransition = styleValue.getTransition();
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
func setIntensity(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
3960
|
+
{
|
|
3961
|
+
|
|
3962
|
+
|
|
3963
|
+
layer.intensity = styleValue.mglStyleValueNumber();
|
|
3964
|
+
|
|
3965
|
+
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
func setIntensityTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
3969
|
+
{
|
|
3970
|
+
layer.intensityTransition = styleValue.getTransition();
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
func setColor(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
3974
|
+
{
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
layer.color = styleValue.mglStyleValueColor();
|
|
3978
|
+
|
|
3979
|
+
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3982
|
+
func setColorTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
3983
|
+
{
|
|
3984
|
+
layer.colorTransition = styleValue.getTransition();
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
func setOpacity(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
3988
|
+
{
|
|
3989
|
+
|
|
3990
|
+
|
|
3991
|
+
layer.opacity = styleValue.mglStyleValueNumber();
|
|
3992
|
+
|
|
3993
|
+
|
|
3994
|
+
}
|
|
3995
|
+
|
|
3996
|
+
func setOpacityTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
3997
|
+
{
|
|
3998
|
+
layer.opacityTransition = styleValue.getTransition();
|
|
3999
|
+
}
|
|
4000
|
+
|
|
4001
|
+
func setVignette(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4002
|
+
{
|
|
4003
|
+
|
|
4004
|
+
|
|
4005
|
+
layer.vignette = styleValue.mglStyleValueNumber();
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
}
|
|
4009
|
+
|
|
4010
|
+
func setVignetteTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4011
|
+
{
|
|
4012
|
+
layer.vignetteTransition = styleValue.getTransition();
|
|
4013
|
+
}
|
|
4014
|
+
|
|
4015
|
+
func setVignetteColor(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4016
|
+
{
|
|
4017
|
+
|
|
4018
|
+
|
|
4019
|
+
layer.vignetteColor = styleValue.mglStyleValueColor();
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
func setVignetteColorTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4025
|
+
{
|
|
4026
|
+
layer.vignetteColorTransition = styleValue.getTransition();
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
func setCenterThinning(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4030
|
+
{
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
layer.centerThinning = styleValue.mglStyleValueNumber();
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
}
|
|
4037
|
+
|
|
4038
|
+
func setCenterThinningTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4039
|
+
{
|
|
4040
|
+
layer.centerThinningTransition = styleValue.getTransition();
|
|
4041
|
+
}
|
|
4042
|
+
|
|
4043
|
+
func setDirection(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4044
|
+
{
|
|
4045
|
+
|
|
4046
|
+
|
|
4047
|
+
layer.direction = styleValue.mglStyleValueArrayNumber();
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
}
|
|
4051
|
+
|
|
4052
|
+
func setDirectionTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4053
|
+
{
|
|
4054
|
+
layer.directionTransition = styleValue.getTransition();
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
func setDropletSize(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4058
|
+
{
|
|
4059
|
+
|
|
4060
|
+
|
|
4061
|
+
layer.dropletSize = styleValue.mglStyleValueArrayNumber();
|
|
4062
|
+
|
|
4063
|
+
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4066
|
+
func setDropletSizeTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4067
|
+
{
|
|
4068
|
+
layer.dropletSizeTransition = styleValue.getTransition();
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
func setDistortionStrength(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4072
|
+
{
|
|
4073
|
+
|
|
4074
|
+
|
|
4075
|
+
layer.distortionStrength = styleValue.mglStyleValueNumber();
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
func setDistortionStrengthTransition(_ layer: inout Rain, styleValue: RNMBXStyleValue)
|
|
4081
|
+
{
|
|
4082
|
+
layer.distortionStrengthTransition = styleValue.getTransition();
|
|
4083
|
+
}
|
|
4084
|
+
|
|
4085
|
+
|
|
4086
|
+
|
|
3619
4087
|
func setExaggeration(_ layer: inout Terrain, styleValue: RNMBXStyleValue)
|
|
3620
4088
|
{
|
|
3621
4089
|
|
|
@@ -450,7 +450,7 @@ class RNMBXStyleValue {
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
func setImage(
|
|
453
|
-
bridge: RCTBridge
|
|
453
|
+
bridge: RCTBridge?,
|
|
454
454
|
style: Style,
|
|
455
455
|
oldValue: Any?,
|
|
456
456
|
setImageOnLayer: (_: RNMBXStyleValue) -> Void,
|
|
@@ -474,6 +474,12 @@ class RNMBXStyleValue {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
+
guard let bridge = bridge else {
|
|
478
|
+
Logger.log(level: .error, message: "\(name): bridge is nil, cannot fetch image \(optional: imageURI). Use nativeAssetImages instead.")
|
|
479
|
+
setImageOnLayer(self)
|
|
480
|
+
return
|
|
481
|
+
}
|
|
482
|
+
|
|
477
483
|
RNMBXUtils.fetchImage(bridge, url:imageURI, scale:getImageScale(), callback:{ (error, image) in
|
|
478
484
|
if let image = image {
|
|
479
485
|
DispatchQueue.main.sync {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
#import <React/RCTConversions.h>
|
|
6
6
|
#import <React/RCTFabricComponentsPlugins.h>
|
|
7
7
|
#import <React/RCTBridge+Private.h>
|
|
8
|
+
#import "RNMBXBridgeManager.h"
|
|
8
9
|
|
|
9
10
|
#import <react/renderer/components/rnmapbox_maps_specs/ComponentDescriptors.h>
|
|
10
11
|
#import <react/renderer/components/rnmapbox_maps_specs/EventEmitters.h>
|
|
@@ -40,7 +41,7 @@ using namespace facebook::react;
|
|
|
40
41
|
- (void)prepareView
|
|
41
42
|
{
|
|
42
43
|
_view = [[RNMBXSymbolLayer alloc] init];
|
|
43
|
-
_view.bridge = [
|
|
44
|
+
_view.bridge = [RNMBXBridgeManager currentBridge];
|
|
44
45
|
self.contentView = _view;
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#import "RNMBXFabricHelpers.h"
|
|
4
4
|
|
|
5
5
|
#import <React/RCTBridge+Private.h>
|
|
6
|
+
#import "RNMBXBridgeManager.h"
|
|
6
7
|
#import <React/RCTConversions.h>
|
|
7
8
|
#import <React/RCTFabricComponentsPlugins.h>
|
|
8
9
|
|
|
@@ -40,7 +41,7 @@ using namespace facebook::react;
|
|
|
40
41
|
- (void)prepareView
|
|
41
42
|
{
|
|
42
43
|
_view = [[RNMBXTerrain alloc] init];
|
|
43
|
-
_view.bridge = [
|
|
44
|
+
_view.bridge = [RNMBXBridgeManager currentBridge];
|
|
44
45
|
self.contentView = _view;
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -20,7 +20,7 @@ After installing this package, add the [config plugin](https://docs.expo.io/guid
|
|
|
20
20
|
[
|
|
21
21
|
"@rnmapbox/maps",
|
|
22
22
|
{
|
|
23
|
-
"RNMapboxMapsVersion": "11.
|
|
23
|
+
"RNMapboxMapsVersion": "11.20.1"
|
|
24
24
|
}
|
|
25
25
|
]
|
|
26
26
|
]
|
|
@@ -58,7 +58,7 @@ It's possible to overwrite the native SDK version with `RNMapboxMapsVersion`:
|
|
|
58
58
|
[
|
|
59
59
|
"@rnmapbox/maps",
|
|
60
60
|
{
|
|
61
|
-
"RNMapboxMapsVersion": "11.
|
|
61
|
+
"RNMapboxMapsVersion": "11.20.1"
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
64
|
]
|