@rnmapbox/maps 10.1.0-rc.6 → 10.1.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/CHANGELOG.md +5 -9
- package/README.md +31 -5
- package/android/build.gradle +2 -6
- package/android/install.md +21 -5
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/RNMBXPackage.kt +12 -76
- package/android/src/main/java/com/rnmapbox/rnmbx/components/AbstractEvent.java +35 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/AbstractEventEmitter.kt +0 -5
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerView.kt +6 -17
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewManager.kt +9 -8
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXPointAnnotation.kt +35 -33
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXPointAnnotationManager.kt +7 -8
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +4 -4
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImages.kt +1 -2
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt +6 -31
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/LocationComponentManager.kt +47 -78
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocation.kt +25 -246
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocationManager.kt +7 -90
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/NativeMapViewModule.kt +8 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapView.kt +114 -185
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt +8 -16
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyle.kt +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +101 -1176
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXCircleLayerManager.kt +0 -8
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillLayerManager.kt +5 -12
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHeatmapLayerManager.kt +0 -7
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLayer.kt +6 -25
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLineLayerManager.kt +0 -7
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayer.kt +0 -4
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayerManager.kt +2 -8
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSymbolLayerManager.kt +0 -8
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSource.kt +6 -56
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt +5 -7
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSource.kt +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSourceManager.kt +4 -5
- package/android/src/main/java/com/rnmapbox/rnmbx/events/AndroidCallbackEvent.java +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/events/FeatureClickEvent.java +3 -3
- package/android/src/main/java/com/rnmapbox/rnmbx/events/IEvent.kt +4 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/events/ImageMissingEvent.java +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/events/LocationEvent.kt +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/events/MapChangeEvent.kt +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/events/MapClickEvent.java +2 -2
- package/android/src/main/java/com/rnmapbox/rnmbx/events/MapUserTrackingModeEvent.kt +4 -4
- package/android/src/main/java/com/rnmapbox/rnmbx/events/PointAnnotationClickEvent.java +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/events/PointAnnotationDragEvent.java +3 -3
- package/android/src/main/java/com/rnmapbox/rnmbx/events/constants/EventKeys.java +39 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/modules/RNMBXModule.kt +1 -18
- package/android/src/main/java/com/rnmapbox/rnmbx/modules/RNMBXOfflineModule.kt +1 -4
- package/android/src/main/java/com/rnmapbox/rnmbx/utils/BitmapUtils.kt +0 -3
- package/android/src/main/java/com/rnmapbox/rnmbx/utils/DownloadMapImageTask.kt +2 -5
- package/android/src/main/java/com/rnmapbox/rnmbx/utils/GeoJSONUtils.kt +0 -5
- package/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/ReadableArray.kt +1 -21
- package/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/ReadableMap.kt +0 -111
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Annotation.kt +1 -33
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Image.kt +1 -17
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Location.kt +9 -6
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/MapboxMap.kt +0 -11
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/OfflineManager.kt +0 -6
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Annotation.kt +1 -29
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Image.kt +1 -21
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Location.kt +2 -2
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/MapboxMap.kt +0 -5
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/OfflineManager.kt +0 -4
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCircleLayerManagerDelegate.java +6 -9
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCircleLayerManagerInterface.java +2 -3
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXFillLayerManagerDelegate.java +6 -9
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXFillLayerManagerInterface.java +2 -3
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXHeatmapLayerManagerDelegate.java +6 -9
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXHeatmapLayerManagerInterface.java +2 -3
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXLineLayerManagerDelegate.java +6 -9
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXLineLayerManagerInterface.java +2 -3
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMapViewManagerDelegate.java +0 -3
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMapViewManagerInterface.java +0 -1
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMarkerViewManagerDelegate.java +0 -3
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMarkerViewManagerInterface.java +0 -1
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXNativeUserLocationManagerDelegate.java +2 -23
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXNativeUserLocationManagerInterface.java +1 -8
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterLayerManagerDelegate.java +6 -9
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterLayerManagerInterface.java +2 -3
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXSymbolLayerManagerDelegate.java +6 -9
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXSymbolLayerManagerInterface.java +2 -3
- package/ios/RNMBX/CommonLayerProperties.H +0 -2
- package/ios/RNMBX/CustomHttpHeaders.swift +9 -2
- package/ios/RNMBX/RNMBXCamera.swift +4 -4
- package/ios/RNMBX/RNMBXEvent.swift +0 -2
- package/ios/RNMBX/RNMBXImageModule.mm +2 -2
- package/ios/RNMBX/RNMBXImages.swift +6 -22
- package/ios/RNMBX/RNMBXImagesComponentView.mm +1 -19
- package/ios/RNMBX/RNMBXInteractiveElement.swift +1 -1
- package/ios/RNMBX/RNMBXLayer.swift +0 -27
- package/ios/RNMBX/RNMBXLocationModule.swift +14 -25
- package/ios/RNMBX/RNMBXLocationModuleV11.swift +14 -81
- package/ios/RNMBX/RNMBXLogging.swift +0 -8
- package/ios/RNMBX/RNMBXMapView.swift +207 -507
- package/ios/RNMBX/RNMBXMapViewComponentView.mm +20 -28
- package/ios/RNMBX/RNMBXMapViewManager.m +0 -1
- package/ios/RNMBX/RNMBXMapViewManager.swift +1 -0
- package/ios/RNMBX/RNMBXMapViewModule.mm +1 -0
- package/ios/RNMBX/RNMBXMarkerView.swift +3 -11
- package/ios/RNMBX/RNMBXMarkerViewComponentView.mm +0 -5
- package/ios/RNMBX/RNMBXMarkerViewManager.m +0 -1
- package/ios/RNMBX/RNMBXModule.m +1 -1
- package/ios/RNMBX/RNMBXModule.swift +0 -24
- package/ios/RNMBX/RNMBXNativeUserLocation.swift +19 -248
- package/ios/RNMBX/RNMBXNativeUserLocationComponentView.mm +6 -15
- package/ios/RNMBX/RNMBXNativeUserLocationViewManager.m +0 -8
- package/ios/RNMBX/RNMBXOfflineModule.m +1 -1
- package/ios/RNMBX/RNMBXPointAnnotation.swift +1 -34
- package/ios/RNMBX/RNMBXPointAnnotationModule.mm +2 -2
- package/ios/RNMBX/RNMBXShapeSource.swift +15 -54
- package/ios/RNMBX/RNMBXStyle.swift +1 -786
- package/ios/RNMBX/RNMBXStyleValue.swift +4 -56
- package/ios/RNMBX/RNMBXUtils.swift +7 -2
- package/ios/RNMBX/rnmapbox_maps-Swift.pre.h +0 -3
- package/ios/install.md +26 -5
- package/lib/commonjs/Mapbox.js +0 -63
- package/lib/commonjs/Mapbox.js.map +1 -1
- package/lib/commonjs/RNMBXModule.js +1 -3
- package/lib/commonjs/RNMBXModule.js.map +1 -1
- package/lib/commonjs/classes/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/commonjs/classes/AnimatedPoint.js.map +1 -1
- package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/commonjs/classes/AnimatedShape.js.map +1 -1
- package/lib/commonjs/classes/index.d.js.map +1 -1
- package/lib/commonjs/classes/index.js.map +1 -1
- package/lib/commonjs/components/AbstractLayer.js +1 -1
- package/lib/commonjs/components/AbstractLayer.js.map +1 -1
- package/lib/commonjs/components/AbstractSource.js.map +1 -1
- package/lib/commonjs/components/Annotation.js.map +1 -1
- package/lib/commonjs/components/Atmosphere.js.map +1 -1
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
- package/lib/commonjs/components/Callout.js.map +1 -1
- package/lib/commonjs/components/Camera.js.map +1 -1
- package/lib/commonjs/components/CircleLayer.js +2 -7
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +2 -7
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +2 -7
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/Image.js.map +1 -1
- package/lib/commonjs/components/ImageSource.js.map +1 -1
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/Light.js.map +1 -1
- package/lib/commonjs/components/LineLayer.js +2 -7
- package/lib/commonjs/components/LineLayer.js.map +1 -1
- package/lib/commonjs/components/MapView.js +8 -0
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/commonjs/components/MarkerView.js +3 -5
- package/lib/commonjs/components/MarkerView.js.map +1 -1
- package/lib/commonjs/components/NativeBridgeComponent.js.map +1 -1
- package/lib/commonjs/components/{CustomLocationProvider.js → NativeUserLocation.js} +5 -5
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -0
- package/lib/commonjs/components/PointAnnotation.js.map +1 -1
- package/lib/commonjs/components/RasterDemSource.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +2 -7
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/RasterSource.js.map +1 -1
- package/lib/commonjs/components/ShapeSource.js.map +1 -1
- package/lib/commonjs/components/SkyLayer.js +2 -2
- package/lib/commonjs/components/SkyLayer.js.map +1 -1
- package/lib/commonjs/components/Style.js.map +1 -1
- package/lib/commonjs/components/StyleImport.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +2 -7
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/Terrain.js.map +1 -1
- package/lib/commonjs/components/UserLocation.js +2 -2
- package/lib/commonjs/components/UserLocation.js.map +1 -1
- package/lib/commonjs/components/VectorSource.js.map +1 -1
- package/lib/commonjs/global.d.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/modules/location/locationManager.js.map +1 -1
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
- package/lib/commonjs/modules/offline/offlineManager.js +4 -4
- package/lib/commonjs/modules/offline/offlineManager.js.map +1 -1
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -1
- package/lib/commonjs/requestAndroidLocationPermissions.js.map +1 -1
- package/lib/commonjs/specs/NativeMapViewModule.js.map +1 -1
- package/lib/commonjs/specs/NativeRNMBXImageModule.js.map +1 -1
- package/lib/commonjs/specs/NativeRNMBXPointAnnotationModule.js.map +1 -1
- package/lib/commonjs/specs/NativeRNMBXShapeSourceModule.js.map +1 -1
- package/lib/commonjs/specs/RNMBXAtmosphereNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXBackgroundLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXCalloutNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXCameraNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js +0 -2
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXFillExtrusionLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js +0 -2
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js +0 -2
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXImageNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXImageSourceNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXImagesNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXLightNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js +0 -2
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXMapViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXMarkerViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXNativeUserLocationNativeComponent.js +0 -1
- package/lib/commonjs/specs/RNMBXNativeUserLocationNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXPointAnnotationNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXRasterDemSourceNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js +0 -2
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXRasterSourceNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXShapeSourceNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXSkyLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXStyleImportNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js +0 -2
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXTerrainNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXVectorSourceNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/codegenUtils.js.map +1 -1
- package/lib/commonjs/types/BaseProps.js.map +1 -1
- package/lib/commonjs/types/OnPressEvent.js.map +1 -1
- package/lib/commonjs/types/Position.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/utils/BridgeValue.js.map +1 -1
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/MapboxStyles.d.js +0 -5
- package/lib/commonjs/utils/MapboxStyles.d.js.map +1 -1
- package/lib/commonjs/utils/StyleValue.js.map +1 -1
- package/lib/commonjs/utils/animated/Animated.js.map +1 -1
- package/lib/commonjs/utils/checkRequiredProps.js.map +1 -1
- package/lib/commonjs/utils/deprecation.js.map +1 -1
- package/lib/commonjs/utils/filterUtils.js.map +1 -1
- package/lib/commonjs/utils/geoUtils.js.map +1 -1
- package/lib/commonjs/utils/getAnnotationsLayerID.js.map +1 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/nativeRef.js.map +1 -1
- package/lib/commonjs/utils/styleMap.js +2 -67
- package/lib/commonjs/utils/styleMap.js.map +1 -1
- package/lib/commonjs/web/MapContext.js.map +1 -1
- package/lib/commonjs/web/MapboxModule.js.map +1 -1
- package/lib/commonjs/web/UnimplementedComponent.js.map +1 -1
- package/lib/commonjs/web/components/Camera.js.map +1 -1
- package/lib/commonjs/web/components/MapView.js.map +1 -1
- package/lib/commonjs/web/index.js.map +1 -1
- package/lib/commonjs/web/utils/Logger.js.map +1 -1
- package/lib/module/Mapbox.js +0 -18
- package/lib/module/Mapbox.js.map +1 -1
- package/lib/module/RNMBXModule.js +0 -1
- package/lib/module/RNMBXModule.js.map +1 -1
- package/lib/module/classes/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/module/classes/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/module/classes/AnimatedPoint.js.map +1 -1
- package/lib/module/classes/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/module/classes/AnimatedShape.js.map +1 -1
- package/lib/module/classes/index.d.js.map +1 -1
- package/lib/module/classes/index.js.map +1 -1
- package/lib/module/components/AbstractLayer.js +1 -1
- package/lib/module/components/AbstractLayer.js.map +1 -1
- package/lib/module/components/AbstractSource.js.map +1 -1
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/Atmosphere.js.map +1 -1
- package/lib/module/components/BackgroundLayer.js.map +1 -1
- package/lib/module/components/Callout.js.map +1 -1
- package/lib/module/components/Camera.js.map +1 -1
- package/lib/module/components/CircleLayer.js +2 -7
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +2 -7
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeadingIndicator.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +2 -7
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/Image.js.map +1 -1
- package/lib/module/components/ImageSource.js.map +1 -1
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/Light.js.map +1 -1
- package/lib/module/components/LineLayer.js +2 -7
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/MapView.js +8 -0
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +3 -5
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/NativeBridgeComponent.js.map +1 -1
- package/lib/module/components/NativeUserLocation.js +7 -0
- package/lib/module/components/NativeUserLocation.js.map +1 -0
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterDemSource.js.map +1 -1
- package/lib/module/components/RasterLayer.js +2 -7
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/RasterSource.js.map +1 -1
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/SkyLayer.js +2 -2
- package/lib/module/components/SkyLayer.js.map +1 -1
- package/lib/module/components/Style.js.map +1 -1
- package/lib/module/components/StyleImport.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +2 -7
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/Terrain.js.map +1 -1
- package/lib/module/components/UserLocation.js +1 -1
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/global.d.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/modules/location/locationManager.js.map +1 -1
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/module/modules/offline/OfflinePack.js.map +1 -1
- package/lib/module/modules/offline/offlineManager.js +4 -4
- package/lib/module/modules/offline/offlineManager.js.map +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/modules/snapshot/snapshotManager.js.map +1 -1
- package/lib/module/requestAndroidLocationPermissions.js.map +1 -1
- package/lib/module/specs/NativeMapViewModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXImageModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXPointAnnotationModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXShapeSourceModule.js.map +1 -1
- package/lib/module/specs/RNMBXAtmosphereNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXBackgroundLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXCalloutNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXCameraNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js +0 -3
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXFillExtrusionLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js +0 -3
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js +0 -3
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXImageNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXImageSourceNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXImagesNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXLightNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js +0 -3
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXMapViewNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXMarkerViewNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.js +0 -3
- package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXPointAnnotationNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXRasterDemSourceNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js +0 -3
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXRasterSourceNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXShapeSourceNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXSkyLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXStyleImportNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js +0 -3
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXTerrainNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXVectorSourceNativeComponent.js.map +1 -1
- package/lib/module/specs/codegenUtils.js.map +1 -1
- package/lib/module/types/BaseProps.js.map +1 -1
- package/lib/module/types/OnPressEvent.js.map +1 -1
- package/lib/module/types/Position.js.map +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/utils/BridgeValue.js.map +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/MapboxStyles.d.js +0 -5
- package/lib/module/utils/MapboxStyles.d.js.map +1 -1
- package/lib/module/utils/StyleValue.js.map +1 -1
- package/lib/module/utils/animated/Animated.js.map +1 -1
- package/lib/module/utils/checkRequiredProps.js.map +1 -1
- package/lib/module/utils/deprecation.js.map +1 -1
- package/lib/module/utils/filterUtils.js.map +1 -1
- package/lib/module/utils/geoUtils.js.map +1 -1
- package/lib/module/utils/getAnnotationsLayerID.js.map +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/nativeRef.js.map +1 -1
- package/lib/module/utils/styleMap.js +2 -67
- package/lib/module/utils/styleMap.js.map +1 -1
- package/lib/module/web/MapContext.js.map +1 -1
- package/lib/module/web/MapboxModule.js.map +1 -1
- package/lib/module/web/UnimplementedComponent.js.map +1 -1
- package/lib/module/web/components/Camera.js.map +1 -1
- package/lib/module/web/components/MapView.js.map +1 -1
- package/lib/module/web/index.js.map +1 -1
- package/lib/module/web/utils/Logger.js.map +1 -1
- package/lib/typescript/src/Mapbox.d.ts +2 -16
- package/lib/typescript/src/Mapbox.d.ts.map +1 -1
- package/lib/typescript/src/RNMBXModule.d.ts +1 -1
- package/lib/typescript/src/RNMBXModule.d.ts.map +1 -1
- package/lib/typescript/src/components/AbstractLayer.d.ts +4 -9
- package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Camera.d.ts +3 -5
- package/lib/typescript/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/src/components/CircleLayer.d.ts +3 -11
- package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/FillLayer.d.ts +1 -10
- package/lib/typescript/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/HeatmapLayer.d.ts +4 -12
- package/lib/typescript/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Images.d.ts +1 -1
- package/lib/typescript/src/components/LineLayer.d.ts +1 -10
- package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/MapView.d.ts +6 -6
- package/lib/typescript/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/components/MarkerView.d.ts +1 -5
- package/lib/typescript/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/src/components/NativeUserLocation.d.ts +22 -0
- package/lib/typescript/src/components/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/src/components/RasterLayer.d.ts +2 -11
- package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/SymbolLayer.d.ts +5 -17
- package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/UserLocation.d.ts +0 -1
- package/lib/typescript/src/components/UserLocation.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/specs/NativeMapViewModule.d.ts +1 -0
- package/lib/typescript/src/specs/NativeMapViewModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXImageModule.d.ts +1 -0
- package/lib/typescript/src/specs/NativeRNMBXImageModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXPointAnnotationModule.d.ts +1 -0
- package/lib/typescript/src/specs/NativeRNMBXPointAnnotationModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXShapeSourceModule.d.ts +1 -0
- package/lib/typescript/src/specs/NativeRNMBXShapeSourceModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts +11 -16
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts +4 -9
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts +4 -9
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts +4 -9
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts +0 -1
- package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts +0 -1
- package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts +3 -20
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts +4 -9
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts +4 -9
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/codegenUtils.d.ts +1 -0
- package/lib/typescript/src/specs/codegenUtils.d.ts.map +1 -1
- package/lib/typescript/src/types/Position.d.ts +0 -3
- package/lib/typescript/src/types/Position.d.ts.map +1 -1
- package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
- package/package.json +10 -11
- package/plugin/install.md +14 -6
- package/rnmapbox-maps.podspec +4 -26
- package/setup-jest.js +1 -30
- package/src/Mapbox.ts +0 -21
- package/src/RNMBXModule.ts +0 -2
- package/src/components/AbstractLayer.tsx +5 -11
- package/src/components/Camera.tsx +3 -8
- package/src/components/CircleLayer.tsx +5 -17
- package/src/components/FillLayer.tsx +3 -16
- package/src/components/HeatmapLayer.tsx +6 -18
- package/src/components/Images.tsx +1 -1
- package/src/components/LineLayer.tsx +3 -16
- package/src/components/MapView.tsx +9 -7
- package/src/components/MarkerView.tsx +5 -12
- package/src/components/NativeUserLocation.tsx +29 -0
- package/src/components/RasterLayer.tsx +4 -17
- package/src/components/SkyLayer.tsx +2 -2
- package/src/components/SymbolLayer.tsx +7 -26
- package/src/components/UserLocation.tsx +1 -2
- package/src/modules/offline/offlineManager.ts +4 -4
- package/src/specs/RNMBXCircleLayerNativeComponent.ts +12 -21
- package/src/specs/RNMBXFillLayerNativeComponent.ts +4 -13
- package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +4 -13
- package/src/specs/RNMBXLineLayerNativeComponent.ts +4 -13
- package/src/specs/RNMBXMapViewNativeComponent.ts +0 -2
- package/src/specs/RNMBXMarkerViewNativeComponent.ts +0 -1
- package/src/specs/RNMBXNativeUserLocationNativeComponent.ts +3 -29
- package/src/specs/RNMBXRasterLayerNativeComponent.ts +4 -13
- package/src/specs/RNMBXSymbolLayerNativeComponent.ts +4 -13
- package/src/types/Position.ts +0 -3
- package/src/utils/MapboxStyles.d.ts +63 -526
- package/src/utils/styleMap.ts +2 -69
- package/android/src/main/java/com/rnmapbox/rnmbx/components/AbstractEvent.kt +0 -24
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContent.kt +0 -31
- package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContentManager.kt +0 -23
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXVIewportManager.kt +0 -55
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt +0 -408
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewportModule.kt +0 -66
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/ImageManager.kt +0 -53
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProvider.kt +0 -114
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt +0 -54
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayer.kt +0 -33
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt +0 -85
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/codeparts/LayerManagerCommonProps.codepart-kt.ejs +0 -59
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModels.kt +0 -33
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModelsManager.kt +0 -59
- package/android/src/main/java/com/rnmapbox/rnmbx/events/constants/EventKeys.kt +0 -44
- package/android/src/main/java/com/rnmapbox/rnmbx/modules/RNMBXOfflineModuleLegacy.kt +0 -444
- package/android/src/main/java/com/rnmapbox/rnmbx/shape_animators/RNMBXMovePointShapeAnimatorModule.kt +0 -55
- package/android/src/main/java/com/rnmapbox/rnmbx/shape_animators/ShapeAnimatorCommon.kt +0 -110
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Cancelable.kt +0 -15
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Layer.kt +0 -7
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +0 -395
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Cancelable.kt +0 -3
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Layer.kt +0 -3
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +0 -8
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCustomLocationProviderManagerDelegate.java +0 -35
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCustomLocationProviderManagerInterface.java +0 -18
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMarkerViewContentManagerDelegate.java +0 -25
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMarkerViewContentManagerInterface.java +0 -16
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelLayerManagerDelegate.java +0 -65
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelLayerManagerInterface.java +0 -28
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelsManagerDelegate.java +0 -32
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelsManagerInterface.java +0 -17
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXViewportManagerDelegate.java +0 -35
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXViewportManagerInterface.java +0 -18
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXMovePointShapeAnimatorModuleSpec.java +0 -44
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXViewportModuleSpec.java +0 -49
- package/ios/RNMBX/ImageManager.swift +0 -41
- package/ios/RNMBX/RNMBXCustomLocationProvider.swift +0 -274
- package/ios/RNMBX/RNMBXCustomLocationProviderComponentView.h +0 -15
- package/ios/RNMBX/RNMBXCustomLocationProviderComponentView.mm +0 -67
- package/ios/RNMBX/RNMBXCustomLocationProviderVIewManager.swift +0 -13
- package/ios/RNMBX/RNMBXCustomLocationProviderViewManager.m +0 -10
- package/ios/RNMBX/RNMBXFabricPropConvert.h +0 -47
- package/ios/RNMBX/RNMBXFabricPropConvert.mm +0 -136
- package/ios/RNMBX/RNMBXMarkerViewContentComponentView.h +0 -15
- package/ios/RNMBX/RNMBXMarkerViewContentComponentView.mm +0 -55
- package/ios/RNMBX/RNMBXMarkerViewContentManager.m +0 -6
- package/ios/RNMBX/RNMBXMarkerViewContentManager.swift +0 -14
- package/ios/RNMBX/RNMBXModelLayer.swift +0 -59
- package/ios/RNMBX/RNMBXModelLayerComponentView.h +0 -15
- package/ios/RNMBX/RNMBXModelLayerComponentView.mm +0 -70
- package/ios/RNMBX/RNMBXModelLayerViewManager.m +0 -12
- package/ios/RNMBX/RNMBXModelLayerViewManager.swift +0 -13
- package/ios/RNMBX/RNMBXModels.swift +0 -63
- package/ios/RNMBX/RNMBXModelsComponentView.h +0 -17
- package/ios/RNMBX/RNMBXModelsComponentView.mm +0 -67
- package/ios/RNMBX/RNMBXModelsManager.mm +0 -9
- package/ios/RNMBX/RNMBXModelsManager.swift +0 -13
- package/ios/RNMBX/RNMBXOfflineModuleLegacy.m +0 -33
- package/ios/RNMBX/RNMBXOfflineModuleLegacy.swift +0 -431
- package/ios/RNMBX/RNMBXViewport.swift +0 -349
- package/ios/RNMBX/RNMBXViewportComponentView.h +0 -17
- package/ios/RNMBX/RNMBXViewportComponentView.mm +0 -119
- package/ios/RNMBX/RNMBXViewportManager.m +0 -12
- package/ios/RNMBX/RNMBXViewportManager.swift +0 -38
- package/ios/RNMBX/RNMBXViewportModule.h +0 -18
- package/ios/RNMBX/RNMBXViewportModule.mm +0 -87
- package/ios/RNMBX/ShapeAnimators/RNMBXMovePointShapeAnimatorModule.m +0 -61
- package/ios/RNMBX/ShapeAnimators/RNMBXMovePointShapeAnimatorModule.swift +0 -47
- package/ios/RNMBX/ShapeAnimators/ShapeAnimatorCommon.swift +0 -76
- package/ios/RNMBX/ShapeAnimators/ShapeAnimatorManager.swift +0 -45
- package/ios/RNMBX/Uitls/PropertyChanges.swift +0 -57
- package/lib/commonjs/components/CustomLocationProvider.js.map +0 -1
- package/lib/commonjs/components/LocationPuck.js +0 -66
- package/lib/commonjs/components/LocationPuck.js.map +0 -1
- package/lib/commonjs/components/ModelLayer.js +0 -37
- package/lib/commonjs/components/ModelLayer.js.map +0 -1
- package/lib/commonjs/components/Models.js +0 -43
- package/lib/commonjs/components/Models.js.map +0 -1
- package/lib/commonjs/components/Viewport.js +0 -105
- package/lib/commonjs/components/Viewport.js.map +0 -1
- package/lib/commonjs/components/codeparts/LayerPropsCommon.codepart-tsx +0 -62
- package/lib/commonjs/modules/offline/OfflinePackLegacy.js +0 -40
- package/lib/commonjs/modules/offline/OfflinePackLegacy.js.map +0 -1
- package/lib/commonjs/modules/offline/offlineManagerLegacy.js +0 -166
- package/lib/commonjs/modules/offline/offlineManagerLegacy.js.map +0 -1
- package/lib/commonjs/shape_animators/MovePointShapeAnimator.js +0 -21
- package/lib/commonjs/shape_animators/MovePointShapeAnimator.js.map +0 -1
- package/lib/commonjs/shape_animators/ShapeAnimatorManager.js +0 -15
- package/lib/commonjs/shape_animators/ShapeAnimatorManager.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXMovePointShapeAnimatorModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXMovePointShapeAnimatorModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXViewportModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXViewportModule.js.map +0 -1
- package/lib/commonjs/specs/RNMBXCustomLocationProviderNativeComponent.js +0 -11
- package/lib/commonjs/specs/RNMBXCustomLocationProviderNativeComponent.js.map +0 -1
- package/lib/commonjs/specs/RNMBXMarkerViewContentNativeComponent.js +0 -11
- package/lib/commonjs/specs/RNMBXMarkerViewContentNativeComponent.js.map +0 -1
- package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.js +0 -13
- package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.js.map +0 -1
- package/lib/commonjs/specs/RNMBXModelsNativeComponent.js +0 -10
- package/lib/commonjs/specs/RNMBXModelsNativeComponent.js.map +0 -1
- package/lib/commonjs/specs/RNMBXViewportNativeComponent.js +0 -36
- package/lib/commonjs/specs/RNMBXViewportNativeComponent.js.map +0 -1
- package/lib/commonjs/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +0 -18
- package/lib/module/components/CustomLocationProvider.js +0 -7
- package/lib/module/components/CustomLocationProvider.js.map +0 -1
- package/lib/module/components/LocationPuck.js +0 -57
- package/lib/module/components/LocationPuck.js.map +0 -1
- package/lib/module/components/ModelLayer.js +0 -30
- package/lib/module/components/ModelLayer.js.map +0 -1
- package/lib/module/components/Models.js +0 -36
- package/lib/module/components/Models.js.map +0 -1
- package/lib/module/components/Viewport.js +0 -96
- package/lib/module/components/Viewport.js.map +0 -1
- package/lib/module/components/codeparts/LayerPropsCommon.codepart-tsx +0 -62
- package/lib/module/modules/offline/OfflinePackLegacy.js +0 -34
- package/lib/module/modules/offline/OfflinePackLegacy.js.map +0 -1
- package/lib/module/modules/offline/offlineManagerLegacy.js +0 -154
- package/lib/module/modules/offline/offlineManagerLegacy.js.map +0 -1
- package/lib/module/shape_animators/MovePointShapeAnimator.js +0 -13
- package/lib/module/shape_animators/MovePointShapeAnimator.js.map +0 -1
- package/lib/module/shape_animators/ShapeAnimatorManager.js +0 -8
- package/lib/module/shape_animators/ShapeAnimatorManager.js.map +0 -1
- package/lib/module/specs/NativeRNMBXMovePointShapeAnimatorModule.js +0 -6
- package/lib/module/specs/NativeRNMBXMovePointShapeAnimatorModule.js.map +0 -1
- package/lib/module/specs/NativeRNMBXViewportModule.js +0 -6
- package/lib/module/specs/NativeRNMBXViewportModule.js.map +0 -1
- package/lib/module/specs/RNMBXCustomLocationProviderNativeComponent.js +0 -6
- package/lib/module/specs/RNMBXCustomLocationProviderNativeComponent.js.map +0 -1
- package/lib/module/specs/RNMBXMarkerViewContentNativeComponent.js +0 -6
- package/lib/module/specs/RNMBXMarkerViewContentNativeComponent.js.map +0 -1
- package/lib/module/specs/RNMBXModelLayerNativeComponent.js +0 -9
- package/lib/module/specs/RNMBXModelLayerNativeComponent.js.map +0 -1
- package/lib/module/specs/RNMBXModelsNativeComponent.js +0 -3
- package/lib/module/specs/RNMBXModelsNativeComponent.js.map +0 -1
- package/lib/module/specs/RNMBXViewportNativeComponent.js +0 -33
- package/lib/module/specs/RNMBXViewportNativeComponent.js.map +0 -1
- package/lib/module/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +0 -18
- package/lib/typescript/src/components/CustomLocationProvider.d.ts +0 -15
- package/lib/typescript/src/components/CustomLocationProvider.d.ts.map +0 -1
- package/lib/typescript/src/components/LocationPuck.d.ts +0 -85
- package/lib/typescript/src/components/LocationPuck.d.ts.map +0 -1
- package/lib/typescript/src/components/ModelLayer.d.ts +0 -77
- package/lib/typescript/src/components/ModelLayer.d.ts.map +0 -1
- package/lib/typescript/src/components/Models.d.ts +0 -15
- package/lib/typescript/src/components/Models.d.ts.map +0 -1
- package/lib/typescript/src/components/Viewport.d.ts +0 -136
- package/lib/typescript/src/components/Viewport.d.ts.map +0 -1
- package/lib/typescript/src/modules/offline/OfflinePackLegacy.d.ts +0 -24
- package/lib/typescript/src/modules/offline/OfflinePackLegacy.d.ts.map +0 -1
- package/lib/typescript/src/modules/offline/offlineManagerLegacy.d.ts +0 -93
- package/lib/typescript/src/modules/offline/offlineManagerLegacy.d.ts.map +0 -1
- package/lib/typescript/src/shape_animators/MovePointShapeAnimator.d.ts +0 -7
- package/lib/typescript/src/shape_animators/MovePointShapeAnimator.d.ts.map +0 -1
- package/lib/typescript/src/shape_animators/ShapeAnimatorManager.d.ts +0 -5
- package/lib/typescript/src/shape_animators/ShapeAnimatorManager.d.ts.map +0 -1
- package/lib/typescript/src/specs/NativeRNMBXMovePointShapeAnimatorModule.d.ts +0 -10
- package/lib/typescript/src/specs/NativeRNMBXMovePointShapeAnimatorModule.d.ts.map +0 -1
- package/lib/typescript/src/specs/NativeRNMBXViewportModule.d.ts +0 -35
- package/lib/typescript/src/specs/NativeRNMBXViewportModule.d.ts.map +0 -1
- package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts +0 -12
- package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/specs/RNMBXMarkerViewContentNativeComponent.d.ts +0 -6
- package/lib/typescript/src/specs/RNMBXMarkerViewContentNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts +0 -28
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts +0 -15
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/specs/RNMBXViewportNativeComponent.d.ts +0 -59
- package/lib/typescript/src/specs/RNMBXViewportNativeComponent.d.ts.map +0 -1
- package/src/components/CustomLocationProvider.tsx +0 -22
- package/src/components/LocationPuck.tsx +0 -143
- package/src/components/ModelLayer.tsx +0 -107
- package/src/components/Models.tsx +0 -44
- package/src/components/Viewport.tsx +0 -330
- package/src/components/codeparts/LayerPropsCommon.codepart-tsx +0 -62
- package/src/modules/offline/OfflinePackLegacy.ts +0 -55
- package/src/modules/offline/offlineManagerLegacy.ts +0 -181
- package/src/shape_animators/MovePointShapeAnimator.ts +0 -18
- package/src/shape_animators/ShapeAnimatorManager.tsx +0 -8
- package/src/specs/NativeRNMBXMovePointShapeAnimatorModule.ts +0 -16
- package/src/specs/NativeRNMBXViewportModule.ts +0 -41
- package/src/specs/RNMBXCustomLocationProviderNativeComponent.ts +0 -19
- package/src/specs/RNMBXMarkerViewContentNativeComponent.ts +0 -9
- package/src/specs/RNMBXModelLayerNativeComponent.ts +0 -38
- package/src/specs/RNMBXModelsNativeComponent.ts +0 -18
- package/src/specs/RNMBXViewportNativeComponent.ts +0 -117
- package/src/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +0 -18
|
@@ -17,7 +17,6 @@ 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
|
|
21
20
|
// import com.mapbox.maps.extension.style.layers.properties.generated.Visibility
|
|
22
21
|
import com.mapbox.maps.extension.style.layers.properties.generated.*
|
|
23
22
|
import com.mapbox.maps.extension.style.types.StyleTransition
|
|
@@ -27,7 +26,6 @@ import com.rnmapbox.rnmbx.utils.DownloadMapImageTask.OnAllImagesLoaded
|
|
|
27
26
|
import com.rnmapbox.rnmbx.utils.Logger.e
|
|
28
27
|
|
|
29
28
|
import com.rnmapbox.rnmbx.v11compat.light.*;
|
|
30
|
-
import com.rnmapbox.rnmbx.v11compat.stylefactory.*;
|
|
31
29
|
|
|
32
30
|
import java.util.List;
|
|
33
31
|
|
|
@@ -80,10 +78,6 @@ object RNMBXStyleFactory {
|
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
80
|
})
|
|
83
|
-
"fillEmissiveStrength" ->
|
|
84
|
-
setFillEmissiveStrength(layer, styleValue)
|
|
85
|
-
"fillEmissiveStrengthTransition" ->
|
|
86
|
-
setFillEmissiveStrengthTransition(layer, styleValue)
|
|
87
81
|
}
|
|
88
82
|
}
|
|
89
83
|
}
|
|
@@ -156,10 +150,6 @@ object RNMBXStyleFactory {
|
|
|
156
150
|
setLineGradient(layer, styleValue)
|
|
157
151
|
"lineTrimOffset" ->
|
|
158
152
|
setLineTrimOffset(layer, styleValue)
|
|
159
|
-
"lineEmissiveStrength" ->
|
|
160
|
-
setLineEmissiveStrength(layer, styleValue)
|
|
161
|
-
"lineEmissiveStrengthTransition" ->
|
|
162
|
-
setLineEmissiveStrengthTransition(layer, styleValue)
|
|
163
153
|
}
|
|
164
154
|
}
|
|
165
155
|
}
|
|
@@ -318,28 +308,6 @@ object RNMBXStyleFactory {
|
|
|
318
308
|
setTextTranslateTransition(layer, styleValue)
|
|
319
309
|
"textTranslateAnchor" ->
|
|
320
310
|
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)
|
|
343
311
|
}
|
|
344
312
|
}
|
|
345
313
|
}
|
|
@@ -396,10 +364,6 @@ object RNMBXStyleFactory {
|
|
|
396
364
|
setCircleStrokeOpacity(layer, styleValue)
|
|
397
365
|
"circleStrokeOpacityTransition" ->
|
|
398
366
|
setCircleStrokeOpacityTransition(layer, styleValue)
|
|
399
|
-
"circleEmissiveStrength" ->
|
|
400
|
-
setCircleEmissiveStrength(layer, styleValue)
|
|
401
|
-
"circleEmissiveStrengthTransition" ->
|
|
402
|
-
setCircleEmissiveStrengthTransition(layer, styleValue)
|
|
403
367
|
}
|
|
404
368
|
}
|
|
405
369
|
}
|
|
@@ -482,46 +446,6 @@ object RNMBXStyleFactory {
|
|
|
482
446
|
setFillExtrusionBaseTransition(layer, styleValue)
|
|
483
447
|
"fillExtrusionVerticalGradient" ->
|
|
484
448
|
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)
|
|
525
449
|
}
|
|
526
450
|
}
|
|
527
451
|
}
|
|
@@ -566,16 +490,6 @@ object RNMBXStyleFactory {
|
|
|
566
490
|
setRasterResampling(layer, styleValue)
|
|
567
491
|
"rasterFadeDuration" ->
|
|
568
492
|
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)
|
|
579
493
|
}
|
|
580
494
|
}
|
|
581
495
|
}
|
|
@@ -615,72 +529,6 @@ object RNMBXStyleFactory {
|
|
|
615
529
|
}
|
|
616
530
|
}
|
|
617
531
|
}
|
|
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
|
-
}
|
|
684
532
|
fun setBackgroundLayerStyle(layer: BackgroundLayer, style: RNMBXStyle ) {
|
|
685
533
|
val styleKeys = style.allStyleKeys
|
|
686
534
|
|
|
@@ -712,10 +560,6 @@ object RNMBXStyleFactory {
|
|
|
712
560
|
setBackgroundOpacity(layer, styleValue)
|
|
713
561
|
"backgroundOpacityTransition" ->
|
|
714
562
|
setBackgroundOpacityTransition(layer, styleValue)
|
|
715
|
-
"backgroundEmissiveStrength" ->
|
|
716
|
-
setBackgroundEmissiveStrength(layer, styleValue)
|
|
717
|
-
"backgroundEmissiveStrengthTransition" ->
|
|
718
|
-
setBackgroundEmissiveStrengthTransition(layer, styleValue)
|
|
719
563
|
}
|
|
720
564
|
}
|
|
721
565
|
}
|
|
@@ -818,10 +662,6 @@ object RNMBXStyleFactory {
|
|
|
818
662
|
setStarIntensity(layer, styleValue)
|
|
819
663
|
"starIntensityTransition" ->
|
|
820
664
|
setStarIntensityTransition(layer, styleValue)
|
|
821
|
-
"verticalRange" ->
|
|
822
|
-
setVerticalRange(layer, styleValue)
|
|
823
|
-
"verticalRangeTransition" ->
|
|
824
|
-
setVerticalRangeTransition(layer, styleValue)
|
|
825
665
|
}
|
|
826
666
|
}
|
|
827
667
|
}
|
|
@@ -1026,32 +866,6 @@ object RNMBXStyleFactory {
|
|
|
1026
866
|
}
|
|
1027
867
|
}
|
|
1028
868
|
|
|
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
|
-
|
|
1055
869
|
fun setLineCap(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1056
870
|
if (styleValue.isExpression()) {
|
|
1057
871
|
val expression = styleValue.getExpression()
|
|
@@ -1407,32 +1221,6 @@ object RNMBXStyleFactory {
|
|
|
1407
1221
|
}
|
|
1408
1222
|
}
|
|
1409
1223
|
|
|
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
|
-
|
|
1436
1224
|
fun setSymbolPlacement(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
|
|
1437
1225
|
if (styleValue.isExpression()) {
|
|
1438
1226
|
val expression = styleValue.getExpression()
|
|
@@ -2467,102 +2255,6 @@ object RNMBXStyleFactory {
|
|
|
2467
2255
|
}
|
|
2468
2256
|
}
|
|
2469
2257
|
|
|
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
|
-
|
|
2566
2258
|
fun setCircleSortKey(layer: CircleLayer, styleValue: RNMBXStyleValue ) {
|
|
2567
2259
|
if (styleValue.isExpression()) {
|
|
2568
2260
|
val expression = styleValue.getExpression()
|
|
@@ -2832,32 +2524,6 @@ object RNMBXStyleFactory {
|
|
|
2832
2524
|
}
|
|
2833
2525
|
}
|
|
2834
2526
|
|
|
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
|
-
|
|
2861
2527
|
fun setVisibility(layer: HeatmapLayer, styleValue: RNMBXStyleValue ) {
|
|
2862
2528
|
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
2863
2529
|
}
|
|
@@ -3163,1022 +2829,333 @@ object RNMBXStyleFactory {
|
|
|
3163
2829
|
}
|
|
3164
2830
|
}
|
|
3165
2831
|
|
|
3166
|
-
fun
|
|
3167
|
-
|
|
3168
|
-
val expression = styleValue.getExpression()
|
|
3169
|
-
if (expression != null) {
|
|
3170
|
-
layer.fillExtrusionRoundedRoof(expression)
|
|
3171
|
-
} else {
|
|
3172
|
-
e("RNMBXFillExtrusion", "Expression for fillExtrusionRoundedRoof is null")
|
|
3173
|
-
}
|
|
3174
|
-
} else {
|
|
3175
|
-
val value = styleValue.getBoolean(VALUE_KEY)
|
|
3176
|
-
if (value != null) {
|
|
3177
|
-
layer.fillExtrusionRoundedRoof(value)
|
|
3178
|
-
} else {
|
|
3179
|
-
e("RNMBXFillExtrusion", "value for fillExtrusionRoundedRoof is null")
|
|
3180
|
-
}
|
|
3181
|
-
}
|
|
2832
|
+
fun setVisibility(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
2833
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
3182
2834
|
}
|
|
3183
2835
|
|
|
3184
|
-
fun
|
|
2836
|
+
fun setRasterOpacity(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3185
2837
|
if (styleValue.isExpression()) {
|
|
3186
2838
|
val expression = styleValue.getExpression()
|
|
3187
2839
|
if (expression != null) {
|
|
3188
|
-
layer.
|
|
2840
|
+
layer.rasterOpacity(expression)
|
|
3189
2841
|
} else {
|
|
3190
|
-
e("
|
|
2842
|
+
e("RNMBXRaster", "Expression for rasterOpacity is null")
|
|
3191
2843
|
}
|
|
3192
2844
|
} else {
|
|
3193
2845
|
val value = styleValue.getDouble(VALUE_KEY)
|
|
3194
2846
|
if (value != null) {
|
|
3195
|
-
layer.
|
|
2847
|
+
layer.rasterOpacity(value)
|
|
3196
2848
|
} else {
|
|
3197
|
-
e("
|
|
2849
|
+
e("RNMBXRaster", "value for rasterOpacity is null")
|
|
3198
2850
|
}
|
|
3199
2851
|
}
|
|
3200
2852
|
}
|
|
3201
2853
|
|
|
3202
2854
|
|
|
3203
|
-
fun
|
|
2855
|
+
fun setRasterOpacityTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
|
|
3204
2856
|
val transition = styleValue.transition
|
|
3205
2857
|
if (transition != null) {
|
|
3206
|
-
layer.
|
|
2858
|
+
layer.rasterOpacityTransition(transition);
|
|
3207
2859
|
}
|
|
3208
2860
|
}
|
|
3209
2861
|
|
|
3210
|
-
fun
|
|
2862
|
+
fun setRasterHueRotate(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3211
2863
|
if (styleValue.isExpression()) {
|
|
3212
2864
|
val expression = styleValue.getExpression()
|
|
3213
2865
|
if (expression != null) {
|
|
3214
|
-
layer.
|
|
2866
|
+
layer.rasterHueRotate(expression)
|
|
3215
2867
|
} else {
|
|
3216
|
-
e("
|
|
2868
|
+
e("RNMBXRaster", "Expression for rasterHueRotate is null")
|
|
3217
2869
|
}
|
|
3218
2870
|
} else {
|
|
3219
2871
|
val value = styleValue.getDouble(VALUE_KEY)
|
|
3220
2872
|
if (value != null) {
|
|
3221
|
-
layer.
|
|
2873
|
+
layer.rasterHueRotate(value)
|
|
3222
2874
|
} else {
|
|
3223
|
-
e("
|
|
2875
|
+
e("RNMBXRaster", "value for rasterHueRotate is null")
|
|
3224
2876
|
}
|
|
3225
2877
|
}
|
|
3226
2878
|
}
|
|
3227
2879
|
|
|
3228
2880
|
|
|
3229
|
-
fun
|
|
2881
|
+
fun setRasterHueRotateTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
|
|
3230
2882
|
val transition = styleValue.transition
|
|
3231
2883
|
if (transition != null) {
|
|
3232
|
-
layer.
|
|
2884
|
+
layer.rasterHueRotateTransition(transition);
|
|
3233
2885
|
}
|
|
3234
2886
|
}
|
|
3235
2887
|
|
|
3236
|
-
fun
|
|
2888
|
+
fun setRasterBrightnessMin(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3237
2889
|
if (styleValue.isExpression()) {
|
|
3238
2890
|
val expression = styleValue.getExpression()
|
|
3239
2891
|
if (expression != null) {
|
|
3240
|
-
layer.
|
|
2892
|
+
layer.rasterBrightnessMin(expression)
|
|
3241
2893
|
} else {
|
|
3242
|
-
e("
|
|
2894
|
+
e("RNMBXRaster", "Expression for rasterBrightnessMin is null")
|
|
3243
2895
|
}
|
|
3244
2896
|
} else {
|
|
3245
2897
|
val value = styleValue.getDouble(VALUE_KEY)
|
|
3246
2898
|
if (value != null) {
|
|
3247
|
-
layer.
|
|
2899
|
+
layer.rasterBrightnessMin(value)
|
|
3248
2900
|
} else {
|
|
3249
|
-
e("
|
|
2901
|
+
e("RNMBXRaster", "value for rasterBrightnessMin is null")
|
|
3250
2902
|
}
|
|
3251
2903
|
}
|
|
3252
2904
|
}
|
|
3253
2905
|
|
|
3254
2906
|
|
|
3255
|
-
fun
|
|
2907
|
+
fun setRasterBrightnessMinTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
|
|
3256
2908
|
val transition = styleValue.transition
|
|
3257
2909
|
if (transition != null) {
|
|
3258
|
-
layer.
|
|
2910
|
+
layer.rasterBrightnessMinTransition(transition);
|
|
3259
2911
|
}
|
|
3260
2912
|
}
|
|
3261
2913
|
|
|
3262
|
-
fun
|
|
2914
|
+
fun setRasterBrightnessMax(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3263
2915
|
if (styleValue.isExpression()) {
|
|
3264
2916
|
val expression = styleValue.getExpression()
|
|
3265
2917
|
if (expression != null) {
|
|
3266
|
-
layer.
|
|
2918
|
+
layer.rasterBrightnessMax(expression)
|
|
3267
2919
|
} else {
|
|
3268
|
-
e("
|
|
2920
|
+
e("RNMBXRaster", "Expression for rasterBrightnessMax is null")
|
|
3269
2921
|
}
|
|
3270
2922
|
} else {
|
|
3271
|
-
val value = styleValue.
|
|
2923
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3272
2924
|
if (value != null) {
|
|
3273
|
-
layer.
|
|
2925
|
+
layer.rasterBrightnessMax(value)
|
|
3274
2926
|
} else {
|
|
3275
|
-
e("
|
|
2927
|
+
e("RNMBXRaster", "value for rasterBrightnessMax is null")
|
|
3276
2928
|
}
|
|
3277
2929
|
}
|
|
3278
2930
|
}
|
|
3279
2931
|
|
|
3280
2932
|
|
|
3281
|
-
fun
|
|
2933
|
+
fun setRasterBrightnessMaxTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
|
|
3282
2934
|
val transition = styleValue.transition
|
|
3283
2935
|
if (transition != null) {
|
|
3284
|
-
layer.
|
|
2936
|
+
layer.rasterBrightnessMaxTransition(transition);
|
|
3285
2937
|
}
|
|
3286
2938
|
}
|
|
3287
2939
|
|
|
3288
|
-
fun
|
|
2940
|
+
fun setRasterSaturation(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3289
2941
|
if (styleValue.isExpression()) {
|
|
3290
2942
|
val expression = styleValue.getExpression()
|
|
3291
2943
|
if (expression != null) {
|
|
3292
|
-
layer.
|
|
2944
|
+
layer.rasterSaturation(expression)
|
|
3293
2945
|
} else {
|
|
3294
|
-
e("
|
|
2946
|
+
e("RNMBXRaster", "Expression for rasterSaturation is null")
|
|
3295
2947
|
}
|
|
3296
2948
|
} else {
|
|
3297
2949
|
val value = styleValue.getDouble(VALUE_KEY)
|
|
3298
2950
|
if (value != null) {
|
|
3299
|
-
layer.
|
|
2951
|
+
layer.rasterSaturation(value)
|
|
3300
2952
|
} else {
|
|
3301
|
-
e("
|
|
2953
|
+
e("RNMBXRaster", "value for rasterSaturation is null")
|
|
3302
2954
|
}
|
|
3303
2955
|
}
|
|
3304
2956
|
}
|
|
3305
2957
|
|
|
3306
2958
|
|
|
3307
|
-
fun
|
|
2959
|
+
fun setRasterSaturationTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
|
|
3308
2960
|
val transition = styleValue.transition
|
|
3309
2961
|
if (transition != null) {
|
|
3310
|
-
layer.
|
|
2962
|
+
layer.rasterSaturationTransition(transition);
|
|
3311
2963
|
}
|
|
3312
2964
|
}
|
|
3313
2965
|
|
|
3314
|
-
fun
|
|
2966
|
+
fun setRasterContrast(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3315
2967
|
if (styleValue.isExpression()) {
|
|
3316
2968
|
val expression = styleValue.getExpression()
|
|
3317
2969
|
if (expression != null) {
|
|
3318
|
-
layer.
|
|
2970
|
+
layer.rasterContrast(expression)
|
|
3319
2971
|
} else {
|
|
3320
|
-
e("
|
|
2972
|
+
e("RNMBXRaster", "Expression for rasterContrast is null")
|
|
3321
2973
|
}
|
|
3322
2974
|
} else {
|
|
3323
2975
|
val value = styleValue.getDouble(VALUE_KEY)
|
|
3324
2976
|
if (value != null) {
|
|
3325
|
-
layer.
|
|
2977
|
+
layer.rasterContrast(value)
|
|
3326
2978
|
} else {
|
|
3327
|
-
e("
|
|
2979
|
+
e("RNMBXRaster", "value for rasterContrast is null")
|
|
3328
2980
|
}
|
|
3329
2981
|
}
|
|
3330
2982
|
}
|
|
3331
2983
|
|
|
3332
2984
|
|
|
3333
|
-
fun
|
|
2985
|
+
fun setRasterContrastTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
|
|
3334
2986
|
val transition = styleValue.transition
|
|
3335
2987
|
if (transition != null) {
|
|
3336
|
-
layer.
|
|
2988
|
+
layer.rasterContrastTransition(transition);
|
|
3337
2989
|
}
|
|
3338
2990
|
}
|
|
3339
2991
|
|
|
3340
|
-
fun
|
|
2992
|
+
fun setRasterResampling(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3341
2993
|
if (styleValue.isExpression()) {
|
|
3342
2994
|
val expression = styleValue.getExpression()
|
|
3343
2995
|
if (expression != null) {
|
|
3344
|
-
layer.
|
|
2996
|
+
layer.rasterResampling(expression)
|
|
3345
2997
|
} else {
|
|
3346
|
-
e("
|
|
2998
|
+
e("RNMBXRaster", "Expression for rasterResampling is null")
|
|
3347
2999
|
}
|
|
3348
3000
|
} else {
|
|
3349
|
-
|
|
3350
|
-
if (value != null) {
|
|
3351
|
-
layer.fillExtrusionFloodLightGroundRadius(value)
|
|
3352
|
-
} else {
|
|
3353
|
-
e("RNMBXFillExtrusion", "value for fillExtrusionFloodLightGroundRadius is null")
|
|
3354
|
-
}
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
fun setFillExtrusionFloodLightGroundRadiusTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
|
|
3360
|
-
val transition = styleValue.transition
|
|
3361
|
-
if (transition != null) {
|
|
3362
|
-
layer.fillExtrusionFloodLightGroundRadiusTransition(transition);
|
|
3001
|
+
layer.rasterResampling(RasterResampling.valueOf(styleValue.getEnumName()))
|
|
3363
3002
|
}
|
|
3364
3003
|
}
|
|
3365
3004
|
|
|
3366
|
-
fun
|
|
3005
|
+
fun setRasterFadeDuration(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3367
3006
|
if (styleValue.isExpression()) {
|
|
3368
3007
|
val expression = styleValue.getExpression()
|
|
3369
3008
|
if (expression != null) {
|
|
3370
|
-
layer.
|
|
3009
|
+
layer.rasterFadeDuration(expression)
|
|
3371
3010
|
} else {
|
|
3372
|
-
e("
|
|
3011
|
+
e("RNMBXRaster", "Expression for rasterFadeDuration is null")
|
|
3373
3012
|
}
|
|
3374
3013
|
} else {
|
|
3375
3014
|
val value = styleValue.getDouble(VALUE_KEY)
|
|
3376
3015
|
if (value != null) {
|
|
3377
|
-
layer.
|
|
3016
|
+
layer.rasterFadeDuration(value)
|
|
3378
3017
|
} else {
|
|
3379
|
-
e("
|
|
3018
|
+
e("RNMBXRaster", "value for rasterFadeDuration is null")
|
|
3380
3019
|
}
|
|
3381
3020
|
}
|
|
3382
3021
|
}
|
|
3383
3022
|
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
val transition = styleValue.transition
|
|
3387
|
-
if (transition != null) {
|
|
3388
|
-
layer.fillExtrusionFloodLightGroundAttenuationTransition(transition);
|
|
3389
|
-
}
|
|
3023
|
+
fun setVisibility(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
|
|
3024
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
3390
3025
|
}
|
|
3391
3026
|
|
|
3392
|
-
fun
|
|
3027
|
+
fun setHillshadeIlluminationDirection(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
|
|
3393
3028
|
if (styleValue.isExpression()) {
|
|
3394
3029
|
val expression = styleValue.getExpression()
|
|
3395
3030
|
if (expression != null) {
|
|
3396
|
-
layer.
|
|
3031
|
+
layer.hillshadeIlluminationDirection(expression)
|
|
3397
3032
|
} else {
|
|
3398
|
-
e("
|
|
3033
|
+
e("RNMBXHillshade", "Expression for hillshadeIlluminationDirection is null")
|
|
3399
3034
|
}
|
|
3400
3035
|
} else {
|
|
3401
3036
|
val value = styleValue.getDouble(VALUE_KEY)
|
|
3402
3037
|
if (value != null) {
|
|
3403
|
-
layer.
|
|
3038
|
+
layer.hillshadeIlluminationDirection(value)
|
|
3404
3039
|
} else {
|
|
3405
|
-
e("
|
|
3040
|
+
e("RNMBXHillshade", "value for hillshadeIlluminationDirection is null")
|
|
3406
3041
|
}
|
|
3407
3042
|
}
|
|
3408
3043
|
}
|
|
3409
3044
|
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
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()))
|
|
3415
3055
|
}
|
|
3416
3056
|
}
|
|
3417
3057
|
|
|
3418
|
-
fun
|
|
3058
|
+
fun setHillshadeExaggeration(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
|
|
3419
3059
|
if (styleValue.isExpression()) {
|
|
3420
3060
|
val expression = styleValue.getExpression()
|
|
3421
3061
|
if (expression != null) {
|
|
3422
|
-
layer.
|
|
3062
|
+
layer.hillshadeExaggeration(expression)
|
|
3423
3063
|
} else {
|
|
3424
|
-
e("
|
|
3064
|
+
e("RNMBXHillshade", "Expression for hillshadeExaggeration is null")
|
|
3425
3065
|
}
|
|
3426
3066
|
} else {
|
|
3427
3067
|
val value = styleValue.getDouble(VALUE_KEY)
|
|
3428
3068
|
if (value != null) {
|
|
3429
|
-
layer.
|
|
3069
|
+
layer.hillshadeExaggeration(value)
|
|
3430
3070
|
} else {
|
|
3431
|
-
e("
|
|
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 ) {
|
|
3759
|
-
if (styleValue.isExpression()) {
|
|
3760
|
-
val expression = styleValue.getExpression()
|
|
3761
|
-
if (expression != null) {
|
|
3762
|
-
layer.hillshadeShadowColor(expression)
|
|
3763
|
-
} else {
|
|
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")
|
|
3847
|
-
}
|
|
3848
|
-
} else {
|
|
3849
|
-
val value = styleValue.getString(VALUE_KEY)
|
|
3850
|
-
if (value != null) {
|
|
3851
|
-
layer.modelId(value)
|
|
3852
|
-
} else {
|
|
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")
|
|
3872
|
-
}
|
|
3873
|
-
}
|
|
3874
|
-
}
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
fun setModelOpacityTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
|
|
3878
|
-
val transition = styleValue.transition
|
|
3879
|
-
if (transition != null) {
|
|
3880
|
-
layer.modelOpacityTransition(transition);
|
|
3881
|
-
}
|
|
3882
|
-
}
|
|
3883
|
-
|
|
3884
|
-
fun setModelRotation(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
|
|
3885
|
-
if (styleValue.isExpression()) {
|
|
3886
|
-
val expression = styleValue.getExpression()
|
|
3887
|
-
if (expression != null) {
|
|
3888
|
-
layer.modelRotation(expression)
|
|
3889
|
-
} else {
|
|
3890
|
-
e("RNMBXModel", "Expression for modelRotation is null")
|
|
3891
|
-
}
|
|
3892
|
-
} else {
|
|
3893
|
-
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
3894
|
-
if (value != null) {
|
|
3895
|
-
layer.modelRotation(value)
|
|
3896
|
-
} else {
|
|
3897
|
-
e("RNMBXModel", "value for modelRotation is null")
|
|
3898
|
-
}
|
|
3899
|
-
}
|
|
3900
|
-
}
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
fun setModelRotationTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
|
|
3904
|
-
val transition = styleValue.transition
|
|
3905
|
-
if (transition != null) {
|
|
3906
|
-
layer.modelRotationTransition(transition);
|
|
3907
|
-
}
|
|
3908
|
-
}
|
|
3909
|
-
|
|
3910
|
-
fun setModelScale(layer: ModelLayer, styleValue: RNMBXStyleValue ) {
|
|
3911
|
-
if (styleValue.isExpression()) {
|
|
3912
|
-
val expression = styleValue.getExpression()
|
|
3913
|
-
if (expression != null) {
|
|
3914
|
-
layer.modelScale(expression)
|
|
3915
|
-
} else {
|
|
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")
|
|
3071
|
+
e("RNMBXHillshade", "value for hillshadeExaggeration is null")
|
|
3950
3072
|
}
|
|
3951
3073
|
}
|
|
3952
3074
|
}
|
|
3953
3075
|
|
|
3954
3076
|
|
|
3955
|
-
fun
|
|
3077
|
+
fun setHillshadeExaggerationTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
|
|
3956
3078
|
val transition = styleValue.transition
|
|
3957
3079
|
if (transition != null) {
|
|
3958
|
-
layer.
|
|
3080
|
+
layer.hillshadeExaggerationTransition(transition);
|
|
3959
3081
|
}
|
|
3960
3082
|
}
|
|
3961
3083
|
|
|
3962
|
-
fun
|
|
3084
|
+
fun setHillshadeShadowColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
|
|
3963
3085
|
if (styleValue.isExpression()) {
|
|
3964
3086
|
val expression = styleValue.getExpression()
|
|
3965
3087
|
if (expression != null) {
|
|
3966
|
-
layer.
|
|
3088
|
+
layer.hillshadeShadowColor(expression)
|
|
3967
3089
|
} else {
|
|
3968
|
-
e("
|
|
3090
|
+
e("RNMBXHillshade", "Expression for hillshadeShadowColor is null")
|
|
3969
3091
|
}
|
|
3970
3092
|
} else {
|
|
3971
3093
|
val value = styleValue.getInt(VALUE_KEY)
|
|
3972
3094
|
if (value != null) {
|
|
3973
|
-
layer.
|
|
3974
|
-
} else {
|
|
3975
|
-
e("RNMBXModel", "value for modelColor is null")
|
|
3976
|
-
}
|
|
3977
|
-
}
|
|
3978
|
-
}
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
fun setModelColorTransition(layer: ModelLayer, styleValue: RNMBXStyleValue) {
|
|
3982
|
-
val transition = styleValue.transition
|
|
3983
|
-
if (transition != null) {
|
|
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)
|
|
3095
|
+
layer.hillshadeShadowColor(value)
|
|
4101
3096
|
} else {
|
|
4102
|
-
e("
|
|
3097
|
+
e("RNMBXHillshade", "value for hillshadeShadowColor is null")
|
|
4103
3098
|
}
|
|
4104
3099
|
}
|
|
4105
3100
|
}
|
|
4106
3101
|
|
|
4107
3102
|
|
|
4108
|
-
fun
|
|
3103
|
+
fun setHillshadeShadowColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
|
|
4109
3104
|
val transition = styleValue.transition
|
|
4110
3105
|
if (transition != null) {
|
|
4111
|
-
layer.
|
|
3106
|
+
layer.hillshadeShadowColorTransition(transition);
|
|
4112
3107
|
}
|
|
4113
3108
|
}
|
|
4114
3109
|
|
|
4115
|
-
fun
|
|
3110
|
+
fun setHillshadeHighlightColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
|
|
4116
3111
|
if (styleValue.isExpression()) {
|
|
4117
3112
|
val expression = styleValue.getExpression()
|
|
4118
3113
|
if (expression != null) {
|
|
4119
|
-
layer.
|
|
3114
|
+
layer.hillshadeHighlightColor(expression)
|
|
4120
3115
|
} else {
|
|
4121
|
-
e("
|
|
3116
|
+
e("RNMBXHillshade", "Expression for hillshadeHighlightColor is null")
|
|
4122
3117
|
}
|
|
4123
3118
|
} else {
|
|
4124
|
-
val value = styleValue.
|
|
3119
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
4125
3120
|
if (value != null) {
|
|
4126
|
-
layer.
|
|
3121
|
+
layer.hillshadeHighlightColor(value)
|
|
4127
3122
|
} else {
|
|
4128
|
-
e("
|
|
3123
|
+
e("RNMBXHillshade", "value for hillshadeHighlightColor is null")
|
|
4129
3124
|
}
|
|
4130
3125
|
}
|
|
4131
3126
|
}
|
|
4132
3127
|
|
|
4133
3128
|
|
|
4134
|
-
fun
|
|
3129
|
+
fun setHillshadeHighlightColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
|
|
4135
3130
|
val transition = styleValue.transition
|
|
4136
3131
|
if (transition != null) {
|
|
4137
|
-
layer.
|
|
3132
|
+
layer.hillshadeHighlightColorTransition(transition);
|
|
4138
3133
|
}
|
|
4139
3134
|
}
|
|
4140
3135
|
|
|
4141
|
-
fun
|
|
3136
|
+
fun setHillshadeAccentColor(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
|
|
4142
3137
|
if (styleValue.isExpression()) {
|
|
4143
3138
|
val expression = styleValue.getExpression()
|
|
4144
3139
|
if (expression != null) {
|
|
4145
|
-
layer.
|
|
3140
|
+
layer.hillshadeAccentColor(expression)
|
|
4146
3141
|
} else {
|
|
4147
|
-
e("
|
|
3142
|
+
e("RNMBXHillshade", "Expression for hillshadeAccentColor is null")
|
|
4148
3143
|
}
|
|
4149
3144
|
} else {
|
|
4150
|
-
val value = styleValue.
|
|
3145
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
4151
3146
|
if (value != null) {
|
|
4152
|
-
layer.
|
|
3147
|
+
layer.hillshadeAccentColor(value)
|
|
4153
3148
|
} else {
|
|
4154
|
-
e("
|
|
3149
|
+
e("RNMBXHillshade", "value for hillshadeAccentColor is null")
|
|
4155
3150
|
}
|
|
4156
3151
|
}
|
|
4157
3152
|
}
|
|
4158
3153
|
|
|
4159
3154
|
|
|
4160
|
-
fun
|
|
3155
|
+
fun setHillshadeAccentColorTransition(layer: HillshadeLayer, styleValue: RNMBXStyleValue) {
|
|
4161
3156
|
val transition = styleValue.transition
|
|
4162
3157
|
if (transition != null) {
|
|
4163
|
-
layer.
|
|
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
|
-
}
|
|
3158
|
+
layer.hillshadeAccentColorTransition(transition);
|
|
4182
3159
|
}
|
|
4183
3160
|
}
|
|
4184
3161
|
|
|
@@ -4265,32 +3242,6 @@ object RNMBXStyleFactory {
|
|
|
4265
3242
|
}
|
|
4266
3243
|
}
|
|
4267
3244
|
|
|
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
|
-
|
|
4294
3245
|
fun setVisibility(layer: SkyLayer, styleValue: RNMBXStyleValue ) {
|
|
4295
3246
|
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
4296
3247
|
}
|
|
@@ -4697,32 +3648,6 @@ object RNMBXStyleFactory {
|
|
|
4697
3648
|
}
|
|
4698
3649
|
}
|
|
4699
3650
|
|
|
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
|
-
|
|
4726
3651
|
fun setExaggeration(layer: Terrain, styleValue: RNMBXStyleValue ) {
|
|
4727
3652
|
if (styleValue.isExpression()) {
|
|
4728
3653
|
val expression = styleValue.getExpression()
|