@rnmapbox/maps 10.0.15 → 10.1.0-beta.4
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/README.md +3 -9
- package/android/build.gradle +38 -35
- package/android/install.md +11 -116
- package/android/src/main/java-v10/com/mapbox/rctmgl/RCTMGLPackage.java +109 -12
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/AbstractEventEmitter.kt +2 -3
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotation.kt +4 -2
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/camera/CameraUpdateItem.kt +13 -12
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/camera/RCTMGLCamera.kt +1 -2
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/images/RCTMGLImage.kt +5 -3
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/images/RCTMGLImages.kt +3 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/location/LocationComponentManager.kt +11 -9
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocation.kt +5 -3
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/mapview/NativeMapViewModule.kt +193 -0
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapViewManager.kt +16 -2
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt +17 -91
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapViewManager.kt +75 -160
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/RCTMGLStyle.kt +8 -5
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/RCTMGLStyleFactory.kt +3669 -0
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/RCTMGLStyleValue.kt +9 -3
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/atmosphere/RCTMGLAtmosphere.kt +9 -5
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayer.kt +9 -4
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayer.kt +7 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayer.kt +9 -4
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayer.kt +7 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayer.kt +9 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayer.kt +6 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayer.kt +6 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLSkyLayer.kt +9 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayer.kt +9 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/light/RCTMGLLight.kt +3 -3
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterDemSource.kt +2 -0
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSource.kt +2 -0
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSource.kt +2 -0
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/terrain/RCTMGLTerrain.kt +7 -5
- package/android/src/main/java-v10/com/mapbox/rctmgl/events/LocationEvent.kt +14 -6
- package/android/src/main/java-v10/com/mapbox/rctmgl/location/LocationManager.kt +23 -32
- package/android/src/main/java-v10/com/mapbox/rctmgl/modules/CustomHttpHeaders.kt +9 -1
- package/android/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLLocationModule.kt +3 -4
- package/android/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLModule.kt +4 -5
- package/android/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.kt +9 -7
- package/android/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.kt +124 -0
- package/android/src/main/java-v10/com/mapbox/rctmgl/utils/BitmapUtils.kt +174 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/Annotation.kt +4 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/Event.kt +17 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/Feature.kt +10 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/HttpInterceptor.kt +22 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/Image.kt +29 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/Light.kt +15 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/Location.kt +54 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/MapboxMap.kt +31 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/OfflineManager.kt +19 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/OrnamentSettings.kt +96 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/ResourceOption.kt +12 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/rctmgl/v11compat/Snapshot.kt +28 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/Annotation.kt +4 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/Event.kt +342 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/Feature.kt +16 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/HttpInterceptor.kt +21 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/Image.kt +40 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/Light.kt +15 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/Location.kt +58 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/MapboxMap.kt +37 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/OfflineManager.kt +12 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/OrnamentSettings.kt +96 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/ResourceOption.kt +14 -0
- package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rctmgl/v11compat/Snapshot.kt +22 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/MBXAndroidTextureMapViewManagerDelegate.java +89 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/MBXAndroidTextureMapViewManagerInterface.java +37 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/MBXMapViewManagerDelegate.java +89 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/MBXMapViewManagerInterface.java +37 -0
- package/android/src/main/old-arch/com/mapbox/rctmgl/NativeMapViewModuleSpec.java +88 -0
- package/ios/RCTMGL-v10/CustomHttpHeaders.swift +18 -0
- package/ios/RCTMGL-v10/MBXMapViewComponentView.h +18 -0
- package/ios/RCTMGL-v10/MBXMapViewComponentView.mm +203 -0
- package/ios/RCTMGL-v10/MBXMapViewManager.m +37 -0
- package/ios/RCTMGL-v10/MBXMapViewManager.swift +250 -0
- package/ios/RCTMGL-v10/MBXMapViewModule.h +18 -0
- package/ios/RCTMGL-v10/MBXMapViewModule.mm +167 -0
- package/ios/RCTMGL-v10/MGLModule.swift +15 -1
- package/ios/RCTMGL-v10/MGLSnapshotModule.swift +7 -1
- package/ios/RCTMGL-v10/RCTMGLAtmosphere.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLBackgroundLayer.swift +2 -1
- package/ios/RCTMGL-v10/RCTMGLCamera.swift +23 -0
- package/ios/RCTMGL-v10/RCTMGLCircleLayer.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLFillExtrustionLayer.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLFillLayer.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLHeatmapLayer.swift +4 -1
- package/ios/RCTMGL-v10/RCTMGLImageSource.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLImages.swift +14 -2
- package/ios/RCTMGL-v10/RCTMGLLayer.swift +35 -11
- package/ios/RCTMGL-v10/RCTMGLLight.swift +14 -4
- package/ios/RCTMGL-v10/RCTMGLLineLayer.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLLocationModule.swift +65 -12
- package/ios/RCTMGL-v10/RCTMGLLocationModuleV11.swift +32 -0
- package/ios/RCTMGL-v10/RCTMGLMapView.swift +116 -28
- package/ios/RCTMGL-v10/RCTMGLNativeUserLocation.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLOfflineModule.swift +17 -0
- package/ios/RCTMGL-v10/RCTMGLRasterDemSource.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLRasterLayer.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLRasterSource.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLShapeSource.swift +65 -3
- package/ios/RCTMGL-v10/RCTMGLSource.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLStyleValue.swift +60 -1
- package/ios/RCTMGL-v10/RCTMGLSymbolLayer.swift +4 -0
- package/ios/RCTMGL-v10/RCTMGLVectorSource.swift +4 -0
- package/ios/RCTMGL-v10/rnmapbox_maps.h +1 -0
- package/ios/install.md +28 -39
- package/lib/commonjs/components/MapView.js +47 -11
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/commonjs/specs/MBXAndroidTextureMapViewNativeComponent.js +13 -0
- package/lib/commonjs/specs/MBXAndroidTextureMapViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/MBXMapViewNativeComponent.js +11 -0
- package/lib/commonjs/specs/MBXMapViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/NativeMapViewModule.js +11 -0
- package/lib/commonjs/specs/NativeMapViewModule.js.map +1 -0
- package/lib/commonjs/specs/codegenUtils.js +2 -0
- package/lib/commonjs/specs/codegenUtils.js.map +1 -0
- package/lib/module/components/MapView.js +47 -10
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/specs/MBXAndroidTextureMapViewNativeComponent.js +5 -0
- package/lib/module/specs/MBXAndroidTextureMapViewNativeComponent.js.map +1 -0
- package/lib/module/specs/MBXMapViewNativeComponent.js +3 -0
- package/lib/module/specs/MBXMapViewNativeComponent.js.map +1 -0
- package/lib/module/specs/NativeMapViewModule.js +5 -0
- package/lib/module/specs/NativeMapViewModule.js.map +1 -0
- package/lib/module/specs/codegenUtils.js +2 -0
- package/lib/module/specs/codegenUtils.js.map +1 -0
- package/lib/typescript/components/MapView.d.ts +13 -3
- package/lib/typescript/components/MapView.d.ts.map +1 -1
- package/lib/typescript/specs/MBXAndroidTextureMapViewNativeComponent.d.ts +52 -0
- package/lib/typescript/specs/MBXAndroidTextureMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/MBXMapViewNativeComponent.d.ts +52 -0
- package/lib/typescript/specs/MBXMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/NativeMapViewModule.d.ts +21 -0
- package/lib/typescript/specs/NativeMapViewModule.d.ts.map +1 -0
- package/lib/typescript/specs/codegenUtils.d.ts +2 -0
- package/lib/typescript/specs/codegenUtils.d.ts.map +1 -0
- package/package.json +9 -1
- package/rnmapbox-maps.podspec +34 -72
- package/setup-jest.js +16 -0
- package/src/components/MapView.tsx +56 -12
- package/src/specs/MBXAndroidTextureMapViewNativeComponent.ts +63 -0
- package/src/specs/MBXMapViewNativeComponent.ts +63 -0
- package/src/specs/NativeMapViewModule.ts +54 -0
- package/src/specs/codegenUtils.ts +4 -0
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/RCTMGLPackage.java +0 -99
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/AbstractEvent.java +0 -35
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/AbstractEventEmitter.java +0 -80
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/AbstractMapFeature.java +0 -19
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/annotation/MarkerView.java +0 -23
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/annotation/MarkerViewManager.java +0 -69
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/annotation/RCTMGLCallout.java +0 -15
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/annotation/RCTMGLCalloutManager.java +0 -22
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.java +0 -112
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.java +0 -45
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotation.java +0 -360
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotationManager.java +0 -88
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/camera/CameraStop.java +0 -249
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/camera/CameraUpdateItem.java +0 -125
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/camera/CameraUpdateQueue.java +0 -73
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/camera/RCTMGLCamera.java +0 -530
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/camera/RCTMGLCameraManager.java +0 -101
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/camera/constants/CameraMode.java +0 -22
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/images/RCTMGLImages.java +0 -234
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/images/RCTMGLImagesManager.java +0 -103
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/location/LocationComponentManager.java +0 -149
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocation.java +0 -67
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocationManager.java +0 -35
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/mapview/LayerSourceInfo.java +0 -59
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapView.java +0 -16
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapViewManager.java +0 -31
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java +0 -1528
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/mapview/RCTMGLMapViewManager.java +0 -355
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/mapview/helpers/CameraChangeTracker.java +0 -41
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/RCTMGLStyle.java +0 -83
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/RCTMGLStyleFactory.java +0 -2220
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/RCTMGLStyleFunctionParser.java +0 -108
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/RCTMGLStyleValue.java +0 -216
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTLayer.java +0 -287
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayer.java +0 -27
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayerManager.java +0 -64
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayer.java +0 -55
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayerManager.java +0 -77
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayer.java +0 -55
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayerManager.java +0 -80
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayer.java +0 -55
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayerManager.java +0 -80
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayer.java +0 -55
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayerManager.java +0 -77
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayer.java +0 -55
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayerManager.java +0 -79
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayer.java +0 -27
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayerManager.java +0 -64
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayer.java +0 -55
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayerManager.java +0 -75
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/light/RCTMGLLight.java +0 -65
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/light/RCTMGLLightManager.java +0 -29
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSource.java +0 -81
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSourceManager.java +0 -72
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSource.java +0 -45
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSourceManager.java +0 -44
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSource.java +0 -316
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSourceManager.java +0 -253
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSource.java +0 -97
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSourceManager.java +0 -80
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSource.java +0 -64
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSourceManager.java +0 -84
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/components/styles/sources/RCTSource.java +0 -244
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/AbstractEvent.java +0 -66
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/AndroidCallbackEvent.java +0 -38
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/EventEmitter.java +0 -45
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/FeatureClickEvent.java +0 -79
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/IEvent.java +0 -18
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/ImageMissingEvent.java +0 -42
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/LocationEvent.java +0 -100
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/MapChangeEvent.java +0 -47
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/MapClickEvent.java +0 -51
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/MapUserTrackingModeEvent.java +0 -36
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/OfflineEvent.java +0 -29
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/PointAnnotationClickEvent.java +0 -46
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/PointAnnotationDragEvent.java +0 -51
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/constants/EventKeys.java +0 -39
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/events/constants/EventTypes.java +0 -51
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/http/CustomHeadersInterceptor.java +0 -38
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/location/LocationManager.java +0 -147
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/location/UserLocation.java +0 -63
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/location/UserLocationVerticalAlignment.java +0 -11
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/location/UserTrackingMode.java +0 -63
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/location/UserTrackingState.java +0 -19
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/modules/RCTMGLLocationModule.java +0 -164
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/modules/RCTMGLLogging.java +0 -140
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/modules/RCTMGLModule.java +0 -377
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java +0 -597
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java +0 -139
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/BitmapUtils.java +0 -129
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/ClusterPropertyEntry.java +0 -13
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/ConvertUtils.java +0 -257
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/DownloadMapImageTask.java +0 -159
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/ExpressionParser.java +0 -74
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/GeoJSONUtils.java +0 -209
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/GeoViewport.java +0 -38
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/ImageEntry.java +0 -25
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/ResourceUtils.java +0 -30
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/SimpleEventCallback.java +0 -30
- package/android/src/main/java-mapboxgl/common/com/mapbox/rctmgl/utils/SphericalMercator.java +0 -69
- package/android/src/main/java-mapboxgl/mapbox/com/mapbox/rctmgl/impl/InstanceManagerImpl.java +0 -35
- package/android/src/main/java-mapboxgl/mapbox/com/mapbox/rctmgl/impl/LocationEngineCallbackImpl.java +0 -12
- package/android/src/main/java-mapboxgl/mapbox/com/mapbox/rctmgl/impl/LocationEngineResultImpl.java +0 -18
- package/android/src/main/java-mapboxgl/mapbox/com/mapbox/rctmgl/impl/LocationManagerImpl.java +0 -64
- package/android/src/main/java-mapboxgl/mapbox/com/mapbox/rctmgl/impl/PermissionsManagerImpl.java +0 -10
- package/android/src/main/java-mapboxgl/mapbox/com/mapbox/rctmgl/impl/SymbolClickListenerImpl.java +0 -18
- package/android/src/main/java-mapboxgl/mapbox/com/mapbox/rctmgl/impl/TelemetryImpl.java +0 -11
- package/android/src/main/java-mapboxgl/maplibre/com/mapbox/rctmgl/impl/InstanceManagerImpl.java +0 -42
- package/android/src/main/java-mapboxgl/maplibre/com/mapbox/rctmgl/impl/LocationEngineCallbackImpl.java +0 -12
- package/android/src/main/java-mapboxgl/maplibre/com/mapbox/rctmgl/impl/LocationEngineResultImpl.java +0 -18
- package/android/src/main/java-mapboxgl/maplibre/com/mapbox/rctmgl/impl/LocationManagerImpl.java +0 -64
- package/android/src/main/java-mapboxgl/maplibre/com/mapbox/rctmgl/impl/PermissionsManagerImpl.java +0 -10
- package/android/src/main/java-mapboxgl/maplibre/com/mapbox/rctmgl/impl/SymbolClickListenerImpl.java +0 -18
- package/android/src/main/java-mapboxgl/maplibre/com/mapbox/rctmgl/impl/TelemetryImpl.java +0 -7
- package/android/src/main/java-v10/com/mapbox/rctmgl/components/styles/RCTMGLStyleFactory.java +0 -2586
- package/android/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java +0 -151
- package/android/src/main/java-v10/com/mapbox/rctmgl/utils/BitmapUtils.java +0 -183
- package/ios/RCTMGL/CameraMode.h +0 -18
- package/ios/RCTMGL/CameraMode.m +0 -18
- package/ios/RCTMGL/CameraStop.h +0 -26
- package/ios/RCTMGL/CameraStop.m +0 -83
- package/ios/RCTMGL/CameraUpdateItem.h +0 -18
- package/ios/RCTMGL/CameraUpdateItem.m +0 -178
- package/ios/RCTMGL/CameraUpdateQueue.h +0 -21
- package/ios/RCTMGL/CameraUpdateQueue.m +0 -74
- package/ios/RCTMGL/FilterParser.h +0 -14
- package/ios/RCTMGL/FilterParser.m +0 -22
- package/ios/RCTMGL/MGLCustomHeaders.h +0 -20
- package/ios/RCTMGL/MGLCustomHeaders.m +0 -98
- package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.h +0 -23
- package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.m +0 -474
- package/ios/RCTMGL/MGLModule.h +0 -13
- package/ios/RCTMGL/MGLModule.m +0 -336
- package/ios/RCTMGL/MGLOfflineModule.h +0 -19
- package/ios/RCTMGL/MGLOfflineModule.m +0 -537
- package/ios/RCTMGL/MGLSnapshotModule.h +0 -13
- package/ios/RCTMGL/MGLSnapshotModule.m +0 -80
- package/ios/RCTMGL/MGLUserLocationHeadingArrowLayer.h +0 -11
- package/ios/RCTMGL/MGLUserLocationHeadingArrowLayer.m +0 -57
- package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.h +0 -11
- package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.m +0 -102
- package/ios/RCTMGL/MGLUserLocationHeadingIndicator.h +0 -10
- package/ios/RCTMGL/RCTConvert+Mapbox.h +0 -16
- package/ios/RCTMGL/RCTConvert+Mapbox.m +0 -32
- package/ios/RCTMGL/RCTMGL.h +0 -13
- package/ios/RCTMGL/RCTMGL.m +0 -13
- package/ios/RCTMGL/RCTMGLBackgroundLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLBackgroundLayer.m +0 -27
- package/ios/RCTMGL/RCTMGLBackgroundLayerManager.h +0 -13
- package/ios/RCTMGL/RCTMGLBackgroundLayerManager.m +0 -35
- package/ios/RCTMGL/RCTMGLCallout.h +0 -15
- package/ios/RCTMGL/RCTMGLCallout.m +0 -74
- package/ios/RCTMGL/RCTMGLCalloutManager.h +0 -13
- package/ios/RCTMGL/RCTMGLCalloutManager.m +0 -21
- package/ios/RCTMGL/RCTMGLCamera.h +0 -39
- package/ios/RCTMGL/RCTMGLCamera.m +0 -258
- package/ios/RCTMGL/RCTMGLCameraManager.h +0 -13
- package/ios/RCTMGL/RCTMGLCameraManager.m +0 -52
- package/ios/RCTMGL/RCTMGLCircleLayer.h +0 -13
- package/ios/RCTMGL/RCTMGLCircleLayer.m +0 -34
- package/ios/RCTMGL/RCTMGLCircleLayerManager.h +0 -13
- package/ios/RCTMGL/RCTMGLCircleLayerManager.m +0 -39
- package/ios/RCTMGL/RCTMGLEvent.h +0 -21
- package/ios/RCTMGL/RCTMGLEvent.m +0 -47
- package/ios/RCTMGL/RCTMGLEventProtocol.h +0 -16
- package/ios/RCTMGL/RCTMGLEventTypes.h +0 -50
- package/ios/RCTMGL/RCTMGLEventTypes.m +0 -49
- package/ios/RCTMGL/RCTMGLFillExtrusionLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLFillExtrusionLayer.m +0 -32
- package/ios/RCTMGL/RCTMGLFillExtrusionLayerManager.h +0 -13
- package/ios/RCTMGL/RCTMGLFillExtrusionLayerManager.m +0 -39
- package/ios/RCTMGL/RCTMGLFillLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLFillLayer.m +0 -33
- package/ios/RCTMGL/RCTMGLFillLayerManager.h +0 -13
- package/ios/RCTMGL/RCTMGLFillLayerManager.m +0 -37
- package/ios/RCTMGL/RCTMGLHeatmapLayer.h +0 -12
- package/ios/RCTMGL/RCTMGLHeatmapLayer.m +0 -30
- package/ios/RCTMGL/RCTMGLHeatmapLayerManager.h +0 -12
- package/ios/RCTMGL/RCTMGLHeatmapLayerManager.m +0 -38
- package/ios/RCTMGL/RCTMGLImageQueue.h +0 -19
- package/ios/RCTMGL/RCTMGLImageQueue.m +0 -57
- package/ios/RCTMGL/RCTMGLImageQueueOperation.h +0 -17
- package/ios/RCTMGL/RCTMGLImageQueueOperation.m +0 -138
- package/ios/RCTMGL/RCTMGLImageSource.h +0 -16
- package/ios/RCTMGL/RCTMGLImageSource.m +0 -60
- package/ios/RCTMGL/RCTMGLImageSourceManager.h +0 -13
- package/ios/RCTMGL/RCTMGLImageSourceManager.m +0 -25
- package/ios/RCTMGL/RCTMGLImages.h +0 -25
- package/ios/RCTMGL/RCTMGLImages.m +0 -126
- package/ios/RCTMGL/RCTMGLImagesManager.h +0 -5
- package/ios/RCTMGL/RCTMGLImagesManager.m +0 -21
- package/ios/RCTMGL/RCTMGLLayer.h +0 -52
- package/ios/RCTMGL/RCTMGLLayer.m +0 -236
- package/ios/RCTMGL/RCTMGLLight.h +0 -17
- package/ios/RCTMGL/RCTMGLLight.m +0 -46
- package/ios/RCTMGL/RCTMGLLightManager.h +0 -13
- package/ios/RCTMGL/RCTMGLLightManager.m +0 -23
- package/ios/RCTMGL/RCTMGLLineLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLLineLayer.m +0 -33
- package/ios/RCTMGL/RCTMGLLineLayerManager.h +0 -13
- package/ios/RCTMGL/RCTMGLLineLayerManager.m +0 -40
- package/ios/RCTMGL/RCTMGLLocation.h +0 -19
- package/ios/RCTMGL/RCTMGLLocation.m +0 -32
- package/ios/RCTMGL/RCTMGLLocationManager.h +0 -30
- package/ios/RCTMGL/RCTMGLLocationManager.m +0 -180
- package/ios/RCTMGL/RCTMGLLocationManagerDelegate.h +0 -20
- package/ios/RCTMGL/RCTMGLLocationModule.h +0 -15
- package/ios/RCTMGL/RCTMGLLocationModule.m +0 -99
- package/ios/RCTMGL/RCTMGLLogging.h +0 -18
- package/ios/RCTMGL/RCTMGLLogging.m +0 -132
- package/ios/RCTMGL/RCTMGLMapTouchEvent.h +0 -25
- package/ios/RCTMGL/RCTMGLMapTouchEvent.m +0 -77
- package/ios/RCTMGL/RCTMGLMapView.h +0 -91
- package/ios/RCTMGL/RCTMGLMapView.m +0 -536
- package/ios/RCTMGL/RCTMGLMapViewManager.h +0 -17
- package/ios/RCTMGL/RCTMGLMapViewManager.m +0 -625
- package/ios/RCTMGL/RCTMGLNativeUserLocation.h +0 -18
- package/ios/RCTMGL/RCTMGLNativeUserLocation.m +0 -49
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.h +0 -5
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.m +0 -25
- package/ios/RCTMGL/RCTMGLPointAnnotation.h +0 -41
- package/ios/RCTMGL/RCTMGLPointAnnotation.m +0 -251
- package/ios/RCTMGL/RCTMGLPointAnnotationManager.h +0 -13
- package/ios/RCTMGL/RCTMGLPointAnnotationManager.m +0 -36
- package/ios/RCTMGL/RCTMGLRasterLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLRasterLayer.m +0 -30
- package/ios/RCTMGL/RCTMGLRasterLayerManager.h +0 -13
- package/ios/RCTMGL/RCTMGLRasterLayerManager.m +0 -35
- package/ios/RCTMGL/RCTMGLRasterSource.h +0 -16
- package/ios/RCTMGL/RCTMGLRasterSource.m +0 -35
- package/ios/RCTMGL/RCTMGLRasterSourceManager.h +0 -13
- package/ios/RCTMGL/RCTMGLRasterSourceManager.m +0 -32
- package/ios/RCTMGL/RCTMGLShapeSource.h +0 -53
- package/ios/RCTMGL/RCTMGLShapeSource.m +0 -194
- package/ios/RCTMGL/RCTMGLShapeSourceManager.h +0 -14
- package/ios/RCTMGL/RCTMGLShapeSourceManager.m +0 -206
- package/ios/RCTMGL/RCTMGLSource.h +0 -35
- package/ios/RCTMGL/RCTMGLSource.m +0 -143
- package/ios/RCTMGL/RCTMGLStyle.h +0 -217
- package/ios/RCTMGL/RCTMGLStyle.m +0 -1640
- package/ios/RCTMGL/RCTMGLStyleValue.h +0 -27
- package/ios/RCTMGL/RCTMGLStyleValue.m +0 -167
- package/ios/RCTMGL/RCTMGLSymbolLayer.h +0 -19
- package/ios/RCTMGL/RCTMGLSymbolLayer.m +0 -121
- package/ios/RCTMGL/RCTMGLSymbolLayerManager.h +0 -13
- package/ios/RCTMGL/RCTMGLSymbolLayerManager.m +0 -40
- package/ios/RCTMGL/RCTMGLTileSource.h +0 -22
- package/ios/RCTMGL/RCTMGLTileSource.m +0 -31
- package/ios/RCTMGL/RCTMGLUserLocation.h +0 -15
- package/ios/RCTMGL/RCTMGLUserLocation.m +0 -38
- package/ios/RCTMGL/RCTMGLUtils.h +0 -31
- package/ios/RCTMGL/RCTMGLUtils.m +0 -218
- package/ios/RCTMGL/RCTMGLVectorLayer.h +0 -15
- package/ios/RCTMGL/RCTMGLVectorLayer.m +0 -59
- package/ios/RCTMGL/RCTMGLVectorSource.h +0 -16
- package/ios/RCTMGL/RCTMGLVectorSource.m +0 -28
- package/ios/RCTMGL/RCTMGLVectorSourceManager.h +0 -14
- package/ios/RCTMGL/RCTMGLVectorSourceManager.m +0 -79
- package/ios/RCTMGL/RNMBImageUtils.h +0 -17
- package/ios/RCTMGL/RNMBImageUtils.m +0 -31
- package/ios/RCTMGL/ViewManager.h +0 -16
- package/ios/RCTMGL/ViewManager.m +0 -63
- package/ios/RCTMGL-v10/RCTMGLMapViewManager.m +0 -107
- package/ios/RCTMGL-v10/RCTMGLMapViewManager.swift +0 -285
|
@@ -0,0 +1,3669 @@
|
|
|
1
|
+
// DO NOT MODIFY
|
|
2
|
+
// THIS FILE IS AUTOGENERATED
|
|
3
|
+
package com.mapbox.rctmgl.components.styles
|
|
4
|
+
|
|
5
|
+
import com.mapbox.maps.extension.style.expressions.generated.Expression
|
|
6
|
+
import com.mapbox.maps.extension.style.layers.generated.BackgroundLayer
|
|
7
|
+
import com.mapbox.maps.extension.style.layers.generated.CircleLayer
|
|
8
|
+
import com.mapbox.maps.extension.style.layers.generated.FillExtrusionLayer
|
|
9
|
+
import com.mapbox.maps.extension.style.layers.generated.FillLayer
|
|
10
|
+
import com.mapbox.maps.extension.style.layers.generated.LineLayer
|
|
11
|
+
import com.mapbox.maps.extension.style.layers.generated.SkyLayer
|
|
12
|
+
// import com.mapbox.maps.extension.style.layers.generated.PropertyFactory
|
|
13
|
+
// import com.mapbox.maps.extension.style.layers.generated.PropertyValue
|
|
14
|
+
import com.mapbox.maps.extension.style.layers.generated.RasterLayer
|
|
15
|
+
import com.mapbox.maps.extension.style.layers.generated.SymbolLayer
|
|
16
|
+
import com.mapbox.maps.extension.style.layers.generated.HeatmapLayer
|
|
17
|
+
import com.mapbox.maps.extension.style.layers.generated.HillshadeLayer
|
|
18
|
+
import com.mapbox.maps.extension.style.atmosphere.generated.Atmosphere
|
|
19
|
+
import com.mapbox.maps.extension.style.terrain.generated.Terrain
|
|
20
|
+
// import com.mapbox.maps.extension.style.layers.properties.generated.Visibility
|
|
21
|
+
import com.mapbox.maps.extension.style.layers.properties.generated.*
|
|
22
|
+
import com.mapbox.maps.extension.style.types.StyleTransition
|
|
23
|
+
|
|
24
|
+
import com.mapbox.maps.extension.style.light.LightPosition
|
|
25
|
+
import com.mapbox.rctmgl.utils.DownloadMapImageTask.OnAllImagesLoaded
|
|
26
|
+
import com.mapbox.rctmgl.utils.Logger.e
|
|
27
|
+
|
|
28
|
+
import com.mapbox.rctmgl.v11compat.light.*;
|
|
29
|
+
|
|
30
|
+
import java.util.List;
|
|
31
|
+
|
|
32
|
+
object RCTMGLStyleFactory {
|
|
33
|
+
const val VALUE_KEY = "value";
|
|
34
|
+
const val SHOULD_ADD_IMAGE_KEY = "shouldAddImage";
|
|
35
|
+
|
|
36
|
+
fun setFillLayerStyle(layer: FillLayer, style: RCTMGLStyle ) {
|
|
37
|
+
val styleKeys = style.allStyleKeys
|
|
38
|
+
|
|
39
|
+
if (styleKeys.isEmpty()) {
|
|
40
|
+
return
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
for (styleKey in styleKeys) {
|
|
44
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
45
|
+
|
|
46
|
+
when (styleKey) {
|
|
47
|
+
"fillSortKey" ->
|
|
48
|
+
setFillSortKey(layer, styleValue)
|
|
49
|
+
"visibility" ->
|
|
50
|
+
setVisibility(layer, styleValue)
|
|
51
|
+
"fillAntialias" ->
|
|
52
|
+
setFillAntialias(layer, styleValue)
|
|
53
|
+
"fillOpacity" ->
|
|
54
|
+
setFillOpacity(layer, styleValue)
|
|
55
|
+
"fillOpacityTransition" ->
|
|
56
|
+
setFillOpacityTransition(layer, styleValue)
|
|
57
|
+
"fillColor" ->
|
|
58
|
+
setFillColor(layer, styleValue)
|
|
59
|
+
"fillColorTransition" ->
|
|
60
|
+
setFillColorTransition(layer, styleValue)
|
|
61
|
+
"fillOutlineColor" ->
|
|
62
|
+
setFillOutlineColor(layer, styleValue)
|
|
63
|
+
"fillOutlineColorTransition" ->
|
|
64
|
+
setFillOutlineColorTransition(layer, styleValue)
|
|
65
|
+
"fillTranslate" ->
|
|
66
|
+
setFillTranslate(layer, styleValue)
|
|
67
|
+
"fillTranslateTransition" ->
|
|
68
|
+
setFillTranslateTransition(layer, styleValue)
|
|
69
|
+
"fillTranslateAnchor" ->
|
|
70
|
+
setFillTranslateAnchor(layer, styleValue)
|
|
71
|
+
"fillPattern" ->
|
|
72
|
+
style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
|
|
73
|
+
override fun onAllImagesLoaded() {
|
|
74
|
+
try {
|
|
75
|
+
setFillPattern(layer, styleValue)
|
|
76
|
+
} catch (exception: RuntimeException) {
|
|
77
|
+
e("RCTMGLFill",String.format("Exception failed during setFillPattern: %s", exception.message))
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
fun setLineLayerStyle(layer: LineLayer, style: RCTMGLStyle ) {
|
|
85
|
+
val styleKeys = style.allStyleKeys
|
|
86
|
+
|
|
87
|
+
if (styleKeys.isEmpty()) {
|
|
88
|
+
return
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
for (styleKey in styleKeys) {
|
|
92
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
93
|
+
|
|
94
|
+
when (styleKey) {
|
|
95
|
+
"lineCap" ->
|
|
96
|
+
setLineCap(layer, styleValue)
|
|
97
|
+
"lineJoin" ->
|
|
98
|
+
setLineJoin(layer, styleValue)
|
|
99
|
+
"lineMiterLimit" ->
|
|
100
|
+
setLineMiterLimit(layer, styleValue)
|
|
101
|
+
"lineRoundLimit" ->
|
|
102
|
+
setLineRoundLimit(layer, styleValue)
|
|
103
|
+
"lineSortKey" ->
|
|
104
|
+
setLineSortKey(layer, styleValue)
|
|
105
|
+
"visibility" ->
|
|
106
|
+
setVisibility(layer, styleValue)
|
|
107
|
+
"lineOpacity" ->
|
|
108
|
+
setLineOpacity(layer, styleValue)
|
|
109
|
+
"lineOpacityTransition" ->
|
|
110
|
+
setLineOpacityTransition(layer, styleValue)
|
|
111
|
+
"lineColor" ->
|
|
112
|
+
setLineColor(layer, styleValue)
|
|
113
|
+
"lineColorTransition" ->
|
|
114
|
+
setLineColorTransition(layer, styleValue)
|
|
115
|
+
"lineTranslate" ->
|
|
116
|
+
setLineTranslate(layer, styleValue)
|
|
117
|
+
"lineTranslateTransition" ->
|
|
118
|
+
setLineTranslateTransition(layer, styleValue)
|
|
119
|
+
"lineTranslateAnchor" ->
|
|
120
|
+
setLineTranslateAnchor(layer, styleValue)
|
|
121
|
+
"lineWidth" ->
|
|
122
|
+
setLineWidth(layer, styleValue)
|
|
123
|
+
"lineWidthTransition" ->
|
|
124
|
+
setLineWidthTransition(layer, styleValue)
|
|
125
|
+
"lineGapWidth" ->
|
|
126
|
+
setLineGapWidth(layer, styleValue)
|
|
127
|
+
"lineGapWidthTransition" ->
|
|
128
|
+
setLineGapWidthTransition(layer, styleValue)
|
|
129
|
+
"lineOffset" ->
|
|
130
|
+
setLineOffset(layer, styleValue)
|
|
131
|
+
"lineOffsetTransition" ->
|
|
132
|
+
setLineOffsetTransition(layer, styleValue)
|
|
133
|
+
"lineBlur" ->
|
|
134
|
+
setLineBlur(layer, styleValue)
|
|
135
|
+
"lineBlurTransition" ->
|
|
136
|
+
setLineBlurTransition(layer, styleValue)
|
|
137
|
+
"lineDasharray" ->
|
|
138
|
+
setLineDasharray(layer, styleValue)
|
|
139
|
+
"linePattern" ->
|
|
140
|
+
style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
|
|
141
|
+
override fun onAllImagesLoaded() {
|
|
142
|
+
try {
|
|
143
|
+
setLinePattern(layer, styleValue)
|
|
144
|
+
} catch (exception: RuntimeException) {
|
|
145
|
+
e("RCTMGLLine",String.format("Exception failed during setLinePattern: %s", exception.message))
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
"lineGradient" ->
|
|
150
|
+
setLineGradient(layer, styleValue)
|
|
151
|
+
"lineTrimOffset" ->
|
|
152
|
+
setLineTrimOffset(layer, styleValue)
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
fun setSymbolLayerStyle(layer: SymbolLayer, style: RCTMGLStyle ) {
|
|
157
|
+
val styleKeys = style.allStyleKeys
|
|
158
|
+
|
|
159
|
+
if (styleKeys.isEmpty()) {
|
|
160
|
+
return
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
for (styleKey in styleKeys) {
|
|
164
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
165
|
+
|
|
166
|
+
when (styleKey) {
|
|
167
|
+
"symbolPlacement" ->
|
|
168
|
+
setSymbolPlacement(layer, styleValue)
|
|
169
|
+
"symbolSpacing" ->
|
|
170
|
+
setSymbolSpacing(layer, styleValue)
|
|
171
|
+
"symbolAvoidEdges" ->
|
|
172
|
+
setSymbolAvoidEdges(layer, styleValue)
|
|
173
|
+
"symbolSortKey" ->
|
|
174
|
+
setSymbolSortKey(layer, styleValue)
|
|
175
|
+
"symbolZOrder" ->
|
|
176
|
+
setSymbolZOrder(layer, styleValue)
|
|
177
|
+
"iconAllowOverlap" ->
|
|
178
|
+
setIconAllowOverlap(layer, styleValue)
|
|
179
|
+
"iconIgnorePlacement" ->
|
|
180
|
+
setIconIgnorePlacement(layer, styleValue)
|
|
181
|
+
"iconOptional" ->
|
|
182
|
+
setIconOptional(layer, styleValue)
|
|
183
|
+
"iconRotationAlignment" ->
|
|
184
|
+
setIconRotationAlignment(layer, styleValue)
|
|
185
|
+
"iconSize" ->
|
|
186
|
+
setIconSize(layer, styleValue)
|
|
187
|
+
"iconTextFit" ->
|
|
188
|
+
setIconTextFit(layer, styleValue)
|
|
189
|
+
"iconTextFitPadding" ->
|
|
190
|
+
setIconTextFitPadding(layer, styleValue)
|
|
191
|
+
"iconImage" ->
|
|
192
|
+
style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
|
|
193
|
+
override fun onAllImagesLoaded() {
|
|
194
|
+
try {
|
|
195
|
+
setIconImage(layer, styleValue)
|
|
196
|
+
} catch (exception: RuntimeException) {
|
|
197
|
+
e("RCTMGLSymbol",String.format("Exception failed during setIconImage: %s", exception.message))
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
"iconRotate" ->
|
|
202
|
+
setIconRotate(layer, styleValue)
|
|
203
|
+
"iconPadding" ->
|
|
204
|
+
setIconPadding(layer, styleValue)
|
|
205
|
+
"iconKeepUpright" ->
|
|
206
|
+
setIconKeepUpright(layer, styleValue)
|
|
207
|
+
"iconOffset" ->
|
|
208
|
+
setIconOffset(layer, styleValue)
|
|
209
|
+
"iconAnchor" ->
|
|
210
|
+
setIconAnchor(layer, styleValue)
|
|
211
|
+
"iconPitchAlignment" ->
|
|
212
|
+
setIconPitchAlignment(layer, styleValue)
|
|
213
|
+
"textPitchAlignment" ->
|
|
214
|
+
setTextPitchAlignment(layer, styleValue)
|
|
215
|
+
"textRotationAlignment" ->
|
|
216
|
+
setTextRotationAlignment(layer, styleValue)
|
|
217
|
+
"textField" ->
|
|
218
|
+
setTextField(layer, styleValue)
|
|
219
|
+
"textFont" ->
|
|
220
|
+
setTextFont(layer, styleValue)
|
|
221
|
+
"textSize" ->
|
|
222
|
+
setTextSize(layer, styleValue)
|
|
223
|
+
"textMaxWidth" ->
|
|
224
|
+
setTextMaxWidth(layer, styleValue)
|
|
225
|
+
"textLineHeight" ->
|
|
226
|
+
setTextLineHeight(layer, styleValue)
|
|
227
|
+
"textLetterSpacing" ->
|
|
228
|
+
setTextLetterSpacing(layer, styleValue)
|
|
229
|
+
"textJustify" ->
|
|
230
|
+
setTextJustify(layer, styleValue)
|
|
231
|
+
"textRadialOffset" ->
|
|
232
|
+
setTextRadialOffset(layer, styleValue)
|
|
233
|
+
"textVariableAnchor" ->
|
|
234
|
+
setTextVariableAnchor(layer, styleValue)
|
|
235
|
+
"textAnchor" ->
|
|
236
|
+
setTextAnchor(layer, styleValue)
|
|
237
|
+
"textMaxAngle" ->
|
|
238
|
+
setTextMaxAngle(layer, styleValue)
|
|
239
|
+
"textWritingMode" ->
|
|
240
|
+
setTextWritingMode(layer, styleValue)
|
|
241
|
+
"textRotate" ->
|
|
242
|
+
setTextRotate(layer, styleValue)
|
|
243
|
+
"textPadding" ->
|
|
244
|
+
setTextPadding(layer, styleValue)
|
|
245
|
+
"textKeepUpright" ->
|
|
246
|
+
setTextKeepUpright(layer, styleValue)
|
|
247
|
+
"textTransform" ->
|
|
248
|
+
setTextTransform(layer, styleValue)
|
|
249
|
+
"textOffset" ->
|
|
250
|
+
setTextOffset(layer, styleValue)
|
|
251
|
+
"textAllowOverlap" ->
|
|
252
|
+
setTextAllowOverlap(layer, styleValue)
|
|
253
|
+
"textIgnorePlacement" ->
|
|
254
|
+
setTextIgnorePlacement(layer, styleValue)
|
|
255
|
+
"textOptional" ->
|
|
256
|
+
setTextOptional(layer, styleValue)
|
|
257
|
+
"visibility" ->
|
|
258
|
+
setVisibility(layer, styleValue)
|
|
259
|
+
"iconOpacity" ->
|
|
260
|
+
setIconOpacity(layer, styleValue)
|
|
261
|
+
"iconOpacityTransition" ->
|
|
262
|
+
setIconOpacityTransition(layer, styleValue)
|
|
263
|
+
"iconColor" ->
|
|
264
|
+
setIconColor(layer, styleValue)
|
|
265
|
+
"iconColorTransition" ->
|
|
266
|
+
setIconColorTransition(layer, styleValue)
|
|
267
|
+
"iconHaloColor" ->
|
|
268
|
+
setIconHaloColor(layer, styleValue)
|
|
269
|
+
"iconHaloColorTransition" ->
|
|
270
|
+
setIconHaloColorTransition(layer, styleValue)
|
|
271
|
+
"iconHaloWidth" ->
|
|
272
|
+
setIconHaloWidth(layer, styleValue)
|
|
273
|
+
"iconHaloWidthTransition" ->
|
|
274
|
+
setIconHaloWidthTransition(layer, styleValue)
|
|
275
|
+
"iconHaloBlur" ->
|
|
276
|
+
setIconHaloBlur(layer, styleValue)
|
|
277
|
+
"iconHaloBlurTransition" ->
|
|
278
|
+
setIconHaloBlurTransition(layer, styleValue)
|
|
279
|
+
"iconTranslate" ->
|
|
280
|
+
setIconTranslate(layer, styleValue)
|
|
281
|
+
"iconTranslateTransition" ->
|
|
282
|
+
setIconTranslateTransition(layer, styleValue)
|
|
283
|
+
"iconTranslateAnchor" ->
|
|
284
|
+
setIconTranslateAnchor(layer, styleValue)
|
|
285
|
+
"textOpacity" ->
|
|
286
|
+
setTextOpacity(layer, styleValue)
|
|
287
|
+
"textOpacityTransition" ->
|
|
288
|
+
setTextOpacityTransition(layer, styleValue)
|
|
289
|
+
"textColor" ->
|
|
290
|
+
setTextColor(layer, styleValue)
|
|
291
|
+
"textColorTransition" ->
|
|
292
|
+
setTextColorTransition(layer, styleValue)
|
|
293
|
+
"textHaloColor" ->
|
|
294
|
+
setTextHaloColor(layer, styleValue)
|
|
295
|
+
"textHaloColorTransition" ->
|
|
296
|
+
setTextHaloColorTransition(layer, styleValue)
|
|
297
|
+
"textHaloWidth" ->
|
|
298
|
+
setTextHaloWidth(layer, styleValue)
|
|
299
|
+
"textHaloWidthTransition" ->
|
|
300
|
+
setTextHaloWidthTransition(layer, styleValue)
|
|
301
|
+
"textHaloBlur" ->
|
|
302
|
+
setTextHaloBlur(layer, styleValue)
|
|
303
|
+
"textHaloBlurTransition" ->
|
|
304
|
+
setTextHaloBlurTransition(layer, styleValue)
|
|
305
|
+
"textTranslate" ->
|
|
306
|
+
setTextTranslate(layer, styleValue)
|
|
307
|
+
"textTranslateTransition" ->
|
|
308
|
+
setTextTranslateTransition(layer, styleValue)
|
|
309
|
+
"textTranslateAnchor" ->
|
|
310
|
+
setTextTranslateAnchor(layer, styleValue)
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
fun setCircleLayerStyle(layer: CircleLayer, style: RCTMGLStyle ) {
|
|
315
|
+
val styleKeys = style.allStyleKeys
|
|
316
|
+
|
|
317
|
+
if (styleKeys.isEmpty()) {
|
|
318
|
+
return
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
for (styleKey in styleKeys) {
|
|
322
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
323
|
+
|
|
324
|
+
when (styleKey) {
|
|
325
|
+
"circleSortKey" ->
|
|
326
|
+
setCircleSortKey(layer, styleValue)
|
|
327
|
+
"visibility" ->
|
|
328
|
+
setVisibility(layer, styleValue)
|
|
329
|
+
"circleRadius" ->
|
|
330
|
+
setCircleRadius(layer, styleValue)
|
|
331
|
+
"circleRadiusTransition" ->
|
|
332
|
+
setCircleRadiusTransition(layer, styleValue)
|
|
333
|
+
"circleColor" ->
|
|
334
|
+
setCircleColor(layer, styleValue)
|
|
335
|
+
"circleColorTransition" ->
|
|
336
|
+
setCircleColorTransition(layer, styleValue)
|
|
337
|
+
"circleBlur" ->
|
|
338
|
+
setCircleBlur(layer, styleValue)
|
|
339
|
+
"circleBlurTransition" ->
|
|
340
|
+
setCircleBlurTransition(layer, styleValue)
|
|
341
|
+
"circleOpacity" ->
|
|
342
|
+
setCircleOpacity(layer, styleValue)
|
|
343
|
+
"circleOpacityTransition" ->
|
|
344
|
+
setCircleOpacityTransition(layer, styleValue)
|
|
345
|
+
"circleTranslate" ->
|
|
346
|
+
setCircleTranslate(layer, styleValue)
|
|
347
|
+
"circleTranslateTransition" ->
|
|
348
|
+
setCircleTranslateTransition(layer, styleValue)
|
|
349
|
+
"circleTranslateAnchor" ->
|
|
350
|
+
setCircleTranslateAnchor(layer, styleValue)
|
|
351
|
+
"circlePitchScale" ->
|
|
352
|
+
setCirclePitchScale(layer, styleValue)
|
|
353
|
+
"circlePitchAlignment" ->
|
|
354
|
+
setCirclePitchAlignment(layer, styleValue)
|
|
355
|
+
"circleStrokeWidth" ->
|
|
356
|
+
setCircleStrokeWidth(layer, styleValue)
|
|
357
|
+
"circleStrokeWidthTransition" ->
|
|
358
|
+
setCircleStrokeWidthTransition(layer, styleValue)
|
|
359
|
+
"circleStrokeColor" ->
|
|
360
|
+
setCircleStrokeColor(layer, styleValue)
|
|
361
|
+
"circleStrokeColorTransition" ->
|
|
362
|
+
setCircleStrokeColorTransition(layer, styleValue)
|
|
363
|
+
"circleStrokeOpacity" ->
|
|
364
|
+
setCircleStrokeOpacity(layer, styleValue)
|
|
365
|
+
"circleStrokeOpacityTransition" ->
|
|
366
|
+
setCircleStrokeOpacityTransition(layer, styleValue)
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
fun setHeatmapLayerStyle(layer: HeatmapLayer, style: RCTMGLStyle ) {
|
|
371
|
+
val styleKeys = style.allStyleKeys
|
|
372
|
+
|
|
373
|
+
if (styleKeys.isEmpty()) {
|
|
374
|
+
return
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
for (styleKey in styleKeys) {
|
|
378
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
379
|
+
|
|
380
|
+
when (styleKey) {
|
|
381
|
+
"visibility" ->
|
|
382
|
+
setVisibility(layer, styleValue)
|
|
383
|
+
"heatmapRadius" ->
|
|
384
|
+
setHeatmapRadius(layer, styleValue)
|
|
385
|
+
"heatmapRadiusTransition" ->
|
|
386
|
+
setHeatmapRadiusTransition(layer, styleValue)
|
|
387
|
+
"heatmapWeight" ->
|
|
388
|
+
setHeatmapWeight(layer, styleValue)
|
|
389
|
+
"heatmapIntensity" ->
|
|
390
|
+
setHeatmapIntensity(layer, styleValue)
|
|
391
|
+
"heatmapIntensityTransition" ->
|
|
392
|
+
setHeatmapIntensityTransition(layer, styleValue)
|
|
393
|
+
"heatmapColor" ->
|
|
394
|
+
setHeatmapColor(layer, styleValue)
|
|
395
|
+
"heatmapOpacity" ->
|
|
396
|
+
setHeatmapOpacity(layer, styleValue)
|
|
397
|
+
"heatmapOpacityTransition" ->
|
|
398
|
+
setHeatmapOpacityTransition(layer, styleValue)
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
fun setFillExtrusionLayerStyle(layer: FillExtrusionLayer, style: RCTMGLStyle ) {
|
|
403
|
+
val styleKeys = style.allStyleKeys
|
|
404
|
+
|
|
405
|
+
if (styleKeys.isEmpty()) {
|
|
406
|
+
return
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
for (styleKey in styleKeys) {
|
|
410
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
411
|
+
|
|
412
|
+
when (styleKey) {
|
|
413
|
+
"visibility" ->
|
|
414
|
+
setVisibility(layer, styleValue)
|
|
415
|
+
"fillExtrusionOpacity" ->
|
|
416
|
+
setFillExtrusionOpacity(layer, styleValue)
|
|
417
|
+
"fillExtrusionOpacityTransition" ->
|
|
418
|
+
setFillExtrusionOpacityTransition(layer, styleValue)
|
|
419
|
+
"fillExtrusionColor" ->
|
|
420
|
+
setFillExtrusionColor(layer, styleValue)
|
|
421
|
+
"fillExtrusionColorTransition" ->
|
|
422
|
+
setFillExtrusionColorTransition(layer, styleValue)
|
|
423
|
+
"fillExtrusionTranslate" ->
|
|
424
|
+
setFillExtrusionTranslate(layer, styleValue)
|
|
425
|
+
"fillExtrusionTranslateTransition" ->
|
|
426
|
+
setFillExtrusionTranslateTransition(layer, styleValue)
|
|
427
|
+
"fillExtrusionTranslateAnchor" ->
|
|
428
|
+
setFillExtrusionTranslateAnchor(layer, styleValue)
|
|
429
|
+
"fillExtrusionPattern" ->
|
|
430
|
+
style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
|
|
431
|
+
override fun onAllImagesLoaded() {
|
|
432
|
+
try {
|
|
433
|
+
setFillExtrusionPattern(layer, styleValue)
|
|
434
|
+
} catch (exception: RuntimeException) {
|
|
435
|
+
e("RCTMGLFillExtrusion",String.format("Exception failed during setFillExtrusionPattern: %s", exception.message))
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
})
|
|
439
|
+
"fillExtrusionHeight" ->
|
|
440
|
+
setFillExtrusionHeight(layer, styleValue)
|
|
441
|
+
"fillExtrusionHeightTransition" ->
|
|
442
|
+
setFillExtrusionHeightTransition(layer, styleValue)
|
|
443
|
+
"fillExtrusionBase" ->
|
|
444
|
+
setFillExtrusionBase(layer, styleValue)
|
|
445
|
+
"fillExtrusionBaseTransition" ->
|
|
446
|
+
setFillExtrusionBaseTransition(layer, styleValue)
|
|
447
|
+
"fillExtrusionVerticalGradient" ->
|
|
448
|
+
setFillExtrusionVerticalGradient(layer, styleValue)
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
fun setRasterLayerStyle(layer: RasterLayer, style: RCTMGLStyle ) {
|
|
453
|
+
val styleKeys = style.allStyleKeys
|
|
454
|
+
|
|
455
|
+
if (styleKeys.isEmpty()) {
|
|
456
|
+
return
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
for (styleKey in styleKeys) {
|
|
460
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
461
|
+
|
|
462
|
+
when (styleKey) {
|
|
463
|
+
"visibility" ->
|
|
464
|
+
setVisibility(layer, styleValue)
|
|
465
|
+
"rasterOpacity" ->
|
|
466
|
+
setRasterOpacity(layer, styleValue)
|
|
467
|
+
"rasterOpacityTransition" ->
|
|
468
|
+
setRasterOpacityTransition(layer, styleValue)
|
|
469
|
+
"rasterHueRotate" ->
|
|
470
|
+
setRasterHueRotate(layer, styleValue)
|
|
471
|
+
"rasterHueRotateTransition" ->
|
|
472
|
+
setRasterHueRotateTransition(layer, styleValue)
|
|
473
|
+
"rasterBrightnessMin" ->
|
|
474
|
+
setRasterBrightnessMin(layer, styleValue)
|
|
475
|
+
"rasterBrightnessMinTransition" ->
|
|
476
|
+
setRasterBrightnessMinTransition(layer, styleValue)
|
|
477
|
+
"rasterBrightnessMax" ->
|
|
478
|
+
setRasterBrightnessMax(layer, styleValue)
|
|
479
|
+
"rasterBrightnessMaxTransition" ->
|
|
480
|
+
setRasterBrightnessMaxTransition(layer, styleValue)
|
|
481
|
+
"rasterSaturation" ->
|
|
482
|
+
setRasterSaturation(layer, styleValue)
|
|
483
|
+
"rasterSaturationTransition" ->
|
|
484
|
+
setRasterSaturationTransition(layer, styleValue)
|
|
485
|
+
"rasterContrast" ->
|
|
486
|
+
setRasterContrast(layer, styleValue)
|
|
487
|
+
"rasterContrastTransition" ->
|
|
488
|
+
setRasterContrastTransition(layer, styleValue)
|
|
489
|
+
"rasterResampling" ->
|
|
490
|
+
setRasterResampling(layer, styleValue)
|
|
491
|
+
"rasterFadeDuration" ->
|
|
492
|
+
setRasterFadeDuration(layer, styleValue)
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
fun setHillshadeLayerStyle(layer: HillshadeLayer, style: RCTMGLStyle ) {
|
|
497
|
+
val styleKeys = style.allStyleKeys
|
|
498
|
+
|
|
499
|
+
if (styleKeys.isEmpty()) {
|
|
500
|
+
return
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
for (styleKey in styleKeys) {
|
|
504
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
505
|
+
|
|
506
|
+
when (styleKey) {
|
|
507
|
+
"visibility" ->
|
|
508
|
+
setVisibility(layer, styleValue)
|
|
509
|
+
"hillshadeIlluminationDirection" ->
|
|
510
|
+
setHillshadeIlluminationDirection(layer, styleValue)
|
|
511
|
+
"hillshadeIlluminationAnchor" ->
|
|
512
|
+
setHillshadeIlluminationAnchor(layer, styleValue)
|
|
513
|
+
"hillshadeExaggeration" ->
|
|
514
|
+
setHillshadeExaggeration(layer, styleValue)
|
|
515
|
+
"hillshadeExaggerationTransition" ->
|
|
516
|
+
setHillshadeExaggerationTransition(layer, styleValue)
|
|
517
|
+
"hillshadeShadowColor" ->
|
|
518
|
+
setHillshadeShadowColor(layer, styleValue)
|
|
519
|
+
"hillshadeShadowColorTransition" ->
|
|
520
|
+
setHillshadeShadowColorTransition(layer, styleValue)
|
|
521
|
+
"hillshadeHighlightColor" ->
|
|
522
|
+
setHillshadeHighlightColor(layer, styleValue)
|
|
523
|
+
"hillshadeHighlightColorTransition" ->
|
|
524
|
+
setHillshadeHighlightColorTransition(layer, styleValue)
|
|
525
|
+
"hillshadeAccentColor" ->
|
|
526
|
+
setHillshadeAccentColor(layer, styleValue)
|
|
527
|
+
"hillshadeAccentColorTransition" ->
|
|
528
|
+
setHillshadeAccentColorTransition(layer, styleValue)
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
fun setBackgroundLayerStyle(layer: BackgroundLayer, style: RCTMGLStyle ) {
|
|
533
|
+
val styleKeys = style.allStyleKeys
|
|
534
|
+
|
|
535
|
+
if (styleKeys.isEmpty()) {
|
|
536
|
+
return
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
for (styleKey in styleKeys) {
|
|
540
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
541
|
+
|
|
542
|
+
when (styleKey) {
|
|
543
|
+
"visibility" ->
|
|
544
|
+
setVisibility(layer, styleValue)
|
|
545
|
+
"backgroundColor" ->
|
|
546
|
+
setBackgroundColor(layer, styleValue)
|
|
547
|
+
"backgroundColorTransition" ->
|
|
548
|
+
setBackgroundColorTransition(layer, styleValue)
|
|
549
|
+
"backgroundPattern" ->
|
|
550
|
+
style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
|
|
551
|
+
override fun onAllImagesLoaded() {
|
|
552
|
+
try {
|
|
553
|
+
setBackgroundPattern(layer, styleValue)
|
|
554
|
+
} catch (exception: RuntimeException) {
|
|
555
|
+
e("RCTMGLBackground",String.format("Exception failed during setBackgroundPattern: %s", exception.message))
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
})
|
|
559
|
+
"backgroundOpacity" ->
|
|
560
|
+
setBackgroundOpacity(layer, styleValue)
|
|
561
|
+
"backgroundOpacityTransition" ->
|
|
562
|
+
setBackgroundOpacityTransition(layer, styleValue)
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
fun setSkyLayerStyle(layer: SkyLayer, style: RCTMGLStyle ) {
|
|
567
|
+
val styleKeys = style.allStyleKeys
|
|
568
|
+
|
|
569
|
+
if (styleKeys.isEmpty()) {
|
|
570
|
+
return
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
for (styleKey in styleKeys) {
|
|
574
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
575
|
+
|
|
576
|
+
when (styleKey) {
|
|
577
|
+
"visibility" ->
|
|
578
|
+
setVisibility(layer, styleValue)
|
|
579
|
+
"skyType" ->
|
|
580
|
+
setSkyType(layer, styleValue)
|
|
581
|
+
"skyAtmosphereSun" ->
|
|
582
|
+
setSkyAtmosphereSun(layer, styleValue)
|
|
583
|
+
"skyAtmosphereSunIntensity" ->
|
|
584
|
+
setSkyAtmosphereSunIntensity(layer, styleValue)
|
|
585
|
+
"skyGradientCenter" ->
|
|
586
|
+
setSkyGradientCenter(layer, styleValue)
|
|
587
|
+
"skyGradientRadius" ->
|
|
588
|
+
setSkyGradientRadius(layer, styleValue)
|
|
589
|
+
"skyGradient" ->
|
|
590
|
+
setSkyGradient(layer, styleValue)
|
|
591
|
+
"skyAtmosphereHaloColor" ->
|
|
592
|
+
setSkyAtmosphereHaloColor(layer, styleValue)
|
|
593
|
+
"skyAtmosphereColor" ->
|
|
594
|
+
setSkyAtmosphereColor(layer, styleValue)
|
|
595
|
+
"skyOpacity" ->
|
|
596
|
+
setSkyOpacity(layer, styleValue)
|
|
597
|
+
"skyOpacityTransition" ->
|
|
598
|
+
setSkyOpacityTransition(layer, styleValue)
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
fun setLightLayerStyle(layer: Light, style: RCTMGLStyle ) {
|
|
603
|
+
val styleKeys = style.allStyleKeys
|
|
604
|
+
|
|
605
|
+
if (styleKeys.isEmpty()) {
|
|
606
|
+
return
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
for (styleKey in styleKeys) {
|
|
610
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
611
|
+
|
|
612
|
+
when (styleKey) {
|
|
613
|
+
"anchor" ->
|
|
614
|
+
setAnchor(layer, styleValue)
|
|
615
|
+
"position" ->
|
|
616
|
+
setPosition(layer, styleValue)
|
|
617
|
+
"positionTransition" ->
|
|
618
|
+
setPositionTransition(layer, styleValue)
|
|
619
|
+
"color" ->
|
|
620
|
+
setColor(layer, styleValue)
|
|
621
|
+
"colorTransition" ->
|
|
622
|
+
setColorTransition(layer, styleValue)
|
|
623
|
+
"intensity" ->
|
|
624
|
+
setIntensity(layer, styleValue)
|
|
625
|
+
"intensityTransition" ->
|
|
626
|
+
setIntensityTransition(layer, styleValue)
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
fun setAtmosphereLayerStyle(layer: Atmosphere, style: RCTMGLStyle ) {
|
|
631
|
+
val styleKeys = style.allStyleKeys
|
|
632
|
+
|
|
633
|
+
if (styleKeys.isEmpty()) {
|
|
634
|
+
return
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
for (styleKey in styleKeys) {
|
|
638
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
639
|
+
|
|
640
|
+
when (styleKey) {
|
|
641
|
+
"range" ->
|
|
642
|
+
setRange(layer, styleValue)
|
|
643
|
+
"rangeTransition" ->
|
|
644
|
+
setRangeTransition(layer, styleValue)
|
|
645
|
+
"color" ->
|
|
646
|
+
setColor(layer, styleValue)
|
|
647
|
+
"colorTransition" ->
|
|
648
|
+
setColorTransition(layer, styleValue)
|
|
649
|
+
"highColor" ->
|
|
650
|
+
setHighColor(layer, styleValue)
|
|
651
|
+
"highColorTransition" ->
|
|
652
|
+
setHighColorTransition(layer, styleValue)
|
|
653
|
+
"spaceColor" ->
|
|
654
|
+
setSpaceColor(layer, styleValue)
|
|
655
|
+
"spaceColorTransition" ->
|
|
656
|
+
setSpaceColorTransition(layer, styleValue)
|
|
657
|
+
"horizonBlend" ->
|
|
658
|
+
setHorizonBlend(layer, styleValue)
|
|
659
|
+
"horizonBlendTransition" ->
|
|
660
|
+
setHorizonBlendTransition(layer, styleValue)
|
|
661
|
+
"starIntensity" ->
|
|
662
|
+
setStarIntensity(layer, styleValue)
|
|
663
|
+
"starIntensityTransition" ->
|
|
664
|
+
setStarIntensityTransition(layer, styleValue)
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
fun setTerrainLayerStyle(layer: Terrain, style: RCTMGLStyle ) {
|
|
669
|
+
val styleKeys = style.allStyleKeys
|
|
670
|
+
|
|
671
|
+
if (styleKeys.isEmpty()) {
|
|
672
|
+
return
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
for (styleKey in styleKeys) {
|
|
676
|
+
val styleValue = style.getStyleValueForKey(styleKey)
|
|
677
|
+
|
|
678
|
+
when (styleKey) {
|
|
679
|
+
"exaggeration" ->
|
|
680
|
+
setExaggeration(layer, styleValue)
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
fun setFillSortKey(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
686
|
+
if (styleValue.isExpression()) {
|
|
687
|
+
val expression = styleValue.getExpression()
|
|
688
|
+
if (expression != null) {
|
|
689
|
+
layer.fillSortKey(expression)
|
|
690
|
+
} else {
|
|
691
|
+
e("RCTMGLFill", "Expression for fillSortKey is null")
|
|
692
|
+
}
|
|
693
|
+
} else {
|
|
694
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
695
|
+
if (value != null) {
|
|
696
|
+
layer.fillSortKey(value)
|
|
697
|
+
} else {
|
|
698
|
+
e("RCTMGLFill", "value for fillSortKey is null")
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
fun setVisibility(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
704
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
fun setFillAntialias(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
708
|
+
if (styleValue.isExpression()) {
|
|
709
|
+
val expression = styleValue.getExpression()
|
|
710
|
+
if (expression != null) {
|
|
711
|
+
layer.fillAntialias(expression)
|
|
712
|
+
} else {
|
|
713
|
+
e("RCTMGLFill", "Expression for fillAntialias is null")
|
|
714
|
+
}
|
|
715
|
+
} else {
|
|
716
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
717
|
+
if (value != null) {
|
|
718
|
+
layer.fillAntialias(value)
|
|
719
|
+
} else {
|
|
720
|
+
e("RCTMGLFill", "value for fillAntialias is null")
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
fun setFillOpacity(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
726
|
+
if (styleValue.isExpression()) {
|
|
727
|
+
val expression = styleValue.getExpression()
|
|
728
|
+
if (expression != null) {
|
|
729
|
+
layer.fillOpacity(expression)
|
|
730
|
+
} else {
|
|
731
|
+
e("RCTMGLFill", "Expression for fillOpacity is null")
|
|
732
|
+
}
|
|
733
|
+
} else {
|
|
734
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
735
|
+
if (value != null) {
|
|
736
|
+
layer.fillOpacity(value)
|
|
737
|
+
} else {
|
|
738
|
+
e("RCTMGLFill", "value for fillOpacity is null")
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
fun setFillOpacityTransition(layer: FillLayer, styleValue: RCTMGLStyleValue) {
|
|
745
|
+
val transition = styleValue.transition
|
|
746
|
+
if (transition != null) {
|
|
747
|
+
layer.fillOpacityTransition(transition);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
fun setFillColor(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
752
|
+
if (styleValue.isExpression()) {
|
|
753
|
+
val expression = styleValue.getExpression()
|
|
754
|
+
if (expression != null) {
|
|
755
|
+
layer.fillColor(expression)
|
|
756
|
+
} else {
|
|
757
|
+
e("RCTMGLFill", "Expression for fillColor is null")
|
|
758
|
+
}
|
|
759
|
+
} else {
|
|
760
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
761
|
+
if (value != null) {
|
|
762
|
+
layer.fillColor(value)
|
|
763
|
+
} else {
|
|
764
|
+
e("RCTMGLFill", "value for fillColor is null")
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
fun setFillColorTransition(layer: FillLayer, styleValue: RCTMGLStyleValue) {
|
|
771
|
+
val transition = styleValue.transition
|
|
772
|
+
if (transition != null) {
|
|
773
|
+
layer.fillColorTransition(transition);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
fun setFillOutlineColor(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
778
|
+
if (styleValue.isExpression()) {
|
|
779
|
+
val expression = styleValue.getExpression()
|
|
780
|
+
if (expression != null) {
|
|
781
|
+
layer.fillOutlineColor(expression)
|
|
782
|
+
} else {
|
|
783
|
+
e("RCTMGLFill", "Expression for fillOutlineColor is null")
|
|
784
|
+
}
|
|
785
|
+
} else {
|
|
786
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
787
|
+
if (value != null) {
|
|
788
|
+
layer.fillOutlineColor(value)
|
|
789
|
+
} else {
|
|
790
|
+
e("RCTMGLFill", "value for fillOutlineColor is null")
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
fun setFillOutlineColorTransition(layer: FillLayer, styleValue: RCTMGLStyleValue) {
|
|
797
|
+
val transition = styleValue.transition
|
|
798
|
+
if (transition != null) {
|
|
799
|
+
layer.fillOutlineColorTransition(transition);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
fun setFillTranslate(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
804
|
+
if (styleValue.isExpression()) {
|
|
805
|
+
val expression = styleValue.getExpression()
|
|
806
|
+
if (expression != null) {
|
|
807
|
+
layer.fillTranslate(expression)
|
|
808
|
+
} else {
|
|
809
|
+
e("RCTMGLFill", "Expression for fillTranslate is null")
|
|
810
|
+
}
|
|
811
|
+
} else {
|
|
812
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
813
|
+
if (value != null) {
|
|
814
|
+
layer.fillTranslate(value)
|
|
815
|
+
} else {
|
|
816
|
+
e("RCTMGLFill", "value for fillTranslate is null")
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
fun setFillTranslateTransition(layer: FillLayer, styleValue: RCTMGLStyleValue) {
|
|
823
|
+
val transition = styleValue.transition
|
|
824
|
+
if (transition != null) {
|
|
825
|
+
layer.fillTranslateTransition(transition);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
fun setFillTranslateAnchor(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
830
|
+
if (styleValue.isExpression()) {
|
|
831
|
+
val expression = styleValue.getExpression()
|
|
832
|
+
if (expression != null) {
|
|
833
|
+
layer.fillTranslateAnchor(expression)
|
|
834
|
+
} else {
|
|
835
|
+
e("RCTMGLFill", "Expression for fillTranslateAnchor is null")
|
|
836
|
+
}
|
|
837
|
+
} else {
|
|
838
|
+
layer.fillTranslateAnchor(FillTranslateAnchor.valueOf(styleValue.getEnumName()))
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
fun setFillPattern(layer: FillLayer, styleValue: RCTMGLStyleValue ) {
|
|
843
|
+
if (styleValue.isExpression()) {
|
|
844
|
+
if (styleValue.isImageStringValue) {
|
|
845
|
+
val value = styleValue.getImageStringValue()
|
|
846
|
+
if (value != null) {
|
|
847
|
+
layer.fillPattern(value)
|
|
848
|
+
} else {
|
|
849
|
+
e("RCTMGLFill", "Image for fillPattern is null")
|
|
850
|
+
}
|
|
851
|
+
} else {
|
|
852
|
+
val expression = styleValue.getExpression()
|
|
853
|
+
if (expression != null) {
|
|
854
|
+
layer.fillPattern(expression)
|
|
855
|
+
} else {
|
|
856
|
+
e("RCTMGLFill", "Expression for fillPattern is null")
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
} else {
|
|
860
|
+
val value = styleValue.imageURI
|
|
861
|
+
if (value != null) {
|
|
862
|
+
layer.fillPattern(value);
|
|
863
|
+
} else {
|
|
864
|
+
e("RCTMGLFill", "value for fillPattern is null")
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
fun setLineCap(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
870
|
+
if (styleValue.isExpression()) {
|
|
871
|
+
val expression = styleValue.getExpression()
|
|
872
|
+
if (expression != null) {
|
|
873
|
+
layer.lineCap(expression)
|
|
874
|
+
} else {
|
|
875
|
+
e("RCTMGLLine", "Expression for lineCap is null")
|
|
876
|
+
}
|
|
877
|
+
} else {
|
|
878
|
+
layer.lineCap(LineCap.valueOf(styleValue.getEnumName()))
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
fun setLineJoin(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
883
|
+
if (styleValue.isExpression()) {
|
|
884
|
+
val expression = styleValue.getExpression()
|
|
885
|
+
if (expression != null) {
|
|
886
|
+
layer.lineJoin(expression)
|
|
887
|
+
} else {
|
|
888
|
+
e("RCTMGLLine", "Expression for lineJoin is null")
|
|
889
|
+
}
|
|
890
|
+
} else {
|
|
891
|
+
layer.lineJoin(LineJoin.valueOf(styleValue.getEnumName()))
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
fun setLineMiterLimit(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
896
|
+
if (styleValue.isExpression()) {
|
|
897
|
+
val expression = styleValue.getExpression()
|
|
898
|
+
if (expression != null) {
|
|
899
|
+
layer.lineMiterLimit(expression)
|
|
900
|
+
} else {
|
|
901
|
+
e("RCTMGLLine", "Expression for lineMiterLimit is null")
|
|
902
|
+
}
|
|
903
|
+
} else {
|
|
904
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
905
|
+
if (value != null) {
|
|
906
|
+
layer.lineMiterLimit(value)
|
|
907
|
+
} else {
|
|
908
|
+
e("RCTMGLLine", "value for lineMiterLimit is null")
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
fun setLineRoundLimit(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
914
|
+
if (styleValue.isExpression()) {
|
|
915
|
+
val expression = styleValue.getExpression()
|
|
916
|
+
if (expression != null) {
|
|
917
|
+
layer.lineRoundLimit(expression)
|
|
918
|
+
} else {
|
|
919
|
+
e("RCTMGLLine", "Expression for lineRoundLimit is null")
|
|
920
|
+
}
|
|
921
|
+
} else {
|
|
922
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
923
|
+
if (value != null) {
|
|
924
|
+
layer.lineRoundLimit(value)
|
|
925
|
+
} else {
|
|
926
|
+
e("RCTMGLLine", "value for lineRoundLimit is null")
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
fun setLineSortKey(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
932
|
+
if (styleValue.isExpression()) {
|
|
933
|
+
val expression = styleValue.getExpression()
|
|
934
|
+
if (expression != null) {
|
|
935
|
+
layer.lineSortKey(expression)
|
|
936
|
+
} else {
|
|
937
|
+
e("RCTMGLLine", "Expression for lineSortKey is null")
|
|
938
|
+
}
|
|
939
|
+
} else {
|
|
940
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
941
|
+
if (value != null) {
|
|
942
|
+
layer.lineSortKey(value)
|
|
943
|
+
} else {
|
|
944
|
+
e("RCTMGLLine", "value for lineSortKey is null")
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
fun setVisibility(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
950
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
fun setLineOpacity(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
954
|
+
if (styleValue.isExpression()) {
|
|
955
|
+
val expression = styleValue.getExpression()
|
|
956
|
+
if (expression != null) {
|
|
957
|
+
layer.lineOpacity(expression)
|
|
958
|
+
} else {
|
|
959
|
+
e("RCTMGLLine", "Expression for lineOpacity is null")
|
|
960
|
+
}
|
|
961
|
+
} else {
|
|
962
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
963
|
+
if (value != null) {
|
|
964
|
+
layer.lineOpacity(value)
|
|
965
|
+
} else {
|
|
966
|
+
e("RCTMGLLine", "value for lineOpacity is null")
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
fun setLineOpacityTransition(layer: LineLayer, styleValue: RCTMGLStyleValue) {
|
|
973
|
+
val transition = styleValue.transition
|
|
974
|
+
if (transition != null) {
|
|
975
|
+
layer.lineOpacityTransition(transition);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
fun setLineColor(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
980
|
+
if (styleValue.isExpression()) {
|
|
981
|
+
val expression = styleValue.getExpression()
|
|
982
|
+
if (expression != null) {
|
|
983
|
+
layer.lineColor(expression)
|
|
984
|
+
} else {
|
|
985
|
+
e("RCTMGLLine", "Expression for lineColor is null")
|
|
986
|
+
}
|
|
987
|
+
} else {
|
|
988
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
989
|
+
if (value != null) {
|
|
990
|
+
layer.lineColor(value)
|
|
991
|
+
} else {
|
|
992
|
+
e("RCTMGLLine", "value for lineColor is null")
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
fun setLineColorTransition(layer: LineLayer, styleValue: RCTMGLStyleValue) {
|
|
999
|
+
val transition = styleValue.transition
|
|
1000
|
+
if (transition != null) {
|
|
1001
|
+
layer.lineColorTransition(transition);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
fun setLineTranslate(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1006
|
+
if (styleValue.isExpression()) {
|
|
1007
|
+
val expression = styleValue.getExpression()
|
|
1008
|
+
if (expression != null) {
|
|
1009
|
+
layer.lineTranslate(expression)
|
|
1010
|
+
} else {
|
|
1011
|
+
e("RCTMGLLine", "Expression for lineTranslate is null")
|
|
1012
|
+
}
|
|
1013
|
+
} else {
|
|
1014
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
1015
|
+
if (value != null) {
|
|
1016
|
+
layer.lineTranslate(value)
|
|
1017
|
+
} else {
|
|
1018
|
+
e("RCTMGLLine", "value for lineTranslate is null")
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
fun setLineTranslateTransition(layer: LineLayer, styleValue: RCTMGLStyleValue) {
|
|
1025
|
+
val transition = styleValue.transition
|
|
1026
|
+
if (transition != null) {
|
|
1027
|
+
layer.lineTranslateTransition(transition);
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
fun setLineTranslateAnchor(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1032
|
+
if (styleValue.isExpression()) {
|
|
1033
|
+
val expression = styleValue.getExpression()
|
|
1034
|
+
if (expression != null) {
|
|
1035
|
+
layer.lineTranslateAnchor(expression)
|
|
1036
|
+
} else {
|
|
1037
|
+
e("RCTMGLLine", "Expression for lineTranslateAnchor is null")
|
|
1038
|
+
}
|
|
1039
|
+
} else {
|
|
1040
|
+
layer.lineTranslateAnchor(LineTranslateAnchor.valueOf(styleValue.getEnumName()))
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
fun setLineWidth(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1045
|
+
if (styleValue.isExpression()) {
|
|
1046
|
+
val expression = styleValue.getExpression()
|
|
1047
|
+
if (expression != null) {
|
|
1048
|
+
layer.lineWidth(expression)
|
|
1049
|
+
} else {
|
|
1050
|
+
e("RCTMGLLine", "Expression for lineWidth is null")
|
|
1051
|
+
}
|
|
1052
|
+
} else {
|
|
1053
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1054
|
+
if (value != null) {
|
|
1055
|
+
layer.lineWidth(value)
|
|
1056
|
+
} else {
|
|
1057
|
+
e("RCTMGLLine", "value for lineWidth is null")
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
fun setLineWidthTransition(layer: LineLayer, styleValue: RCTMGLStyleValue) {
|
|
1064
|
+
val transition = styleValue.transition
|
|
1065
|
+
if (transition != null) {
|
|
1066
|
+
layer.lineWidthTransition(transition);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
fun setLineGapWidth(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1071
|
+
if (styleValue.isExpression()) {
|
|
1072
|
+
val expression = styleValue.getExpression()
|
|
1073
|
+
if (expression != null) {
|
|
1074
|
+
layer.lineGapWidth(expression)
|
|
1075
|
+
} else {
|
|
1076
|
+
e("RCTMGLLine", "Expression for lineGapWidth is null")
|
|
1077
|
+
}
|
|
1078
|
+
} else {
|
|
1079
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1080
|
+
if (value != null) {
|
|
1081
|
+
layer.lineGapWidth(value)
|
|
1082
|
+
} else {
|
|
1083
|
+
e("RCTMGLLine", "value for lineGapWidth is null")
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
fun setLineGapWidthTransition(layer: LineLayer, styleValue: RCTMGLStyleValue) {
|
|
1090
|
+
val transition = styleValue.transition
|
|
1091
|
+
if (transition != null) {
|
|
1092
|
+
layer.lineGapWidthTransition(transition);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
fun setLineOffset(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1097
|
+
if (styleValue.isExpression()) {
|
|
1098
|
+
val expression = styleValue.getExpression()
|
|
1099
|
+
if (expression != null) {
|
|
1100
|
+
layer.lineOffset(expression)
|
|
1101
|
+
} else {
|
|
1102
|
+
e("RCTMGLLine", "Expression for lineOffset is null")
|
|
1103
|
+
}
|
|
1104
|
+
} else {
|
|
1105
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1106
|
+
if (value != null) {
|
|
1107
|
+
layer.lineOffset(value)
|
|
1108
|
+
} else {
|
|
1109
|
+
e("RCTMGLLine", "value for lineOffset is null")
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
fun setLineOffsetTransition(layer: LineLayer, styleValue: RCTMGLStyleValue) {
|
|
1116
|
+
val transition = styleValue.transition
|
|
1117
|
+
if (transition != null) {
|
|
1118
|
+
layer.lineOffsetTransition(transition);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
fun setLineBlur(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1123
|
+
if (styleValue.isExpression()) {
|
|
1124
|
+
val expression = styleValue.getExpression()
|
|
1125
|
+
if (expression != null) {
|
|
1126
|
+
layer.lineBlur(expression)
|
|
1127
|
+
} else {
|
|
1128
|
+
e("RCTMGLLine", "Expression for lineBlur is null")
|
|
1129
|
+
}
|
|
1130
|
+
} else {
|
|
1131
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1132
|
+
if (value != null) {
|
|
1133
|
+
layer.lineBlur(value)
|
|
1134
|
+
} else {
|
|
1135
|
+
e("RCTMGLLine", "value for lineBlur is null")
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
fun setLineBlurTransition(layer: LineLayer, styleValue: RCTMGLStyleValue) {
|
|
1142
|
+
val transition = styleValue.transition
|
|
1143
|
+
if (transition != null) {
|
|
1144
|
+
layer.lineBlurTransition(transition);
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
fun setLineDasharray(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1149
|
+
if (styleValue.isExpression()) {
|
|
1150
|
+
val expression = styleValue.getExpression()
|
|
1151
|
+
if (expression != null) {
|
|
1152
|
+
layer.lineDasharray(expression)
|
|
1153
|
+
} else {
|
|
1154
|
+
e("RCTMGLLine", "Expression for lineDasharray is null")
|
|
1155
|
+
}
|
|
1156
|
+
} else {
|
|
1157
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
1158
|
+
if (value != null) {
|
|
1159
|
+
layer.lineDasharray(value)
|
|
1160
|
+
} else {
|
|
1161
|
+
e("RCTMGLLine", "value for lineDasharray is null")
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
fun setLinePattern(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1167
|
+
if (styleValue.isExpression()) {
|
|
1168
|
+
if (styleValue.isImageStringValue) {
|
|
1169
|
+
val value = styleValue.getImageStringValue()
|
|
1170
|
+
if (value != null) {
|
|
1171
|
+
layer.linePattern(value)
|
|
1172
|
+
} else {
|
|
1173
|
+
e("RCTMGLLine", "Image for linePattern is null")
|
|
1174
|
+
}
|
|
1175
|
+
} else {
|
|
1176
|
+
val expression = styleValue.getExpression()
|
|
1177
|
+
if (expression != null) {
|
|
1178
|
+
layer.linePattern(expression)
|
|
1179
|
+
} else {
|
|
1180
|
+
e("RCTMGLLine", "Expression for linePattern is null")
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
} else {
|
|
1184
|
+
val value = styleValue.imageURI
|
|
1185
|
+
if (value != null) {
|
|
1186
|
+
layer.linePattern(value);
|
|
1187
|
+
} else {
|
|
1188
|
+
e("RCTMGLLine", "value for linePattern is null")
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
fun setLineGradient(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1194
|
+
if (styleValue.isExpression()) {
|
|
1195
|
+
val expression = styleValue.getExpression()
|
|
1196
|
+
if (expression != null) {
|
|
1197
|
+
layer.lineGradient(expression)
|
|
1198
|
+
} else {
|
|
1199
|
+
e("RCTMGLLine", "Expression for lineGradient is null")
|
|
1200
|
+
}
|
|
1201
|
+
} else {
|
|
1202
|
+
layer.lineGradient(styleValue.getIntExpression(VALUE_KEY))
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
fun setLineTrimOffset(layer: LineLayer, styleValue: RCTMGLStyleValue ) {
|
|
1207
|
+
if (styleValue.isExpression()) {
|
|
1208
|
+
val expression = styleValue.getExpression()
|
|
1209
|
+
if (expression != null) {
|
|
1210
|
+
layer.lineTrimOffset(expression)
|
|
1211
|
+
} else {
|
|
1212
|
+
e("RCTMGLLine", "Expression for lineTrimOffset is null")
|
|
1213
|
+
}
|
|
1214
|
+
} else {
|
|
1215
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
1216
|
+
if (value != null) {
|
|
1217
|
+
layer.lineTrimOffset(value)
|
|
1218
|
+
} else {
|
|
1219
|
+
e("RCTMGLLine", "value for lineTrimOffset is null")
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
fun setSymbolPlacement(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1225
|
+
if (styleValue.isExpression()) {
|
|
1226
|
+
val expression = styleValue.getExpression()
|
|
1227
|
+
if (expression != null) {
|
|
1228
|
+
layer.symbolPlacement(expression)
|
|
1229
|
+
} else {
|
|
1230
|
+
e("RCTMGLSymbol", "Expression for symbolPlacement is null")
|
|
1231
|
+
}
|
|
1232
|
+
} else {
|
|
1233
|
+
layer.symbolPlacement(SymbolPlacement.valueOf(styleValue.getEnumName()))
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
fun setSymbolSpacing(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1238
|
+
if (styleValue.isExpression()) {
|
|
1239
|
+
val expression = styleValue.getExpression()
|
|
1240
|
+
if (expression != null) {
|
|
1241
|
+
layer.symbolSpacing(expression)
|
|
1242
|
+
} else {
|
|
1243
|
+
e("RCTMGLSymbol", "Expression for symbolSpacing is null")
|
|
1244
|
+
}
|
|
1245
|
+
} else {
|
|
1246
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1247
|
+
if (value != null) {
|
|
1248
|
+
layer.symbolSpacing(value)
|
|
1249
|
+
} else {
|
|
1250
|
+
e("RCTMGLSymbol", "value for symbolSpacing is null")
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
fun setSymbolAvoidEdges(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1256
|
+
if (styleValue.isExpression()) {
|
|
1257
|
+
val expression = styleValue.getExpression()
|
|
1258
|
+
if (expression != null) {
|
|
1259
|
+
layer.symbolAvoidEdges(expression)
|
|
1260
|
+
} else {
|
|
1261
|
+
e("RCTMGLSymbol", "Expression for symbolAvoidEdges is null")
|
|
1262
|
+
}
|
|
1263
|
+
} else {
|
|
1264
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1265
|
+
if (value != null) {
|
|
1266
|
+
layer.symbolAvoidEdges(value)
|
|
1267
|
+
} else {
|
|
1268
|
+
e("RCTMGLSymbol", "value for symbolAvoidEdges is null")
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
fun setSymbolSortKey(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1274
|
+
if (styleValue.isExpression()) {
|
|
1275
|
+
val expression = styleValue.getExpression()
|
|
1276
|
+
if (expression != null) {
|
|
1277
|
+
layer.symbolSortKey(expression)
|
|
1278
|
+
} else {
|
|
1279
|
+
e("RCTMGLSymbol", "Expression for symbolSortKey is null")
|
|
1280
|
+
}
|
|
1281
|
+
} else {
|
|
1282
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1283
|
+
if (value != null) {
|
|
1284
|
+
layer.symbolSortKey(value)
|
|
1285
|
+
} else {
|
|
1286
|
+
e("RCTMGLSymbol", "value for symbolSortKey is null")
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
fun setSymbolZOrder(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1292
|
+
if (styleValue.isExpression()) {
|
|
1293
|
+
val expression = styleValue.getExpression()
|
|
1294
|
+
if (expression != null) {
|
|
1295
|
+
layer.symbolZOrder(expression)
|
|
1296
|
+
} else {
|
|
1297
|
+
e("RCTMGLSymbol", "Expression for symbolZOrder is null")
|
|
1298
|
+
}
|
|
1299
|
+
} else {
|
|
1300
|
+
layer.symbolZOrder(SymbolZOrder.valueOf(styleValue.getEnumName()))
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
fun setIconAllowOverlap(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1305
|
+
if (styleValue.isExpression()) {
|
|
1306
|
+
val expression = styleValue.getExpression()
|
|
1307
|
+
if (expression != null) {
|
|
1308
|
+
layer.iconAllowOverlap(expression)
|
|
1309
|
+
} else {
|
|
1310
|
+
e("RCTMGLSymbol", "Expression for iconAllowOverlap is null")
|
|
1311
|
+
}
|
|
1312
|
+
} else {
|
|
1313
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1314
|
+
if (value != null) {
|
|
1315
|
+
layer.iconAllowOverlap(value)
|
|
1316
|
+
} else {
|
|
1317
|
+
e("RCTMGLSymbol", "value for iconAllowOverlap is null")
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
fun setIconIgnorePlacement(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1323
|
+
if (styleValue.isExpression()) {
|
|
1324
|
+
val expression = styleValue.getExpression()
|
|
1325
|
+
if (expression != null) {
|
|
1326
|
+
layer.iconIgnorePlacement(expression)
|
|
1327
|
+
} else {
|
|
1328
|
+
e("RCTMGLSymbol", "Expression for iconIgnorePlacement is null")
|
|
1329
|
+
}
|
|
1330
|
+
} else {
|
|
1331
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1332
|
+
if (value != null) {
|
|
1333
|
+
layer.iconIgnorePlacement(value)
|
|
1334
|
+
} else {
|
|
1335
|
+
e("RCTMGLSymbol", "value for iconIgnorePlacement is null")
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
fun setIconOptional(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1341
|
+
if (styleValue.isExpression()) {
|
|
1342
|
+
val expression = styleValue.getExpression()
|
|
1343
|
+
if (expression != null) {
|
|
1344
|
+
layer.iconOptional(expression)
|
|
1345
|
+
} else {
|
|
1346
|
+
e("RCTMGLSymbol", "Expression for iconOptional is null")
|
|
1347
|
+
}
|
|
1348
|
+
} else {
|
|
1349
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1350
|
+
if (value != null) {
|
|
1351
|
+
layer.iconOptional(value)
|
|
1352
|
+
} else {
|
|
1353
|
+
e("RCTMGLSymbol", "value for iconOptional is null")
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
fun setIconRotationAlignment(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1359
|
+
if (styleValue.isExpression()) {
|
|
1360
|
+
val expression = styleValue.getExpression()
|
|
1361
|
+
if (expression != null) {
|
|
1362
|
+
layer.iconRotationAlignment(expression)
|
|
1363
|
+
} else {
|
|
1364
|
+
e("RCTMGLSymbol", "Expression for iconRotationAlignment is null")
|
|
1365
|
+
}
|
|
1366
|
+
} else {
|
|
1367
|
+
layer.iconRotationAlignment(IconRotationAlignment.valueOf(styleValue.getEnumName()))
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
fun setIconSize(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1372
|
+
if (styleValue.isExpression()) {
|
|
1373
|
+
val expression = styleValue.getExpression()
|
|
1374
|
+
if (expression != null) {
|
|
1375
|
+
layer.iconSize(expression)
|
|
1376
|
+
} else {
|
|
1377
|
+
e("RCTMGLSymbol", "Expression for iconSize is null")
|
|
1378
|
+
}
|
|
1379
|
+
} else {
|
|
1380
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1381
|
+
if (value != null) {
|
|
1382
|
+
layer.iconSize(value)
|
|
1383
|
+
} else {
|
|
1384
|
+
e("RCTMGLSymbol", "value for iconSize is null")
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
fun setIconTextFit(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1390
|
+
if (styleValue.isExpression()) {
|
|
1391
|
+
val expression = styleValue.getExpression()
|
|
1392
|
+
if (expression != null) {
|
|
1393
|
+
layer.iconTextFit(expression)
|
|
1394
|
+
} else {
|
|
1395
|
+
e("RCTMGLSymbol", "Expression for iconTextFit is null")
|
|
1396
|
+
}
|
|
1397
|
+
} else {
|
|
1398
|
+
layer.iconTextFit(IconTextFit.valueOf(styleValue.getEnumName()))
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
fun setIconTextFitPadding(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1403
|
+
if (styleValue.isExpression()) {
|
|
1404
|
+
val expression = styleValue.getExpression()
|
|
1405
|
+
if (expression != null) {
|
|
1406
|
+
layer.iconTextFitPadding(expression)
|
|
1407
|
+
} else {
|
|
1408
|
+
e("RCTMGLSymbol", "Expression for iconTextFitPadding is null")
|
|
1409
|
+
}
|
|
1410
|
+
} else {
|
|
1411
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
1412
|
+
if (value != null) {
|
|
1413
|
+
layer.iconTextFitPadding(value)
|
|
1414
|
+
} else {
|
|
1415
|
+
e("RCTMGLSymbol", "value for iconTextFitPadding is null")
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
fun setIconImage(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1421
|
+
if (styleValue.isExpression()) {
|
|
1422
|
+
if (styleValue.isImageStringValue) {
|
|
1423
|
+
val value = styleValue.getImageStringValue()
|
|
1424
|
+
if (value != null) {
|
|
1425
|
+
layer.iconImage(value)
|
|
1426
|
+
} else {
|
|
1427
|
+
e("RCTMGLSymbol", "Image for iconImage is null")
|
|
1428
|
+
}
|
|
1429
|
+
} else {
|
|
1430
|
+
val expression = styleValue.getExpression()
|
|
1431
|
+
if (expression != null) {
|
|
1432
|
+
layer.iconImage(expression)
|
|
1433
|
+
} else {
|
|
1434
|
+
e("RCTMGLSymbol", "Expression for iconImage is null")
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
} else {
|
|
1438
|
+
val value = styleValue.imageURI
|
|
1439
|
+
if (value != null) {
|
|
1440
|
+
layer.iconImage(value);
|
|
1441
|
+
} else {
|
|
1442
|
+
e("RCTMGLSymbol", "value for iconImage is null")
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
fun setIconRotate(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1448
|
+
if (styleValue.isExpression()) {
|
|
1449
|
+
val expression = styleValue.getExpression()
|
|
1450
|
+
if (expression != null) {
|
|
1451
|
+
layer.iconRotate(expression)
|
|
1452
|
+
} else {
|
|
1453
|
+
e("RCTMGLSymbol", "Expression for iconRotate is null")
|
|
1454
|
+
}
|
|
1455
|
+
} else {
|
|
1456
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1457
|
+
if (value != null) {
|
|
1458
|
+
layer.iconRotate(value)
|
|
1459
|
+
} else {
|
|
1460
|
+
e("RCTMGLSymbol", "value for iconRotate is null")
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
fun setIconPadding(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1466
|
+
if (styleValue.isExpression()) {
|
|
1467
|
+
val expression = styleValue.getExpression()
|
|
1468
|
+
if (expression != null) {
|
|
1469
|
+
layer.iconPadding(expression)
|
|
1470
|
+
} else {
|
|
1471
|
+
e("RCTMGLSymbol", "Expression for iconPadding is null")
|
|
1472
|
+
}
|
|
1473
|
+
} else {
|
|
1474
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1475
|
+
if (value != null) {
|
|
1476
|
+
layer.iconPadding(value)
|
|
1477
|
+
} else {
|
|
1478
|
+
e("RCTMGLSymbol", "value for iconPadding is null")
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
fun setIconKeepUpright(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1484
|
+
if (styleValue.isExpression()) {
|
|
1485
|
+
val expression = styleValue.getExpression()
|
|
1486
|
+
if (expression != null) {
|
|
1487
|
+
layer.iconKeepUpright(expression)
|
|
1488
|
+
} else {
|
|
1489
|
+
e("RCTMGLSymbol", "Expression for iconKeepUpright is null")
|
|
1490
|
+
}
|
|
1491
|
+
} else {
|
|
1492
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1493
|
+
if (value != null) {
|
|
1494
|
+
layer.iconKeepUpright(value)
|
|
1495
|
+
} else {
|
|
1496
|
+
e("RCTMGLSymbol", "value for iconKeepUpright is null")
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
fun setIconOffset(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1502
|
+
if (styleValue.isExpression()) {
|
|
1503
|
+
val expression = styleValue.getExpression()
|
|
1504
|
+
if (expression != null) {
|
|
1505
|
+
layer.iconOffset(expression)
|
|
1506
|
+
} else {
|
|
1507
|
+
e("RCTMGLSymbol", "Expression for iconOffset is null")
|
|
1508
|
+
}
|
|
1509
|
+
} else {
|
|
1510
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
1511
|
+
if (value != null) {
|
|
1512
|
+
layer.iconOffset(value)
|
|
1513
|
+
} else {
|
|
1514
|
+
e("RCTMGLSymbol", "value for iconOffset is null")
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
fun setIconAnchor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1520
|
+
if (styleValue.isExpression()) {
|
|
1521
|
+
val expression = styleValue.getExpression()
|
|
1522
|
+
if (expression != null) {
|
|
1523
|
+
layer.iconAnchor(expression)
|
|
1524
|
+
} else {
|
|
1525
|
+
e("RCTMGLSymbol", "Expression for iconAnchor is null")
|
|
1526
|
+
}
|
|
1527
|
+
} else {
|
|
1528
|
+
layer.iconAnchor(IconAnchor.valueOf(styleValue.getEnumName()))
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
fun setIconPitchAlignment(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1533
|
+
if (styleValue.isExpression()) {
|
|
1534
|
+
val expression = styleValue.getExpression()
|
|
1535
|
+
if (expression != null) {
|
|
1536
|
+
layer.iconPitchAlignment(expression)
|
|
1537
|
+
} else {
|
|
1538
|
+
e("RCTMGLSymbol", "Expression for iconPitchAlignment is null")
|
|
1539
|
+
}
|
|
1540
|
+
} else {
|
|
1541
|
+
layer.iconPitchAlignment(IconPitchAlignment.valueOf(styleValue.getEnumName()))
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
fun setTextPitchAlignment(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1546
|
+
if (styleValue.isExpression()) {
|
|
1547
|
+
val expression = styleValue.getExpression()
|
|
1548
|
+
if (expression != null) {
|
|
1549
|
+
layer.textPitchAlignment(expression)
|
|
1550
|
+
} else {
|
|
1551
|
+
e("RCTMGLSymbol", "Expression for textPitchAlignment is null")
|
|
1552
|
+
}
|
|
1553
|
+
} else {
|
|
1554
|
+
layer.textPitchAlignment(TextPitchAlignment.valueOf(styleValue.getEnumName()))
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
fun setTextRotationAlignment(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1559
|
+
if (styleValue.isExpression()) {
|
|
1560
|
+
val expression = styleValue.getExpression()
|
|
1561
|
+
if (expression != null) {
|
|
1562
|
+
layer.textRotationAlignment(expression)
|
|
1563
|
+
} else {
|
|
1564
|
+
e("RCTMGLSymbol", "Expression for textRotationAlignment is null")
|
|
1565
|
+
}
|
|
1566
|
+
} else {
|
|
1567
|
+
layer.textRotationAlignment(TextRotationAlignment.valueOf(styleValue.getEnumName()))
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
fun setTextField(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1572
|
+
if (styleValue.isExpression()) {
|
|
1573
|
+
val expression = styleValue.getExpression()
|
|
1574
|
+
if (expression != null) {
|
|
1575
|
+
layer.textField(expression)
|
|
1576
|
+
} else {
|
|
1577
|
+
e("RCTMGLSymbol", "Expression for textField is null")
|
|
1578
|
+
}
|
|
1579
|
+
} else {
|
|
1580
|
+
val value = styleValue.getString(VALUE_KEY)
|
|
1581
|
+
if (value != null) {
|
|
1582
|
+
layer.textField(value)
|
|
1583
|
+
} else {
|
|
1584
|
+
e("RCTMGLSymbol", "value for textField is null")
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
fun setTextFont(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1590
|
+
if (styleValue.isExpression()) {
|
|
1591
|
+
val expression = styleValue.getExpression()
|
|
1592
|
+
if (expression != null) {
|
|
1593
|
+
layer.textFont(expression)
|
|
1594
|
+
} else {
|
|
1595
|
+
e("RCTMGLSymbol", "Expression for textFont is null")
|
|
1596
|
+
}
|
|
1597
|
+
} else {
|
|
1598
|
+
val value = styleValue.getStringArray(VALUE_KEY)
|
|
1599
|
+
if (value != null) {
|
|
1600
|
+
layer.textFont(value)
|
|
1601
|
+
} else {
|
|
1602
|
+
e("RCTMGLSymbol", "value for textFont is null")
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
fun setTextSize(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1608
|
+
if (styleValue.isExpression()) {
|
|
1609
|
+
val expression = styleValue.getExpression()
|
|
1610
|
+
if (expression != null) {
|
|
1611
|
+
layer.textSize(expression)
|
|
1612
|
+
} else {
|
|
1613
|
+
e("RCTMGLSymbol", "Expression for textSize is null")
|
|
1614
|
+
}
|
|
1615
|
+
} else {
|
|
1616
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1617
|
+
if (value != null) {
|
|
1618
|
+
layer.textSize(value)
|
|
1619
|
+
} else {
|
|
1620
|
+
e("RCTMGLSymbol", "value for textSize is null")
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
fun setTextMaxWidth(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1626
|
+
if (styleValue.isExpression()) {
|
|
1627
|
+
val expression = styleValue.getExpression()
|
|
1628
|
+
if (expression != null) {
|
|
1629
|
+
layer.textMaxWidth(expression)
|
|
1630
|
+
} else {
|
|
1631
|
+
e("RCTMGLSymbol", "Expression for textMaxWidth is null")
|
|
1632
|
+
}
|
|
1633
|
+
} else {
|
|
1634
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1635
|
+
if (value != null) {
|
|
1636
|
+
layer.textMaxWidth(value)
|
|
1637
|
+
} else {
|
|
1638
|
+
e("RCTMGLSymbol", "value for textMaxWidth is null")
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
fun setTextLineHeight(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1644
|
+
if (styleValue.isExpression()) {
|
|
1645
|
+
val expression = styleValue.getExpression()
|
|
1646
|
+
if (expression != null) {
|
|
1647
|
+
layer.textLineHeight(expression)
|
|
1648
|
+
} else {
|
|
1649
|
+
e("RCTMGLSymbol", "Expression for textLineHeight is null")
|
|
1650
|
+
}
|
|
1651
|
+
} else {
|
|
1652
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1653
|
+
if (value != null) {
|
|
1654
|
+
layer.textLineHeight(value)
|
|
1655
|
+
} else {
|
|
1656
|
+
e("RCTMGLSymbol", "value for textLineHeight is null")
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
fun setTextLetterSpacing(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1662
|
+
if (styleValue.isExpression()) {
|
|
1663
|
+
val expression = styleValue.getExpression()
|
|
1664
|
+
if (expression != null) {
|
|
1665
|
+
layer.textLetterSpacing(expression)
|
|
1666
|
+
} else {
|
|
1667
|
+
e("RCTMGLSymbol", "Expression for textLetterSpacing is null")
|
|
1668
|
+
}
|
|
1669
|
+
} else {
|
|
1670
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1671
|
+
if (value != null) {
|
|
1672
|
+
layer.textLetterSpacing(value)
|
|
1673
|
+
} else {
|
|
1674
|
+
e("RCTMGLSymbol", "value for textLetterSpacing is null")
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
fun setTextJustify(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1680
|
+
if (styleValue.isExpression()) {
|
|
1681
|
+
val expression = styleValue.getExpression()
|
|
1682
|
+
if (expression != null) {
|
|
1683
|
+
layer.textJustify(expression)
|
|
1684
|
+
} else {
|
|
1685
|
+
e("RCTMGLSymbol", "Expression for textJustify is null")
|
|
1686
|
+
}
|
|
1687
|
+
} else {
|
|
1688
|
+
layer.textJustify(TextJustify.valueOf(styleValue.getEnumName()))
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
fun setTextRadialOffset(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1693
|
+
if (styleValue.isExpression()) {
|
|
1694
|
+
val expression = styleValue.getExpression()
|
|
1695
|
+
if (expression != null) {
|
|
1696
|
+
layer.textRadialOffset(expression)
|
|
1697
|
+
} else {
|
|
1698
|
+
e("RCTMGLSymbol", "Expression for textRadialOffset is null")
|
|
1699
|
+
}
|
|
1700
|
+
} else {
|
|
1701
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1702
|
+
if (value != null) {
|
|
1703
|
+
layer.textRadialOffset(value)
|
|
1704
|
+
} else {
|
|
1705
|
+
e("RCTMGLSymbol", "value for textRadialOffset is null")
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
fun setTextVariableAnchor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1711
|
+
if (styleValue.isExpression()) {
|
|
1712
|
+
val expression = styleValue.getExpression()
|
|
1713
|
+
if (expression != null) {
|
|
1714
|
+
layer.textVariableAnchor(expression)
|
|
1715
|
+
} else {
|
|
1716
|
+
e("RCTMGLSymbol", "Expression for textVariableAnchor is null")
|
|
1717
|
+
}
|
|
1718
|
+
} else {
|
|
1719
|
+
val value = styleValue.getStringArray(VALUE_KEY)
|
|
1720
|
+
if (value != null) {
|
|
1721
|
+
layer.textVariableAnchor(value)
|
|
1722
|
+
} else {
|
|
1723
|
+
e("RCTMGLSymbol", "value for textVariableAnchor is null")
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
fun setTextAnchor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1729
|
+
if (styleValue.isExpression()) {
|
|
1730
|
+
val expression = styleValue.getExpression()
|
|
1731
|
+
if (expression != null) {
|
|
1732
|
+
layer.textAnchor(expression)
|
|
1733
|
+
} else {
|
|
1734
|
+
e("RCTMGLSymbol", "Expression for textAnchor is null")
|
|
1735
|
+
}
|
|
1736
|
+
} else {
|
|
1737
|
+
layer.textAnchor(TextAnchor.valueOf(styleValue.getEnumName()))
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
fun setTextMaxAngle(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1742
|
+
if (styleValue.isExpression()) {
|
|
1743
|
+
val expression = styleValue.getExpression()
|
|
1744
|
+
if (expression != null) {
|
|
1745
|
+
layer.textMaxAngle(expression)
|
|
1746
|
+
} else {
|
|
1747
|
+
e("RCTMGLSymbol", "Expression for textMaxAngle is null")
|
|
1748
|
+
}
|
|
1749
|
+
} else {
|
|
1750
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1751
|
+
if (value != null) {
|
|
1752
|
+
layer.textMaxAngle(value)
|
|
1753
|
+
} else {
|
|
1754
|
+
e("RCTMGLSymbol", "value for textMaxAngle is null")
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
fun setTextWritingMode(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1760
|
+
if (styleValue.isExpression()) {
|
|
1761
|
+
val expression = styleValue.getExpression()
|
|
1762
|
+
if (expression != null) {
|
|
1763
|
+
layer.textWritingMode(expression)
|
|
1764
|
+
} else {
|
|
1765
|
+
e("RCTMGLSymbol", "Expression for textWritingMode is null")
|
|
1766
|
+
}
|
|
1767
|
+
} else {
|
|
1768
|
+
val value = styleValue.getStringArray(VALUE_KEY)
|
|
1769
|
+
if (value != null) {
|
|
1770
|
+
layer.textWritingMode(value)
|
|
1771
|
+
} else {
|
|
1772
|
+
e("RCTMGLSymbol", "value for textWritingMode is null")
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
fun setTextRotate(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1778
|
+
if (styleValue.isExpression()) {
|
|
1779
|
+
val expression = styleValue.getExpression()
|
|
1780
|
+
if (expression != null) {
|
|
1781
|
+
layer.textRotate(expression)
|
|
1782
|
+
} else {
|
|
1783
|
+
e("RCTMGLSymbol", "Expression for textRotate is null")
|
|
1784
|
+
}
|
|
1785
|
+
} else {
|
|
1786
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1787
|
+
if (value != null) {
|
|
1788
|
+
layer.textRotate(value)
|
|
1789
|
+
} else {
|
|
1790
|
+
e("RCTMGLSymbol", "value for textRotate is null")
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
fun setTextPadding(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1796
|
+
if (styleValue.isExpression()) {
|
|
1797
|
+
val expression = styleValue.getExpression()
|
|
1798
|
+
if (expression != null) {
|
|
1799
|
+
layer.textPadding(expression)
|
|
1800
|
+
} else {
|
|
1801
|
+
e("RCTMGLSymbol", "Expression for textPadding is null")
|
|
1802
|
+
}
|
|
1803
|
+
} else {
|
|
1804
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1805
|
+
if (value != null) {
|
|
1806
|
+
layer.textPadding(value)
|
|
1807
|
+
} else {
|
|
1808
|
+
e("RCTMGLSymbol", "value for textPadding is null")
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
fun setTextKeepUpright(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1814
|
+
if (styleValue.isExpression()) {
|
|
1815
|
+
val expression = styleValue.getExpression()
|
|
1816
|
+
if (expression != null) {
|
|
1817
|
+
layer.textKeepUpright(expression)
|
|
1818
|
+
} else {
|
|
1819
|
+
e("RCTMGLSymbol", "Expression for textKeepUpright is null")
|
|
1820
|
+
}
|
|
1821
|
+
} else {
|
|
1822
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1823
|
+
if (value != null) {
|
|
1824
|
+
layer.textKeepUpright(value)
|
|
1825
|
+
} else {
|
|
1826
|
+
e("RCTMGLSymbol", "value for textKeepUpright is null")
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
fun setTextTransform(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1832
|
+
if (styleValue.isExpression()) {
|
|
1833
|
+
val expression = styleValue.getExpression()
|
|
1834
|
+
if (expression != null) {
|
|
1835
|
+
layer.textTransform(expression)
|
|
1836
|
+
} else {
|
|
1837
|
+
e("RCTMGLSymbol", "Expression for textTransform is null")
|
|
1838
|
+
}
|
|
1839
|
+
} else {
|
|
1840
|
+
layer.textTransform(TextTransform.valueOf(styleValue.getEnumName()))
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
fun setTextOffset(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1845
|
+
if (styleValue.isExpression()) {
|
|
1846
|
+
val expression = styleValue.getExpression()
|
|
1847
|
+
if (expression != null) {
|
|
1848
|
+
layer.textOffset(expression)
|
|
1849
|
+
} else {
|
|
1850
|
+
e("RCTMGLSymbol", "Expression for textOffset is null")
|
|
1851
|
+
}
|
|
1852
|
+
} else {
|
|
1853
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
1854
|
+
if (value != null) {
|
|
1855
|
+
layer.textOffset(value)
|
|
1856
|
+
} else {
|
|
1857
|
+
e("RCTMGLSymbol", "value for textOffset is null")
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
fun setTextAllowOverlap(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1863
|
+
if (styleValue.isExpression()) {
|
|
1864
|
+
val expression = styleValue.getExpression()
|
|
1865
|
+
if (expression != null) {
|
|
1866
|
+
layer.textAllowOverlap(expression)
|
|
1867
|
+
} else {
|
|
1868
|
+
e("RCTMGLSymbol", "Expression for textAllowOverlap is null")
|
|
1869
|
+
}
|
|
1870
|
+
} else {
|
|
1871
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1872
|
+
if (value != null) {
|
|
1873
|
+
layer.textAllowOverlap(value)
|
|
1874
|
+
} else {
|
|
1875
|
+
e("RCTMGLSymbol", "value for textAllowOverlap is null")
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
fun setTextIgnorePlacement(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1881
|
+
if (styleValue.isExpression()) {
|
|
1882
|
+
val expression = styleValue.getExpression()
|
|
1883
|
+
if (expression != null) {
|
|
1884
|
+
layer.textIgnorePlacement(expression)
|
|
1885
|
+
} else {
|
|
1886
|
+
e("RCTMGLSymbol", "Expression for textIgnorePlacement is null")
|
|
1887
|
+
}
|
|
1888
|
+
} else {
|
|
1889
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1890
|
+
if (value != null) {
|
|
1891
|
+
layer.textIgnorePlacement(value)
|
|
1892
|
+
} else {
|
|
1893
|
+
e("RCTMGLSymbol", "value for textIgnorePlacement is null")
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
fun setTextOptional(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1899
|
+
if (styleValue.isExpression()) {
|
|
1900
|
+
val expression = styleValue.getExpression()
|
|
1901
|
+
if (expression != null) {
|
|
1902
|
+
layer.textOptional(expression)
|
|
1903
|
+
} else {
|
|
1904
|
+
e("RCTMGLSymbol", "Expression for textOptional is null")
|
|
1905
|
+
}
|
|
1906
|
+
} else {
|
|
1907
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
1908
|
+
if (value != null) {
|
|
1909
|
+
layer.textOptional(value)
|
|
1910
|
+
} else {
|
|
1911
|
+
e("RCTMGLSymbol", "value for textOptional is null")
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
fun setVisibility(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1917
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
fun setIconOpacity(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1921
|
+
if (styleValue.isExpression()) {
|
|
1922
|
+
val expression = styleValue.getExpression()
|
|
1923
|
+
if (expression != null) {
|
|
1924
|
+
layer.iconOpacity(expression)
|
|
1925
|
+
} else {
|
|
1926
|
+
e("RCTMGLSymbol", "Expression for iconOpacity is null")
|
|
1927
|
+
}
|
|
1928
|
+
} else {
|
|
1929
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1930
|
+
if (value != null) {
|
|
1931
|
+
layer.iconOpacity(value)
|
|
1932
|
+
} else {
|
|
1933
|
+
e("RCTMGLSymbol", "value for iconOpacity is null")
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
|
|
1939
|
+
fun setIconOpacityTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
1940
|
+
val transition = styleValue.transition
|
|
1941
|
+
if (transition != null) {
|
|
1942
|
+
layer.iconOpacityTransition(transition);
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
fun setIconColor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1947
|
+
if (styleValue.isExpression()) {
|
|
1948
|
+
val expression = styleValue.getExpression()
|
|
1949
|
+
if (expression != null) {
|
|
1950
|
+
layer.iconColor(expression)
|
|
1951
|
+
} else {
|
|
1952
|
+
e("RCTMGLSymbol", "Expression for iconColor is null")
|
|
1953
|
+
}
|
|
1954
|
+
} else {
|
|
1955
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
1956
|
+
if (value != null) {
|
|
1957
|
+
layer.iconColor(value)
|
|
1958
|
+
} else {
|
|
1959
|
+
e("RCTMGLSymbol", "value for iconColor is null")
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
fun setIconColorTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
1966
|
+
val transition = styleValue.transition
|
|
1967
|
+
if (transition != null) {
|
|
1968
|
+
layer.iconColorTransition(transition);
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
fun setIconHaloColor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1973
|
+
if (styleValue.isExpression()) {
|
|
1974
|
+
val expression = styleValue.getExpression()
|
|
1975
|
+
if (expression != null) {
|
|
1976
|
+
layer.iconHaloColor(expression)
|
|
1977
|
+
} else {
|
|
1978
|
+
e("RCTMGLSymbol", "Expression for iconHaloColor is null")
|
|
1979
|
+
}
|
|
1980
|
+
} else {
|
|
1981
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
1982
|
+
if (value != null) {
|
|
1983
|
+
layer.iconHaloColor(value)
|
|
1984
|
+
} else {
|
|
1985
|
+
e("RCTMGLSymbol", "value for iconHaloColor is null")
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
fun setIconHaloColorTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
1992
|
+
val transition = styleValue.transition
|
|
1993
|
+
if (transition != null) {
|
|
1994
|
+
layer.iconHaloColorTransition(transition);
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
fun setIconHaloWidth(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
1999
|
+
if (styleValue.isExpression()) {
|
|
2000
|
+
val expression = styleValue.getExpression()
|
|
2001
|
+
if (expression != null) {
|
|
2002
|
+
layer.iconHaloWidth(expression)
|
|
2003
|
+
} else {
|
|
2004
|
+
e("RCTMGLSymbol", "Expression for iconHaloWidth is null")
|
|
2005
|
+
}
|
|
2006
|
+
} else {
|
|
2007
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2008
|
+
if (value != null) {
|
|
2009
|
+
layer.iconHaloWidth(value)
|
|
2010
|
+
} else {
|
|
2011
|
+
e("RCTMGLSymbol", "value for iconHaloWidth is null")
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
fun setIconHaloWidthTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2018
|
+
val transition = styleValue.transition
|
|
2019
|
+
if (transition != null) {
|
|
2020
|
+
layer.iconHaloWidthTransition(transition);
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
fun setIconHaloBlur(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2025
|
+
if (styleValue.isExpression()) {
|
|
2026
|
+
val expression = styleValue.getExpression()
|
|
2027
|
+
if (expression != null) {
|
|
2028
|
+
layer.iconHaloBlur(expression)
|
|
2029
|
+
} else {
|
|
2030
|
+
e("RCTMGLSymbol", "Expression for iconHaloBlur is null")
|
|
2031
|
+
}
|
|
2032
|
+
} else {
|
|
2033
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2034
|
+
if (value != null) {
|
|
2035
|
+
layer.iconHaloBlur(value)
|
|
2036
|
+
} else {
|
|
2037
|
+
e("RCTMGLSymbol", "value for iconHaloBlur is null")
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
fun setIconHaloBlurTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2044
|
+
val transition = styleValue.transition
|
|
2045
|
+
if (transition != null) {
|
|
2046
|
+
layer.iconHaloBlurTransition(transition);
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
fun setIconTranslate(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2051
|
+
if (styleValue.isExpression()) {
|
|
2052
|
+
val expression = styleValue.getExpression()
|
|
2053
|
+
if (expression != null) {
|
|
2054
|
+
layer.iconTranslate(expression)
|
|
2055
|
+
} else {
|
|
2056
|
+
e("RCTMGLSymbol", "Expression for iconTranslate is null")
|
|
2057
|
+
}
|
|
2058
|
+
} else {
|
|
2059
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
2060
|
+
if (value != null) {
|
|
2061
|
+
layer.iconTranslate(value)
|
|
2062
|
+
} else {
|
|
2063
|
+
e("RCTMGLSymbol", "value for iconTranslate is null")
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
fun setIconTranslateTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2070
|
+
val transition = styleValue.transition
|
|
2071
|
+
if (transition != null) {
|
|
2072
|
+
layer.iconTranslateTransition(transition);
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
fun setIconTranslateAnchor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2077
|
+
if (styleValue.isExpression()) {
|
|
2078
|
+
val expression = styleValue.getExpression()
|
|
2079
|
+
if (expression != null) {
|
|
2080
|
+
layer.iconTranslateAnchor(expression)
|
|
2081
|
+
} else {
|
|
2082
|
+
e("RCTMGLSymbol", "Expression for iconTranslateAnchor is null")
|
|
2083
|
+
}
|
|
2084
|
+
} else {
|
|
2085
|
+
layer.iconTranslateAnchor(IconTranslateAnchor.valueOf(styleValue.getEnumName()))
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
fun setTextOpacity(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2090
|
+
if (styleValue.isExpression()) {
|
|
2091
|
+
val expression = styleValue.getExpression()
|
|
2092
|
+
if (expression != null) {
|
|
2093
|
+
layer.textOpacity(expression)
|
|
2094
|
+
} else {
|
|
2095
|
+
e("RCTMGLSymbol", "Expression for textOpacity is null")
|
|
2096
|
+
}
|
|
2097
|
+
} else {
|
|
2098
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2099
|
+
if (value != null) {
|
|
2100
|
+
layer.textOpacity(value)
|
|
2101
|
+
} else {
|
|
2102
|
+
e("RCTMGLSymbol", "value for textOpacity is null")
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
fun setTextOpacityTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2109
|
+
val transition = styleValue.transition
|
|
2110
|
+
if (transition != null) {
|
|
2111
|
+
layer.textOpacityTransition(transition);
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
fun setTextColor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2116
|
+
if (styleValue.isExpression()) {
|
|
2117
|
+
val expression = styleValue.getExpression()
|
|
2118
|
+
if (expression != null) {
|
|
2119
|
+
layer.textColor(expression)
|
|
2120
|
+
} else {
|
|
2121
|
+
e("RCTMGLSymbol", "Expression for textColor is null")
|
|
2122
|
+
}
|
|
2123
|
+
} else {
|
|
2124
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
2125
|
+
if (value != null) {
|
|
2126
|
+
layer.textColor(value)
|
|
2127
|
+
} else {
|
|
2128
|
+
e("RCTMGLSymbol", "value for textColor is null")
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
fun setTextColorTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2135
|
+
val transition = styleValue.transition
|
|
2136
|
+
if (transition != null) {
|
|
2137
|
+
layer.textColorTransition(transition);
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
fun setTextHaloColor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2142
|
+
if (styleValue.isExpression()) {
|
|
2143
|
+
val expression = styleValue.getExpression()
|
|
2144
|
+
if (expression != null) {
|
|
2145
|
+
layer.textHaloColor(expression)
|
|
2146
|
+
} else {
|
|
2147
|
+
e("RCTMGLSymbol", "Expression for textHaloColor is null")
|
|
2148
|
+
}
|
|
2149
|
+
} else {
|
|
2150
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
2151
|
+
if (value != null) {
|
|
2152
|
+
layer.textHaloColor(value)
|
|
2153
|
+
} else {
|
|
2154
|
+
e("RCTMGLSymbol", "value for textHaloColor is null")
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
fun setTextHaloColorTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2161
|
+
val transition = styleValue.transition
|
|
2162
|
+
if (transition != null) {
|
|
2163
|
+
layer.textHaloColorTransition(transition);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
fun setTextHaloWidth(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2168
|
+
if (styleValue.isExpression()) {
|
|
2169
|
+
val expression = styleValue.getExpression()
|
|
2170
|
+
if (expression != null) {
|
|
2171
|
+
layer.textHaloWidth(expression)
|
|
2172
|
+
} else {
|
|
2173
|
+
e("RCTMGLSymbol", "Expression for textHaloWidth is null")
|
|
2174
|
+
}
|
|
2175
|
+
} else {
|
|
2176
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2177
|
+
if (value != null) {
|
|
2178
|
+
layer.textHaloWidth(value)
|
|
2179
|
+
} else {
|
|
2180
|
+
e("RCTMGLSymbol", "value for textHaloWidth is null")
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
fun setTextHaloWidthTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2187
|
+
val transition = styleValue.transition
|
|
2188
|
+
if (transition != null) {
|
|
2189
|
+
layer.textHaloWidthTransition(transition);
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
fun setTextHaloBlur(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2194
|
+
if (styleValue.isExpression()) {
|
|
2195
|
+
val expression = styleValue.getExpression()
|
|
2196
|
+
if (expression != null) {
|
|
2197
|
+
layer.textHaloBlur(expression)
|
|
2198
|
+
} else {
|
|
2199
|
+
e("RCTMGLSymbol", "Expression for textHaloBlur is null")
|
|
2200
|
+
}
|
|
2201
|
+
} else {
|
|
2202
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2203
|
+
if (value != null) {
|
|
2204
|
+
layer.textHaloBlur(value)
|
|
2205
|
+
} else {
|
|
2206
|
+
e("RCTMGLSymbol", "value for textHaloBlur is null")
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
|
|
2212
|
+
fun setTextHaloBlurTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2213
|
+
val transition = styleValue.transition
|
|
2214
|
+
if (transition != null) {
|
|
2215
|
+
layer.textHaloBlurTransition(transition);
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
fun setTextTranslate(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2220
|
+
if (styleValue.isExpression()) {
|
|
2221
|
+
val expression = styleValue.getExpression()
|
|
2222
|
+
if (expression != null) {
|
|
2223
|
+
layer.textTranslate(expression)
|
|
2224
|
+
} else {
|
|
2225
|
+
e("RCTMGLSymbol", "Expression for textTranslate is null")
|
|
2226
|
+
}
|
|
2227
|
+
} else {
|
|
2228
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
2229
|
+
if (value != null) {
|
|
2230
|
+
layer.textTranslate(value)
|
|
2231
|
+
} else {
|
|
2232
|
+
e("RCTMGLSymbol", "value for textTranslate is null")
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
fun setTextTranslateTransition(layer: SymbolLayer, styleValue: RCTMGLStyleValue) {
|
|
2239
|
+
val transition = styleValue.transition
|
|
2240
|
+
if (transition != null) {
|
|
2241
|
+
layer.textTranslateTransition(transition);
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
fun setTextTranslateAnchor(layer: SymbolLayer, styleValue: RCTMGLStyleValue ) {
|
|
2246
|
+
if (styleValue.isExpression()) {
|
|
2247
|
+
val expression = styleValue.getExpression()
|
|
2248
|
+
if (expression != null) {
|
|
2249
|
+
layer.textTranslateAnchor(expression)
|
|
2250
|
+
} else {
|
|
2251
|
+
e("RCTMGLSymbol", "Expression for textTranslateAnchor is null")
|
|
2252
|
+
}
|
|
2253
|
+
} else {
|
|
2254
|
+
layer.textTranslateAnchor(TextTranslateAnchor.valueOf(styleValue.getEnumName()))
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
fun setCircleSortKey(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2259
|
+
if (styleValue.isExpression()) {
|
|
2260
|
+
val expression = styleValue.getExpression()
|
|
2261
|
+
if (expression != null) {
|
|
2262
|
+
layer.circleSortKey(expression)
|
|
2263
|
+
} else {
|
|
2264
|
+
e("RCTMGLCircle", "Expression for circleSortKey is null")
|
|
2265
|
+
}
|
|
2266
|
+
} else {
|
|
2267
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2268
|
+
if (value != null) {
|
|
2269
|
+
layer.circleSortKey(value)
|
|
2270
|
+
} else {
|
|
2271
|
+
e("RCTMGLCircle", "value for circleSortKey is null")
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
fun setVisibility(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2277
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
fun setCircleRadius(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2281
|
+
if (styleValue.isExpression()) {
|
|
2282
|
+
val expression = styleValue.getExpression()
|
|
2283
|
+
if (expression != null) {
|
|
2284
|
+
layer.circleRadius(expression)
|
|
2285
|
+
} else {
|
|
2286
|
+
e("RCTMGLCircle", "Expression for circleRadius is null")
|
|
2287
|
+
}
|
|
2288
|
+
} else {
|
|
2289
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2290
|
+
if (value != null) {
|
|
2291
|
+
layer.circleRadius(value)
|
|
2292
|
+
} else {
|
|
2293
|
+
e("RCTMGLCircle", "value for circleRadius is null")
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
fun setCircleRadiusTransition(layer: CircleLayer, styleValue: RCTMGLStyleValue) {
|
|
2300
|
+
val transition = styleValue.transition
|
|
2301
|
+
if (transition != null) {
|
|
2302
|
+
layer.circleRadiusTransition(transition);
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
fun setCircleColor(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2307
|
+
if (styleValue.isExpression()) {
|
|
2308
|
+
val expression = styleValue.getExpression()
|
|
2309
|
+
if (expression != null) {
|
|
2310
|
+
layer.circleColor(expression)
|
|
2311
|
+
} else {
|
|
2312
|
+
e("RCTMGLCircle", "Expression for circleColor is null")
|
|
2313
|
+
}
|
|
2314
|
+
} else {
|
|
2315
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
2316
|
+
if (value != null) {
|
|
2317
|
+
layer.circleColor(value)
|
|
2318
|
+
} else {
|
|
2319
|
+
e("RCTMGLCircle", "value for circleColor is null")
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
fun setCircleColorTransition(layer: CircleLayer, styleValue: RCTMGLStyleValue) {
|
|
2326
|
+
val transition = styleValue.transition
|
|
2327
|
+
if (transition != null) {
|
|
2328
|
+
layer.circleColorTransition(transition);
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
fun setCircleBlur(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2333
|
+
if (styleValue.isExpression()) {
|
|
2334
|
+
val expression = styleValue.getExpression()
|
|
2335
|
+
if (expression != null) {
|
|
2336
|
+
layer.circleBlur(expression)
|
|
2337
|
+
} else {
|
|
2338
|
+
e("RCTMGLCircle", "Expression for circleBlur is null")
|
|
2339
|
+
}
|
|
2340
|
+
} else {
|
|
2341
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2342
|
+
if (value != null) {
|
|
2343
|
+
layer.circleBlur(value)
|
|
2344
|
+
} else {
|
|
2345
|
+
e("RCTMGLCircle", "value for circleBlur is null")
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
fun setCircleBlurTransition(layer: CircleLayer, styleValue: RCTMGLStyleValue) {
|
|
2352
|
+
val transition = styleValue.transition
|
|
2353
|
+
if (transition != null) {
|
|
2354
|
+
layer.circleBlurTransition(transition);
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
fun setCircleOpacity(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2359
|
+
if (styleValue.isExpression()) {
|
|
2360
|
+
val expression = styleValue.getExpression()
|
|
2361
|
+
if (expression != null) {
|
|
2362
|
+
layer.circleOpacity(expression)
|
|
2363
|
+
} else {
|
|
2364
|
+
e("RCTMGLCircle", "Expression for circleOpacity is null")
|
|
2365
|
+
}
|
|
2366
|
+
} else {
|
|
2367
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2368
|
+
if (value != null) {
|
|
2369
|
+
layer.circleOpacity(value)
|
|
2370
|
+
} else {
|
|
2371
|
+
e("RCTMGLCircle", "value for circleOpacity is null")
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
|
|
2377
|
+
fun setCircleOpacityTransition(layer: CircleLayer, styleValue: RCTMGLStyleValue) {
|
|
2378
|
+
val transition = styleValue.transition
|
|
2379
|
+
if (transition != null) {
|
|
2380
|
+
layer.circleOpacityTransition(transition);
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
fun setCircleTranslate(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2385
|
+
if (styleValue.isExpression()) {
|
|
2386
|
+
val expression = styleValue.getExpression()
|
|
2387
|
+
if (expression != null) {
|
|
2388
|
+
layer.circleTranslate(expression)
|
|
2389
|
+
} else {
|
|
2390
|
+
e("RCTMGLCircle", "Expression for circleTranslate is null")
|
|
2391
|
+
}
|
|
2392
|
+
} else {
|
|
2393
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
2394
|
+
if (value != null) {
|
|
2395
|
+
layer.circleTranslate(value)
|
|
2396
|
+
} else {
|
|
2397
|
+
e("RCTMGLCircle", "value for circleTranslate is null")
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
|
|
2403
|
+
fun setCircleTranslateTransition(layer: CircleLayer, styleValue: RCTMGLStyleValue) {
|
|
2404
|
+
val transition = styleValue.transition
|
|
2405
|
+
if (transition != null) {
|
|
2406
|
+
layer.circleTranslateTransition(transition);
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
fun setCircleTranslateAnchor(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2411
|
+
if (styleValue.isExpression()) {
|
|
2412
|
+
val expression = styleValue.getExpression()
|
|
2413
|
+
if (expression != null) {
|
|
2414
|
+
layer.circleTranslateAnchor(expression)
|
|
2415
|
+
} else {
|
|
2416
|
+
e("RCTMGLCircle", "Expression for circleTranslateAnchor is null")
|
|
2417
|
+
}
|
|
2418
|
+
} else {
|
|
2419
|
+
layer.circleTranslateAnchor(CircleTranslateAnchor.valueOf(styleValue.getEnumName()))
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
fun setCirclePitchScale(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2424
|
+
if (styleValue.isExpression()) {
|
|
2425
|
+
val expression = styleValue.getExpression()
|
|
2426
|
+
if (expression != null) {
|
|
2427
|
+
layer.circlePitchScale(expression)
|
|
2428
|
+
} else {
|
|
2429
|
+
e("RCTMGLCircle", "Expression for circlePitchScale is null")
|
|
2430
|
+
}
|
|
2431
|
+
} else {
|
|
2432
|
+
layer.circlePitchScale(CirclePitchScale.valueOf(styleValue.getEnumName()))
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
fun setCirclePitchAlignment(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2437
|
+
if (styleValue.isExpression()) {
|
|
2438
|
+
val expression = styleValue.getExpression()
|
|
2439
|
+
if (expression != null) {
|
|
2440
|
+
layer.circlePitchAlignment(expression)
|
|
2441
|
+
} else {
|
|
2442
|
+
e("RCTMGLCircle", "Expression for circlePitchAlignment is null")
|
|
2443
|
+
}
|
|
2444
|
+
} else {
|
|
2445
|
+
layer.circlePitchAlignment(CirclePitchAlignment.valueOf(styleValue.getEnumName()))
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
fun setCircleStrokeWidth(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2450
|
+
if (styleValue.isExpression()) {
|
|
2451
|
+
val expression = styleValue.getExpression()
|
|
2452
|
+
if (expression != null) {
|
|
2453
|
+
layer.circleStrokeWidth(expression)
|
|
2454
|
+
} else {
|
|
2455
|
+
e("RCTMGLCircle", "Expression for circleStrokeWidth is null")
|
|
2456
|
+
}
|
|
2457
|
+
} else {
|
|
2458
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2459
|
+
if (value != null) {
|
|
2460
|
+
layer.circleStrokeWidth(value)
|
|
2461
|
+
} else {
|
|
2462
|
+
e("RCTMGLCircle", "value for circleStrokeWidth is null")
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
|
|
2468
|
+
fun setCircleStrokeWidthTransition(layer: CircleLayer, styleValue: RCTMGLStyleValue) {
|
|
2469
|
+
val transition = styleValue.transition
|
|
2470
|
+
if (transition != null) {
|
|
2471
|
+
layer.circleStrokeWidthTransition(transition);
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
fun setCircleStrokeColor(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2476
|
+
if (styleValue.isExpression()) {
|
|
2477
|
+
val expression = styleValue.getExpression()
|
|
2478
|
+
if (expression != null) {
|
|
2479
|
+
layer.circleStrokeColor(expression)
|
|
2480
|
+
} else {
|
|
2481
|
+
e("RCTMGLCircle", "Expression for circleStrokeColor is null")
|
|
2482
|
+
}
|
|
2483
|
+
} else {
|
|
2484
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
2485
|
+
if (value != null) {
|
|
2486
|
+
layer.circleStrokeColor(value)
|
|
2487
|
+
} else {
|
|
2488
|
+
e("RCTMGLCircle", "value for circleStrokeColor is null")
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
fun setCircleStrokeColorTransition(layer: CircleLayer, styleValue: RCTMGLStyleValue) {
|
|
2495
|
+
val transition = styleValue.transition
|
|
2496
|
+
if (transition != null) {
|
|
2497
|
+
layer.circleStrokeColorTransition(transition);
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
fun setCircleStrokeOpacity(layer: CircleLayer, styleValue: RCTMGLStyleValue ) {
|
|
2502
|
+
if (styleValue.isExpression()) {
|
|
2503
|
+
val expression = styleValue.getExpression()
|
|
2504
|
+
if (expression != null) {
|
|
2505
|
+
layer.circleStrokeOpacity(expression)
|
|
2506
|
+
} else {
|
|
2507
|
+
e("RCTMGLCircle", "Expression for circleStrokeOpacity is null")
|
|
2508
|
+
}
|
|
2509
|
+
} else {
|
|
2510
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2511
|
+
if (value != null) {
|
|
2512
|
+
layer.circleStrokeOpacity(value)
|
|
2513
|
+
} else {
|
|
2514
|
+
e("RCTMGLCircle", "value for circleStrokeOpacity is null")
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
fun setCircleStrokeOpacityTransition(layer: CircleLayer, styleValue: RCTMGLStyleValue) {
|
|
2521
|
+
val transition = styleValue.transition
|
|
2522
|
+
if (transition != null) {
|
|
2523
|
+
layer.circleStrokeOpacityTransition(transition);
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
fun setVisibility(layer: HeatmapLayer, styleValue: RCTMGLStyleValue ) {
|
|
2528
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
fun setHeatmapRadius(layer: HeatmapLayer, styleValue: RCTMGLStyleValue ) {
|
|
2532
|
+
if (styleValue.isExpression()) {
|
|
2533
|
+
val expression = styleValue.getExpression()
|
|
2534
|
+
if (expression != null) {
|
|
2535
|
+
layer.heatmapRadius(expression)
|
|
2536
|
+
} else {
|
|
2537
|
+
e("RCTMGLHeatmap", "Expression for heatmapRadius is null")
|
|
2538
|
+
}
|
|
2539
|
+
} else {
|
|
2540
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2541
|
+
if (value != null) {
|
|
2542
|
+
layer.heatmapRadius(value)
|
|
2543
|
+
} else {
|
|
2544
|
+
e("RCTMGLHeatmap", "value for heatmapRadius is null")
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
fun setHeatmapRadiusTransition(layer: HeatmapLayer, styleValue: RCTMGLStyleValue) {
|
|
2551
|
+
val transition = styleValue.transition
|
|
2552
|
+
if (transition != null) {
|
|
2553
|
+
layer.heatmapRadiusTransition(transition);
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
fun setHeatmapWeight(layer: HeatmapLayer, styleValue: RCTMGLStyleValue ) {
|
|
2558
|
+
if (styleValue.isExpression()) {
|
|
2559
|
+
val expression = styleValue.getExpression()
|
|
2560
|
+
if (expression != null) {
|
|
2561
|
+
layer.heatmapWeight(expression)
|
|
2562
|
+
} else {
|
|
2563
|
+
e("RCTMGLHeatmap", "Expression for heatmapWeight is null")
|
|
2564
|
+
}
|
|
2565
|
+
} else {
|
|
2566
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2567
|
+
if (value != null) {
|
|
2568
|
+
layer.heatmapWeight(value)
|
|
2569
|
+
} else {
|
|
2570
|
+
e("RCTMGLHeatmap", "value for heatmapWeight is null")
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
fun setHeatmapIntensity(layer: HeatmapLayer, styleValue: RCTMGLStyleValue ) {
|
|
2576
|
+
if (styleValue.isExpression()) {
|
|
2577
|
+
val expression = styleValue.getExpression()
|
|
2578
|
+
if (expression != null) {
|
|
2579
|
+
layer.heatmapIntensity(expression)
|
|
2580
|
+
} else {
|
|
2581
|
+
e("RCTMGLHeatmap", "Expression for heatmapIntensity is null")
|
|
2582
|
+
}
|
|
2583
|
+
} else {
|
|
2584
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2585
|
+
if (value != null) {
|
|
2586
|
+
layer.heatmapIntensity(value)
|
|
2587
|
+
} else {
|
|
2588
|
+
e("RCTMGLHeatmap", "value for heatmapIntensity is null")
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
fun setHeatmapIntensityTransition(layer: HeatmapLayer, styleValue: RCTMGLStyleValue) {
|
|
2595
|
+
val transition = styleValue.transition
|
|
2596
|
+
if (transition != null) {
|
|
2597
|
+
layer.heatmapIntensityTransition(transition);
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
fun setHeatmapColor(layer: HeatmapLayer, styleValue: RCTMGLStyleValue ) {
|
|
2602
|
+
if (styleValue.isExpression()) {
|
|
2603
|
+
val expression = styleValue.getExpression()
|
|
2604
|
+
if (expression != null) {
|
|
2605
|
+
layer.heatmapColor(expression)
|
|
2606
|
+
} else {
|
|
2607
|
+
e("RCTMGLHeatmap", "Expression for heatmapColor is null")
|
|
2608
|
+
}
|
|
2609
|
+
} else {
|
|
2610
|
+
layer.heatmapColor(styleValue.getIntExpression(VALUE_KEY))
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
fun setHeatmapOpacity(layer: HeatmapLayer, styleValue: RCTMGLStyleValue ) {
|
|
2615
|
+
if (styleValue.isExpression()) {
|
|
2616
|
+
val expression = styleValue.getExpression()
|
|
2617
|
+
if (expression != null) {
|
|
2618
|
+
layer.heatmapOpacity(expression)
|
|
2619
|
+
} else {
|
|
2620
|
+
e("RCTMGLHeatmap", "Expression for heatmapOpacity is null")
|
|
2621
|
+
}
|
|
2622
|
+
} else {
|
|
2623
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2624
|
+
if (value != null) {
|
|
2625
|
+
layer.heatmapOpacity(value)
|
|
2626
|
+
} else {
|
|
2627
|
+
e("RCTMGLHeatmap", "value for heatmapOpacity is null")
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
|
|
2633
|
+
fun setHeatmapOpacityTransition(layer: HeatmapLayer, styleValue: RCTMGLStyleValue) {
|
|
2634
|
+
val transition = styleValue.transition
|
|
2635
|
+
if (transition != null) {
|
|
2636
|
+
layer.heatmapOpacityTransition(transition);
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
fun setVisibility(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2641
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
fun setFillExtrusionOpacity(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2645
|
+
if (styleValue.isExpression()) {
|
|
2646
|
+
val expression = styleValue.getExpression()
|
|
2647
|
+
if (expression != null) {
|
|
2648
|
+
layer.fillExtrusionOpacity(expression)
|
|
2649
|
+
} else {
|
|
2650
|
+
e("RCTMGLFillExtrusion", "Expression for fillExtrusionOpacity is null")
|
|
2651
|
+
}
|
|
2652
|
+
} else {
|
|
2653
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2654
|
+
if (value != null) {
|
|
2655
|
+
layer.fillExtrusionOpacity(value)
|
|
2656
|
+
} else {
|
|
2657
|
+
e("RCTMGLFillExtrusion", "value for fillExtrusionOpacity is null")
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
fun setFillExtrusionOpacityTransition(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue) {
|
|
2664
|
+
val transition = styleValue.transition
|
|
2665
|
+
if (transition != null) {
|
|
2666
|
+
layer.fillExtrusionOpacityTransition(transition);
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
fun setFillExtrusionColor(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2671
|
+
if (styleValue.isExpression()) {
|
|
2672
|
+
val expression = styleValue.getExpression()
|
|
2673
|
+
if (expression != null) {
|
|
2674
|
+
layer.fillExtrusionColor(expression)
|
|
2675
|
+
} else {
|
|
2676
|
+
e("RCTMGLFillExtrusion", "Expression for fillExtrusionColor is null")
|
|
2677
|
+
}
|
|
2678
|
+
} else {
|
|
2679
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
2680
|
+
if (value != null) {
|
|
2681
|
+
layer.fillExtrusionColor(value)
|
|
2682
|
+
} else {
|
|
2683
|
+
e("RCTMGLFillExtrusion", "value for fillExtrusionColor is null")
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
fun setFillExtrusionColorTransition(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue) {
|
|
2690
|
+
val transition = styleValue.transition
|
|
2691
|
+
if (transition != null) {
|
|
2692
|
+
layer.fillExtrusionColorTransition(transition);
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
fun setFillExtrusionTranslate(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2697
|
+
if (styleValue.isExpression()) {
|
|
2698
|
+
val expression = styleValue.getExpression()
|
|
2699
|
+
if (expression != null) {
|
|
2700
|
+
layer.fillExtrusionTranslate(expression)
|
|
2701
|
+
} else {
|
|
2702
|
+
e("RCTMGLFillExtrusion", "Expression for fillExtrusionTranslate is null")
|
|
2703
|
+
}
|
|
2704
|
+
} else {
|
|
2705
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
2706
|
+
if (value != null) {
|
|
2707
|
+
layer.fillExtrusionTranslate(value)
|
|
2708
|
+
} else {
|
|
2709
|
+
e("RCTMGLFillExtrusion", "value for fillExtrusionTranslate is null")
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
fun setFillExtrusionTranslateTransition(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue) {
|
|
2716
|
+
val transition = styleValue.transition
|
|
2717
|
+
if (transition != null) {
|
|
2718
|
+
layer.fillExtrusionTranslateTransition(transition);
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
fun setFillExtrusionTranslateAnchor(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2723
|
+
if (styleValue.isExpression()) {
|
|
2724
|
+
val expression = styleValue.getExpression()
|
|
2725
|
+
if (expression != null) {
|
|
2726
|
+
layer.fillExtrusionTranslateAnchor(expression)
|
|
2727
|
+
} else {
|
|
2728
|
+
e("RCTMGLFillExtrusion", "Expression for fillExtrusionTranslateAnchor is null")
|
|
2729
|
+
}
|
|
2730
|
+
} else {
|
|
2731
|
+
layer.fillExtrusionTranslateAnchor(FillExtrusionTranslateAnchor.valueOf(styleValue.getEnumName()))
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
fun setFillExtrusionPattern(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2736
|
+
if (styleValue.isExpression()) {
|
|
2737
|
+
if (styleValue.isImageStringValue) {
|
|
2738
|
+
val value = styleValue.getImageStringValue()
|
|
2739
|
+
if (value != null) {
|
|
2740
|
+
layer.fillExtrusionPattern(value)
|
|
2741
|
+
} else {
|
|
2742
|
+
e("RCTMGLFillExtrusion", "Image for fillExtrusionPattern is null")
|
|
2743
|
+
}
|
|
2744
|
+
} else {
|
|
2745
|
+
val expression = styleValue.getExpression()
|
|
2746
|
+
if (expression != null) {
|
|
2747
|
+
layer.fillExtrusionPattern(expression)
|
|
2748
|
+
} else {
|
|
2749
|
+
e("RCTMGLFillExtrusion", "Expression for fillExtrusionPattern is null")
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
} else {
|
|
2753
|
+
val value = styleValue.imageURI
|
|
2754
|
+
if (value != null) {
|
|
2755
|
+
layer.fillExtrusionPattern(value);
|
|
2756
|
+
} else {
|
|
2757
|
+
e("RCTMGLFillExtrusion", "value for fillExtrusionPattern is null")
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
fun setFillExtrusionHeight(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2763
|
+
if (styleValue.isExpression()) {
|
|
2764
|
+
val expression = styleValue.getExpression()
|
|
2765
|
+
if (expression != null) {
|
|
2766
|
+
layer.fillExtrusionHeight(expression)
|
|
2767
|
+
} else {
|
|
2768
|
+
e("RCTMGLFillExtrusion", "Expression for fillExtrusionHeight is null")
|
|
2769
|
+
}
|
|
2770
|
+
} else {
|
|
2771
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2772
|
+
if (value != null) {
|
|
2773
|
+
layer.fillExtrusionHeight(value)
|
|
2774
|
+
} else {
|
|
2775
|
+
e("RCTMGLFillExtrusion", "value for fillExtrusionHeight is null")
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
fun setFillExtrusionHeightTransition(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue) {
|
|
2782
|
+
val transition = styleValue.transition
|
|
2783
|
+
if (transition != null) {
|
|
2784
|
+
layer.fillExtrusionHeightTransition(transition);
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
fun setFillExtrusionBase(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2789
|
+
if (styleValue.isExpression()) {
|
|
2790
|
+
val expression = styleValue.getExpression()
|
|
2791
|
+
if (expression != null) {
|
|
2792
|
+
layer.fillExtrusionBase(expression)
|
|
2793
|
+
} else {
|
|
2794
|
+
e("RCTMGLFillExtrusion", "Expression for fillExtrusionBase is null")
|
|
2795
|
+
}
|
|
2796
|
+
} else {
|
|
2797
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2798
|
+
if (value != null) {
|
|
2799
|
+
layer.fillExtrusionBase(value)
|
|
2800
|
+
} else {
|
|
2801
|
+
e("RCTMGLFillExtrusion", "value for fillExtrusionBase is null")
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
fun setFillExtrusionBaseTransition(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue) {
|
|
2808
|
+
val transition = styleValue.transition
|
|
2809
|
+
if (transition != null) {
|
|
2810
|
+
layer.fillExtrusionBaseTransition(transition);
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
fun setFillExtrusionVerticalGradient(layer: FillExtrusionLayer, styleValue: RCTMGLStyleValue ) {
|
|
2815
|
+
if (styleValue.isExpression()) {
|
|
2816
|
+
val expression = styleValue.getExpression()
|
|
2817
|
+
if (expression != null) {
|
|
2818
|
+
layer.fillExtrusionVerticalGradient(expression)
|
|
2819
|
+
} else {
|
|
2820
|
+
e("RCTMGLFillExtrusion", "Expression for fillExtrusionVerticalGradient is null")
|
|
2821
|
+
}
|
|
2822
|
+
} else {
|
|
2823
|
+
val value = styleValue.getBoolean(VALUE_KEY)
|
|
2824
|
+
if (value != null) {
|
|
2825
|
+
layer.fillExtrusionVerticalGradient(value)
|
|
2826
|
+
} else {
|
|
2827
|
+
e("RCTMGLFillExtrusion", "value for fillExtrusionVerticalGradient is null")
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
fun setVisibility(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
2833
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
fun setRasterOpacity(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
2837
|
+
if (styleValue.isExpression()) {
|
|
2838
|
+
val expression = styleValue.getExpression()
|
|
2839
|
+
if (expression != null) {
|
|
2840
|
+
layer.rasterOpacity(expression)
|
|
2841
|
+
} else {
|
|
2842
|
+
e("RCTMGLRaster", "Expression for rasterOpacity is null")
|
|
2843
|
+
}
|
|
2844
|
+
} else {
|
|
2845
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2846
|
+
if (value != null) {
|
|
2847
|
+
layer.rasterOpacity(value)
|
|
2848
|
+
} else {
|
|
2849
|
+
e("RCTMGLRaster", "value for rasterOpacity is null")
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
fun setRasterOpacityTransition(layer: RasterLayer, styleValue: RCTMGLStyleValue) {
|
|
2856
|
+
val transition = styleValue.transition
|
|
2857
|
+
if (transition != null) {
|
|
2858
|
+
layer.rasterOpacityTransition(transition);
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
fun setRasterHueRotate(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
2863
|
+
if (styleValue.isExpression()) {
|
|
2864
|
+
val expression = styleValue.getExpression()
|
|
2865
|
+
if (expression != null) {
|
|
2866
|
+
layer.rasterHueRotate(expression)
|
|
2867
|
+
} else {
|
|
2868
|
+
e("RCTMGLRaster", "Expression for rasterHueRotate is null")
|
|
2869
|
+
}
|
|
2870
|
+
} else {
|
|
2871
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2872
|
+
if (value != null) {
|
|
2873
|
+
layer.rasterHueRotate(value)
|
|
2874
|
+
} else {
|
|
2875
|
+
e("RCTMGLRaster", "value for rasterHueRotate is null")
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
|
|
2881
|
+
fun setRasterHueRotateTransition(layer: RasterLayer, styleValue: RCTMGLStyleValue) {
|
|
2882
|
+
val transition = styleValue.transition
|
|
2883
|
+
if (transition != null) {
|
|
2884
|
+
layer.rasterHueRotateTransition(transition);
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
fun setRasterBrightnessMin(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
2889
|
+
if (styleValue.isExpression()) {
|
|
2890
|
+
val expression = styleValue.getExpression()
|
|
2891
|
+
if (expression != null) {
|
|
2892
|
+
layer.rasterBrightnessMin(expression)
|
|
2893
|
+
} else {
|
|
2894
|
+
e("RCTMGLRaster", "Expression for rasterBrightnessMin is null")
|
|
2895
|
+
}
|
|
2896
|
+
} else {
|
|
2897
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2898
|
+
if (value != null) {
|
|
2899
|
+
layer.rasterBrightnessMin(value)
|
|
2900
|
+
} else {
|
|
2901
|
+
e("RCTMGLRaster", "value for rasterBrightnessMin is null")
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
fun setRasterBrightnessMinTransition(layer: RasterLayer, styleValue: RCTMGLStyleValue) {
|
|
2908
|
+
val transition = styleValue.transition
|
|
2909
|
+
if (transition != null) {
|
|
2910
|
+
layer.rasterBrightnessMinTransition(transition);
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
fun setRasterBrightnessMax(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
2915
|
+
if (styleValue.isExpression()) {
|
|
2916
|
+
val expression = styleValue.getExpression()
|
|
2917
|
+
if (expression != null) {
|
|
2918
|
+
layer.rasterBrightnessMax(expression)
|
|
2919
|
+
} else {
|
|
2920
|
+
e("RCTMGLRaster", "Expression for rasterBrightnessMax is null")
|
|
2921
|
+
}
|
|
2922
|
+
} else {
|
|
2923
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2924
|
+
if (value != null) {
|
|
2925
|
+
layer.rasterBrightnessMax(value)
|
|
2926
|
+
} else {
|
|
2927
|
+
e("RCTMGLRaster", "value for rasterBrightnessMax is null")
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
|
|
2933
|
+
fun setRasterBrightnessMaxTransition(layer: RasterLayer, styleValue: RCTMGLStyleValue) {
|
|
2934
|
+
val transition = styleValue.transition
|
|
2935
|
+
if (transition != null) {
|
|
2936
|
+
layer.rasterBrightnessMaxTransition(transition);
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2940
|
+
fun setRasterSaturation(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
2941
|
+
if (styleValue.isExpression()) {
|
|
2942
|
+
val expression = styleValue.getExpression()
|
|
2943
|
+
if (expression != null) {
|
|
2944
|
+
layer.rasterSaturation(expression)
|
|
2945
|
+
} else {
|
|
2946
|
+
e("RCTMGLRaster", "Expression for rasterSaturation is null")
|
|
2947
|
+
}
|
|
2948
|
+
} else {
|
|
2949
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2950
|
+
if (value != null) {
|
|
2951
|
+
layer.rasterSaturation(value)
|
|
2952
|
+
} else {
|
|
2953
|
+
e("RCTMGLRaster", "value for rasterSaturation is null")
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
fun setRasterSaturationTransition(layer: RasterLayer, styleValue: RCTMGLStyleValue) {
|
|
2960
|
+
val transition = styleValue.transition
|
|
2961
|
+
if (transition != null) {
|
|
2962
|
+
layer.rasterSaturationTransition(transition);
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
|
|
2966
|
+
fun setRasterContrast(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
2967
|
+
if (styleValue.isExpression()) {
|
|
2968
|
+
val expression = styleValue.getExpression()
|
|
2969
|
+
if (expression != null) {
|
|
2970
|
+
layer.rasterContrast(expression)
|
|
2971
|
+
} else {
|
|
2972
|
+
e("RCTMGLRaster", "Expression for rasterContrast is null")
|
|
2973
|
+
}
|
|
2974
|
+
} else {
|
|
2975
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2976
|
+
if (value != null) {
|
|
2977
|
+
layer.rasterContrast(value)
|
|
2978
|
+
} else {
|
|
2979
|
+
e("RCTMGLRaster", "value for rasterContrast is null")
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
fun setRasterContrastTransition(layer: RasterLayer, styleValue: RCTMGLStyleValue) {
|
|
2986
|
+
val transition = styleValue.transition
|
|
2987
|
+
if (transition != null) {
|
|
2988
|
+
layer.rasterContrastTransition(transition);
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
fun setRasterResampling(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
2993
|
+
if (styleValue.isExpression()) {
|
|
2994
|
+
val expression = styleValue.getExpression()
|
|
2995
|
+
if (expression != null) {
|
|
2996
|
+
layer.rasterResampling(expression)
|
|
2997
|
+
} else {
|
|
2998
|
+
e("RCTMGLRaster", "Expression for rasterResampling is null")
|
|
2999
|
+
}
|
|
3000
|
+
} else {
|
|
3001
|
+
layer.rasterResampling(RasterResampling.valueOf(styleValue.getEnumName()))
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
fun setRasterFadeDuration(layer: RasterLayer, styleValue: RCTMGLStyleValue ) {
|
|
3006
|
+
if (styleValue.isExpression()) {
|
|
3007
|
+
val expression = styleValue.getExpression()
|
|
3008
|
+
if (expression != null) {
|
|
3009
|
+
layer.rasterFadeDuration(expression)
|
|
3010
|
+
} else {
|
|
3011
|
+
e("RCTMGLRaster", "Expression for rasterFadeDuration is null")
|
|
3012
|
+
}
|
|
3013
|
+
} else {
|
|
3014
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3015
|
+
if (value != null) {
|
|
3016
|
+
layer.rasterFadeDuration(value)
|
|
3017
|
+
} else {
|
|
3018
|
+
e("RCTMGLRaster", "value for rasterFadeDuration is null")
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
fun setVisibility(layer: HillshadeLayer, styleValue: RCTMGLStyleValue ) {
|
|
3024
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
fun setHillshadeIlluminationDirection(layer: HillshadeLayer, styleValue: RCTMGLStyleValue ) {
|
|
3028
|
+
if (styleValue.isExpression()) {
|
|
3029
|
+
val expression = styleValue.getExpression()
|
|
3030
|
+
if (expression != null) {
|
|
3031
|
+
layer.hillshadeIlluminationDirection(expression)
|
|
3032
|
+
} else {
|
|
3033
|
+
e("RCTMGLHillshade", "Expression for hillshadeIlluminationDirection is null")
|
|
3034
|
+
}
|
|
3035
|
+
} else {
|
|
3036
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3037
|
+
if (value != null) {
|
|
3038
|
+
layer.hillshadeIlluminationDirection(value)
|
|
3039
|
+
} else {
|
|
3040
|
+
e("RCTMGLHillshade", "value for hillshadeIlluminationDirection is null")
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
fun setHillshadeIlluminationAnchor(layer: HillshadeLayer, styleValue: RCTMGLStyleValue ) {
|
|
3046
|
+
if (styleValue.isExpression()) {
|
|
3047
|
+
val expression = styleValue.getExpression()
|
|
3048
|
+
if (expression != null) {
|
|
3049
|
+
layer.hillshadeIlluminationAnchor(expression)
|
|
3050
|
+
} else {
|
|
3051
|
+
e("RCTMGLHillshade", "Expression for hillshadeIlluminationAnchor is null")
|
|
3052
|
+
}
|
|
3053
|
+
} else {
|
|
3054
|
+
layer.hillshadeIlluminationAnchor(HillshadeIlluminationAnchor.valueOf(styleValue.getEnumName()))
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
fun setHillshadeExaggeration(layer: HillshadeLayer, styleValue: RCTMGLStyleValue ) {
|
|
3059
|
+
if (styleValue.isExpression()) {
|
|
3060
|
+
val expression = styleValue.getExpression()
|
|
3061
|
+
if (expression != null) {
|
|
3062
|
+
layer.hillshadeExaggeration(expression)
|
|
3063
|
+
} else {
|
|
3064
|
+
e("RCTMGLHillshade", "Expression for hillshadeExaggeration is null")
|
|
3065
|
+
}
|
|
3066
|
+
} else {
|
|
3067
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3068
|
+
if (value != null) {
|
|
3069
|
+
layer.hillshadeExaggeration(value)
|
|
3070
|
+
} else {
|
|
3071
|
+
e("RCTMGLHillshade", "value for hillshadeExaggeration is null")
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
fun setHillshadeExaggerationTransition(layer: HillshadeLayer, styleValue: RCTMGLStyleValue) {
|
|
3078
|
+
val transition = styleValue.transition
|
|
3079
|
+
if (transition != null) {
|
|
3080
|
+
layer.hillshadeExaggerationTransition(transition);
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
fun setHillshadeShadowColor(layer: HillshadeLayer, styleValue: RCTMGLStyleValue ) {
|
|
3085
|
+
if (styleValue.isExpression()) {
|
|
3086
|
+
val expression = styleValue.getExpression()
|
|
3087
|
+
if (expression != null) {
|
|
3088
|
+
layer.hillshadeShadowColor(expression)
|
|
3089
|
+
} else {
|
|
3090
|
+
e("RCTMGLHillshade", "Expression for hillshadeShadowColor is null")
|
|
3091
|
+
}
|
|
3092
|
+
} else {
|
|
3093
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3094
|
+
if (value != null) {
|
|
3095
|
+
layer.hillshadeShadowColor(value)
|
|
3096
|
+
} else {
|
|
3097
|
+
e("RCTMGLHillshade", "value for hillshadeShadowColor is null")
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
|
|
3103
|
+
fun setHillshadeShadowColorTransition(layer: HillshadeLayer, styleValue: RCTMGLStyleValue) {
|
|
3104
|
+
val transition = styleValue.transition
|
|
3105
|
+
if (transition != null) {
|
|
3106
|
+
layer.hillshadeShadowColorTransition(transition);
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
fun setHillshadeHighlightColor(layer: HillshadeLayer, styleValue: RCTMGLStyleValue ) {
|
|
3111
|
+
if (styleValue.isExpression()) {
|
|
3112
|
+
val expression = styleValue.getExpression()
|
|
3113
|
+
if (expression != null) {
|
|
3114
|
+
layer.hillshadeHighlightColor(expression)
|
|
3115
|
+
} else {
|
|
3116
|
+
e("RCTMGLHillshade", "Expression for hillshadeHighlightColor is null")
|
|
3117
|
+
}
|
|
3118
|
+
} else {
|
|
3119
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3120
|
+
if (value != null) {
|
|
3121
|
+
layer.hillshadeHighlightColor(value)
|
|
3122
|
+
} else {
|
|
3123
|
+
e("RCTMGLHillshade", "value for hillshadeHighlightColor is null")
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
fun setHillshadeHighlightColorTransition(layer: HillshadeLayer, styleValue: RCTMGLStyleValue) {
|
|
3130
|
+
val transition = styleValue.transition
|
|
3131
|
+
if (transition != null) {
|
|
3132
|
+
layer.hillshadeHighlightColorTransition(transition);
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
fun setHillshadeAccentColor(layer: HillshadeLayer, styleValue: RCTMGLStyleValue ) {
|
|
3137
|
+
if (styleValue.isExpression()) {
|
|
3138
|
+
val expression = styleValue.getExpression()
|
|
3139
|
+
if (expression != null) {
|
|
3140
|
+
layer.hillshadeAccentColor(expression)
|
|
3141
|
+
} else {
|
|
3142
|
+
e("RCTMGLHillshade", "Expression for hillshadeAccentColor is null")
|
|
3143
|
+
}
|
|
3144
|
+
} else {
|
|
3145
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3146
|
+
if (value != null) {
|
|
3147
|
+
layer.hillshadeAccentColor(value)
|
|
3148
|
+
} else {
|
|
3149
|
+
e("RCTMGLHillshade", "value for hillshadeAccentColor is null")
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
|
|
3155
|
+
fun setHillshadeAccentColorTransition(layer: HillshadeLayer, styleValue: RCTMGLStyleValue) {
|
|
3156
|
+
val transition = styleValue.transition
|
|
3157
|
+
if (transition != null) {
|
|
3158
|
+
layer.hillshadeAccentColorTransition(transition);
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
fun setVisibility(layer: BackgroundLayer, styleValue: RCTMGLStyleValue ) {
|
|
3163
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
fun setBackgroundColor(layer: BackgroundLayer, styleValue: RCTMGLStyleValue ) {
|
|
3167
|
+
if (styleValue.isExpression()) {
|
|
3168
|
+
val expression = styleValue.getExpression()
|
|
3169
|
+
if (expression != null) {
|
|
3170
|
+
layer.backgroundColor(expression)
|
|
3171
|
+
} else {
|
|
3172
|
+
e("RCTMGLBackground", "Expression for backgroundColor is null")
|
|
3173
|
+
}
|
|
3174
|
+
} else {
|
|
3175
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3176
|
+
if (value != null) {
|
|
3177
|
+
layer.backgroundColor(value)
|
|
3178
|
+
} else {
|
|
3179
|
+
e("RCTMGLBackground", "value for backgroundColor is null")
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
|
|
3185
|
+
fun setBackgroundColorTransition(layer: BackgroundLayer, styleValue: RCTMGLStyleValue) {
|
|
3186
|
+
val transition = styleValue.transition
|
|
3187
|
+
if (transition != null) {
|
|
3188
|
+
layer.backgroundColorTransition(transition);
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
fun setBackgroundPattern(layer: BackgroundLayer, styleValue: RCTMGLStyleValue ) {
|
|
3193
|
+
if (styleValue.isExpression()) {
|
|
3194
|
+
if (styleValue.isImageStringValue) {
|
|
3195
|
+
val value = styleValue.getImageStringValue()
|
|
3196
|
+
if (value != null) {
|
|
3197
|
+
layer.backgroundPattern(value)
|
|
3198
|
+
} else {
|
|
3199
|
+
e("RCTMGLBackground", "Image for backgroundPattern is null")
|
|
3200
|
+
}
|
|
3201
|
+
} else {
|
|
3202
|
+
val expression = styleValue.getExpression()
|
|
3203
|
+
if (expression != null) {
|
|
3204
|
+
layer.backgroundPattern(expression)
|
|
3205
|
+
} else {
|
|
3206
|
+
e("RCTMGLBackground", "Expression for backgroundPattern is null")
|
|
3207
|
+
}
|
|
3208
|
+
}
|
|
3209
|
+
} else {
|
|
3210
|
+
val value = styleValue.imageURI
|
|
3211
|
+
if (value != null) {
|
|
3212
|
+
layer.backgroundPattern(value);
|
|
3213
|
+
} else {
|
|
3214
|
+
e("RCTMGLBackground", "value for backgroundPattern is null")
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
fun setBackgroundOpacity(layer: BackgroundLayer, styleValue: RCTMGLStyleValue ) {
|
|
3220
|
+
if (styleValue.isExpression()) {
|
|
3221
|
+
val expression = styleValue.getExpression()
|
|
3222
|
+
if (expression != null) {
|
|
3223
|
+
layer.backgroundOpacity(expression)
|
|
3224
|
+
} else {
|
|
3225
|
+
e("RCTMGLBackground", "Expression for backgroundOpacity is null")
|
|
3226
|
+
}
|
|
3227
|
+
} else {
|
|
3228
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3229
|
+
if (value != null) {
|
|
3230
|
+
layer.backgroundOpacity(value)
|
|
3231
|
+
} else {
|
|
3232
|
+
e("RCTMGLBackground", "value for backgroundOpacity is null")
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
fun setBackgroundOpacityTransition(layer: BackgroundLayer, styleValue: RCTMGLStyleValue) {
|
|
3239
|
+
val transition = styleValue.transition
|
|
3240
|
+
if (transition != null) {
|
|
3241
|
+
layer.backgroundOpacityTransition(transition);
|
|
3242
|
+
}
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
fun setVisibility(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3246
|
+
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
fun setSkyType(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3250
|
+
if (styleValue.isExpression()) {
|
|
3251
|
+
val expression = styleValue.getExpression()
|
|
3252
|
+
if (expression != null) {
|
|
3253
|
+
layer.skyType(expression)
|
|
3254
|
+
} else {
|
|
3255
|
+
e("RCTMGLSky", "Expression for skyType is null")
|
|
3256
|
+
}
|
|
3257
|
+
} else {
|
|
3258
|
+
layer.skyType(SkyType.valueOf(styleValue.getEnumName()))
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
fun setSkyAtmosphereSun(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3263
|
+
if (styleValue.isExpression()) {
|
|
3264
|
+
val expression = styleValue.getExpression()
|
|
3265
|
+
if (expression != null) {
|
|
3266
|
+
layer.skyAtmosphereSun(expression)
|
|
3267
|
+
} else {
|
|
3268
|
+
e("RCTMGLSky", "Expression for skyAtmosphereSun is null")
|
|
3269
|
+
}
|
|
3270
|
+
} else {
|
|
3271
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
3272
|
+
if (value != null) {
|
|
3273
|
+
layer.skyAtmosphereSun(value)
|
|
3274
|
+
} else {
|
|
3275
|
+
e("RCTMGLSky", "value for skyAtmosphereSun is null")
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
fun setSkyAtmosphereSunIntensity(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3281
|
+
if (styleValue.isExpression()) {
|
|
3282
|
+
val expression = styleValue.getExpression()
|
|
3283
|
+
if (expression != null) {
|
|
3284
|
+
layer.skyAtmosphereSunIntensity(expression)
|
|
3285
|
+
} else {
|
|
3286
|
+
e("RCTMGLSky", "Expression for skyAtmosphereSunIntensity is null")
|
|
3287
|
+
}
|
|
3288
|
+
} else {
|
|
3289
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3290
|
+
if (value != null) {
|
|
3291
|
+
layer.skyAtmosphereSunIntensity(value)
|
|
3292
|
+
} else {
|
|
3293
|
+
e("RCTMGLSky", "value for skyAtmosphereSunIntensity is null")
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
fun setSkyGradientCenter(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3299
|
+
if (styleValue.isExpression()) {
|
|
3300
|
+
val expression = styleValue.getExpression()
|
|
3301
|
+
if (expression != null) {
|
|
3302
|
+
layer.skyGradientCenter(expression)
|
|
3303
|
+
} else {
|
|
3304
|
+
e("RCTMGLSky", "Expression for skyGradientCenter is null")
|
|
3305
|
+
}
|
|
3306
|
+
} else {
|
|
3307
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
3308
|
+
if (value != null) {
|
|
3309
|
+
layer.skyGradientCenter(value)
|
|
3310
|
+
} else {
|
|
3311
|
+
e("RCTMGLSky", "value for skyGradientCenter is null")
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
fun setSkyGradientRadius(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3317
|
+
if (styleValue.isExpression()) {
|
|
3318
|
+
val expression = styleValue.getExpression()
|
|
3319
|
+
if (expression != null) {
|
|
3320
|
+
layer.skyGradientRadius(expression)
|
|
3321
|
+
} else {
|
|
3322
|
+
e("RCTMGLSky", "Expression for skyGradientRadius is null")
|
|
3323
|
+
}
|
|
3324
|
+
} else {
|
|
3325
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3326
|
+
if (value != null) {
|
|
3327
|
+
layer.skyGradientRadius(value)
|
|
3328
|
+
} else {
|
|
3329
|
+
e("RCTMGLSky", "value for skyGradientRadius is null")
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
fun setSkyGradient(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3335
|
+
if (styleValue.isExpression()) {
|
|
3336
|
+
val expression = styleValue.getExpression()
|
|
3337
|
+
if (expression != null) {
|
|
3338
|
+
layer.skyGradient(expression)
|
|
3339
|
+
} else {
|
|
3340
|
+
e("RCTMGLSky", "Expression for skyGradient is null")
|
|
3341
|
+
}
|
|
3342
|
+
} else {
|
|
3343
|
+
layer.skyGradient(styleValue.getIntExpression(VALUE_KEY))
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
fun setSkyAtmosphereHaloColor(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3348
|
+
if (styleValue.isExpression()) {
|
|
3349
|
+
val expression = styleValue.getExpression()
|
|
3350
|
+
if (expression != null) {
|
|
3351
|
+
layer.skyAtmosphereHaloColor(expression)
|
|
3352
|
+
} else {
|
|
3353
|
+
e("RCTMGLSky", "Expression for skyAtmosphereHaloColor is null")
|
|
3354
|
+
}
|
|
3355
|
+
} else {
|
|
3356
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3357
|
+
if (value != null) {
|
|
3358
|
+
layer.skyAtmosphereHaloColor(value)
|
|
3359
|
+
} else {
|
|
3360
|
+
e("RCTMGLSky", "value for skyAtmosphereHaloColor is null")
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
fun setSkyAtmosphereColor(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3366
|
+
if (styleValue.isExpression()) {
|
|
3367
|
+
val expression = styleValue.getExpression()
|
|
3368
|
+
if (expression != null) {
|
|
3369
|
+
layer.skyAtmosphereColor(expression)
|
|
3370
|
+
} else {
|
|
3371
|
+
e("RCTMGLSky", "Expression for skyAtmosphereColor is null")
|
|
3372
|
+
}
|
|
3373
|
+
} else {
|
|
3374
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3375
|
+
if (value != null) {
|
|
3376
|
+
layer.skyAtmosphereColor(value)
|
|
3377
|
+
} else {
|
|
3378
|
+
e("RCTMGLSky", "value for skyAtmosphereColor is null")
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
fun setSkyOpacity(layer: SkyLayer, styleValue: RCTMGLStyleValue ) {
|
|
3384
|
+
if (styleValue.isExpression()) {
|
|
3385
|
+
val expression = styleValue.getExpression()
|
|
3386
|
+
if (expression != null) {
|
|
3387
|
+
layer.skyOpacity(expression)
|
|
3388
|
+
} else {
|
|
3389
|
+
e("RCTMGLSky", "Expression for skyOpacity is null")
|
|
3390
|
+
}
|
|
3391
|
+
} else {
|
|
3392
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3393
|
+
if (value != null) {
|
|
3394
|
+
layer.skyOpacity(value)
|
|
3395
|
+
} else {
|
|
3396
|
+
e("RCTMGLSky", "value for skyOpacity is null")
|
|
3397
|
+
}
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
fun setSkyOpacityTransition(layer: SkyLayer, styleValue: RCTMGLStyleValue) {
|
|
3403
|
+
val transition = styleValue.transition
|
|
3404
|
+
if (transition != null) {
|
|
3405
|
+
layer.skyOpacityTransition(transition);
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3409
|
+
fun setAnchor(layer: Light, styleValue: RCTMGLStyleValue ) {
|
|
3410
|
+
if (styleValue.isExpression()) {
|
|
3411
|
+
val expression = styleValue.getExpression()
|
|
3412
|
+
if (expression != null) {
|
|
3413
|
+
layer.anchor(expression)
|
|
3414
|
+
} else {
|
|
3415
|
+
e("RCTMGLLight", "Expression for anchor is null")
|
|
3416
|
+
}
|
|
3417
|
+
} else {
|
|
3418
|
+
layer.anchor(Anchor.valueOf(styleValue.getEnumName()))
|
|
3419
|
+
}
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
fun setPosition(layer: Light, styleValue: RCTMGLStyleValue ) {
|
|
3423
|
+
if (styleValue.isExpression()) {
|
|
3424
|
+
val expression = styleValue.getExpression()
|
|
3425
|
+
if (expression != null) {
|
|
3426
|
+
layer.position(expression)
|
|
3427
|
+
} else {
|
|
3428
|
+
e("RCTMGLLight", "Expression for position is null")
|
|
3429
|
+
}
|
|
3430
|
+
} else {
|
|
3431
|
+
layer.position(styleValue.getLightPosition())
|
|
3432
|
+
}
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
|
|
3436
|
+
fun setPositionTransition(layer: Light, styleValue: RCTMGLStyleValue) {
|
|
3437
|
+
val transition = styleValue.transition
|
|
3438
|
+
if (transition != null) {
|
|
3439
|
+
layer.positionTransition(transition);
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
fun setColor(layer: Light, styleValue: RCTMGLStyleValue ) {
|
|
3444
|
+
if (styleValue.isExpression()) {
|
|
3445
|
+
val expression = styleValue.getExpression()
|
|
3446
|
+
if (expression != null) {
|
|
3447
|
+
layer.color(expression)
|
|
3448
|
+
} else {
|
|
3449
|
+
e("RCTMGLLight", "Expression for color is null")
|
|
3450
|
+
}
|
|
3451
|
+
} else {
|
|
3452
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3453
|
+
if (value != null) {
|
|
3454
|
+
layer.color(value)
|
|
3455
|
+
} else {
|
|
3456
|
+
e("RCTMGLLight", "value for color is null")
|
|
3457
|
+
}
|
|
3458
|
+
}
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
fun setColorTransition(layer: Light, styleValue: RCTMGLStyleValue) {
|
|
3463
|
+
val transition = styleValue.transition
|
|
3464
|
+
if (transition != null) {
|
|
3465
|
+
layer.colorTransition(transition);
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
fun setIntensity(layer: Light, styleValue: RCTMGLStyleValue ) {
|
|
3470
|
+
if (styleValue.isExpression()) {
|
|
3471
|
+
val expression = styleValue.getExpression()
|
|
3472
|
+
if (expression != null) {
|
|
3473
|
+
layer.intensity(expression)
|
|
3474
|
+
} else {
|
|
3475
|
+
e("RCTMGLLight", "Expression for intensity is null")
|
|
3476
|
+
}
|
|
3477
|
+
} else {
|
|
3478
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3479
|
+
if (value != null) {
|
|
3480
|
+
layer.intensity(value)
|
|
3481
|
+
} else {
|
|
3482
|
+
e("RCTMGLLight", "value for intensity is null")
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
|
|
3487
|
+
|
|
3488
|
+
fun setIntensityTransition(layer: Light, styleValue: RCTMGLStyleValue) {
|
|
3489
|
+
val transition = styleValue.transition
|
|
3490
|
+
if (transition != null) {
|
|
3491
|
+
layer.intensityTransition(transition);
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
fun setRange(layer: Atmosphere, styleValue: RCTMGLStyleValue ) {
|
|
3496
|
+
if (styleValue.isExpression()) {
|
|
3497
|
+
val expression = styleValue.getExpression()
|
|
3498
|
+
if (expression != null) {
|
|
3499
|
+
layer.range(expression)
|
|
3500
|
+
} else {
|
|
3501
|
+
e("RCTMGLAtmosphere", "Expression for range is null")
|
|
3502
|
+
}
|
|
3503
|
+
} else {
|
|
3504
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
3505
|
+
if (value != null) {
|
|
3506
|
+
layer.range(value)
|
|
3507
|
+
} else {
|
|
3508
|
+
e("RCTMGLAtmosphere", "value for range is null")
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
fun setRangeTransition(layer: Atmosphere, styleValue: RCTMGLStyleValue) {
|
|
3515
|
+
val transition = styleValue.transition
|
|
3516
|
+
if (transition != null) {
|
|
3517
|
+
layer.rangeTransition(transition);
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
fun setColor(layer: Atmosphere, styleValue: RCTMGLStyleValue ) {
|
|
3522
|
+
if (styleValue.isExpression()) {
|
|
3523
|
+
val expression = styleValue.getExpression()
|
|
3524
|
+
if (expression != null) {
|
|
3525
|
+
layer.color(expression)
|
|
3526
|
+
} else {
|
|
3527
|
+
e("RCTMGLAtmosphere", "Expression for color is null")
|
|
3528
|
+
}
|
|
3529
|
+
} else {
|
|
3530
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3531
|
+
if (value != null) {
|
|
3532
|
+
layer.color(value)
|
|
3533
|
+
} else {
|
|
3534
|
+
e("RCTMGLAtmosphere", "value for color is null")
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
fun setColorTransition(layer: Atmosphere, styleValue: RCTMGLStyleValue) {
|
|
3541
|
+
val transition = styleValue.transition
|
|
3542
|
+
if (transition != null) {
|
|
3543
|
+
layer.colorTransition(transition);
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
fun setHighColor(layer: Atmosphere, styleValue: RCTMGLStyleValue ) {
|
|
3548
|
+
if (styleValue.isExpression()) {
|
|
3549
|
+
val expression = styleValue.getExpression()
|
|
3550
|
+
if (expression != null) {
|
|
3551
|
+
layer.highColor(expression)
|
|
3552
|
+
} else {
|
|
3553
|
+
e("RCTMGLAtmosphere", "Expression for highColor is null")
|
|
3554
|
+
}
|
|
3555
|
+
} else {
|
|
3556
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3557
|
+
if (value != null) {
|
|
3558
|
+
layer.highColor(value)
|
|
3559
|
+
} else {
|
|
3560
|
+
e("RCTMGLAtmosphere", "value for highColor is null")
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
|
|
3566
|
+
fun setHighColorTransition(layer: Atmosphere, styleValue: RCTMGLStyleValue) {
|
|
3567
|
+
val transition = styleValue.transition
|
|
3568
|
+
if (transition != null) {
|
|
3569
|
+
layer.highColorTransition(transition);
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
fun setSpaceColor(layer: Atmosphere, styleValue: RCTMGLStyleValue ) {
|
|
3574
|
+
if (styleValue.isExpression()) {
|
|
3575
|
+
val expression = styleValue.getExpression()
|
|
3576
|
+
if (expression != null) {
|
|
3577
|
+
layer.spaceColor(expression)
|
|
3578
|
+
} else {
|
|
3579
|
+
e("RCTMGLAtmosphere", "Expression for spaceColor is null")
|
|
3580
|
+
}
|
|
3581
|
+
} else {
|
|
3582
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
3583
|
+
if (value != null) {
|
|
3584
|
+
layer.spaceColor(value)
|
|
3585
|
+
} else {
|
|
3586
|
+
e("RCTMGLAtmosphere", "value for spaceColor is null")
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
|
|
3591
|
+
|
|
3592
|
+
fun setSpaceColorTransition(layer: Atmosphere, styleValue: RCTMGLStyleValue) {
|
|
3593
|
+
val transition = styleValue.transition
|
|
3594
|
+
if (transition != null) {
|
|
3595
|
+
layer.spaceColorTransition(transition);
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
fun setHorizonBlend(layer: Atmosphere, styleValue: RCTMGLStyleValue ) {
|
|
3600
|
+
if (styleValue.isExpression()) {
|
|
3601
|
+
val expression = styleValue.getExpression()
|
|
3602
|
+
if (expression != null) {
|
|
3603
|
+
layer.horizonBlend(expression)
|
|
3604
|
+
} else {
|
|
3605
|
+
e("RCTMGLAtmosphere", "Expression for horizonBlend is null")
|
|
3606
|
+
}
|
|
3607
|
+
} else {
|
|
3608
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3609
|
+
if (value != null) {
|
|
3610
|
+
layer.horizonBlend(value)
|
|
3611
|
+
} else {
|
|
3612
|
+
e("RCTMGLAtmosphere", "value for horizonBlend is null")
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
fun setHorizonBlendTransition(layer: Atmosphere, styleValue: RCTMGLStyleValue) {
|
|
3619
|
+
val transition = styleValue.transition
|
|
3620
|
+
if (transition != null) {
|
|
3621
|
+
layer.horizonBlendTransition(transition);
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
fun setStarIntensity(layer: Atmosphere, styleValue: RCTMGLStyleValue ) {
|
|
3626
|
+
if (styleValue.isExpression()) {
|
|
3627
|
+
val expression = styleValue.getExpression()
|
|
3628
|
+
if (expression != null) {
|
|
3629
|
+
layer.starIntensity(expression)
|
|
3630
|
+
} else {
|
|
3631
|
+
e("RCTMGLAtmosphere", "Expression for starIntensity is null")
|
|
3632
|
+
}
|
|
3633
|
+
} else {
|
|
3634
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3635
|
+
if (value != null) {
|
|
3636
|
+
layer.starIntensity(value)
|
|
3637
|
+
} else {
|
|
3638
|
+
e("RCTMGLAtmosphere", "value for starIntensity is null")
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
fun setStarIntensityTransition(layer: Atmosphere, styleValue: RCTMGLStyleValue) {
|
|
3645
|
+
val transition = styleValue.transition
|
|
3646
|
+
if (transition != null) {
|
|
3647
|
+
layer.starIntensityTransition(transition);
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
fun setExaggeration(layer: Terrain, styleValue: RCTMGLStyleValue ) {
|
|
3652
|
+
if (styleValue.isExpression()) {
|
|
3653
|
+
val expression = styleValue.getExpression()
|
|
3654
|
+
if (expression != null) {
|
|
3655
|
+
layer.exaggeration(expression)
|
|
3656
|
+
} else {
|
|
3657
|
+
e("RCTMGLTerrain", "Expression for exaggeration is null")
|
|
3658
|
+
}
|
|
3659
|
+
} else {
|
|
3660
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3661
|
+
if (value != null) {
|
|
3662
|
+
layer.exaggeration(value)
|
|
3663
|
+
} else {
|
|
3664
|
+
e("RCTMGLTerrain", "value for exaggeration is null")
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
}
|