@maplibre/maplibre-react-native 10.0.0-alpha.2 → 10.0.0-alpha.21
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/.sonarcloud.properties +1 -1
- package/CHANGELOG.md +141 -50
- package/CONTRIBUTING.md +10 -9
- package/README.md +1 -1
- package/android/build.gradle +1 -1
- package/android/rctmln/.settings/org.eclipse.buildship.core.prefs +2 -0
- package/android/{rctmgl → rctmln}/build.gradle +5 -5
- package/android/{rctmgl → rctmln}/src/main/AndroidManifest.xml +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/RCTMLNPackage.java +99 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractEvent.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractEventEmitter.java +2 -2
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/AbstractMapFeature.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/annotation/MarkerView.java +3 -3
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/annotation/MarkerViewManager.java +12 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCallout.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNCallout.java} +3 -3
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNCalloutManager.java +22 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNMarkerView.java} +18 -18
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNMarkerViewManager.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotation.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNPointAnnotation.java} +27 -26
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotationManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNPointAnnotationManager.java} +14 -14
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraStop.java +21 -19
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraUpdateItem.java +12 -12
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/CameraUpdateQueue.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCamera.java → rctmln/src/main/java/com/maplibre/rctmln/components/camera/RCTMLNCamera.java} +50 -50
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCameraManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/camera/RCTMLNCameraManager.java} +19 -19
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/camera/constants/CameraMode.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImages.java → rctmln/src/main/java/com/maplibre/rctmln/components/images/RCTMLNImages.java} +27 -27
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImagesManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/images/RCTMLNImagesManager.java} +17 -17
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/location/LocationComponentManager.java +25 -16
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocation.java → rctmln/src/main/java/com/maplibre/rctmln/components/location/RCTMLNNativeUserLocation.java} +25 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocationManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/location/RCTMLNNativeUserLocationManager.java} +12 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/mapview/LayerSourceInfo.java +10 -10
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNAndroidTextureMapView.java +16 -0
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNAndroidTextureMapViewManager.java +31 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java → rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNMapView.java} +171 -171
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapViewManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNMapViewManager.java} +46 -46
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/mapview/helpers/CameraChangeTracker.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyle.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyle.java} +12 -12
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFactory.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFactory.java} +434 -423
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFunctionParser.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFunctionParser.java} +8 -9
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleValue.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleValue.java} +9 -9
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/styles/layers/RCTLayer.java +17 -17
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNBackgroundLayer.java +27 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNBackgroundLayerManager.java} +13 -13
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNCircleLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNCircleLayerManager.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillExtrusionLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillExtrusionLayerManager.java} +16 -16
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillLayerManager.java} +16 -16
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNHeatmapLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNHeatmapLayerManager.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNLineLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNLineLayerManager.java} +17 -17
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNRasterLayer.java +27 -0
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNRasterLayerManager.java} +13 -13
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayer.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNSymbolLayer.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayerManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNSymbolLayerManager.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLight.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/light/RCTMLNLight.java} +16 -16
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLightManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/light/RCTMLNLightManager.java} +6 -6
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNImageSource.java} +7 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNImageSourceManager.java} +15 -15
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNRasterSource.java} +6 -6
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNRasterSourceManager.java} +7 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNShapeSource.java} +22 -22
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNShapeSourceManager.java} +35 -35
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNTileSource.java} +5 -5
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNTileSourceManager.java} +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSource.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNVectorSource.java} +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSourceManager.java → rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNVectorSourceManager.java} +12 -12
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/components/styles/sources/RCTSource.java +14 -14
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/AbstractEvent.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/AndroidCallbackEvent.java +2 -2
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/EventEmitter.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/FeatureClickEvent.java +8 -8
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/IEvent.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/ImageMissingEvent.java +3 -3
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/LocationEvent.java +6 -6
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapChangeEvent.java +3 -3
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapClickEvent.java +5 -5
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/MapUserTrackingModeEvent.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/OfflineEvent.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/PointAnnotationClickEvent.java +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/PointAnnotationDragEvent.java +10 -10
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/constants/EventKeys.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/events/constants/EventTypes.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/http/CustomHeadersInterceptor.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/LocationManager.java +7 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserLocation.java +2 -2
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserLocationVerticalAlignment.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserTrackingMode.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/location/UserTrackingState.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLocationModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNLocationModule.java} +11 -11
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLogging.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNLogging.java} +7 -7
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNModule.java} +30 -30
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNOfflineModule.java} +21 -21
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java → rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNSnapshotModule.java} +14 -14
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/BitmapUtils.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ClusterPropertyEntry.java +2 -2
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ConvertUtils.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/DownloadMapImageTask.java +6 -6
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ExpressionParser.java +3 -3
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/GeoJSONUtils.java +14 -14
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/GeoViewport.java +4 -4
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ImageEntry.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/ResourceUtils.java +1 -1
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/SimpleEventCallback.java +5 -5
- package/android/{rctmgl/src/main/java/com/mapbox/rctmgl → rctmln/src/main/java/com/maplibre/rctmln}/utils/SphericalMercator.java +2 -2
- package/android/rctmln/src/main/res/values/strings.xml +3 -0
- package/android/settings.gradle +1 -1
- package/docs/Annotations.md +1 -1
- package/docs/Callout.md +1 -1
- package/docs/Camera.md +4 -4
- package/docs/CustomHttpHeaders.md +4 -4
- package/docs/FillExtrusionLayer.md +19 -0
- package/docs/MapView.md +12 -36
- package/docs/MarkerView.md +1 -1
- package/docs/NativeUserLocation.md +2 -1
- package/docs/PointAnnotation.md +2 -2
- package/docs/RasterLayer.md +1 -1
- package/docs/SymbolLayer.md +7 -5
- package/docs/UserLocation.md +13 -4
- package/docs/docs.json +79 -52
- package/docs/offlineManager.md +246 -0
- package/ios/{RCTMGL → RCTMLN}/CameraMode.h +1 -1
- package/ios/{RCTMGL → RCTMLN}/CameraMode.m +1 -1
- package/ios/{RCTMGL → RCTMLN}/CameraStop.h +4 -4
- package/ios/{RCTMGL → RCTMLN}/CameraStop.m +7 -7
- package/ios/{RCTMGL → RCTMLN}/CameraUpdateItem.h +3 -3
- package/ios/{RCTMGL → RCTMLN}/CameraUpdateItem.m +19 -19
- package/ios/{RCTMGL → RCTMLN}/CameraUpdateQueue.h +3 -3
- package/ios/{RCTMGL → RCTMLN}/CameraUpdateQueue.m +3 -3
- package/ios/{RCTMGL → RCTMLN}/FilterParser.h +1 -1
- package/ios/{RCTMGL → RCTMLN}/FilterParser.m +3 -3
- package/ios/{RCTMGL/MGLCustomHeaders.h → RCTMLN/MLNCustomHeaders.h} +3 -3
- package/ios/{RCTMGL/MGLCustomHeaders.m → RCTMLN/MLNCustomHeaders.m} +11 -11
- package/ios/RCTMLN/MLNFaux3DUserLocationAnnotationView.h +23 -0
- package/ios/{RCTMGL/MGLFaux3DUserLocationAnnotationView.m → RCTMLN/MLNFaux3DUserLocationAnnotationView.m} +38 -38
- package/ios/{RCTMGL/MGLModule.h → RCTMLN/MLNModule.h} +3 -3
- package/ios/{RCTMGL/MGLModule.m → RCTMLN/MLNModule.m} +91 -91
- package/ios/{RCTMGL/MGLOfflineModule.h → RCTMLN/MLNOfflineModule.h} +4 -4
- package/ios/{RCTMGL/MGLOfflineModule.m → RCTMLN/MLNOfflineModule.m} +120 -99
- package/ios/{RCTMGL/MGLSnapshotModule.h → RCTMLN/MLNSnapshotModule.h} +3 -3
- package/ios/{RCTMGL/MGLSnapshotModule.m → RCTMLN/MLNSnapshotModule.m} +14 -14
- package/ios/{RCTMGL/MGLUserLocationHeadingArrowLayer.h → RCTMLN/MLNUserLocationHeadingArrowLayer.h} +4 -4
- package/ios/{RCTMGL/MGLUserLocationHeadingArrowLayer.m → RCTMLN/MLNUserLocationHeadingArrowLayer.m} +7 -7
- package/ios/RCTMLN/MLNUserLocationHeadingBeamLayer.h +11 -0
- package/ios/{RCTMGL/MGLUserLocationHeadingBeamLayer.m → RCTMLN/MLNUserLocationHeadingBeamLayer.m} +10 -10
- package/ios/{RCTMGL/MGLUserLocationHeadingIndicator.h → RCTMLN/MLNUserLocationHeadingIndicator.h} +3 -3
- package/ios/{RCTMGL → RCTMLN}/RCTConvert+Mapbox.h +1 -1
- package/ios/{RCTMGL → RCTMLN}/RCTConvert+Mapbox.m +1 -1
- package/ios/{RCTMGL/RCTMGL.h → RCTMLN/RCTMLN.h} +3 -3
- package/ios/{RCTMGL/RCTMGL.m → RCTMLN/RCTMLN.m} +4 -4
- package/ios/RCTMLN/RCTMLNBackgroundLayer.h +14 -0
- package/ios/RCTMLN/RCTMLNBackgroundLayer.m +27 -0
- package/ios/{RCTMGL/RCTMGLBackgroundLayerManager.h → RCTMLN/RCTMLNBackgroundLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLBackgroundLayerManager.m → RCTMLN/RCTMLNBackgroundLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLCallout.h → RCTMLN/RCTMLNCallout.h} +4 -4
- package/ios/{RCTMGL/RCTMGLCallout.m → RCTMLN/RCTMLNCallout.m} +6 -6
- package/ios/{RCTMGL/RCTMGLCalloutManager.h → RCTMLN/RCTMLNCalloutManager.h} +3 -3
- package/ios/RCTMLN/RCTMLNCalloutManager.m +21 -0
- package/ios/{RCTMGL/RCTMGLCamera.h → RCTMLN/RCTMLNCamera.h} +6 -6
- package/ios/{RCTMGL/RCTMGLCamera.m → RCTMLN/RCTMLNCamera.m} +30 -30
- package/ios/{RCTMGL/RCTMGLCameraManager.h → RCTMLN/RCTMLNCameraManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLCameraManager.m → RCTMLN/RCTMLNCameraManager.m} +7 -7
- package/ios/RCTMLN/RCTMLNCircleLayer.h +13 -0
- package/ios/{RCTMGL/RCTMGLCircleLayer.m → RCTMLN/RCTMLNCircleLayer.m} +10 -10
- package/ios/{RCTMGL/RCTMGLCircleLayerManager.h → RCTMLN/RCTMLNCircleLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLCircleLayerManager.m → RCTMLN/RCTMLNCircleLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLEvent.h → RCTMLN/RCTMLNEvent.h} +6 -6
- package/ios/{RCTMGL/RCTMGLEvent.m → RCTMLN/RCTMLNEvent.m} +8 -8
- package/ios/{RCTMGL/RCTMGLEventProtocol.h → RCTMLN/RCTMLNEventProtocol.h} +3 -3
- package/ios/{RCTMGL/RCTMGLEventTypes.h → RCTMLN/RCTMLNEventTypes.h} +3 -3
- package/ios/{RCTMGL/RCTMGLEventTypes.m → RCTMLN/RCTMLNEventTypes.m} +4 -4
- package/ios/RCTMLN/RCTMLNFillExtrusionLayer.h +14 -0
- package/ios/{RCTMGL/RCTMGLFillExtrusionLayer.m → RCTMLN/RCTMLNFillExtrusionLayer.m} +10 -10
- package/ios/{RCTMGL/RCTMGLFillExtrusionLayerManager.h → RCTMLN/RCTMLNFillExtrusionLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLFillExtrusionLayerManager.m → RCTMLN/RCTMLNFillExtrusionLayerManager.m} +6 -6
- package/ios/RCTMLN/RCTMLNFillLayer.h +14 -0
- package/ios/{RCTMGL/RCTMGLFillLayer.m → RCTMLN/RCTMLNFillLayer.m} +10 -10
- package/ios/{RCTMGL/RCTMGLFillLayerManager.h → RCTMLN/RCTMLNFillLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLFillLayerManager.m → RCTMLN/RCTMLNFillLayerManager.m} +6 -6
- package/ios/RCTMLN/RCTMLNHeatmapLayer.h +12 -0
- package/ios/RCTMLN/RCTMLNHeatmapLayer.m +30 -0
- package/ios/RCTMLN/RCTMLNHeatmapLayerManager.h +12 -0
- package/ios/{RCTMGL/RCTMGLHeatmapLayerManager.m → RCTMLN/RCTMLNHeatmapLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLImageQueue.h → RCTMLN/RCTMLNImageQueue.h} +3 -3
- package/ios/{RCTMGL/RCTMGLImageQueue.m → RCTMLN/RCTMLNImageQueue.m} +10 -10
- package/ios/{RCTMGL/RCTMGLImageQueueOperation.h → RCTMLN/RCTMLNImageQueueOperation.h} +3 -3
- package/ios/{RCTMGL/RCTMGLImageQueueOperation.m → RCTMLN/RCTMLNImageQueueOperation.m} +12 -12
- package/ios/{RCTMGL/RCTMGLImageSource.h → RCTMLN/RCTMLNImageSource.h} +4 -4
- package/ios/{RCTMGL/RCTMGLImageSource.m → RCTMLN/RCTMLNImageSource.m} +11 -11
- package/ios/{RCTMGL/RCTMGLImageSourceManager.h → RCTMLN/RCTMLNImageSourceManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLImageSourceManager.m → RCTMLN/RCTMLNImageSourceManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLImages.h → RCTMLN/RCTMLNImages.h} +4 -4
- package/ios/{RCTMGL/RCTMGLImages.m → RCTMLN/RCTMLNImages.m} +10 -10
- package/ios/RCTMLN/RCTMLNImagesManager.h +5 -0
- package/ios/{RCTMGL/RCTMGLImagesManager.m → RCTMLN/RCTMLNImagesManager.m} +4 -4
- package/ios/{RCTMGL/RCTMGLLayer.h → RCTMLN/RCTMLNLayer.h} +11 -11
- package/ios/{RCTMGL/RCTMGLLayer.m → RCTMLN/RCTMLNLayer.m} +17 -17
- package/ios/{RCTMGL/RCTMGLLight.h → RCTMLN/RCTMLNLight.h} +5 -5
- package/ios/{RCTMGL/RCTMGLLight.m → RCTMLN/RCTMLNLight.m} +9 -9
- package/ios/{RCTMGL/RCTMGLLightManager.h → RCTMLN/RCTMLNLightManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLLightManager.m → RCTMLN/RCTMLNLightManager.m} +6 -6
- package/ios/RCTMLN/RCTMLNLineLayer.h +14 -0
- package/ios/{RCTMGL/RCTMGLLineLayer.m → RCTMLN/RCTMLNLineLayer.m} +10 -10
- package/ios/{RCTMGL/RCTMGLLineLayerManager.h → RCTMLN/RCTMLNLineLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLLineLayerManager.m → RCTMLN/RCTMLNLineLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLLocation.h → RCTMLN/RCTMLNLocation.h} +3 -3
- package/ios/{RCTMGL/RCTMGLLocation.m → RCTMLN/RCTMLNLocation.m} +4 -4
- package/ios/RCTMLN/RCTMLNLocationManager.h +30 -0
- package/ios/{RCTMGL/RCTMGLLocationManager.m → RCTMLN/RCTMLNLocationManager.m} +16 -16
- package/ios/RCTMLN/RCTMLNLocationManagerDelegate.h +20 -0
- package/ios/{RCTMGL/RCTMGLLocationModule.h → RCTMLN/RCTMLNLocationModule.h} +3 -3
- package/ios/{RCTMGL/RCTMGLLocationModule.m → RCTMLN/RCTMLNLocationModule.m} +13 -13
- package/ios/RCTMLN/RCTMLNLogging.h +18 -0
- package/ios/{RCTMGL/RCTMGLLogging.m → RCTMLN/RCTMLNLogging.m} +29 -29
- package/ios/{RCTMGL/RCTMGLMapTouchEvent.h → RCTMLN/RCTMLNMapTouchEvent.h} +10 -10
- package/ios/{RCTMGL/RCTMGLMapTouchEvent.m → RCTMLN/RCTMLNMapTouchEvent.m} +18 -18
- package/ios/{RCTMGL/RCTMGLMapView.h → RCTMLN/RCTMLNMapView.h} +30 -30
- package/ios/{RCTMGL/RCTMGLMapView.m → RCTMLN/RCTMLNMapView.m} +82 -82
- package/ios/{RCTMGL/RCTMGLMapViewManager.h → RCTMLN/RCTMLNMapViewManager.h} +4 -4
- package/ios/{RCTMGL/RCTMGLMapViewManager.m → RCTMLN/RCTMLNMapViewManager.m} +117 -117
- package/ios/{RCTMGL/RCTMGLNativeUserLocation.h → RCTMLN/RCTMLNNativeUserLocation.h} +5 -5
- package/ios/{RCTMGL/RCTMGLNativeUserLocation.m → RCTMLN/RCTMLNNativeUserLocation.m} +10 -10
- package/ios/RCTMLN/RCTMLNNativeUserLocationManager.h +5 -0
- package/ios/RCTMLN/RCTMLNNativeUserLocationManager.m +25 -0
- package/ios/{RCTMGL/RCTMGLPointAnnotation.h → RCTMLN/RCTMLNPointAnnotation.h} +8 -8
- package/ios/{RCTMGL/RCTMGLPointAnnotation.m → RCTMLN/RCTMLNPointAnnotation.m} +21 -21
- package/ios/{RCTMGL/RCTMGLPointAnnotationManager.h → RCTMLN/RCTMLNPointAnnotationManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLPointAnnotationManager.m → RCTMLN/RCTMLNPointAnnotationManager.m} +6 -6
- package/ios/RCTMLN/RCTMLNRasterLayer.h +14 -0
- package/ios/RCTMLN/RCTMLNRasterLayer.m +30 -0
- package/ios/{RCTMGL/RCTMGLRasterLayerManager.h → RCTMLN/RCTMLNRasterLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLRasterLayerManager.m → RCTMLN/RCTMLNRasterLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLRasterSource.h → RCTMLN/RCTMLNRasterSource.h} +5 -5
- package/ios/{RCTMGL/RCTMGLRasterSource.m → RCTMLN/RCTMLNRasterSource.m} +11 -11
- package/ios/{RCTMGL/RCTMGLRasterSourceManager.h → RCTMLN/RCTMLNRasterSourceManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLRasterSourceManager.m → RCTMLN/RCTMLNRasterSourceManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLShapeSource.h → RCTMLN/RCTMLNShapeSource.h} +10 -10
- package/ios/{RCTMGL/RCTMGLShapeSource.m → RCTMLN/RCTMLNShapeSource.m} +50 -50
- package/ios/{RCTMGL/RCTMGLShapeSourceManager.h → RCTMLN/RCTMLNShapeSourceManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLShapeSourceManager.m → RCTMLN/RCTMLNShapeSourceManager.m} +25 -25
- package/ios/{RCTMGL/RCTMGLSource.h → RCTMLN/RCTMLNSource.h} +8 -8
- package/ios/{RCTMGL/RCTMGLSource.m → RCTMLN/RCTMLNSource.m} +15 -15
- package/ios/RCTMLN/RCTMLNStyle.h +223 -0
- package/ios/{RCTMGL/RCTMGLStyle.m → RCTMLN/RCTMLNStyle.m} +352 -345
- package/ios/{RCTMGL/RCTMGLStyleValue.h → RCTMLN/RCTMLNStyleValue.h} +7 -7
- package/ios/{RCTMGL/RCTMGLStyleValue.m → RCTMLN/RCTMLNStyleValue.m} +24 -24
- package/ios/{RCTMGL/RCTMGLSymbolLayer.h → RCTMLN/RCTMLNSymbolLayer.h} +4 -4
- package/ios/{RCTMGL/RCTMGLSymbolLayer.m → RCTMLN/RCTMLNSymbolLayer.m} +12 -12
- package/ios/{RCTMGL/RCTMGLSymbolLayerManager.h → RCTMLN/RCTMLNSymbolLayerManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLSymbolLayerManager.m → RCTMLN/RCTMLNSymbolLayerManager.m} +6 -6
- package/ios/{RCTMGL/RCTMGLTileSource.h → RCTMLN/RCTMLNTileSource.h} +6 -6
- package/ios/RCTMLN/RCTMLNTileSource.m +31 -0
- package/ios/RCTMLN/RCTMLNUserLocation.h +15 -0
- package/ios/{RCTMGL/RCTMGLUserLocation.m → RCTMLN/RCTMLNUserLocation.m} +8 -8
- package/ios/{RCTMGL/RCTMGLUtils.h → RCTMLN/RCTMLNUtils.h} +7 -7
- package/ios/{RCTMGL/RCTMGLUtils.m → RCTMLN/RCTMLNUtils.m} +20 -20
- package/ios/{RCTMGL/RCTMGLVectorLayer.h → RCTMLN/RCTMLNVectorLayer.h} +4 -4
- package/ios/{RCTMGL/RCTMGLVectorLayer.m → RCTMLN/RCTMLNVectorLayer.m} +7 -7
- package/ios/{RCTMGL/RCTMGLVectorSource.h → RCTMLN/RCTMLNVectorSource.h} +6 -6
- package/ios/{RCTMGL/RCTMGLVectorSource.m → RCTMLN/RCTMLNVectorSource.m} +9 -9
- package/ios/{RCTMGL/RCTMGLVectorSourceManager.h → RCTMLN/RCTMLNVectorSourceManager.h} +3 -3
- package/ios/{RCTMGL/RCTMGLVectorSourceManager.m → RCTMLN/RCTMLNVectorSourceManager.m} +11 -11
- package/ios/{RCTMGL → RCTMLN}/RNMBImageUtils.h +1 -1
- package/ios/{RCTMGL → RCTMLN}/RNMBImageUtils.m +2 -2
- package/ios/{RCTMGL → RCTMLN}/ViewManager.h +3 -3
- package/ios/{RCTMGL → RCTMLN}/ViewManager.m +4 -4
- package/ios/RCTMLN.xcodeproj/project.pbxproj +775 -0
- package/ios/install.md +6 -7
- package/javascript/{MGLModule.ts → MLNModule.ts} +4 -4
- package/javascript/Maplibre.ts +44 -39
- package/javascript/components/BackgroundLayer.tsx +34 -27
- package/javascript/components/Callout.tsx +59 -59
- package/javascript/components/Camera.tsx +436 -493
- package/javascript/components/CircleLayer.tsx +35 -28
- package/javascript/components/FillExtrusionLayer.tsx +29 -29
- package/javascript/components/FillLayer.tsx +28 -25
- package/javascript/components/HeadingIndicator.tsx +8 -8
- package/javascript/components/HeatmapLayer.tsx +28 -26
- package/javascript/components/ImageSource.tsx +31 -38
- package/javascript/components/Images.tsx +54 -54
- package/javascript/components/Light.tsx +25 -52
- package/javascript/components/LineLayer.tsx +29 -26
- package/javascript/components/MapView.tsx +635 -580
- package/javascript/components/MarkerView.tsx +34 -49
- package/javascript/components/NativeUserLocation.tsx +12 -10
- package/javascript/components/PointAnnotation.tsx +121 -97
- package/javascript/components/RasterLayer.tsx +28 -25
- package/javascript/components/RasterSource.tsx +45 -48
- package/javascript/components/ShapeSource.tsx +300 -250
- package/javascript/components/Style.tsx +69 -59
- package/javascript/components/SymbolLayer.tsx +41 -35
- package/javascript/components/UserLocation.tsx +189 -168
- package/javascript/components/VectorSource.tsx +139 -128
- package/javascript/components/annotations/Annotation.tsx +119 -89
- package/javascript/hooks/useAbstractLayer.ts +127 -0
- package/javascript/hooks/useAbstractSource.ts +34 -0
- package/javascript/hooks/useNativeBridge.ts +125 -0
- package/javascript/hooks/useNativeRef.ts +13 -0
- package/javascript/hooks/useOnce.ts +12 -0
- package/javascript/index.ts +2 -2
- package/javascript/modules/location/locationManager.ts +6 -6
- package/javascript/modules/offline/OfflineCreatePackOptions.ts +5 -5
- package/javascript/modules/offline/OfflinePack.ts +5 -5
- package/javascript/modules/offline/offlineManager.ts +13 -14
- package/javascript/modules/snapshot/SnapshotOptions.ts +5 -5
- package/javascript/modules/snapshot/snapshotManager.ts +3 -3
- package/javascript/requestAndroidLocationPermissions.ts +3 -3
- package/javascript/types/OnPressEvent.ts +1 -1
- package/javascript/types/index.ts +6 -2
- package/javascript/utils/BridgeValue.ts +20 -20
- package/javascript/utils/Logger.ts +17 -17
- package/javascript/utils/MaplibreStyles.d.ts +399 -393
- package/javascript/utils/StyleValue.ts +12 -12
- package/javascript/utils/animated/AbstractAnimatedCoordinates.ts +6 -6
- package/javascript/utils/animated/Animated.ts +38 -16
- package/javascript/utils/animated/AnimatedCoordinatesArray.ts +7 -11
- package/javascript/utils/animated/AnimatedExtractCoordinateFromArray.ts +3 -3
- package/javascript/utils/animated/AnimatedPoint.ts +7 -7
- package/javascript/utils/animated/AnimatedRouteCoordinatesArray.ts +16 -20
- package/javascript/utils/animated/AnimatedShape.ts +16 -16
- package/javascript/utils/deprecation.ts +6 -3
- package/javascript/utils/filterUtils.ts +1 -1
- package/javascript/utils/geoUtils.ts +8 -8
- package/javascript/utils/index.ts +14 -14
- package/javascript/utils/styleMap.ts +19 -18
- package/maplibre-react-native.podspec +8 -8
- package/package.json +58 -39
- package/plugin/build/withMapLibre.d.ts +2 -2
- package/plugin/build/withMapLibre.js +33 -34
- package/react-native.config.js +1 -1
- package/scripts/autogenHelpers/globals.js +11 -10
- package/scripts/autogenerate.js +24 -17
- package/scripts/templates/{RCTMGLStyle.h.ejs → RCTMLNStyle.h.ejs} +8 -8
- package/scripts/templates/{RCTMGLStyle.m.ejs → RCTMLNStyle.m.ejs} +10 -10
- package/scripts/templates/{RCTMGLStyleFactory.java.ejs → RCTMLNStyleFactory.java.ejs} +24 -24
- package/setup-jest.js +4 -10
- package/style-spec/v8.json +1248 -655
- package/tsconfig.json +0 -1
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -166
- package/.prettierrc.js +0 -7
- package/.yarn/plugins/@yarnpkg/plugin-typescript.cjs +0 -9
- package/.yarn/sdks/eslint/bin/eslint.js +0 -20
- package/.yarn/sdks/eslint/lib/api.js +0 -20
- package/.yarn/sdks/eslint/package.json +0 -6
- package/.yarn/sdks/integrations.yml +0 -5
- package/.yarn/sdks/prettier/index.js +0 -20
- package/.yarn/sdks/prettier/package.json +0 -6
- package/.yarn/sdks/typescript/bin/tsc +0 -20
- package/.yarn/sdks/typescript/bin/tsserver +0 -20
- package/.yarn/sdks/typescript/lib/tsc.js +0 -20
- package/.yarn/sdks/typescript/lib/tsserver.js +0 -225
- package/.yarn/sdks/typescript/lib/tsserverlibrary.js +0 -225
- package/.yarn/sdks/typescript/lib/typescript.js +0 -20
- package/.yarn/sdks/typescript/package.json +0 -6
- package/android/rctmgl/.settings/org.eclipse.buildship.core.prefs +0 -2
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/RCTMGLPackage.java +0 -99
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCalloutManager.java +0 -22
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapView.java +0 -16
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapViewManager.java +0 -31
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayer.java +0 -27
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayer.java +0 -27
- package/android/rctmgl/src/main/res/values/strings.xml +0 -3
- package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.h +0 -23
- package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.h +0 -11
- package/ios/RCTMGL/RCTMGLBackgroundLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLBackgroundLayer.m +0 -27
- package/ios/RCTMGL/RCTMGLCalloutManager.m +0 -21
- package/ios/RCTMGL/RCTMGLCircleLayer.h +0 -13
- package/ios/RCTMGL/RCTMGLFillExtrusionLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLFillLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLHeatmapLayer.h +0 -12
- package/ios/RCTMGL/RCTMGLHeatmapLayer.m +0 -30
- package/ios/RCTMGL/RCTMGLHeatmapLayerManager.h +0 -12
- package/ios/RCTMGL/RCTMGLImagesManager.h +0 -5
- package/ios/RCTMGL/RCTMGLLineLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLLocationManager.h +0 -30
- package/ios/RCTMGL/RCTMGLLocationManagerDelegate.h +0 -20
- package/ios/RCTMGL/RCTMGLLogging.h +0 -18
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.h +0 -5
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.m +0 -25
- package/ios/RCTMGL/RCTMGLRasterLayer.h +0 -14
- package/ios/RCTMGL/RCTMGLRasterLayer.m +0 -30
- package/ios/RCTMGL/RCTMGLStyle.h +0 -222
- package/ios/RCTMGL/RCTMGLTileSource.m +0 -31
- package/ios/RCTMGL/RCTMGLUserLocation.h +0 -15
- package/ios/RCTMGL.xcodeproj/project.pbxproj +0 -775
- package/javascript/@types/assets.d.ts +0 -4
- package/javascript/components/AbstractLayer.tsx +0 -107
- package/javascript/components/AbstractSource.tsx +0 -27
- package/javascript/components/NativeBridgeComponent.tsx +0 -117
- /package/android/{rctmgl → rctmln}/proguard-rules.pro +0 -0
- /package/android/{rctmgl → rctmln}/src/main/res/drawable/empty.xml +0 -0
- /package/android/{rctmgl → rctmln}/src/main/res/drawable/empty_drawable.png +0 -0
- /package/android/{rctmgl → rctmln}/src/main/res/drawable-xxhdpi/red_marker.png +0 -0
- /package/android/{rctmgl → rctmln}/src/main/res/layout/annotation.xml +0 -0
- /package/ios/{RCTMGL → RCTMLN}/index.d.ts +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
// DO NOT MODIFY
|
|
2
2
|
// THIS FILE IS AUTOGENERATED
|
|
3
3
|
|
|
4
|
-
package com.
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import com.
|
|
4
|
+
package com.maplibre.rctmln.components.styles;
|
|
5
|
+
|
|
6
|
+
import org.maplibre.android.style.layers.BackgroundLayer;
|
|
7
|
+
import org.maplibre.android.style.layers.CircleLayer;
|
|
8
|
+
import org.maplibre.android.style.layers.FillExtrusionLayer;
|
|
9
|
+
import org.maplibre.android.style.layers.FillLayer;
|
|
10
|
+
import org.maplibre.android.style.layers.LineLayer;
|
|
11
|
+
import org.maplibre.android.style.layers.PropertyFactory;
|
|
12
|
+
import org.maplibre.android.style.layers.PropertyValue;
|
|
13
|
+
import org.maplibre.android.style.layers.RasterLayer;
|
|
14
|
+
import org.maplibre.android.style.layers.SymbolLayer;
|
|
15
|
+
import org.maplibre.android.style.layers.HeatmapLayer;
|
|
16
|
+
import org.maplibre.android.style.layers.HillshadeLayer;
|
|
17
|
+
import org.maplibre.android.style.layers.TransitionOptions;
|
|
18
|
+
import org.maplibre.android.style.light.Light;
|
|
19
|
+
import org.maplibre.android.style.light.Position;
|
|
20
|
+
import com.maplibre.rctmln.utils.DownloadMapImageTask;
|
|
21
21
|
|
|
22
22
|
import java.util.List;
|
|
23
23
|
|
|
24
|
-
public class
|
|
24
|
+
public class RCTMLNStyleFactory {
|
|
25
25
|
public static final String VALUE_KEY = "value";
|
|
26
26
|
public static final String SHOULD_ADD_IMAGE_KEY = "shouldAddImage";
|
|
27
27
|
|
|
28
|
-
public static void setFillLayerStyle(final FillLayer layer,
|
|
28
|
+
public static void setFillLayerStyle(final FillLayer layer, RCTMLNStyle style) {
|
|
29
29
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
30
30
|
|
|
31
31
|
if (styleKeys.size() == 0) {
|
|
@@ -33,60 +33,60 @@ public class RCTMGLStyleFactory {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
for (String styleKey : styleKeys) {
|
|
36
|
-
final
|
|
36
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
37
37
|
|
|
38
38
|
switch (styleKey) {
|
|
39
39
|
case "fillSortKey":
|
|
40
|
-
|
|
40
|
+
RCTMLNStyleFactory.setFillSortKey(layer, styleValue);
|
|
41
41
|
break;
|
|
42
42
|
case "visibility":
|
|
43
|
-
|
|
43
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
44
44
|
break;
|
|
45
45
|
case "fillAntialias":
|
|
46
|
-
|
|
46
|
+
RCTMLNStyleFactory.setFillAntialias(layer, styleValue);
|
|
47
47
|
break;
|
|
48
48
|
case "fillOpacity":
|
|
49
|
-
|
|
49
|
+
RCTMLNStyleFactory.setFillOpacity(layer, styleValue);
|
|
50
50
|
break;
|
|
51
51
|
case "fillOpacityTransition":
|
|
52
|
-
|
|
52
|
+
RCTMLNStyleFactory.setFillOpacityTransition(layer, styleValue);
|
|
53
53
|
break;
|
|
54
54
|
case "fillColor":
|
|
55
|
-
|
|
55
|
+
RCTMLNStyleFactory.setFillColor(layer, styleValue);
|
|
56
56
|
break;
|
|
57
57
|
case "fillColorTransition":
|
|
58
|
-
|
|
58
|
+
RCTMLNStyleFactory.setFillColorTransition(layer, styleValue);
|
|
59
59
|
break;
|
|
60
60
|
case "fillOutlineColor":
|
|
61
|
-
|
|
61
|
+
RCTMLNStyleFactory.setFillOutlineColor(layer, styleValue);
|
|
62
62
|
break;
|
|
63
63
|
case "fillOutlineColorTransition":
|
|
64
|
-
|
|
64
|
+
RCTMLNStyleFactory.setFillOutlineColorTransition(layer, styleValue);
|
|
65
65
|
break;
|
|
66
66
|
case "fillTranslate":
|
|
67
|
-
|
|
67
|
+
RCTMLNStyleFactory.setFillTranslate(layer, styleValue);
|
|
68
68
|
break;
|
|
69
69
|
case "fillTranslateTransition":
|
|
70
|
-
|
|
70
|
+
RCTMLNStyleFactory.setFillTranslateTransition(layer, styleValue);
|
|
71
71
|
break;
|
|
72
72
|
case "fillTranslateAnchor":
|
|
73
|
-
|
|
73
|
+
RCTMLNStyleFactory.setFillTranslateAnchor(layer, styleValue);
|
|
74
74
|
break;
|
|
75
75
|
case "fillPattern":
|
|
76
76
|
style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
|
|
77
77
|
@Override
|
|
78
78
|
public void onAllImagesLoaded() {
|
|
79
|
-
|
|
79
|
+
RCTMLNStyleFactory.setFillPattern(layer, styleValue);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
break;
|
|
83
83
|
case "fillPatternTransition":
|
|
84
|
-
|
|
84
|
+
RCTMLNStyleFactory.setFillPatternTransition(layer, styleValue);
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
public static void setLineLayerStyle(final LineLayer layer,
|
|
89
|
+
public static void setLineLayerStyle(final LineLayer layer, RCTMLNStyle style) {
|
|
90
90
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
91
91
|
|
|
92
92
|
if (styleKeys.size() == 0) {
|
|
@@ -94,96 +94,96 @@ public class RCTMGLStyleFactory {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
for (String styleKey : styleKeys) {
|
|
97
|
-
final
|
|
97
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
98
98
|
|
|
99
99
|
switch (styleKey) {
|
|
100
100
|
case "lineCap":
|
|
101
|
-
|
|
101
|
+
RCTMLNStyleFactory.setLineCap(layer, styleValue);
|
|
102
102
|
break;
|
|
103
103
|
case "lineJoin":
|
|
104
|
-
|
|
104
|
+
RCTMLNStyleFactory.setLineJoin(layer, styleValue);
|
|
105
105
|
break;
|
|
106
106
|
case "lineMiterLimit":
|
|
107
|
-
|
|
107
|
+
RCTMLNStyleFactory.setLineMiterLimit(layer, styleValue);
|
|
108
108
|
break;
|
|
109
109
|
case "lineRoundLimit":
|
|
110
|
-
|
|
110
|
+
RCTMLNStyleFactory.setLineRoundLimit(layer, styleValue);
|
|
111
111
|
break;
|
|
112
112
|
case "lineSortKey":
|
|
113
|
-
|
|
113
|
+
RCTMLNStyleFactory.setLineSortKey(layer, styleValue);
|
|
114
114
|
break;
|
|
115
115
|
case "visibility":
|
|
116
|
-
|
|
116
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
117
117
|
break;
|
|
118
118
|
case "lineOpacity":
|
|
119
|
-
|
|
119
|
+
RCTMLNStyleFactory.setLineOpacity(layer, styleValue);
|
|
120
120
|
break;
|
|
121
121
|
case "lineOpacityTransition":
|
|
122
|
-
|
|
122
|
+
RCTMLNStyleFactory.setLineOpacityTransition(layer, styleValue);
|
|
123
123
|
break;
|
|
124
124
|
case "lineColor":
|
|
125
|
-
|
|
125
|
+
RCTMLNStyleFactory.setLineColor(layer, styleValue);
|
|
126
126
|
break;
|
|
127
127
|
case "lineColorTransition":
|
|
128
|
-
|
|
128
|
+
RCTMLNStyleFactory.setLineColorTransition(layer, styleValue);
|
|
129
129
|
break;
|
|
130
130
|
case "lineTranslate":
|
|
131
|
-
|
|
131
|
+
RCTMLNStyleFactory.setLineTranslate(layer, styleValue);
|
|
132
132
|
break;
|
|
133
133
|
case "lineTranslateTransition":
|
|
134
|
-
|
|
134
|
+
RCTMLNStyleFactory.setLineTranslateTransition(layer, styleValue);
|
|
135
135
|
break;
|
|
136
136
|
case "lineTranslateAnchor":
|
|
137
|
-
|
|
137
|
+
RCTMLNStyleFactory.setLineTranslateAnchor(layer, styleValue);
|
|
138
138
|
break;
|
|
139
139
|
case "lineWidth":
|
|
140
|
-
|
|
140
|
+
RCTMLNStyleFactory.setLineWidth(layer, styleValue);
|
|
141
141
|
break;
|
|
142
142
|
case "lineWidthTransition":
|
|
143
|
-
|
|
143
|
+
RCTMLNStyleFactory.setLineWidthTransition(layer, styleValue);
|
|
144
144
|
break;
|
|
145
145
|
case "lineGapWidth":
|
|
146
|
-
|
|
146
|
+
RCTMLNStyleFactory.setLineGapWidth(layer, styleValue);
|
|
147
147
|
break;
|
|
148
148
|
case "lineGapWidthTransition":
|
|
149
|
-
|
|
149
|
+
RCTMLNStyleFactory.setLineGapWidthTransition(layer, styleValue);
|
|
150
150
|
break;
|
|
151
151
|
case "lineOffset":
|
|
152
|
-
|
|
152
|
+
RCTMLNStyleFactory.setLineOffset(layer, styleValue);
|
|
153
153
|
break;
|
|
154
154
|
case "lineOffsetTransition":
|
|
155
|
-
|
|
155
|
+
RCTMLNStyleFactory.setLineOffsetTransition(layer, styleValue);
|
|
156
156
|
break;
|
|
157
157
|
case "lineBlur":
|
|
158
|
-
|
|
158
|
+
RCTMLNStyleFactory.setLineBlur(layer, styleValue);
|
|
159
159
|
break;
|
|
160
160
|
case "lineBlurTransition":
|
|
161
|
-
|
|
161
|
+
RCTMLNStyleFactory.setLineBlurTransition(layer, styleValue);
|
|
162
162
|
break;
|
|
163
163
|
case "lineDasharray":
|
|
164
|
-
|
|
164
|
+
RCTMLNStyleFactory.setLineDasharray(layer, styleValue);
|
|
165
165
|
break;
|
|
166
166
|
case "lineDasharrayTransition":
|
|
167
|
-
|
|
167
|
+
RCTMLNStyleFactory.setLineDasharrayTransition(layer, styleValue);
|
|
168
168
|
break;
|
|
169
169
|
case "linePattern":
|
|
170
170
|
style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
|
|
171
171
|
@Override
|
|
172
172
|
public void onAllImagesLoaded() {
|
|
173
|
-
|
|
173
|
+
RCTMLNStyleFactory.setLinePattern(layer, styleValue);
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
176
|
break;
|
|
177
177
|
case "linePatternTransition":
|
|
178
|
-
|
|
178
|
+
RCTMLNStyleFactory.setLinePatternTransition(layer, styleValue);
|
|
179
179
|
break;
|
|
180
180
|
case "lineGradient":
|
|
181
|
-
|
|
181
|
+
RCTMLNStyleFactory.setLineGradient(layer, styleValue);
|
|
182
182
|
break;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
public static void setSymbolLayerStyle(final SymbolLayer layer,
|
|
186
|
+
public static void setSymbolLayerStyle(final SymbolLayer layer, RCTMLNStyle style) {
|
|
187
187
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
188
188
|
|
|
189
189
|
if (styleKeys.size() == 0) {
|
|
@@ -191,222 +191,222 @@ public class RCTMGLStyleFactory {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
for (String styleKey : styleKeys) {
|
|
194
|
-
final
|
|
194
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
195
195
|
|
|
196
196
|
switch (styleKey) {
|
|
197
197
|
case "symbolPlacement":
|
|
198
|
-
|
|
198
|
+
RCTMLNStyleFactory.setSymbolPlacement(layer, styleValue);
|
|
199
199
|
break;
|
|
200
200
|
case "symbolSpacing":
|
|
201
|
-
|
|
201
|
+
RCTMLNStyleFactory.setSymbolSpacing(layer, styleValue);
|
|
202
202
|
break;
|
|
203
203
|
case "symbolAvoidEdges":
|
|
204
|
-
|
|
204
|
+
RCTMLNStyleFactory.setSymbolAvoidEdges(layer, styleValue);
|
|
205
205
|
break;
|
|
206
206
|
case "symbolSortKey":
|
|
207
|
-
|
|
207
|
+
RCTMLNStyleFactory.setSymbolSortKey(layer, styleValue);
|
|
208
208
|
break;
|
|
209
209
|
case "symbolZOrder":
|
|
210
|
-
|
|
210
|
+
RCTMLNStyleFactory.setSymbolZOrder(layer, styleValue);
|
|
211
211
|
break;
|
|
212
212
|
case "iconAllowOverlap":
|
|
213
|
-
|
|
213
|
+
RCTMLNStyleFactory.setIconAllowOverlap(layer, styleValue);
|
|
214
214
|
break;
|
|
215
215
|
case "iconIgnorePlacement":
|
|
216
|
-
|
|
216
|
+
RCTMLNStyleFactory.setIconIgnorePlacement(layer, styleValue);
|
|
217
217
|
break;
|
|
218
218
|
case "iconOptional":
|
|
219
|
-
|
|
219
|
+
RCTMLNStyleFactory.setIconOptional(layer, styleValue);
|
|
220
220
|
break;
|
|
221
221
|
case "iconRotationAlignment":
|
|
222
|
-
|
|
222
|
+
RCTMLNStyleFactory.setIconRotationAlignment(layer, styleValue);
|
|
223
223
|
break;
|
|
224
224
|
case "iconSize":
|
|
225
|
-
|
|
225
|
+
RCTMLNStyleFactory.setIconSize(layer, styleValue);
|
|
226
226
|
break;
|
|
227
227
|
case "iconTextFit":
|
|
228
|
-
|
|
228
|
+
RCTMLNStyleFactory.setIconTextFit(layer, styleValue);
|
|
229
229
|
break;
|
|
230
230
|
case "iconTextFitPadding":
|
|
231
|
-
|
|
231
|
+
RCTMLNStyleFactory.setIconTextFitPadding(layer, styleValue);
|
|
232
232
|
break;
|
|
233
233
|
case "iconImage":
|
|
234
234
|
style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
|
|
235
235
|
@Override
|
|
236
236
|
public void onAllImagesLoaded() {
|
|
237
|
-
|
|
237
|
+
RCTMLNStyleFactory.setIconImage(layer, styleValue);
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
break;
|
|
241
241
|
case "iconRotate":
|
|
242
|
-
|
|
242
|
+
RCTMLNStyleFactory.setIconRotate(layer, styleValue);
|
|
243
243
|
break;
|
|
244
244
|
case "iconPadding":
|
|
245
|
-
|
|
245
|
+
RCTMLNStyleFactory.setIconPadding(layer, styleValue);
|
|
246
246
|
break;
|
|
247
247
|
case "iconKeepUpright":
|
|
248
|
-
|
|
248
|
+
RCTMLNStyleFactory.setIconKeepUpright(layer, styleValue);
|
|
249
249
|
break;
|
|
250
250
|
case "iconOffset":
|
|
251
|
-
|
|
251
|
+
RCTMLNStyleFactory.setIconOffset(layer, styleValue);
|
|
252
252
|
break;
|
|
253
253
|
case "iconAnchor":
|
|
254
|
-
|
|
254
|
+
RCTMLNStyleFactory.setIconAnchor(layer, styleValue);
|
|
255
255
|
break;
|
|
256
256
|
case "iconPitchAlignment":
|
|
257
|
-
|
|
257
|
+
RCTMLNStyleFactory.setIconPitchAlignment(layer, styleValue);
|
|
258
258
|
break;
|
|
259
259
|
case "textPitchAlignment":
|
|
260
|
-
|
|
260
|
+
RCTMLNStyleFactory.setTextPitchAlignment(layer, styleValue);
|
|
261
261
|
break;
|
|
262
262
|
case "textRotationAlignment":
|
|
263
|
-
|
|
263
|
+
RCTMLNStyleFactory.setTextRotationAlignment(layer, styleValue);
|
|
264
264
|
break;
|
|
265
265
|
case "textField":
|
|
266
|
-
|
|
266
|
+
RCTMLNStyleFactory.setTextField(layer, styleValue);
|
|
267
267
|
break;
|
|
268
268
|
case "textFont":
|
|
269
|
-
|
|
269
|
+
RCTMLNStyleFactory.setTextFont(layer, styleValue);
|
|
270
270
|
break;
|
|
271
271
|
case "textSize":
|
|
272
|
-
|
|
272
|
+
RCTMLNStyleFactory.setTextSize(layer, styleValue);
|
|
273
273
|
break;
|
|
274
274
|
case "textMaxWidth":
|
|
275
|
-
|
|
275
|
+
RCTMLNStyleFactory.setTextMaxWidth(layer, styleValue);
|
|
276
276
|
break;
|
|
277
277
|
case "textLineHeight":
|
|
278
|
-
|
|
278
|
+
RCTMLNStyleFactory.setTextLineHeight(layer, styleValue);
|
|
279
279
|
break;
|
|
280
280
|
case "textLetterSpacing":
|
|
281
|
-
|
|
281
|
+
RCTMLNStyleFactory.setTextLetterSpacing(layer, styleValue);
|
|
282
282
|
break;
|
|
283
283
|
case "textJustify":
|
|
284
|
-
|
|
284
|
+
RCTMLNStyleFactory.setTextJustify(layer, styleValue);
|
|
285
285
|
break;
|
|
286
286
|
case "textRadialOffset":
|
|
287
|
-
|
|
287
|
+
RCTMLNStyleFactory.setTextRadialOffset(layer, styleValue);
|
|
288
288
|
break;
|
|
289
289
|
case "textVariableAnchor":
|
|
290
|
-
|
|
290
|
+
RCTMLNStyleFactory.setTextVariableAnchor(layer, styleValue);
|
|
291
291
|
break;
|
|
292
292
|
case "textAnchor":
|
|
293
|
-
|
|
293
|
+
RCTMLNStyleFactory.setTextAnchor(layer, styleValue);
|
|
294
294
|
break;
|
|
295
295
|
case "textMaxAngle":
|
|
296
|
-
|
|
296
|
+
RCTMLNStyleFactory.setTextMaxAngle(layer, styleValue);
|
|
297
297
|
break;
|
|
298
298
|
case "textWritingMode":
|
|
299
|
-
|
|
299
|
+
RCTMLNStyleFactory.setTextWritingMode(layer, styleValue);
|
|
300
300
|
break;
|
|
301
301
|
case "textRotate":
|
|
302
|
-
|
|
302
|
+
RCTMLNStyleFactory.setTextRotate(layer, styleValue);
|
|
303
303
|
break;
|
|
304
304
|
case "textPadding":
|
|
305
|
-
|
|
305
|
+
RCTMLNStyleFactory.setTextPadding(layer, styleValue);
|
|
306
306
|
break;
|
|
307
307
|
case "textKeepUpright":
|
|
308
|
-
|
|
308
|
+
RCTMLNStyleFactory.setTextKeepUpright(layer, styleValue);
|
|
309
309
|
break;
|
|
310
310
|
case "textTransform":
|
|
311
|
-
|
|
311
|
+
RCTMLNStyleFactory.setTextTransform(layer, styleValue);
|
|
312
312
|
break;
|
|
313
313
|
case "textOffset":
|
|
314
|
-
|
|
314
|
+
RCTMLNStyleFactory.setTextOffset(layer, styleValue);
|
|
315
315
|
break;
|
|
316
316
|
case "textAllowOverlap":
|
|
317
|
-
|
|
317
|
+
RCTMLNStyleFactory.setTextAllowOverlap(layer, styleValue);
|
|
318
318
|
break;
|
|
319
319
|
case "textIgnorePlacement":
|
|
320
|
-
|
|
320
|
+
RCTMLNStyleFactory.setTextIgnorePlacement(layer, styleValue);
|
|
321
321
|
break;
|
|
322
322
|
case "textOptional":
|
|
323
|
-
|
|
323
|
+
RCTMLNStyleFactory.setTextOptional(layer, styleValue);
|
|
324
324
|
break;
|
|
325
325
|
case "visibility":
|
|
326
|
-
|
|
326
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
327
327
|
break;
|
|
328
328
|
case "iconOpacity":
|
|
329
|
-
|
|
329
|
+
RCTMLNStyleFactory.setIconOpacity(layer, styleValue);
|
|
330
330
|
break;
|
|
331
331
|
case "iconOpacityTransition":
|
|
332
|
-
|
|
332
|
+
RCTMLNStyleFactory.setIconOpacityTransition(layer, styleValue);
|
|
333
333
|
break;
|
|
334
334
|
case "iconColor":
|
|
335
|
-
|
|
335
|
+
RCTMLNStyleFactory.setIconColor(layer, styleValue);
|
|
336
336
|
break;
|
|
337
337
|
case "iconColorTransition":
|
|
338
|
-
|
|
338
|
+
RCTMLNStyleFactory.setIconColorTransition(layer, styleValue);
|
|
339
339
|
break;
|
|
340
340
|
case "iconHaloColor":
|
|
341
|
-
|
|
341
|
+
RCTMLNStyleFactory.setIconHaloColor(layer, styleValue);
|
|
342
342
|
break;
|
|
343
343
|
case "iconHaloColorTransition":
|
|
344
|
-
|
|
344
|
+
RCTMLNStyleFactory.setIconHaloColorTransition(layer, styleValue);
|
|
345
345
|
break;
|
|
346
346
|
case "iconHaloWidth":
|
|
347
|
-
|
|
347
|
+
RCTMLNStyleFactory.setIconHaloWidth(layer, styleValue);
|
|
348
348
|
break;
|
|
349
349
|
case "iconHaloWidthTransition":
|
|
350
|
-
|
|
350
|
+
RCTMLNStyleFactory.setIconHaloWidthTransition(layer, styleValue);
|
|
351
351
|
break;
|
|
352
352
|
case "iconHaloBlur":
|
|
353
|
-
|
|
353
|
+
RCTMLNStyleFactory.setIconHaloBlur(layer, styleValue);
|
|
354
354
|
break;
|
|
355
355
|
case "iconHaloBlurTransition":
|
|
356
|
-
|
|
356
|
+
RCTMLNStyleFactory.setIconHaloBlurTransition(layer, styleValue);
|
|
357
357
|
break;
|
|
358
358
|
case "iconTranslate":
|
|
359
|
-
|
|
359
|
+
RCTMLNStyleFactory.setIconTranslate(layer, styleValue);
|
|
360
360
|
break;
|
|
361
361
|
case "iconTranslateTransition":
|
|
362
|
-
|
|
362
|
+
RCTMLNStyleFactory.setIconTranslateTransition(layer, styleValue);
|
|
363
363
|
break;
|
|
364
364
|
case "iconTranslateAnchor":
|
|
365
|
-
|
|
365
|
+
RCTMLNStyleFactory.setIconTranslateAnchor(layer, styleValue);
|
|
366
366
|
break;
|
|
367
367
|
case "textOpacity":
|
|
368
|
-
|
|
368
|
+
RCTMLNStyleFactory.setTextOpacity(layer, styleValue);
|
|
369
369
|
break;
|
|
370
370
|
case "textOpacityTransition":
|
|
371
|
-
|
|
371
|
+
RCTMLNStyleFactory.setTextOpacityTransition(layer, styleValue);
|
|
372
372
|
break;
|
|
373
373
|
case "textColor":
|
|
374
|
-
|
|
374
|
+
RCTMLNStyleFactory.setTextColor(layer, styleValue);
|
|
375
375
|
break;
|
|
376
376
|
case "textColorTransition":
|
|
377
|
-
|
|
377
|
+
RCTMLNStyleFactory.setTextColorTransition(layer, styleValue);
|
|
378
378
|
break;
|
|
379
379
|
case "textHaloColor":
|
|
380
|
-
|
|
380
|
+
RCTMLNStyleFactory.setTextHaloColor(layer, styleValue);
|
|
381
381
|
break;
|
|
382
382
|
case "textHaloColorTransition":
|
|
383
|
-
|
|
383
|
+
RCTMLNStyleFactory.setTextHaloColorTransition(layer, styleValue);
|
|
384
384
|
break;
|
|
385
385
|
case "textHaloWidth":
|
|
386
|
-
|
|
386
|
+
RCTMLNStyleFactory.setTextHaloWidth(layer, styleValue);
|
|
387
387
|
break;
|
|
388
388
|
case "textHaloWidthTransition":
|
|
389
|
-
|
|
389
|
+
RCTMLNStyleFactory.setTextHaloWidthTransition(layer, styleValue);
|
|
390
390
|
break;
|
|
391
391
|
case "textHaloBlur":
|
|
392
|
-
|
|
392
|
+
RCTMLNStyleFactory.setTextHaloBlur(layer, styleValue);
|
|
393
393
|
break;
|
|
394
394
|
case "textHaloBlurTransition":
|
|
395
|
-
|
|
395
|
+
RCTMLNStyleFactory.setTextHaloBlurTransition(layer, styleValue);
|
|
396
396
|
break;
|
|
397
397
|
case "textTranslate":
|
|
398
|
-
|
|
398
|
+
RCTMLNStyleFactory.setTextTranslate(layer, styleValue);
|
|
399
399
|
break;
|
|
400
400
|
case "textTranslateTransition":
|
|
401
|
-
|
|
401
|
+
RCTMLNStyleFactory.setTextTranslateTransition(layer, styleValue);
|
|
402
402
|
break;
|
|
403
403
|
case "textTranslateAnchor":
|
|
404
|
-
|
|
404
|
+
RCTMLNStyleFactory.setTextTranslateAnchor(layer, styleValue);
|
|
405
405
|
break;
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
public static void setCircleLayerStyle(final CircleLayer layer,
|
|
409
|
+
public static void setCircleLayerStyle(final CircleLayer layer, RCTMLNStyle style) {
|
|
410
410
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
411
411
|
|
|
412
412
|
if (styleKeys.size() == 0) {
|
|
@@ -414,76 +414,76 @@ public class RCTMGLStyleFactory {
|
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
for (String styleKey : styleKeys) {
|
|
417
|
-
final
|
|
417
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
418
418
|
|
|
419
419
|
switch (styleKey) {
|
|
420
420
|
case "circleSortKey":
|
|
421
|
-
|
|
421
|
+
RCTMLNStyleFactory.setCircleSortKey(layer, styleValue);
|
|
422
422
|
break;
|
|
423
423
|
case "visibility":
|
|
424
|
-
|
|
424
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
425
425
|
break;
|
|
426
426
|
case "circleRadius":
|
|
427
|
-
|
|
427
|
+
RCTMLNStyleFactory.setCircleRadius(layer, styleValue);
|
|
428
428
|
break;
|
|
429
429
|
case "circleRadiusTransition":
|
|
430
|
-
|
|
430
|
+
RCTMLNStyleFactory.setCircleRadiusTransition(layer, styleValue);
|
|
431
431
|
break;
|
|
432
432
|
case "circleColor":
|
|
433
|
-
|
|
433
|
+
RCTMLNStyleFactory.setCircleColor(layer, styleValue);
|
|
434
434
|
break;
|
|
435
435
|
case "circleColorTransition":
|
|
436
|
-
|
|
436
|
+
RCTMLNStyleFactory.setCircleColorTransition(layer, styleValue);
|
|
437
437
|
break;
|
|
438
438
|
case "circleBlur":
|
|
439
|
-
|
|
439
|
+
RCTMLNStyleFactory.setCircleBlur(layer, styleValue);
|
|
440
440
|
break;
|
|
441
441
|
case "circleBlurTransition":
|
|
442
|
-
|
|
442
|
+
RCTMLNStyleFactory.setCircleBlurTransition(layer, styleValue);
|
|
443
443
|
break;
|
|
444
444
|
case "circleOpacity":
|
|
445
|
-
|
|
445
|
+
RCTMLNStyleFactory.setCircleOpacity(layer, styleValue);
|
|
446
446
|
break;
|
|
447
447
|
case "circleOpacityTransition":
|
|
448
|
-
|
|
448
|
+
RCTMLNStyleFactory.setCircleOpacityTransition(layer, styleValue);
|
|
449
449
|
break;
|
|
450
450
|
case "circleTranslate":
|
|
451
|
-
|
|
451
|
+
RCTMLNStyleFactory.setCircleTranslate(layer, styleValue);
|
|
452
452
|
break;
|
|
453
453
|
case "circleTranslateTransition":
|
|
454
|
-
|
|
454
|
+
RCTMLNStyleFactory.setCircleTranslateTransition(layer, styleValue);
|
|
455
455
|
break;
|
|
456
456
|
case "circleTranslateAnchor":
|
|
457
|
-
|
|
457
|
+
RCTMLNStyleFactory.setCircleTranslateAnchor(layer, styleValue);
|
|
458
458
|
break;
|
|
459
459
|
case "circlePitchScale":
|
|
460
|
-
|
|
460
|
+
RCTMLNStyleFactory.setCirclePitchScale(layer, styleValue);
|
|
461
461
|
break;
|
|
462
462
|
case "circlePitchAlignment":
|
|
463
|
-
|
|
463
|
+
RCTMLNStyleFactory.setCirclePitchAlignment(layer, styleValue);
|
|
464
464
|
break;
|
|
465
465
|
case "circleStrokeWidth":
|
|
466
|
-
|
|
466
|
+
RCTMLNStyleFactory.setCircleStrokeWidth(layer, styleValue);
|
|
467
467
|
break;
|
|
468
468
|
case "circleStrokeWidthTransition":
|
|
469
|
-
|
|
469
|
+
RCTMLNStyleFactory.setCircleStrokeWidthTransition(layer, styleValue);
|
|
470
470
|
break;
|
|
471
471
|
case "circleStrokeColor":
|
|
472
|
-
|
|
472
|
+
RCTMLNStyleFactory.setCircleStrokeColor(layer, styleValue);
|
|
473
473
|
break;
|
|
474
474
|
case "circleStrokeColorTransition":
|
|
475
|
-
|
|
475
|
+
RCTMLNStyleFactory.setCircleStrokeColorTransition(layer, styleValue);
|
|
476
476
|
break;
|
|
477
477
|
case "circleStrokeOpacity":
|
|
478
|
-
|
|
478
|
+
RCTMLNStyleFactory.setCircleStrokeOpacity(layer, styleValue);
|
|
479
479
|
break;
|
|
480
480
|
case "circleStrokeOpacityTransition":
|
|
481
|
-
|
|
481
|
+
RCTMLNStyleFactory.setCircleStrokeOpacityTransition(layer, styleValue);
|
|
482
482
|
break;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
public static void setHeatmapLayerStyle(final HeatmapLayer layer,
|
|
486
|
+
public static void setHeatmapLayerStyle(final HeatmapLayer layer, RCTMLNStyle style) {
|
|
487
487
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
488
488
|
|
|
489
489
|
if (styleKeys.size() == 0) {
|
|
@@ -491,40 +491,40 @@ public class RCTMGLStyleFactory {
|
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
for (String styleKey : styleKeys) {
|
|
494
|
-
final
|
|
494
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
495
495
|
|
|
496
496
|
switch (styleKey) {
|
|
497
497
|
case "visibility":
|
|
498
|
-
|
|
498
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
499
499
|
break;
|
|
500
500
|
case "heatmapRadius":
|
|
501
|
-
|
|
501
|
+
RCTMLNStyleFactory.setHeatmapRadius(layer, styleValue);
|
|
502
502
|
break;
|
|
503
503
|
case "heatmapRadiusTransition":
|
|
504
|
-
|
|
504
|
+
RCTMLNStyleFactory.setHeatmapRadiusTransition(layer, styleValue);
|
|
505
505
|
break;
|
|
506
506
|
case "heatmapWeight":
|
|
507
|
-
|
|
507
|
+
RCTMLNStyleFactory.setHeatmapWeight(layer, styleValue);
|
|
508
508
|
break;
|
|
509
509
|
case "heatmapIntensity":
|
|
510
|
-
|
|
510
|
+
RCTMLNStyleFactory.setHeatmapIntensity(layer, styleValue);
|
|
511
511
|
break;
|
|
512
512
|
case "heatmapIntensityTransition":
|
|
513
|
-
|
|
513
|
+
RCTMLNStyleFactory.setHeatmapIntensityTransition(layer, styleValue);
|
|
514
514
|
break;
|
|
515
515
|
case "heatmapColor":
|
|
516
|
-
|
|
516
|
+
RCTMLNStyleFactory.setHeatmapColor(layer, styleValue);
|
|
517
517
|
break;
|
|
518
518
|
case "heatmapOpacity":
|
|
519
|
-
|
|
519
|
+
RCTMLNStyleFactory.setHeatmapOpacity(layer, styleValue);
|
|
520
520
|
break;
|
|
521
521
|
case "heatmapOpacityTransition":
|
|
522
|
-
|
|
522
|
+
RCTMLNStyleFactory.setHeatmapOpacityTransition(layer, styleValue);
|
|
523
523
|
break;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
public static void setFillExtrusionLayerStyle(final FillExtrusionLayer layer,
|
|
527
|
+
public static void setFillExtrusionLayerStyle(final FillExtrusionLayer layer, RCTMLNStyle style) {
|
|
528
528
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
529
529
|
|
|
530
530
|
if (styleKeys.size() == 0) {
|
|
@@ -532,60 +532,63 @@ public class RCTMGLStyleFactory {
|
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
for (String styleKey : styleKeys) {
|
|
535
|
-
final
|
|
535
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
536
536
|
|
|
537
537
|
switch (styleKey) {
|
|
538
538
|
case "visibility":
|
|
539
|
-
|
|
539
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
540
540
|
break;
|
|
541
541
|
case "fillExtrusionOpacity":
|
|
542
|
-
|
|
542
|
+
RCTMLNStyleFactory.setFillExtrusionOpacity(layer, styleValue);
|
|
543
543
|
break;
|
|
544
544
|
case "fillExtrusionOpacityTransition":
|
|
545
|
-
|
|
545
|
+
RCTMLNStyleFactory.setFillExtrusionOpacityTransition(layer, styleValue);
|
|
546
546
|
break;
|
|
547
547
|
case "fillExtrusionColor":
|
|
548
|
-
|
|
548
|
+
RCTMLNStyleFactory.setFillExtrusionColor(layer, styleValue);
|
|
549
549
|
break;
|
|
550
550
|
case "fillExtrusionColorTransition":
|
|
551
|
-
|
|
551
|
+
RCTMLNStyleFactory.setFillExtrusionColorTransition(layer, styleValue);
|
|
552
552
|
break;
|
|
553
553
|
case "fillExtrusionTranslate":
|
|
554
|
-
|
|
554
|
+
RCTMLNStyleFactory.setFillExtrusionTranslate(layer, styleValue);
|
|
555
555
|
break;
|
|
556
556
|
case "fillExtrusionTranslateTransition":
|
|
557
|
-
|
|
557
|
+
RCTMLNStyleFactory.setFillExtrusionTranslateTransition(layer, styleValue);
|
|
558
558
|
break;
|
|
559
559
|
case "fillExtrusionTranslateAnchor":
|
|
560
|
-
|
|
560
|
+
RCTMLNStyleFactory.setFillExtrusionTranslateAnchor(layer, styleValue);
|
|
561
561
|
break;
|
|
562
562
|
case "fillExtrusionPattern":
|
|
563
563
|
style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
|
|
564
564
|
@Override
|
|
565
565
|
public void onAllImagesLoaded() {
|
|
566
|
-
|
|
566
|
+
RCTMLNStyleFactory.setFillExtrusionPattern(layer, styleValue);
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
break;
|
|
570
570
|
case "fillExtrusionPatternTransition":
|
|
571
|
-
|
|
571
|
+
RCTMLNStyleFactory.setFillExtrusionPatternTransition(layer, styleValue);
|
|
572
572
|
break;
|
|
573
573
|
case "fillExtrusionHeight":
|
|
574
|
-
|
|
574
|
+
RCTMLNStyleFactory.setFillExtrusionHeight(layer, styleValue);
|
|
575
575
|
break;
|
|
576
576
|
case "fillExtrusionHeightTransition":
|
|
577
|
-
|
|
577
|
+
RCTMLNStyleFactory.setFillExtrusionHeightTransition(layer, styleValue);
|
|
578
578
|
break;
|
|
579
579
|
case "fillExtrusionBase":
|
|
580
|
-
|
|
580
|
+
RCTMLNStyleFactory.setFillExtrusionBase(layer, styleValue);
|
|
581
581
|
break;
|
|
582
582
|
case "fillExtrusionBaseTransition":
|
|
583
|
-
|
|
583
|
+
RCTMLNStyleFactory.setFillExtrusionBaseTransition(layer, styleValue);
|
|
584
|
+
break;
|
|
585
|
+
case "fillExtrusionVerticalGradient":
|
|
586
|
+
RCTMLNStyleFactory.setFillExtrusionVerticalGradient(layer, styleValue);
|
|
584
587
|
break;
|
|
585
588
|
}
|
|
586
589
|
}
|
|
587
590
|
}
|
|
588
|
-
public static void setRasterLayerStyle(final RasterLayer layer,
|
|
591
|
+
public static void setRasterLayerStyle(final RasterLayer layer, RCTMLNStyle style) {
|
|
589
592
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
590
593
|
|
|
591
594
|
if (styleKeys.size() == 0) {
|
|
@@ -593,58 +596,58 @@ public class RCTMGLStyleFactory {
|
|
|
593
596
|
}
|
|
594
597
|
|
|
595
598
|
for (String styleKey : styleKeys) {
|
|
596
|
-
final
|
|
599
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
597
600
|
|
|
598
601
|
switch (styleKey) {
|
|
599
602
|
case "visibility":
|
|
600
|
-
|
|
603
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
601
604
|
break;
|
|
602
605
|
case "rasterOpacity":
|
|
603
|
-
|
|
606
|
+
RCTMLNStyleFactory.setRasterOpacity(layer, styleValue);
|
|
604
607
|
break;
|
|
605
608
|
case "rasterOpacityTransition":
|
|
606
|
-
|
|
609
|
+
RCTMLNStyleFactory.setRasterOpacityTransition(layer, styleValue);
|
|
607
610
|
break;
|
|
608
611
|
case "rasterHueRotate":
|
|
609
|
-
|
|
612
|
+
RCTMLNStyleFactory.setRasterHueRotate(layer, styleValue);
|
|
610
613
|
break;
|
|
611
614
|
case "rasterHueRotateTransition":
|
|
612
|
-
|
|
615
|
+
RCTMLNStyleFactory.setRasterHueRotateTransition(layer, styleValue);
|
|
613
616
|
break;
|
|
614
617
|
case "rasterBrightnessMin":
|
|
615
|
-
|
|
618
|
+
RCTMLNStyleFactory.setRasterBrightnessMin(layer, styleValue);
|
|
616
619
|
break;
|
|
617
620
|
case "rasterBrightnessMinTransition":
|
|
618
|
-
|
|
621
|
+
RCTMLNStyleFactory.setRasterBrightnessMinTransition(layer, styleValue);
|
|
619
622
|
break;
|
|
620
623
|
case "rasterBrightnessMax":
|
|
621
|
-
|
|
624
|
+
RCTMLNStyleFactory.setRasterBrightnessMax(layer, styleValue);
|
|
622
625
|
break;
|
|
623
626
|
case "rasterBrightnessMaxTransition":
|
|
624
|
-
|
|
627
|
+
RCTMLNStyleFactory.setRasterBrightnessMaxTransition(layer, styleValue);
|
|
625
628
|
break;
|
|
626
629
|
case "rasterSaturation":
|
|
627
|
-
|
|
630
|
+
RCTMLNStyleFactory.setRasterSaturation(layer, styleValue);
|
|
628
631
|
break;
|
|
629
632
|
case "rasterSaturationTransition":
|
|
630
|
-
|
|
633
|
+
RCTMLNStyleFactory.setRasterSaturationTransition(layer, styleValue);
|
|
631
634
|
break;
|
|
632
635
|
case "rasterContrast":
|
|
633
|
-
|
|
636
|
+
RCTMLNStyleFactory.setRasterContrast(layer, styleValue);
|
|
634
637
|
break;
|
|
635
638
|
case "rasterContrastTransition":
|
|
636
|
-
|
|
639
|
+
RCTMLNStyleFactory.setRasterContrastTransition(layer, styleValue);
|
|
637
640
|
break;
|
|
638
641
|
case "rasterResampling":
|
|
639
|
-
|
|
642
|
+
RCTMLNStyleFactory.setRasterResampling(layer, styleValue);
|
|
640
643
|
break;
|
|
641
644
|
case "rasterFadeDuration":
|
|
642
|
-
|
|
645
|
+
RCTMLNStyleFactory.setRasterFadeDuration(layer, styleValue);
|
|
643
646
|
break;
|
|
644
647
|
}
|
|
645
648
|
}
|
|
646
649
|
}
|
|
647
|
-
public static void setHillshadeLayerStyle(final HillshadeLayer layer,
|
|
650
|
+
public static void setHillshadeLayerStyle(final HillshadeLayer layer, RCTMLNStyle style) {
|
|
648
651
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
649
652
|
|
|
650
653
|
if (styleKeys.size() == 0) {
|
|
@@ -652,46 +655,46 @@ public class RCTMGLStyleFactory {
|
|
|
652
655
|
}
|
|
653
656
|
|
|
654
657
|
for (String styleKey : styleKeys) {
|
|
655
|
-
final
|
|
658
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
656
659
|
|
|
657
660
|
switch (styleKey) {
|
|
658
661
|
case "visibility":
|
|
659
|
-
|
|
662
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
660
663
|
break;
|
|
661
664
|
case "hillshadeIlluminationDirection":
|
|
662
|
-
|
|
665
|
+
RCTMLNStyleFactory.setHillshadeIlluminationDirection(layer, styleValue);
|
|
663
666
|
break;
|
|
664
667
|
case "hillshadeIlluminationAnchor":
|
|
665
|
-
|
|
668
|
+
RCTMLNStyleFactory.setHillshadeIlluminationAnchor(layer, styleValue);
|
|
666
669
|
break;
|
|
667
670
|
case "hillshadeExaggeration":
|
|
668
|
-
|
|
671
|
+
RCTMLNStyleFactory.setHillshadeExaggeration(layer, styleValue);
|
|
669
672
|
break;
|
|
670
673
|
case "hillshadeExaggerationTransition":
|
|
671
|
-
|
|
674
|
+
RCTMLNStyleFactory.setHillshadeExaggerationTransition(layer, styleValue);
|
|
672
675
|
break;
|
|
673
676
|
case "hillshadeShadowColor":
|
|
674
|
-
|
|
677
|
+
RCTMLNStyleFactory.setHillshadeShadowColor(layer, styleValue);
|
|
675
678
|
break;
|
|
676
679
|
case "hillshadeShadowColorTransition":
|
|
677
|
-
|
|
680
|
+
RCTMLNStyleFactory.setHillshadeShadowColorTransition(layer, styleValue);
|
|
678
681
|
break;
|
|
679
682
|
case "hillshadeHighlightColor":
|
|
680
|
-
|
|
683
|
+
RCTMLNStyleFactory.setHillshadeHighlightColor(layer, styleValue);
|
|
681
684
|
break;
|
|
682
685
|
case "hillshadeHighlightColorTransition":
|
|
683
|
-
|
|
686
|
+
RCTMLNStyleFactory.setHillshadeHighlightColorTransition(layer, styleValue);
|
|
684
687
|
break;
|
|
685
688
|
case "hillshadeAccentColor":
|
|
686
|
-
|
|
689
|
+
RCTMLNStyleFactory.setHillshadeAccentColor(layer, styleValue);
|
|
687
690
|
break;
|
|
688
691
|
case "hillshadeAccentColorTransition":
|
|
689
|
-
|
|
692
|
+
RCTMLNStyleFactory.setHillshadeAccentColorTransition(layer, styleValue);
|
|
690
693
|
break;
|
|
691
694
|
}
|
|
692
695
|
}
|
|
693
696
|
}
|
|
694
|
-
public static void setBackgroundLayerStyle(final BackgroundLayer layer,
|
|
697
|
+
public static void setBackgroundLayerStyle(final BackgroundLayer layer, RCTMLNStyle style) {
|
|
695
698
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
696
699
|
|
|
697
700
|
if (styleKeys.size() == 0) {
|
|
@@ -699,39 +702,39 @@ public class RCTMGLStyleFactory {
|
|
|
699
702
|
}
|
|
700
703
|
|
|
701
704
|
for (String styleKey : styleKeys) {
|
|
702
|
-
final
|
|
705
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
703
706
|
|
|
704
707
|
switch (styleKey) {
|
|
705
708
|
case "visibility":
|
|
706
|
-
|
|
709
|
+
RCTMLNStyleFactory.setVisibility(layer, styleValue);
|
|
707
710
|
break;
|
|
708
711
|
case "backgroundColor":
|
|
709
|
-
|
|
712
|
+
RCTMLNStyleFactory.setBackgroundColor(layer, styleValue);
|
|
710
713
|
break;
|
|
711
714
|
case "backgroundColorTransition":
|
|
712
|
-
|
|
715
|
+
RCTMLNStyleFactory.setBackgroundColorTransition(layer, styleValue);
|
|
713
716
|
break;
|
|
714
717
|
case "backgroundPattern":
|
|
715
718
|
style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
|
|
716
719
|
@Override
|
|
717
720
|
public void onAllImagesLoaded() {
|
|
718
|
-
|
|
721
|
+
RCTMLNStyleFactory.setBackgroundPattern(layer, styleValue);
|
|
719
722
|
}
|
|
720
723
|
});
|
|
721
724
|
break;
|
|
722
725
|
case "backgroundPatternTransition":
|
|
723
|
-
|
|
726
|
+
RCTMLNStyleFactory.setBackgroundPatternTransition(layer, styleValue);
|
|
724
727
|
break;
|
|
725
728
|
case "backgroundOpacity":
|
|
726
|
-
|
|
729
|
+
RCTMLNStyleFactory.setBackgroundOpacity(layer, styleValue);
|
|
727
730
|
break;
|
|
728
731
|
case "backgroundOpacityTransition":
|
|
729
|
-
|
|
732
|
+
RCTMLNStyleFactory.setBackgroundOpacityTransition(layer, styleValue);
|
|
730
733
|
break;
|
|
731
734
|
}
|
|
732
735
|
}
|
|
733
736
|
}
|
|
734
|
-
public static void setLightLayerStyle(final Light layer,
|
|
737
|
+
public static void setLightLayerStyle(final Light layer, RCTMLNStyle style) {
|
|
735
738
|
List<String> styleKeys = style.getAllStyleKeys();
|
|
736
739
|
|
|
737
740
|
if (styleKeys.size() == 0) {
|
|
@@ -739,35 +742,35 @@ public class RCTMGLStyleFactory {
|
|
|
739
742
|
}
|
|
740
743
|
|
|
741
744
|
for (String styleKey : styleKeys) {
|
|
742
|
-
final
|
|
745
|
+
final RCTMLNStyleValue styleValue = style.getStyleValueForKey(styleKey);
|
|
743
746
|
|
|
744
747
|
switch (styleKey) {
|
|
745
748
|
case "anchor":
|
|
746
|
-
|
|
749
|
+
RCTMLNStyleFactory.setAnchor(layer, styleValue);
|
|
747
750
|
break;
|
|
748
751
|
case "position":
|
|
749
|
-
|
|
752
|
+
RCTMLNStyleFactory.setPosition(layer, styleValue);
|
|
750
753
|
break;
|
|
751
754
|
case "positionTransition":
|
|
752
|
-
|
|
755
|
+
RCTMLNStyleFactory.setPositionTransition(layer, styleValue);
|
|
753
756
|
break;
|
|
754
757
|
case "color":
|
|
755
|
-
|
|
758
|
+
RCTMLNStyleFactory.setColor(layer, styleValue);
|
|
756
759
|
break;
|
|
757
760
|
case "colorTransition":
|
|
758
|
-
|
|
761
|
+
RCTMLNStyleFactory.setColorTransition(layer, styleValue);
|
|
759
762
|
break;
|
|
760
763
|
case "intensity":
|
|
761
|
-
|
|
764
|
+
RCTMLNStyleFactory.setIntensity(layer, styleValue);
|
|
762
765
|
break;
|
|
763
766
|
case "intensityTransition":
|
|
764
|
-
|
|
767
|
+
RCTMLNStyleFactory.setIntensityTransition(layer, styleValue);
|
|
765
768
|
break;
|
|
766
769
|
}
|
|
767
770
|
}
|
|
768
771
|
}
|
|
769
772
|
|
|
770
|
-
public static void setFillSortKey(FillLayer layer,
|
|
773
|
+
public static void setFillSortKey(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
771
774
|
if (styleValue.isExpression()) {
|
|
772
775
|
layer.setProperties(PropertyFactory.fillSortKey(styleValue.getExpression()));
|
|
773
776
|
} else {
|
|
@@ -775,11 +778,11 @@ public class RCTMGLStyleFactory {
|
|
|
775
778
|
}
|
|
776
779
|
}
|
|
777
780
|
|
|
778
|
-
public static void setVisibility(FillLayer layer,
|
|
781
|
+
public static void setVisibility(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
779
782
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
780
783
|
}
|
|
781
784
|
|
|
782
|
-
public static void setFillAntialias(FillLayer layer,
|
|
785
|
+
public static void setFillAntialias(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
783
786
|
if (styleValue.isExpression()) {
|
|
784
787
|
layer.setProperties(PropertyFactory.fillAntialias(styleValue.getExpression()));
|
|
785
788
|
} else {
|
|
@@ -787,7 +790,7 @@ public class RCTMGLStyleFactory {
|
|
|
787
790
|
}
|
|
788
791
|
}
|
|
789
792
|
|
|
790
|
-
public static void setFillOpacity(FillLayer layer,
|
|
793
|
+
public static void setFillOpacity(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
791
794
|
if (styleValue.isExpression()) {
|
|
792
795
|
layer.setProperties(PropertyFactory.fillOpacity(styleValue.getExpression()));
|
|
793
796
|
} else {
|
|
@@ -796,14 +799,14 @@ public class RCTMGLStyleFactory {
|
|
|
796
799
|
}
|
|
797
800
|
|
|
798
801
|
|
|
799
|
-
public static void setFillOpacityTransition(FillLayer layer,
|
|
802
|
+
public static void setFillOpacityTransition(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
800
803
|
TransitionOptions transition = styleValue.getTransition();
|
|
801
804
|
if (transition != null) {
|
|
802
805
|
layer.setFillOpacityTransition(transition);
|
|
803
806
|
}
|
|
804
807
|
}
|
|
805
808
|
|
|
806
|
-
public static void setFillColor(FillLayer layer,
|
|
809
|
+
public static void setFillColor(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
807
810
|
if (styleValue.isExpression()) {
|
|
808
811
|
layer.setProperties(PropertyFactory.fillColor(styleValue.getExpression()));
|
|
809
812
|
} else {
|
|
@@ -812,14 +815,14 @@ public class RCTMGLStyleFactory {
|
|
|
812
815
|
}
|
|
813
816
|
|
|
814
817
|
|
|
815
|
-
public static void setFillColorTransition(FillLayer layer,
|
|
818
|
+
public static void setFillColorTransition(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
816
819
|
TransitionOptions transition = styleValue.getTransition();
|
|
817
820
|
if (transition != null) {
|
|
818
821
|
layer.setFillColorTransition(transition);
|
|
819
822
|
}
|
|
820
823
|
}
|
|
821
824
|
|
|
822
|
-
public static void setFillOutlineColor(FillLayer layer,
|
|
825
|
+
public static void setFillOutlineColor(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
823
826
|
if (styleValue.isExpression()) {
|
|
824
827
|
layer.setProperties(PropertyFactory.fillOutlineColor(styleValue.getExpression()));
|
|
825
828
|
} else {
|
|
@@ -828,14 +831,14 @@ public class RCTMGLStyleFactory {
|
|
|
828
831
|
}
|
|
829
832
|
|
|
830
833
|
|
|
831
|
-
public static void setFillOutlineColorTransition(FillLayer layer,
|
|
834
|
+
public static void setFillOutlineColorTransition(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
832
835
|
TransitionOptions transition = styleValue.getTransition();
|
|
833
836
|
if (transition != null) {
|
|
834
837
|
layer.setFillOutlineColorTransition(transition);
|
|
835
838
|
}
|
|
836
839
|
}
|
|
837
840
|
|
|
838
|
-
public static void setFillTranslate(FillLayer layer,
|
|
841
|
+
public static void setFillTranslate(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
839
842
|
if (styleValue.isExpression()) {
|
|
840
843
|
layer.setProperties(PropertyFactory.fillTranslate(styleValue.getExpression()));
|
|
841
844
|
} else {
|
|
@@ -844,14 +847,14 @@ public class RCTMGLStyleFactory {
|
|
|
844
847
|
}
|
|
845
848
|
|
|
846
849
|
|
|
847
|
-
public static void setFillTranslateTransition(FillLayer layer,
|
|
850
|
+
public static void setFillTranslateTransition(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
848
851
|
TransitionOptions transition = styleValue.getTransition();
|
|
849
852
|
if (transition != null) {
|
|
850
853
|
layer.setFillTranslateTransition(transition);
|
|
851
854
|
}
|
|
852
855
|
}
|
|
853
856
|
|
|
854
|
-
public static void setFillTranslateAnchor(FillLayer layer,
|
|
857
|
+
public static void setFillTranslateAnchor(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
855
858
|
if (styleValue.isExpression()) {
|
|
856
859
|
layer.setProperties(PropertyFactory.fillTranslateAnchor(styleValue.getExpression()));
|
|
857
860
|
} else {
|
|
@@ -859,7 +862,7 @@ public class RCTMGLStyleFactory {
|
|
|
859
862
|
}
|
|
860
863
|
}
|
|
861
864
|
|
|
862
|
-
public static void setFillPattern(FillLayer layer,
|
|
865
|
+
public static void setFillPattern(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
863
866
|
if (styleValue.isExpression()) {
|
|
864
867
|
if (styleValue.isImageStringValue()) {
|
|
865
868
|
layer.setProperties(PropertyFactory.fillPattern(styleValue.getImageStringValue()));
|
|
@@ -872,14 +875,14 @@ public class RCTMGLStyleFactory {
|
|
|
872
875
|
}
|
|
873
876
|
|
|
874
877
|
|
|
875
|
-
public static void setFillPatternTransition(FillLayer layer,
|
|
878
|
+
public static void setFillPatternTransition(FillLayer layer, RCTMLNStyleValue styleValue) {
|
|
876
879
|
TransitionOptions transition = styleValue.getTransition();
|
|
877
880
|
if (transition != null) {
|
|
878
881
|
layer.setFillPatternTransition(transition);
|
|
879
882
|
}
|
|
880
883
|
}
|
|
881
884
|
|
|
882
|
-
public static void setLineCap(LineLayer layer,
|
|
885
|
+
public static void setLineCap(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
883
886
|
if (styleValue.isExpression()) {
|
|
884
887
|
layer.setProperties(PropertyFactory.lineCap(styleValue.getExpression()));
|
|
885
888
|
} else {
|
|
@@ -887,7 +890,7 @@ public class RCTMGLStyleFactory {
|
|
|
887
890
|
}
|
|
888
891
|
}
|
|
889
892
|
|
|
890
|
-
public static void setLineJoin(LineLayer layer,
|
|
893
|
+
public static void setLineJoin(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
891
894
|
if (styleValue.isExpression()) {
|
|
892
895
|
layer.setProperties(PropertyFactory.lineJoin(styleValue.getExpression()));
|
|
893
896
|
} else {
|
|
@@ -895,7 +898,7 @@ public class RCTMGLStyleFactory {
|
|
|
895
898
|
}
|
|
896
899
|
}
|
|
897
900
|
|
|
898
|
-
public static void setLineMiterLimit(LineLayer layer,
|
|
901
|
+
public static void setLineMiterLimit(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
899
902
|
if (styleValue.isExpression()) {
|
|
900
903
|
layer.setProperties(PropertyFactory.lineMiterLimit(styleValue.getExpression()));
|
|
901
904
|
} else {
|
|
@@ -903,7 +906,7 @@ public class RCTMGLStyleFactory {
|
|
|
903
906
|
}
|
|
904
907
|
}
|
|
905
908
|
|
|
906
|
-
public static void setLineRoundLimit(LineLayer layer,
|
|
909
|
+
public static void setLineRoundLimit(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
907
910
|
if (styleValue.isExpression()) {
|
|
908
911
|
layer.setProperties(PropertyFactory.lineRoundLimit(styleValue.getExpression()));
|
|
909
912
|
} else {
|
|
@@ -911,7 +914,7 @@ public class RCTMGLStyleFactory {
|
|
|
911
914
|
}
|
|
912
915
|
}
|
|
913
916
|
|
|
914
|
-
public static void setLineSortKey(LineLayer layer,
|
|
917
|
+
public static void setLineSortKey(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
915
918
|
if (styleValue.isExpression()) {
|
|
916
919
|
layer.setProperties(PropertyFactory.lineSortKey(styleValue.getExpression()));
|
|
917
920
|
} else {
|
|
@@ -919,11 +922,11 @@ public class RCTMGLStyleFactory {
|
|
|
919
922
|
}
|
|
920
923
|
}
|
|
921
924
|
|
|
922
|
-
public static void setVisibility(LineLayer layer,
|
|
925
|
+
public static void setVisibility(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
923
926
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
924
927
|
}
|
|
925
928
|
|
|
926
|
-
public static void setLineOpacity(LineLayer layer,
|
|
929
|
+
public static void setLineOpacity(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
927
930
|
if (styleValue.isExpression()) {
|
|
928
931
|
layer.setProperties(PropertyFactory.lineOpacity(styleValue.getExpression()));
|
|
929
932
|
} else {
|
|
@@ -932,14 +935,14 @@ public class RCTMGLStyleFactory {
|
|
|
932
935
|
}
|
|
933
936
|
|
|
934
937
|
|
|
935
|
-
public static void setLineOpacityTransition(LineLayer layer,
|
|
938
|
+
public static void setLineOpacityTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
936
939
|
TransitionOptions transition = styleValue.getTransition();
|
|
937
940
|
if (transition != null) {
|
|
938
941
|
layer.setLineOpacityTransition(transition);
|
|
939
942
|
}
|
|
940
943
|
}
|
|
941
944
|
|
|
942
|
-
public static void setLineColor(LineLayer layer,
|
|
945
|
+
public static void setLineColor(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
943
946
|
if (styleValue.isExpression()) {
|
|
944
947
|
layer.setProperties(PropertyFactory.lineColor(styleValue.getExpression()));
|
|
945
948
|
} else {
|
|
@@ -948,14 +951,14 @@ public class RCTMGLStyleFactory {
|
|
|
948
951
|
}
|
|
949
952
|
|
|
950
953
|
|
|
951
|
-
public static void setLineColorTransition(LineLayer layer,
|
|
954
|
+
public static void setLineColorTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
952
955
|
TransitionOptions transition = styleValue.getTransition();
|
|
953
956
|
if (transition != null) {
|
|
954
957
|
layer.setLineColorTransition(transition);
|
|
955
958
|
}
|
|
956
959
|
}
|
|
957
960
|
|
|
958
|
-
public static void setLineTranslate(LineLayer layer,
|
|
961
|
+
public static void setLineTranslate(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
959
962
|
if (styleValue.isExpression()) {
|
|
960
963
|
layer.setProperties(PropertyFactory.lineTranslate(styleValue.getExpression()));
|
|
961
964
|
} else {
|
|
@@ -964,14 +967,14 @@ public class RCTMGLStyleFactory {
|
|
|
964
967
|
}
|
|
965
968
|
|
|
966
969
|
|
|
967
|
-
public static void setLineTranslateTransition(LineLayer layer,
|
|
970
|
+
public static void setLineTranslateTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
968
971
|
TransitionOptions transition = styleValue.getTransition();
|
|
969
972
|
if (transition != null) {
|
|
970
973
|
layer.setLineTranslateTransition(transition);
|
|
971
974
|
}
|
|
972
975
|
}
|
|
973
976
|
|
|
974
|
-
public static void setLineTranslateAnchor(LineLayer layer,
|
|
977
|
+
public static void setLineTranslateAnchor(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
975
978
|
if (styleValue.isExpression()) {
|
|
976
979
|
layer.setProperties(PropertyFactory.lineTranslateAnchor(styleValue.getExpression()));
|
|
977
980
|
} else {
|
|
@@ -979,7 +982,7 @@ public class RCTMGLStyleFactory {
|
|
|
979
982
|
}
|
|
980
983
|
}
|
|
981
984
|
|
|
982
|
-
public static void setLineWidth(LineLayer layer,
|
|
985
|
+
public static void setLineWidth(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
983
986
|
if (styleValue.isExpression()) {
|
|
984
987
|
layer.setProperties(PropertyFactory.lineWidth(styleValue.getExpression()));
|
|
985
988
|
} else {
|
|
@@ -988,14 +991,14 @@ public class RCTMGLStyleFactory {
|
|
|
988
991
|
}
|
|
989
992
|
|
|
990
993
|
|
|
991
|
-
public static void setLineWidthTransition(LineLayer layer,
|
|
994
|
+
public static void setLineWidthTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
992
995
|
TransitionOptions transition = styleValue.getTransition();
|
|
993
996
|
if (transition != null) {
|
|
994
997
|
layer.setLineWidthTransition(transition);
|
|
995
998
|
}
|
|
996
999
|
}
|
|
997
1000
|
|
|
998
|
-
public static void setLineGapWidth(LineLayer layer,
|
|
1001
|
+
public static void setLineGapWidth(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
999
1002
|
if (styleValue.isExpression()) {
|
|
1000
1003
|
layer.setProperties(PropertyFactory.lineGapWidth(styleValue.getExpression()));
|
|
1001
1004
|
} else {
|
|
@@ -1004,14 +1007,14 @@ public class RCTMGLStyleFactory {
|
|
|
1004
1007
|
}
|
|
1005
1008
|
|
|
1006
1009
|
|
|
1007
|
-
public static void setLineGapWidthTransition(LineLayer layer,
|
|
1010
|
+
public static void setLineGapWidthTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1008
1011
|
TransitionOptions transition = styleValue.getTransition();
|
|
1009
1012
|
if (transition != null) {
|
|
1010
1013
|
layer.setLineGapWidthTransition(transition);
|
|
1011
1014
|
}
|
|
1012
1015
|
}
|
|
1013
1016
|
|
|
1014
|
-
public static void setLineOffset(LineLayer layer,
|
|
1017
|
+
public static void setLineOffset(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1015
1018
|
if (styleValue.isExpression()) {
|
|
1016
1019
|
layer.setProperties(PropertyFactory.lineOffset(styleValue.getExpression()));
|
|
1017
1020
|
} else {
|
|
@@ -1020,14 +1023,14 @@ public class RCTMGLStyleFactory {
|
|
|
1020
1023
|
}
|
|
1021
1024
|
|
|
1022
1025
|
|
|
1023
|
-
public static void setLineOffsetTransition(LineLayer layer,
|
|
1026
|
+
public static void setLineOffsetTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1024
1027
|
TransitionOptions transition = styleValue.getTransition();
|
|
1025
1028
|
if (transition != null) {
|
|
1026
1029
|
layer.setLineOffsetTransition(transition);
|
|
1027
1030
|
}
|
|
1028
1031
|
}
|
|
1029
1032
|
|
|
1030
|
-
public static void setLineBlur(LineLayer layer,
|
|
1033
|
+
public static void setLineBlur(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1031
1034
|
if (styleValue.isExpression()) {
|
|
1032
1035
|
layer.setProperties(PropertyFactory.lineBlur(styleValue.getExpression()));
|
|
1033
1036
|
} else {
|
|
@@ -1036,14 +1039,14 @@ public class RCTMGLStyleFactory {
|
|
|
1036
1039
|
}
|
|
1037
1040
|
|
|
1038
1041
|
|
|
1039
|
-
public static void setLineBlurTransition(LineLayer layer,
|
|
1042
|
+
public static void setLineBlurTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1040
1043
|
TransitionOptions transition = styleValue.getTransition();
|
|
1041
1044
|
if (transition != null) {
|
|
1042
1045
|
layer.setLineBlurTransition(transition);
|
|
1043
1046
|
}
|
|
1044
1047
|
}
|
|
1045
1048
|
|
|
1046
|
-
public static void setLineDasharray(LineLayer layer,
|
|
1049
|
+
public static void setLineDasharray(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1047
1050
|
if (styleValue.isExpression()) {
|
|
1048
1051
|
layer.setProperties(PropertyFactory.lineDasharray(styleValue.getExpression()));
|
|
1049
1052
|
} else {
|
|
@@ -1052,14 +1055,14 @@ public class RCTMGLStyleFactory {
|
|
|
1052
1055
|
}
|
|
1053
1056
|
|
|
1054
1057
|
|
|
1055
|
-
public static void setLineDasharrayTransition(LineLayer layer,
|
|
1058
|
+
public static void setLineDasharrayTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1056
1059
|
TransitionOptions transition = styleValue.getTransition();
|
|
1057
1060
|
if (transition != null) {
|
|
1058
1061
|
layer.setLineDasharrayTransition(transition);
|
|
1059
1062
|
}
|
|
1060
1063
|
}
|
|
1061
1064
|
|
|
1062
|
-
public static void setLinePattern(LineLayer layer,
|
|
1065
|
+
public static void setLinePattern(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1063
1066
|
if (styleValue.isExpression()) {
|
|
1064
1067
|
if (styleValue.isImageStringValue()) {
|
|
1065
1068
|
layer.setProperties(PropertyFactory.linePattern(styleValue.getImageStringValue()));
|
|
@@ -1072,14 +1075,14 @@ public class RCTMGLStyleFactory {
|
|
|
1072
1075
|
}
|
|
1073
1076
|
|
|
1074
1077
|
|
|
1075
|
-
public static void setLinePatternTransition(LineLayer layer,
|
|
1078
|
+
public static void setLinePatternTransition(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1076
1079
|
TransitionOptions transition = styleValue.getTransition();
|
|
1077
1080
|
if (transition != null) {
|
|
1078
1081
|
layer.setLinePatternTransition(transition);
|
|
1079
1082
|
}
|
|
1080
1083
|
}
|
|
1081
1084
|
|
|
1082
|
-
public static void setLineGradient(LineLayer layer,
|
|
1085
|
+
public static void setLineGradient(LineLayer layer, RCTMLNStyleValue styleValue) {
|
|
1083
1086
|
if (styleValue.isExpression()) {
|
|
1084
1087
|
layer.setProperties(PropertyFactory.lineGradient(styleValue.getExpression()));
|
|
1085
1088
|
} else {
|
|
@@ -1087,7 +1090,7 @@ public class RCTMGLStyleFactory {
|
|
|
1087
1090
|
}
|
|
1088
1091
|
}
|
|
1089
1092
|
|
|
1090
|
-
public static void setSymbolPlacement(SymbolLayer layer,
|
|
1093
|
+
public static void setSymbolPlacement(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1091
1094
|
if (styleValue.isExpression()) {
|
|
1092
1095
|
layer.setProperties(PropertyFactory.symbolPlacement(styleValue.getExpression()));
|
|
1093
1096
|
} else {
|
|
@@ -1095,7 +1098,7 @@ public class RCTMGLStyleFactory {
|
|
|
1095
1098
|
}
|
|
1096
1099
|
}
|
|
1097
1100
|
|
|
1098
|
-
public static void setSymbolSpacing(SymbolLayer layer,
|
|
1101
|
+
public static void setSymbolSpacing(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1099
1102
|
if (styleValue.isExpression()) {
|
|
1100
1103
|
layer.setProperties(PropertyFactory.symbolSpacing(styleValue.getExpression()));
|
|
1101
1104
|
} else {
|
|
@@ -1103,7 +1106,7 @@ public class RCTMGLStyleFactory {
|
|
|
1103
1106
|
}
|
|
1104
1107
|
}
|
|
1105
1108
|
|
|
1106
|
-
public static void setSymbolAvoidEdges(SymbolLayer layer,
|
|
1109
|
+
public static void setSymbolAvoidEdges(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1107
1110
|
if (styleValue.isExpression()) {
|
|
1108
1111
|
layer.setProperties(PropertyFactory.symbolAvoidEdges(styleValue.getExpression()));
|
|
1109
1112
|
} else {
|
|
@@ -1111,7 +1114,7 @@ public class RCTMGLStyleFactory {
|
|
|
1111
1114
|
}
|
|
1112
1115
|
}
|
|
1113
1116
|
|
|
1114
|
-
public static void setSymbolSortKey(SymbolLayer layer,
|
|
1117
|
+
public static void setSymbolSortKey(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1115
1118
|
if (styleValue.isExpression()) {
|
|
1116
1119
|
layer.setProperties(PropertyFactory.symbolSortKey(styleValue.getExpression()));
|
|
1117
1120
|
} else {
|
|
@@ -1119,7 +1122,7 @@ public class RCTMGLStyleFactory {
|
|
|
1119
1122
|
}
|
|
1120
1123
|
}
|
|
1121
1124
|
|
|
1122
|
-
public static void setSymbolZOrder(SymbolLayer layer,
|
|
1125
|
+
public static void setSymbolZOrder(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1123
1126
|
if (styleValue.isExpression()) {
|
|
1124
1127
|
layer.setProperties(PropertyFactory.symbolZOrder(styleValue.getExpression()));
|
|
1125
1128
|
} else {
|
|
@@ -1127,7 +1130,7 @@ public class RCTMGLStyleFactory {
|
|
|
1127
1130
|
}
|
|
1128
1131
|
}
|
|
1129
1132
|
|
|
1130
|
-
public static void setIconAllowOverlap(SymbolLayer layer,
|
|
1133
|
+
public static void setIconAllowOverlap(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1131
1134
|
if (styleValue.isExpression()) {
|
|
1132
1135
|
layer.setProperties(PropertyFactory.iconAllowOverlap(styleValue.getExpression()));
|
|
1133
1136
|
} else {
|
|
@@ -1135,7 +1138,7 @@ public class RCTMGLStyleFactory {
|
|
|
1135
1138
|
}
|
|
1136
1139
|
}
|
|
1137
1140
|
|
|
1138
|
-
public static void setIconIgnorePlacement(SymbolLayer layer,
|
|
1141
|
+
public static void setIconIgnorePlacement(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1139
1142
|
if (styleValue.isExpression()) {
|
|
1140
1143
|
layer.setProperties(PropertyFactory.iconIgnorePlacement(styleValue.getExpression()));
|
|
1141
1144
|
} else {
|
|
@@ -1143,7 +1146,7 @@ public class RCTMGLStyleFactory {
|
|
|
1143
1146
|
}
|
|
1144
1147
|
}
|
|
1145
1148
|
|
|
1146
|
-
public static void setIconOptional(SymbolLayer layer,
|
|
1149
|
+
public static void setIconOptional(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1147
1150
|
if (styleValue.isExpression()) {
|
|
1148
1151
|
layer.setProperties(PropertyFactory.iconOptional(styleValue.getExpression()));
|
|
1149
1152
|
} else {
|
|
@@ -1151,7 +1154,7 @@ public class RCTMGLStyleFactory {
|
|
|
1151
1154
|
}
|
|
1152
1155
|
}
|
|
1153
1156
|
|
|
1154
|
-
public static void setIconRotationAlignment(SymbolLayer layer,
|
|
1157
|
+
public static void setIconRotationAlignment(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1155
1158
|
if (styleValue.isExpression()) {
|
|
1156
1159
|
layer.setProperties(PropertyFactory.iconRotationAlignment(styleValue.getExpression()));
|
|
1157
1160
|
} else {
|
|
@@ -1159,7 +1162,7 @@ public class RCTMGLStyleFactory {
|
|
|
1159
1162
|
}
|
|
1160
1163
|
}
|
|
1161
1164
|
|
|
1162
|
-
public static void setIconSize(SymbolLayer layer,
|
|
1165
|
+
public static void setIconSize(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1163
1166
|
if (styleValue.isExpression()) {
|
|
1164
1167
|
layer.setProperties(PropertyFactory.iconSize(styleValue.getExpression()));
|
|
1165
1168
|
} else {
|
|
@@ -1167,7 +1170,7 @@ public class RCTMGLStyleFactory {
|
|
|
1167
1170
|
}
|
|
1168
1171
|
}
|
|
1169
1172
|
|
|
1170
|
-
public static void setIconTextFit(SymbolLayer layer,
|
|
1173
|
+
public static void setIconTextFit(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1171
1174
|
if (styleValue.isExpression()) {
|
|
1172
1175
|
layer.setProperties(PropertyFactory.iconTextFit(styleValue.getExpression()));
|
|
1173
1176
|
} else {
|
|
@@ -1175,7 +1178,7 @@ public class RCTMGLStyleFactory {
|
|
|
1175
1178
|
}
|
|
1176
1179
|
}
|
|
1177
1180
|
|
|
1178
|
-
public static void setIconTextFitPadding(SymbolLayer layer,
|
|
1181
|
+
public static void setIconTextFitPadding(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1179
1182
|
if (styleValue.isExpression()) {
|
|
1180
1183
|
layer.setProperties(PropertyFactory.iconTextFitPadding(styleValue.getExpression()));
|
|
1181
1184
|
} else {
|
|
@@ -1183,7 +1186,7 @@ public class RCTMGLStyleFactory {
|
|
|
1183
1186
|
}
|
|
1184
1187
|
}
|
|
1185
1188
|
|
|
1186
|
-
public static void setIconImage(SymbolLayer layer,
|
|
1189
|
+
public static void setIconImage(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1187
1190
|
if (styleValue.isExpression()) {
|
|
1188
1191
|
if (styleValue.isImageStringValue()) {
|
|
1189
1192
|
layer.setProperties(PropertyFactory.iconImage(styleValue.getImageStringValue()));
|
|
@@ -1195,7 +1198,7 @@ public class RCTMGLStyleFactory {
|
|
|
1195
1198
|
}
|
|
1196
1199
|
}
|
|
1197
1200
|
|
|
1198
|
-
public static void setIconRotate(SymbolLayer layer,
|
|
1201
|
+
public static void setIconRotate(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1199
1202
|
if (styleValue.isExpression()) {
|
|
1200
1203
|
layer.setProperties(PropertyFactory.iconRotate(styleValue.getExpression()));
|
|
1201
1204
|
} else {
|
|
@@ -1203,15 +1206,15 @@ public class RCTMGLStyleFactory {
|
|
|
1203
1206
|
}
|
|
1204
1207
|
}
|
|
1205
1208
|
|
|
1206
|
-
public static void setIconPadding(SymbolLayer layer,
|
|
1209
|
+
public static void setIconPadding(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1207
1210
|
if (styleValue.isExpression()) {
|
|
1208
1211
|
layer.setProperties(PropertyFactory.iconPadding(styleValue.getExpression()));
|
|
1209
1212
|
} else {
|
|
1210
|
-
layer.setProperties(PropertyFactory.iconPadding(styleValue.
|
|
1213
|
+
layer.setProperties(PropertyFactory.iconPadding(styleValue.getFloatArray(VALUE_KEY)));
|
|
1211
1214
|
}
|
|
1212
1215
|
}
|
|
1213
1216
|
|
|
1214
|
-
public static void setIconKeepUpright(SymbolLayer layer,
|
|
1217
|
+
public static void setIconKeepUpright(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1215
1218
|
if (styleValue.isExpression()) {
|
|
1216
1219
|
layer.setProperties(PropertyFactory.iconKeepUpright(styleValue.getExpression()));
|
|
1217
1220
|
} else {
|
|
@@ -1219,7 +1222,7 @@ public class RCTMGLStyleFactory {
|
|
|
1219
1222
|
}
|
|
1220
1223
|
}
|
|
1221
1224
|
|
|
1222
|
-
public static void setIconOffset(SymbolLayer layer,
|
|
1225
|
+
public static void setIconOffset(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1223
1226
|
if (styleValue.isExpression()) {
|
|
1224
1227
|
layer.setProperties(PropertyFactory.iconOffset(styleValue.getExpression()));
|
|
1225
1228
|
} else {
|
|
@@ -1227,7 +1230,7 @@ public class RCTMGLStyleFactory {
|
|
|
1227
1230
|
}
|
|
1228
1231
|
}
|
|
1229
1232
|
|
|
1230
|
-
public static void setIconAnchor(SymbolLayer layer,
|
|
1233
|
+
public static void setIconAnchor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1231
1234
|
if (styleValue.isExpression()) {
|
|
1232
1235
|
layer.setProperties(PropertyFactory.iconAnchor(styleValue.getExpression()));
|
|
1233
1236
|
} else {
|
|
@@ -1235,7 +1238,7 @@ public class RCTMGLStyleFactory {
|
|
|
1235
1238
|
}
|
|
1236
1239
|
}
|
|
1237
1240
|
|
|
1238
|
-
public static void setIconPitchAlignment(SymbolLayer layer,
|
|
1241
|
+
public static void setIconPitchAlignment(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1239
1242
|
if (styleValue.isExpression()) {
|
|
1240
1243
|
layer.setProperties(PropertyFactory.iconPitchAlignment(styleValue.getExpression()));
|
|
1241
1244
|
} else {
|
|
@@ -1243,7 +1246,7 @@ public class RCTMGLStyleFactory {
|
|
|
1243
1246
|
}
|
|
1244
1247
|
}
|
|
1245
1248
|
|
|
1246
|
-
public static void setTextPitchAlignment(SymbolLayer layer,
|
|
1249
|
+
public static void setTextPitchAlignment(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1247
1250
|
if (styleValue.isExpression()) {
|
|
1248
1251
|
layer.setProperties(PropertyFactory.textPitchAlignment(styleValue.getExpression()));
|
|
1249
1252
|
} else {
|
|
@@ -1251,7 +1254,7 @@ public class RCTMGLStyleFactory {
|
|
|
1251
1254
|
}
|
|
1252
1255
|
}
|
|
1253
1256
|
|
|
1254
|
-
public static void setTextRotationAlignment(SymbolLayer layer,
|
|
1257
|
+
public static void setTextRotationAlignment(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1255
1258
|
if (styleValue.isExpression()) {
|
|
1256
1259
|
layer.setProperties(PropertyFactory.textRotationAlignment(styleValue.getExpression()));
|
|
1257
1260
|
} else {
|
|
@@ -1259,7 +1262,7 @@ public class RCTMGLStyleFactory {
|
|
|
1259
1262
|
}
|
|
1260
1263
|
}
|
|
1261
1264
|
|
|
1262
|
-
public static void setTextField(SymbolLayer layer,
|
|
1265
|
+
public static void setTextField(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1263
1266
|
if (styleValue.isExpression()) {
|
|
1264
1267
|
layer.setProperties(PropertyFactory.textField(styleValue.getExpression()));
|
|
1265
1268
|
} else {
|
|
@@ -1267,7 +1270,7 @@ public class RCTMGLStyleFactory {
|
|
|
1267
1270
|
}
|
|
1268
1271
|
}
|
|
1269
1272
|
|
|
1270
|
-
public static void setTextFont(SymbolLayer layer,
|
|
1273
|
+
public static void setTextFont(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1271
1274
|
if (styleValue.isExpression()) {
|
|
1272
1275
|
layer.setProperties(PropertyFactory.textFont(styleValue.getExpression()));
|
|
1273
1276
|
} else {
|
|
@@ -1275,7 +1278,7 @@ public class RCTMGLStyleFactory {
|
|
|
1275
1278
|
}
|
|
1276
1279
|
}
|
|
1277
1280
|
|
|
1278
|
-
public static void setTextSize(SymbolLayer layer,
|
|
1281
|
+
public static void setTextSize(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1279
1282
|
if (styleValue.isExpression()) {
|
|
1280
1283
|
layer.setProperties(PropertyFactory.textSize(styleValue.getExpression()));
|
|
1281
1284
|
} else {
|
|
@@ -1283,7 +1286,7 @@ public class RCTMGLStyleFactory {
|
|
|
1283
1286
|
}
|
|
1284
1287
|
}
|
|
1285
1288
|
|
|
1286
|
-
public static void setTextMaxWidth(SymbolLayer layer,
|
|
1289
|
+
public static void setTextMaxWidth(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1287
1290
|
if (styleValue.isExpression()) {
|
|
1288
1291
|
layer.setProperties(PropertyFactory.textMaxWidth(styleValue.getExpression()));
|
|
1289
1292
|
} else {
|
|
@@ -1291,7 +1294,7 @@ public class RCTMGLStyleFactory {
|
|
|
1291
1294
|
}
|
|
1292
1295
|
}
|
|
1293
1296
|
|
|
1294
|
-
public static void setTextLineHeight(SymbolLayer layer,
|
|
1297
|
+
public static void setTextLineHeight(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1295
1298
|
if (styleValue.isExpression()) {
|
|
1296
1299
|
layer.setProperties(PropertyFactory.textLineHeight(styleValue.getExpression()));
|
|
1297
1300
|
} else {
|
|
@@ -1299,7 +1302,7 @@ public class RCTMGLStyleFactory {
|
|
|
1299
1302
|
}
|
|
1300
1303
|
}
|
|
1301
1304
|
|
|
1302
|
-
public static void setTextLetterSpacing(SymbolLayer layer,
|
|
1305
|
+
public static void setTextLetterSpacing(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1303
1306
|
if (styleValue.isExpression()) {
|
|
1304
1307
|
layer.setProperties(PropertyFactory.textLetterSpacing(styleValue.getExpression()));
|
|
1305
1308
|
} else {
|
|
@@ -1307,7 +1310,7 @@ public class RCTMGLStyleFactory {
|
|
|
1307
1310
|
}
|
|
1308
1311
|
}
|
|
1309
1312
|
|
|
1310
|
-
public static void setTextJustify(SymbolLayer layer,
|
|
1313
|
+
public static void setTextJustify(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1311
1314
|
if (styleValue.isExpression()) {
|
|
1312
1315
|
layer.setProperties(PropertyFactory.textJustify(styleValue.getExpression()));
|
|
1313
1316
|
} else {
|
|
@@ -1315,7 +1318,7 @@ public class RCTMGLStyleFactory {
|
|
|
1315
1318
|
}
|
|
1316
1319
|
}
|
|
1317
1320
|
|
|
1318
|
-
public static void setTextRadialOffset(SymbolLayer layer,
|
|
1321
|
+
public static void setTextRadialOffset(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1319
1322
|
if (styleValue.isExpression()) {
|
|
1320
1323
|
layer.setProperties(PropertyFactory.textRadialOffset(styleValue.getExpression()));
|
|
1321
1324
|
} else {
|
|
@@ -1323,7 +1326,7 @@ public class RCTMGLStyleFactory {
|
|
|
1323
1326
|
}
|
|
1324
1327
|
}
|
|
1325
1328
|
|
|
1326
|
-
public static void setTextVariableAnchor(SymbolLayer layer,
|
|
1329
|
+
public static void setTextVariableAnchor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1327
1330
|
if (styleValue.isExpression()) {
|
|
1328
1331
|
layer.setProperties(PropertyFactory.textVariableAnchor(styleValue.getExpression()));
|
|
1329
1332
|
} else {
|
|
@@ -1331,7 +1334,7 @@ public class RCTMGLStyleFactory {
|
|
|
1331
1334
|
}
|
|
1332
1335
|
}
|
|
1333
1336
|
|
|
1334
|
-
public static void setTextAnchor(SymbolLayer layer,
|
|
1337
|
+
public static void setTextAnchor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1335
1338
|
if (styleValue.isExpression()) {
|
|
1336
1339
|
layer.setProperties(PropertyFactory.textAnchor(styleValue.getExpression()));
|
|
1337
1340
|
} else {
|
|
@@ -1339,7 +1342,7 @@ public class RCTMGLStyleFactory {
|
|
|
1339
1342
|
}
|
|
1340
1343
|
}
|
|
1341
1344
|
|
|
1342
|
-
public static void setTextMaxAngle(SymbolLayer layer,
|
|
1345
|
+
public static void setTextMaxAngle(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1343
1346
|
if (styleValue.isExpression()) {
|
|
1344
1347
|
layer.setProperties(PropertyFactory.textMaxAngle(styleValue.getExpression()));
|
|
1345
1348
|
} else {
|
|
@@ -1347,7 +1350,7 @@ public class RCTMGLStyleFactory {
|
|
|
1347
1350
|
}
|
|
1348
1351
|
}
|
|
1349
1352
|
|
|
1350
|
-
public static void setTextWritingMode(SymbolLayer layer,
|
|
1353
|
+
public static void setTextWritingMode(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1351
1354
|
if (styleValue.isExpression()) {
|
|
1352
1355
|
layer.setProperties(PropertyFactory.textWritingMode(styleValue.getExpression()));
|
|
1353
1356
|
} else {
|
|
@@ -1355,7 +1358,7 @@ public class RCTMGLStyleFactory {
|
|
|
1355
1358
|
}
|
|
1356
1359
|
}
|
|
1357
1360
|
|
|
1358
|
-
public static void setTextRotate(SymbolLayer layer,
|
|
1361
|
+
public static void setTextRotate(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1359
1362
|
if (styleValue.isExpression()) {
|
|
1360
1363
|
layer.setProperties(PropertyFactory.textRotate(styleValue.getExpression()));
|
|
1361
1364
|
} else {
|
|
@@ -1363,7 +1366,7 @@ public class RCTMGLStyleFactory {
|
|
|
1363
1366
|
}
|
|
1364
1367
|
}
|
|
1365
1368
|
|
|
1366
|
-
public static void setTextPadding(SymbolLayer layer,
|
|
1369
|
+
public static void setTextPadding(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1367
1370
|
if (styleValue.isExpression()) {
|
|
1368
1371
|
layer.setProperties(PropertyFactory.textPadding(styleValue.getExpression()));
|
|
1369
1372
|
} else {
|
|
@@ -1371,7 +1374,7 @@ public class RCTMGLStyleFactory {
|
|
|
1371
1374
|
}
|
|
1372
1375
|
}
|
|
1373
1376
|
|
|
1374
|
-
public static void setTextKeepUpright(SymbolLayer layer,
|
|
1377
|
+
public static void setTextKeepUpright(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1375
1378
|
if (styleValue.isExpression()) {
|
|
1376
1379
|
layer.setProperties(PropertyFactory.textKeepUpright(styleValue.getExpression()));
|
|
1377
1380
|
} else {
|
|
@@ -1379,7 +1382,7 @@ public class RCTMGLStyleFactory {
|
|
|
1379
1382
|
}
|
|
1380
1383
|
}
|
|
1381
1384
|
|
|
1382
|
-
public static void setTextTransform(SymbolLayer layer,
|
|
1385
|
+
public static void setTextTransform(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1383
1386
|
if (styleValue.isExpression()) {
|
|
1384
1387
|
layer.setProperties(PropertyFactory.textTransform(styleValue.getExpression()));
|
|
1385
1388
|
} else {
|
|
@@ -1387,7 +1390,7 @@ public class RCTMGLStyleFactory {
|
|
|
1387
1390
|
}
|
|
1388
1391
|
}
|
|
1389
1392
|
|
|
1390
|
-
public static void setTextOffset(SymbolLayer layer,
|
|
1393
|
+
public static void setTextOffset(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1391
1394
|
if (styleValue.isExpression()) {
|
|
1392
1395
|
layer.setProperties(PropertyFactory.textOffset(styleValue.getExpression()));
|
|
1393
1396
|
} else {
|
|
@@ -1395,7 +1398,7 @@ public class RCTMGLStyleFactory {
|
|
|
1395
1398
|
}
|
|
1396
1399
|
}
|
|
1397
1400
|
|
|
1398
|
-
public static void setTextAllowOverlap(SymbolLayer layer,
|
|
1401
|
+
public static void setTextAllowOverlap(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1399
1402
|
if (styleValue.isExpression()) {
|
|
1400
1403
|
layer.setProperties(PropertyFactory.textAllowOverlap(styleValue.getExpression()));
|
|
1401
1404
|
} else {
|
|
@@ -1403,7 +1406,7 @@ public class RCTMGLStyleFactory {
|
|
|
1403
1406
|
}
|
|
1404
1407
|
}
|
|
1405
1408
|
|
|
1406
|
-
public static void setTextIgnorePlacement(SymbolLayer layer,
|
|
1409
|
+
public static void setTextIgnorePlacement(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1407
1410
|
if (styleValue.isExpression()) {
|
|
1408
1411
|
layer.setProperties(PropertyFactory.textIgnorePlacement(styleValue.getExpression()));
|
|
1409
1412
|
} else {
|
|
@@ -1411,7 +1414,7 @@ public class RCTMGLStyleFactory {
|
|
|
1411
1414
|
}
|
|
1412
1415
|
}
|
|
1413
1416
|
|
|
1414
|
-
public static void setTextOptional(SymbolLayer layer,
|
|
1417
|
+
public static void setTextOptional(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1415
1418
|
if (styleValue.isExpression()) {
|
|
1416
1419
|
layer.setProperties(PropertyFactory.textOptional(styleValue.getExpression()));
|
|
1417
1420
|
} else {
|
|
@@ -1419,11 +1422,11 @@ public class RCTMGLStyleFactory {
|
|
|
1419
1422
|
}
|
|
1420
1423
|
}
|
|
1421
1424
|
|
|
1422
|
-
public static void setVisibility(SymbolLayer layer,
|
|
1425
|
+
public static void setVisibility(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1423
1426
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
1424
1427
|
}
|
|
1425
1428
|
|
|
1426
|
-
public static void setIconOpacity(SymbolLayer layer,
|
|
1429
|
+
public static void setIconOpacity(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1427
1430
|
if (styleValue.isExpression()) {
|
|
1428
1431
|
layer.setProperties(PropertyFactory.iconOpacity(styleValue.getExpression()));
|
|
1429
1432
|
} else {
|
|
@@ -1432,14 +1435,14 @@ public class RCTMGLStyleFactory {
|
|
|
1432
1435
|
}
|
|
1433
1436
|
|
|
1434
1437
|
|
|
1435
|
-
public static void setIconOpacityTransition(SymbolLayer layer,
|
|
1438
|
+
public static void setIconOpacityTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1436
1439
|
TransitionOptions transition = styleValue.getTransition();
|
|
1437
1440
|
if (transition != null) {
|
|
1438
1441
|
layer.setIconOpacityTransition(transition);
|
|
1439
1442
|
}
|
|
1440
1443
|
}
|
|
1441
1444
|
|
|
1442
|
-
public static void setIconColor(SymbolLayer layer,
|
|
1445
|
+
public static void setIconColor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1443
1446
|
if (styleValue.isExpression()) {
|
|
1444
1447
|
layer.setProperties(PropertyFactory.iconColor(styleValue.getExpression()));
|
|
1445
1448
|
} else {
|
|
@@ -1448,14 +1451,14 @@ public class RCTMGLStyleFactory {
|
|
|
1448
1451
|
}
|
|
1449
1452
|
|
|
1450
1453
|
|
|
1451
|
-
public static void setIconColorTransition(SymbolLayer layer,
|
|
1454
|
+
public static void setIconColorTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1452
1455
|
TransitionOptions transition = styleValue.getTransition();
|
|
1453
1456
|
if (transition != null) {
|
|
1454
1457
|
layer.setIconColorTransition(transition);
|
|
1455
1458
|
}
|
|
1456
1459
|
}
|
|
1457
1460
|
|
|
1458
|
-
public static void setIconHaloColor(SymbolLayer layer,
|
|
1461
|
+
public static void setIconHaloColor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1459
1462
|
if (styleValue.isExpression()) {
|
|
1460
1463
|
layer.setProperties(PropertyFactory.iconHaloColor(styleValue.getExpression()));
|
|
1461
1464
|
} else {
|
|
@@ -1464,14 +1467,14 @@ public class RCTMGLStyleFactory {
|
|
|
1464
1467
|
}
|
|
1465
1468
|
|
|
1466
1469
|
|
|
1467
|
-
public static void setIconHaloColorTransition(SymbolLayer layer,
|
|
1470
|
+
public static void setIconHaloColorTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1468
1471
|
TransitionOptions transition = styleValue.getTransition();
|
|
1469
1472
|
if (transition != null) {
|
|
1470
1473
|
layer.setIconHaloColorTransition(transition);
|
|
1471
1474
|
}
|
|
1472
1475
|
}
|
|
1473
1476
|
|
|
1474
|
-
public static void setIconHaloWidth(SymbolLayer layer,
|
|
1477
|
+
public static void setIconHaloWidth(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1475
1478
|
if (styleValue.isExpression()) {
|
|
1476
1479
|
layer.setProperties(PropertyFactory.iconHaloWidth(styleValue.getExpression()));
|
|
1477
1480
|
} else {
|
|
@@ -1480,14 +1483,14 @@ public class RCTMGLStyleFactory {
|
|
|
1480
1483
|
}
|
|
1481
1484
|
|
|
1482
1485
|
|
|
1483
|
-
public static void setIconHaloWidthTransition(SymbolLayer layer,
|
|
1486
|
+
public static void setIconHaloWidthTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1484
1487
|
TransitionOptions transition = styleValue.getTransition();
|
|
1485
1488
|
if (transition != null) {
|
|
1486
1489
|
layer.setIconHaloWidthTransition(transition);
|
|
1487
1490
|
}
|
|
1488
1491
|
}
|
|
1489
1492
|
|
|
1490
|
-
public static void setIconHaloBlur(SymbolLayer layer,
|
|
1493
|
+
public static void setIconHaloBlur(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1491
1494
|
if (styleValue.isExpression()) {
|
|
1492
1495
|
layer.setProperties(PropertyFactory.iconHaloBlur(styleValue.getExpression()));
|
|
1493
1496
|
} else {
|
|
@@ -1496,14 +1499,14 @@ public class RCTMGLStyleFactory {
|
|
|
1496
1499
|
}
|
|
1497
1500
|
|
|
1498
1501
|
|
|
1499
|
-
public static void setIconHaloBlurTransition(SymbolLayer layer,
|
|
1502
|
+
public static void setIconHaloBlurTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1500
1503
|
TransitionOptions transition = styleValue.getTransition();
|
|
1501
1504
|
if (transition != null) {
|
|
1502
1505
|
layer.setIconHaloBlurTransition(transition);
|
|
1503
1506
|
}
|
|
1504
1507
|
}
|
|
1505
1508
|
|
|
1506
|
-
public static void setIconTranslate(SymbolLayer layer,
|
|
1509
|
+
public static void setIconTranslate(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1507
1510
|
if (styleValue.isExpression()) {
|
|
1508
1511
|
layer.setProperties(PropertyFactory.iconTranslate(styleValue.getExpression()));
|
|
1509
1512
|
} else {
|
|
@@ -1512,14 +1515,14 @@ public class RCTMGLStyleFactory {
|
|
|
1512
1515
|
}
|
|
1513
1516
|
|
|
1514
1517
|
|
|
1515
|
-
public static void setIconTranslateTransition(SymbolLayer layer,
|
|
1518
|
+
public static void setIconTranslateTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1516
1519
|
TransitionOptions transition = styleValue.getTransition();
|
|
1517
1520
|
if (transition != null) {
|
|
1518
1521
|
layer.setIconTranslateTransition(transition);
|
|
1519
1522
|
}
|
|
1520
1523
|
}
|
|
1521
1524
|
|
|
1522
|
-
public static void setIconTranslateAnchor(SymbolLayer layer,
|
|
1525
|
+
public static void setIconTranslateAnchor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1523
1526
|
if (styleValue.isExpression()) {
|
|
1524
1527
|
layer.setProperties(PropertyFactory.iconTranslateAnchor(styleValue.getExpression()));
|
|
1525
1528
|
} else {
|
|
@@ -1527,7 +1530,7 @@ public class RCTMGLStyleFactory {
|
|
|
1527
1530
|
}
|
|
1528
1531
|
}
|
|
1529
1532
|
|
|
1530
|
-
public static void setTextOpacity(SymbolLayer layer,
|
|
1533
|
+
public static void setTextOpacity(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1531
1534
|
if (styleValue.isExpression()) {
|
|
1532
1535
|
layer.setProperties(PropertyFactory.textOpacity(styleValue.getExpression()));
|
|
1533
1536
|
} else {
|
|
@@ -1536,14 +1539,14 @@ public class RCTMGLStyleFactory {
|
|
|
1536
1539
|
}
|
|
1537
1540
|
|
|
1538
1541
|
|
|
1539
|
-
public static void setTextOpacityTransition(SymbolLayer layer,
|
|
1542
|
+
public static void setTextOpacityTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1540
1543
|
TransitionOptions transition = styleValue.getTransition();
|
|
1541
1544
|
if (transition != null) {
|
|
1542
1545
|
layer.setTextOpacityTransition(transition);
|
|
1543
1546
|
}
|
|
1544
1547
|
}
|
|
1545
1548
|
|
|
1546
|
-
public static void setTextColor(SymbolLayer layer,
|
|
1549
|
+
public static void setTextColor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1547
1550
|
if (styleValue.isExpression()) {
|
|
1548
1551
|
layer.setProperties(PropertyFactory.textColor(styleValue.getExpression()));
|
|
1549
1552
|
} else {
|
|
@@ -1552,14 +1555,14 @@ public class RCTMGLStyleFactory {
|
|
|
1552
1555
|
}
|
|
1553
1556
|
|
|
1554
1557
|
|
|
1555
|
-
public static void setTextColorTransition(SymbolLayer layer,
|
|
1558
|
+
public static void setTextColorTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1556
1559
|
TransitionOptions transition = styleValue.getTransition();
|
|
1557
1560
|
if (transition != null) {
|
|
1558
1561
|
layer.setTextColorTransition(transition);
|
|
1559
1562
|
}
|
|
1560
1563
|
}
|
|
1561
1564
|
|
|
1562
|
-
public static void setTextHaloColor(SymbolLayer layer,
|
|
1565
|
+
public static void setTextHaloColor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1563
1566
|
if (styleValue.isExpression()) {
|
|
1564
1567
|
layer.setProperties(PropertyFactory.textHaloColor(styleValue.getExpression()));
|
|
1565
1568
|
} else {
|
|
@@ -1568,14 +1571,14 @@ public class RCTMGLStyleFactory {
|
|
|
1568
1571
|
}
|
|
1569
1572
|
|
|
1570
1573
|
|
|
1571
|
-
public static void setTextHaloColorTransition(SymbolLayer layer,
|
|
1574
|
+
public static void setTextHaloColorTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1572
1575
|
TransitionOptions transition = styleValue.getTransition();
|
|
1573
1576
|
if (transition != null) {
|
|
1574
1577
|
layer.setTextHaloColorTransition(transition);
|
|
1575
1578
|
}
|
|
1576
1579
|
}
|
|
1577
1580
|
|
|
1578
|
-
public static void setTextHaloWidth(SymbolLayer layer,
|
|
1581
|
+
public static void setTextHaloWidth(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1579
1582
|
if (styleValue.isExpression()) {
|
|
1580
1583
|
layer.setProperties(PropertyFactory.textHaloWidth(styleValue.getExpression()));
|
|
1581
1584
|
} else {
|
|
@@ -1584,14 +1587,14 @@ public class RCTMGLStyleFactory {
|
|
|
1584
1587
|
}
|
|
1585
1588
|
|
|
1586
1589
|
|
|
1587
|
-
public static void setTextHaloWidthTransition(SymbolLayer layer,
|
|
1590
|
+
public static void setTextHaloWidthTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1588
1591
|
TransitionOptions transition = styleValue.getTransition();
|
|
1589
1592
|
if (transition != null) {
|
|
1590
1593
|
layer.setTextHaloWidthTransition(transition);
|
|
1591
1594
|
}
|
|
1592
1595
|
}
|
|
1593
1596
|
|
|
1594
|
-
public static void setTextHaloBlur(SymbolLayer layer,
|
|
1597
|
+
public static void setTextHaloBlur(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1595
1598
|
if (styleValue.isExpression()) {
|
|
1596
1599
|
layer.setProperties(PropertyFactory.textHaloBlur(styleValue.getExpression()));
|
|
1597
1600
|
} else {
|
|
@@ -1600,14 +1603,14 @@ public class RCTMGLStyleFactory {
|
|
|
1600
1603
|
}
|
|
1601
1604
|
|
|
1602
1605
|
|
|
1603
|
-
public static void setTextHaloBlurTransition(SymbolLayer layer,
|
|
1606
|
+
public static void setTextHaloBlurTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1604
1607
|
TransitionOptions transition = styleValue.getTransition();
|
|
1605
1608
|
if (transition != null) {
|
|
1606
1609
|
layer.setTextHaloBlurTransition(transition);
|
|
1607
1610
|
}
|
|
1608
1611
|
}
|
|
1609
1612
|
|
|
1610
|
-
public static void setTextTranslate(SymbolLayer layer,
|
|
1613
|
+
public static void setTextTranslate(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1611
1614
|
if (styleValue.isExpression()) {
|
|
1612
1615
|
layer.setProperties(PropertyFactory.textTranslate(styleValue.getExpression()));
|
|
1613
1616
|
} else {
|
|
@@ -1616,14 +1619,14 @@ public class RCTMGLStyleFactory {
|
|
|
1616
1619
|
}
|
|
1617
1620
|
|
|
1618
1621
|
|
|
1619
|
-
public static void setTextTranslateTransition(SymbolLayer layer,
|
|
1622
|
+
public static void setTextTranslateTransition(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1620
1623
|
TransitionOptions transition = styleValue.getTransition();
|
|
1621
1624
|
if (transition != null) {
|
|
1622
1625
|
layer.setTextTranslateTransition(transition);
|
|
1623
1626
|
}
|
|
1624
1627
|
}
|
|
1625
1628
|
|
|
1626
|
-
public static void setTextTranslateAnchor(SymbolLayer layer,
|
|
1629
|
+
public static void setTextTranslateAnchor(SymbolLayer layer, RCTMLNStyleValue styleValue) {
|
|
1627
1630
|
if (styleValue.isExpression()) {
|
|
1628
1631
|
layer.setProperties(PropertyFactory.textTranslateAnchor(styleValue.getExpression()));
|
|
1629
1632
|
} else {
|
|
@@ -1631,7 +1634,7 @@ public class RCTMGLStyleFactory {
|
|
|
1631
1634
|
}
|
|
1632
1635
|
}
|
|
1633
1636
|
|
|
1634
|
-
public static void setCircleSortKey(CircleLayer layer,
|
|
1637
|
+
public static void setCircleSortKey(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1635
1638
|
if (styleValue.isExpression()) {
|
|
1636
1639
|
layer.setProperties(PropertyFactory.circleSortKey(styleValue.getExpression()));
|
|
1637
1640
|
} else {
|
|
@@ -1639,11 +1642,11 @@ public class RCTMGLStyleFactory {
|
|
|
1639
1642
|
}
|
|
1640
1643
|
}
|
|
1641
1644
|
|
|
1642
|
-
public static void setVisibility(CircleLayer layer,
|
|
1645
|
+
public static void setVisibility(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1643
1646
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
1644
1647
|
}
|
|
1645
1648
|
|
|
1646
|
-
public static void setCircleRadius(CircleLayer layer,
|
|
1649
|
+
public static void setCircleRadius(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1647
1650
|
if (styleValue.isExpression()) {
|
|
1648
1651
|
layer.setProperties(PropertyFactory.circleRadius(styleValue.getExpression()));
|
|
1649
1652
|
} else {
|
|
@@ -1652,14 +1655,14 @@ public class RCTMGLStyleFactory {
|
|
|
1652
1655
|
}
|
|
1653
1656
|
|
|
1654
1657
|
|
|
1655
|
-
public static void setCircleRadiusTransition(CircleLayer layer,
|
|
1658
|
+
public static void setCircleRadiusTransition(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1656
1659
|
TransitionOptions transition = styleValue.getTransition();
|
|
1657
1660
|
if (transition != null) {
|
|
1658
1661
|
layer.setCircleRadiusTransition(transition);
|
|
1659
1662
|
}
|
|
1660
1663
|
}
|
|
1661
1664
|
|
|
1662
|
-
public static void setCircleColor(CircleLayer layer,
|
|
1665
|
+
public static void setCircleColor(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1663
1666
|
if (styleValue.isExpression()) {
|
|
1664
1667
|
layer.setProperties(PropertyFactory.circleColor(styleValue.getExpression()));
|
|
1665
1668
|
} else {
|
|
@@ -1668,14 +1671,14 @@ public class RCTMGLStyleFactory {
|
|
|
1668
1671
|
}
|
|
1669
1672
|
|
|
1670
1673
|
|
|
1671
|
-
public static void setCircleColorTransition(CircleLayer layer,
|
|
1674
|
+
public static void setCircleColorTransition(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1672
1675
|
TransitionOptions transition = styleValue.getTransition();
|
|
1673
1676
|
if (transition != null) {
|
|
1674
1677
|
layer.setCircleColorTransition(transition);
|
|
1675
1678
|
}
|
|
1676
1679
|
}
|
|
1677
1680
|
|
|
1678
|
-
public static void setCircleBlur(CircleLayer layer,
|
|
1681
|
+
public static void setCircleBlur(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1679
1682
|
if (styleValue.isExpression()) {
|
|
1680
1683
|
layer.setProperties(PropertyFactory.circleBlur(styleValue.getExpression()));
|
|
1681
1684
|
} else {
|
|
@@ -1684,14 +1687,14 @@ public class RCTMGLStyleFactory {
|
|
|
1684
1687
|
}
|
|
1685
1688
|
|
|
1686
1689
|
|
|
1687
|
-
public static void setCircleBlurTransition(CircleLayer layer,
|
|
1690
|
+
public static void setCircleBlurTransition(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1688
1691
|
TransitionOptions transition = styleValue.getTransition();
|
|
1689
1692
|
if (transition != null) {
|
|
1690
1693
|
layer.setCircleBlurTransition(transition);
|
|
1691
1694
|
}
|
|
1692
1695
|
}
|
|
1693
1696
|
|
|
1694
|
-
public static void setCircleOpacity(CircleLayer layer,
|
|
1697
|
+
public static void setCircleOpacity(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1695
1698
|
if (styleValue.isExpression()) {
|
|
1696
1699
|
layer.setProperties(PropertyFactory.circleOpacity(styleValue.getExpression()));
|
|
1697
1700
|
} else {
|
|
@@ -1700,14 +1703,14 @@ public class RCTMGLStyleFactory {
|
|
|
1700
1703
|
}
|
|
1701
1704
|
|
|
1702
1705
|
|
|
1703
|
-
public static void setCircleOpacityTransition(CircleLayer layer,
|
|
1706
|
+
public static void setCircleOpacityTransition(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1704
1707
|
TransitionOptions transition = styleValue.getTransition();
|
|
1705
1708
|
if (transition != null) {
|
|
1706
1709
|
layer.setCircleOpacityTransition(transition);
|
|
1707
1710
|
}
|
|
1708
1711
|
}
|
|
1709
1712
|
|
|
1710
|
-
public static void setCircleTranslate(CircleLayer layer,
|
|
1713
|
+
public static void setCircleTranslate(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1711
1714
|
if (styleValue.isExpression()) {
|
|
1712
1715
|
layer.setProperties(PropertyFactory.circleTranslate(styleValue.getExpression()));
|
|
1713
1716
|
} else {
|
|
@@ -1716,14 +1719,14 @@ public class RCTMGLStyleFactory {
|
|
|
1716
1719
|
}
|
|
1717
1720
|
|
|
1718
1721
|
|
|
1719
|
-
public static void setCircleTranslateTransition(CircleLayer layer,
|
|
1722
|
+
public static void setCircleTranslateTransition(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1720
1723
|
TransitionOptions transition = styleValue.getTransition();
|
|
1721
1724
|
if (transition != null) {
|
|
1722
1725
|
layer.setCircleTranslateTransition(transition);
|
|
1723
1726
|
}
|
|
1724
1727
|
}
|
|
1725
1728
|
|
|
1726
|
-
public static void setCircleTranslateAnchor(CircleLayer layer,
|
|
1729
|
+
public static void setCircleTranslateAnchor(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1727
1730
|
if (styleValue.isExpression()) {
|
|
1728
1731
|
layer.setProperties(PropertyFactory.circleTranslateAnchor(styleValue.getExpression()));
|
|
1729
1732
|
} else {
|
|
@@ -1731,7 +1734,7 @@ public class RCTMGLStyleFactory {
|
|
|
1731
1734
|
}
|
|
1732
1735
|
}
|
|
1733
1736
|
|
|
1734
|
-
public static void setCirclePitchScale(CircleLayer layer,
|
|
1737
|
+
public static void setCirclePitchScale(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1735
1738
|
if (styleValue.isExpression()) {
|
|
1736
1739
|
layer.setProperties(PropertyFactory.circlePitchScale(styleValue.getExpression()));
|
|
1737
1740
|
} else {
|
|
@@ -1739,7 +1742,7 @@ public class RCTMGLStyleFactory {
|
|
|
1739
1742
|
}
|
|
1740
1743
|
}
|
|
1741
1744
|
|
|
1742
|
-
public static void setCirclePitchAlignment(CircleLayer layer,
|
|
1745
|
+
public static void setCirclePitchAlignment(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1743
1746
|
if (styleValue.isExpression()) {
|
|
1744
1747
|
layer.setProperties(PropertyFactory.circlePitchAlignment(styleValue.getExpression()));
|
|
1745
1748
|
} else {
|
|
@@ -1747,7 +1750,7 @@ public class RCTMGLStyleFactory {
|
|
|
1747
1750
|
}
|
|
1748
1751
|
}
|
|
1749
1752
|
|
|
1750
|
-
public static void setCircleStrokeWidth(CircleLayer layer,
|
|
1753
|
+
public static void setCircleStrokeWidth(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1751
1754
|
if (styleValue.isExpression()) {
|
|
1752
1755
|
layer.setProperties(PropertyFactory.circleStrokeWidth(styleValue.getExpression()));
|
|
1753
1756
|
} else {
|
|
@@ -1756,14 +1759,14 @@ public class RCTMGLStyleFactory {
|
|
|
1756
1759
|
}
|
|
1757
1760
|
|
|
1758
1761
|
|
|
1759
|
-
public static void setCircleStrokeWidthTransition(CircleLayer layer,
|
|
1762
|
+
public static void setCircleStrokeWidthTransition(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1760
1763
|
TransitionOptions transition = styleValue.getTransition();
|
|
1761
1764
|
if (transition != null) {
|
|
1762
1765
|
layer.setCircleStrokeWidthTransition(transition);
|
|
1763
1766
|
}
|
|
1764
1767
|
}
|
|
1765
1768
|
|
|
1766
|
-
public static void setCircleStrokeColor(CircleLayer layer,
|
|
1769
|
+
public static void setCircleStrokeColor(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1767
1770
|
if (styleValue.isExpression()) {
|
|
1768
1771
|
layer.setProperties(PropertyFactory.circleStrokeColor(styleValue.getExpression()));
|
|
1769
1772
|
} else {
|
|
@@ -1772,14 +1775,14 @@ public class RCTMGLStyleFactory {
|
|
|
1772
1775
|
}
|
|
1773
1776
|
|
|
1774
1777
|
|
|
1775
|
-
public static void setCircleStrokeColorTransition(CircleLayer layer,
|
|
1778
|
+
public static void setCircleStrokeColorTransition(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1776
1779
|
TransitionOptions transition = styleValue.getTransition();
|
|
1777
1780
|
if (transition != null) {
|
|
1778
1781
|
layer.setCircleStrokeColorTransition(transition);
|
|
1779
1782
|
}
|
|
1780
1783
|
}
|
|
1781
1784
|
|
|
1782
|
-
public static void setCircleStrokeOpacity(CircleLayer layer,
|
|
1785
|
+
public static void setCircleStrokeOpacity(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1783
1786
|
if (styleValue.isExpression()) {
|
|
1784
1787
|
layer.setProperties(PropertyFactory.circleStrokeOpacity(styleValue.getExpression()));
|
|
1785
1788
|
} else {
|
|
@@ -1788,18 +1791,18 @@ public class RCTMGLStyleFactory {
|
|
|
1788
1791
|
}
|
|
1789
1792
|
|
|
1790
1793
|
|
|
1791
|
-
public static void setCircleStrokeOpacityTransition(CircleLayer layer,
|
|
1794
|
+
public static void setCircleStrokeOpacityTransition(CircleLayer layer, RCTMLNStyleValue styleValue) {
|
|
1792
1795
|
TransitionOptions transition = styleValue.getTransition();
|
|
1793
1796
|
if (transition != null) {
|
|
1794
1797
|
layer.setCircleStrokeOpacityTransition(transition);
|
|
1795
1798
|
}
|
|
1796
1799
|
}
|
|
1797
1800
|
|
|
1798
|
-
public static void setVisibility(HeatmapLayer layer,
|
|
1801
|
+
public static void setVisibility(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1799
1802
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
1800
1803
|
}
|
|
1801
1804
|
|
|
1802
|
-
public static void setHeatmapRadius(HeatmapLayer layer,
|
|
1805
|
+
public static void setHeatmapRadius(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1803
1806
|
if (styleValue.isExpression()) {
|
|
1804
1807
|
layer.setProperties(PropertyFactory.heatmapRadius(styleValue.getExpression()));
|
|
1805
1808
|
} else {
|
|
@@ -1808,14 +1811,14 @@ public class RCTMGLStyleFactory {
|
|
|
1808
1811
|
}
|
|
1809
1812
|
|
|
1810
1813
|
|
|
1811
|
-
public static void setHeatmapRadiusTransition(HeatmapLayer layer,
|
|
1814
|
+
public static void setHeatmapRadiusTransition(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1812
1815
|
TransitionOptions transition = styleValue.getTransition();
|
|
1813
1816
|
if (transition != null) {
|
|
1814
1817
|
layer.setHeatmapRadiusTransition(transition);
|
|
1815
1818
|
}
|
|
1816
1819
|
}
|
|
1817
1820
|
|
|
1818
|
-
public static void setHeatmapWeight(HeatmapLayer layer,
|
|
1821
|
+
public static void setHeatmapWeight(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1819
1822
|
if (styleValue.isExpression()) {
|
|
1820
1823
|
layer.setProperties(PropertyFactory.heatmapWeight(styleValue.getExpression()));
|
|
1821
1824
|
} else {
|
|
@@ -1823,7 +1826,7 @@ public class RCTMGLStyleFactory {
|
|
|
1823
1826
|
}
|
|
1824
1827
|
}
|
|
1825
1828
|
|
|
1826
|
-
public static void setHeatmapIntensity(HeatmapLayer layer,
|
|
1829
|
+
public static void setHeatmapIntensity(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1827
1830
|
if (styleValue.isExpression()) {
|
|
1828
1831
|
layer.setProperties(PropertyFactory.heatmapIntensity(styleValue.getExpression()));
|
|
1829
1832
|
} else {
|
|
@@ -1832,14 +1835,14 @@ public class RCTMGLStyleFactory {
|
|
|
1832
1835
|
}
|
|
1833
1836
|
|
|
1834
1837
|
|
|
1835
|
-
public static void setHeatmapIntensityTransition(HeatmapLayer layer,
|
|
1838
|
+
public static void setHeatmapIntensityTransition(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1836
1839
|
TransitionOptions transition = styleValue.getTransition();
|
|
1837
1840
|
if (transition != null) {
|
|
1838
1841
|
layer.setHeatmapIntensityTransition(transition);
|
|
1839
1842
|
}
|
|
1840
1843
|
}
|
|
1841
1844
|
|
|
1842
|
-
public static void setHeatmapColor(HeatmapLayer layer,
|
|
1845
|
+
public static void setHeatmapColor(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1843
1846
|
if (styleValue.isExpression()) {
|
|
1844
1847
|
layer.setProperties(PropertyFactory.heatmapColor(styleValue.getExpression()));
|
|
1845
1848
|
} else {
|
|
@@ -1847,7 +1850,7 @@ public class RCTMGLStyleFactory {
|
|
|
1847
1850
|
}
|
|
1848
1851
|
}
|
|
1849
1852
|
|
|
1850
|
-
public static void setHeatmapOpacity(HeatmapLayer layer,
|
|
1853
|
+
public static void setHeatmapOpacity(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1851
1854
|
if (styleValue.isExpression()) {
|
|
1852
1855
|
layer.setProperties(PropertyFactory.heatmapOpacity(styleValue.getExpression()));
|
|
1853
1856
|
} else {
|
|
@@ -1856,18 +1859,18 @@ public class RCTMGLStyleFactory {
|
|
|
1856
1859
|
}
|
|
1857
1860
|
|
|
1858
1861
|
|
|
1859
|
-
public static void setHeatmapOpacityTransition(HeatmapLayer layer,
|
|
1862
|
+
public static void setHeatmapOpacityTransition(HeatmapLayer layer, RCTMLNStyleValue styleValue) {
|
|
1860
1863
|
TransitionOptions transition = styleValue.getTransition();
|
|
1861
1864
|
if (transition != null) {
|
|
1862
1865
|
layer.setHeatmapOpacityTransition(transition);
|
|
1863
1866
|
}
|
|
1864
1867
|
}
|
|
1865
1868
|
|
|
1866
|
-
public static void setVisibility(FillExtrusionLayer layer,
|
|
1869
|
+
public static void setVisibility(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1867
1870
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
1868
1871
|
}
|
|
1869
1872
|
|
|
1870
|
-
public static void setFillExtrusionOpacity(FillExtrusionLayer layer,
|
|
1873
|
+
public static void setFillExtrusionOpacity(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1871
1874
|
if (styleValue.isExpression()) {
|
|
1872
1875
|
layer.setProperties(PropertyFactory.fillExtrusionOpacity(styleValue.getExpression()));
|
|
1873
1876
|
} else {
|
|
@@ -1876,14 +1879,14 @@ public class RCTMGLStyleFactory {
|
|
|
1876
1879
|
}
|
|
1877
1880
|
|
|
1878
1881
|
|
|
1879
|
-
public static void setFillExtrusionOpacityTransition(FillExtrusionLayer layer,
|
|
1882
|
+
public static void setFillExtrusionOpacityTransition(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1880
1883
|
TransitionOptions transition = styleValue.getTransition();
|
|
1881
1884
|
if (transition != null) {
|
|
1882
1885
|
layer.setFillExtrusionOpacityTransition(transition);
|
|
1883
1886
|
}
|
|
1884
1887
|
}
|
|
1885
1888
|
|
|
1886
|
-
public static void setFillExtrusionColor(FillExtrusionLayer layer,
|
|
1889
|
+
public static void setFillExtrusionColor(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1887
1890
|
if (styleValue.isExpression()) {
|
|
1888
1891
|
layer.setProperties(PropertyFactory.fillExtrusionColor(styleValue.getExpression()));
|
|
1889
1892
|
} else {
|
|
@@ -1892,14 +1895,14 @@ public class RCTMGLStyleFactory {
|
|
|
1892
1895
|
}
|
|
1893
1896
|
|
|
1894
1897
|
|
|
1895
|
-
public static void setFillExtrusionColorTransition(FillExtrusionLayer layer,
|
|
1898
|
+
public static void setFillExtrusionColorTransition(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1896
1899
|
TransitionOptions transition = styleValue.getTransition();
|
|
1897
1900
|
if (transition != null) {
|
|
1898
1901
|
layer.setFillExtrusionColorTransition(transition);
|
|
1899
1902
|
}
|
|
1900
1903
|
}
|
|
1901
1904
|
|
|
1902
|
-
public static void setFillExtrusionTranslate(FillExtrusionLayer layer,
|
|
1905
|
+
public static void setFillExtrusionTranslate(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1903
1906
|
if (styleValue.isExpression()) {
|
|
1904
1907
|
layer.setProperties(PropertyFactory.fillExtrusionTranslate(styleValue.getExpression()));
|
|
1905
1908
|
} else {
|
|
@@ -1908,14 +1911,14 @@ public class RCTMGLStyleFactory {
|
|
|
1908
1911
|
}
|
|
1909
1912
|
|
|
1910
1913
|
|
|
1911
|
-
public static void setFillExtrusionTranslateTransition(FillExtrusionLayer layer,
|
|
1914
|
+
public static void setFillExtrusionTranslateTransition(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1912
1915
|
TransitionOptions transition = styleValue.getTransition();
|
|
1913
1916
|
if (transition != null) {
|
|
1914
1917
|
layer.setFillExtrusionTranslateTransition(transition);
|
|
1915
1918
|
}
|
|
1916
1919
|
}
|
|
1917
1920
|
|
|
1918
|
-
public static void setFillExtrusionTranslateAnchor(FillExtrusionLayer layer,
|
|
1921
|
+
public static void setFillExtrusionTranslateAnchor(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1919
1922
|
if (styleValue.isExpression()) {
|
|
1920
1923
|
layer.setProperties(PropertyFactory.fillExtrusionTranslateAnchor(styleValue.getExpression()));
|
|
1921
1924
|
} else {
|
|
@@ -1923,7 +1926,7 @@ public class RCTMGLStyleFactory {
|
|
|
1923
1926
|
}
|
|
1924
1927
|
}
|
|
1925
1928
|
|
|
1926
|
-
public static void setFillExtrusionPattern(FillExtrusionLayer layer,
|
|
1929
|
+
public static void setFillExtrusionPattern(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1927
1930
|
if (styleValue.isExpression()) {
|
|
1928
1931
|
if (styleValue.isImageStringValue()) {
|
|
1929
1932
|
layer.setProperties(PropertyFactory.fillExtrusionPattern(styleValue.getImageStringValue()));
|
|
@@ -1936,14 +1939,14 @@ public class RCTMGLStyleFactory {
|
|
|
1936
1939
|
}
|
|
1937
1940
|
|
|
1938
1941
|
|
|
1939
|
-
public static void setFillExtrusionPatternTransition(FillExtrusionLayer layer,
|
|
1942
|
+
public static void setFillExtrusionPatternTransition(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1940
1943
|
TransitionOptions transition = styleValue.getTransition();
|
|
1941
1944
|
if (transition != null) {
|
|
1942
1945
|
layer.setFillExtrusionPatternTransition(transition);
|
|
1943
1946
|
}
|
|
1944
1947
|
}
|
|
1945
1948
|
|
|
1946
|
-
public static void setFillExtrusionHeight(FillExtrusionLayer layer,
|
|
1949
|
+
public static void setFillExtrusionHeight(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1947
1950
|
if (styleValue.isExpression()) {
|
|
1948
1951
|
layer.setProperties(PropertyFactory.fillExtrusionHeight(styleValue.getExpression()));
|
|
1949
1952
|
} else {
|
|
@@ -1952,14 +1955,14 @@ public class RCTMGLStyleFactory {
|
|
|
1952
1955
|
}
|
|
1953
1956
|
|
|
1954
1957
|
|
|
1955
|
-
public static void setFillExtrusionHeightTransition(FillExtrusionLayer layer,
|
|
1958
|
+
public static void setFillExtrusionHeightTransition(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1956
1959
|
TransitionOptions transition = styleValue.getTransition();
|
|
1957
1960
|
if (transition != null) {
|
|
1958
1961
|
layer.setFillExtrusionHeightTransition(transition);
|
|
1959
1962
|
}
|
|
1960
1963
|
}
|
|
1961
1964
|
|
|
1962
|
-
public static void setFillExtrusionBase(FillExtrusionLayer layer,
|
|
1965
|
+
public static void setFillExtrusionBase(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1963
1966
|
if (styleValue.isExpression()) {
|
|
1964
1967
|
layer.setProperties(PropertyFactory.fillExtrusionBase(styleValue.getExpression()));
|
|
1965
1968
|
} else {
|
|
@@ -1968,18 +1971,26 @@ public class RCTMGLStyleFactory {
|
|
|
1968
1971
|
}
|
|
1969
1972
|
|
|
1970
1973
|
|
|
1971
|
-
public static void setFillExtrusionBaseTransition(FillExtrusionLayer layer,
|
|
1974
|
+
public static void setFillExtrusionBaseTransition(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1972
1975
|
TransitionOptions transition = styleValue.getTransition();
|
|
1973
1976
|
if (transition != null) {
|
|
1974
1977
|
layer.setFillExtrusionBaseTransition(transition);
|
|
1975
1978
|
}
|
|
1976
1979
|
}
|
|
1977
1980
|
|
|
1978
|
-
public static void
|
|
1981
|
+
public static void setFillExtrusionVerticalGradient(FillExtrusionLayer layer, RCTMLNStyleValue styleValue) {
|
|
1982
|
+
if (styleValue.isExpression()) {
|
|
1983
|
+
layer.setProperties(PropertyFactory.fillExtrusionVerticalGradient(styleValue.getExpression()));
|
|
1984
|
+
} else {
|
|
1985
|
+
layer.setProperties(PropertyFactory.fillExtrusionVerticalGradient(styleValue.getBoolean(VALUE_KEY)));
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
public static void setVisibility(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
1979
1990
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
1980
1991
|
}
|
|
1981
1992
|
|
|
1982
|
-
public static void setRasterOpacity(RasterLayer layer,
|
|
1993
|
+
public static void setRasterOpacity(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
1983
1994
|
if (styleValue.isExpression()) {
|
|
1984
1995
|
layer.setProperties(PropertyFactory.rasterOpacity(styleValue.getExpression()));
|
|
1985
1996
|
} else {
|
|
@@ -1988,14 +1999,14 @@ public class RCTMGLStyleFactory {
|
|
|
1988
1999
|
}
|
|
1989
2000
|
|
|
1990
2001
|
|
|
1991
|
-
public static void setRasterOpacityTransition(RasterLayer layer,
|
|
2002
|
+
public static void setRasterOpacityTransition(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
1992
2003
|
TransitionOptions transition = styleValue.getTransition();
|
|
1993
2004
|
if (transition != null) {
|
|
1994
2005
|
layer.setRasterOpacityTransition(transition);
|
|
1995
2006
|
}
|
|
1996
2007
|
}
|
|
1997
2008
|
|
|
1998
|
-
public static void setRasterHueRotate(RasterLayer layer,
|
|
2009
|
+
public static void setRasterHueRotate(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
1999
2010
|
if (styleValue.isExpression()) {
|
|
2000
2011
|
layer.setProperties(PropertyFactory.rasterHueRotate(styleValue.getExpression()));
|
|
2001
2012
|
} else {
|
|
@@ -2004,14 +2015,14 @@ public class RCTMGLStyleFactory {
|
|
|
2004
2015
|
}
|
|
2005
2016
|
|
|
2006
2017
|
|
|
2007
|
-
public static void setRasterHueRotateTransition(RasterLayer layer,
|
|
2018
|
+
public static void setRasterHueRotateTransition(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2008
2019
|
TransitionOptions transition = styleValue.getTransition();
|
|
2009
2020
|
if (transition != null) {
|
|
2010
2021
|
layer.setRasterHueRotateTransition(transition);
|
|
2011
2022
|
}
|
|
2012
2023
|
}
|
|
2013
2024
|
|
|
2014
|
-
public static void setRasterBrightnessMin(RasterLayer layer,
|
|
2025
|
+
public static void setRasterBrightnessMin(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2015
2026
|
if (styleValue.isExpression()) {
|
|
2016
2027
|
layer.setProperties(PropertyFactory.rasterBrightnessMin(styleValue.getExpression()));
|
|
2017
2028
|
} else {
|
|
@@ -2020,14 +2031,14 @@ public class RCTMGLStyleFactory {
|
|
|
2020
2031
|
}
|
|
2021
2032
|
|
|
2022
2033
|
|
|
2023
|
-
public static void setRasterBrightnessMinTransition(RasterLayer layer,
|
|
2034
|
+
public static void setRasterBrightnessMinTransition(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2024
2035
|
TransitionOptions transition = styleValue.getTransition();
|
|
2025
2036
|
if (transition != null) {
|
|
2026
2037
|
layer.setRasterBrightnessMinTransition(transition);
|
|
2027
2038
|
}
|
|
2028
2039
|
}
|
|
2029
2040
|
|
|
2030
|
-
public static void setRasterBrightnessMax(RasterLayer layer,
|
|
2041
|
+
public static void setRasterBrightnessMax(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2031
2042
|
if (styleValue.isExpression()) {
|
|
2032
2043
|
layer.setProperties(PropertyFactory.rasterBrightnessMax(styleValue.getExpression()));
|
|
2033
2044
|
} else {
|
|
@@ -2036,14 +2047,14 @@ public class RCTMGLStyleFactory {
|
|
|
2036
2047
|
}
|
|
2037
2048
|
|
|
2038
2049
|
|
|
2039
|
-
public static void setRasterBrightnessMaxTransition(RasterLayer layer,
|
|
2050
|
+
public static void setRasterBrightnessMaxTransition(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2040
2051
|
TransitionOptions transition = styleValue.getTransition();
|
|
2041
2052
|
if (transition != null) {
|
|
2042
2053
|
layer.setRasterBrightnessMaxTransition(transition);
|
|
2043
2054
|
}
|
|
2044
2055
|
}
|
|
2045
2056
|
|
|
2046
|
-
public static void setRasterSaturation(RasterLayer layer,
|
|
2057
|
+
public static void setRasterSaturation(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2047
2058
|
if (styleValue.isExpression()) {
|
|
2048
2059
|
layer.setProperties(PropertyFactory.rasterSaturation(styleValue.getExpression()));
|
|
2049
2060
|
} else {
|
|
@@ -2052,14 +2063,14 @@ public class RCTMGLStyleFactory {
|
|
|
2052
2063
|
}
|
|
2053
2064
|
|
|
2054
2065
|
|
|
2055
|
-
public static void setRasterSaturationTransition(RasterLayer layer,
|
|
2066
|
+
public static void setRasterSaturationTransition(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2056
2067
|
TransitionOptions transition = styleValue.getTransition();
|
|
2057
2068
|
if (transition != null) {
|
|
2058
2069
|
layer.setRasterSaturationTransition(transition);
|
|
2059
2070
|
}
|
|
2060
2071
|
}
|
|
2061
2072
|
|
|
2062
|
-
public static void setRasterContrast(RasterLayer layer,
|
|
2073
|
+
public static void setRasterContrast(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2063
2074
|
if (styleValue.isExpression()) {
|
|
2064
2075
|
layer.setProperties(PropertyFactory.rasterContrast(styleValue.getExpression()));
|
|
2065
2076
|
} else {
|
|
@@ -2068,14 +2079,14 @@ public class RCTMGLStyleFactory {
|
|
|
2068
2079
|
}
|
|
2069
2080
|
|
|
2070
2081
|
|
|
2071
|
-
public static void setRasterContrastTransition(RasterLayer layer,
|
|
2082
|
+
public static void setRasterContrastTransition(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2072
2083
|
TransitionOptions transition = styleValue.getTransition();
|
|
2073
2084
|
if (transition != null) {
|
|
2074
2085
|
layer.setRasterContrastTransition(transition);
|
|
2075
2086
|
}
|
|
2076
2087
|
}
|
|
2077
2088
|
|
|
2078
|
-
public static void setRasterResampling(RasterLayer layer,
|
|
2089
|
+
public static void setRasterResampling(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2079
2090
|
if (styleValue.isExpression()) {
|
|
2080
2091
|
layer.setProperties(PropertyFactory.rasterResampling(styleValue.getExpression()));
|
|
2081
2092
|
} else {
|
|
@@ -2083,7 +2094,7 @@ public class RCTMGLStyleFactory {
|
|
|
2083
2094
|
}
|
|
2084
2095
|
}
|
|
2085
2096
|
|
|
2086
|
-
public static void setRasterFadeDuration(RasterLayer layer,
|
|
2097
|
+
public static void setRasterFadeDuration(RasterLayer layer, RCTMLNStyleValue styleValue) {
|
|
2087
2098
|
if (styleValue.isExpression()) {
|
|
2088
2099
|
layer.setProperties(PropertyFactory.rasterFadeDuration(styleValue.getExpression()));
|
|
2089
2100
|
} else {
|
|
@@ -2091,11 +2102,11 @@ public class RCTMGLStyleFactory {
|
|
|
2091
2102
|
}
|
|
2092
2103
|
}
|
|
2093
2104
|
|
|
2094
|
-
public static void setVisibility(HillshadeLayer layer,
|
|
2105
|
+
public static void setVisibility(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2095
2106
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
2096
2107
|
}
|
|
2097
2108
|
|
|
2098
|
-
public static void setHillshadeIlluminationDirection(HillshadeLayer layer,
|
|
2109
|
+
public static void setHillshadeIlluminationDirection(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2099
2110
|
if (styleValue.isExpression()) {
|
|
2100
2111
|
layer.setProperties(PropertyFactory.hillshadeIlluminationDirection(styleValue.getExpression()));
|
|
2101
2112
|
} else {
|
|
@@ -2103,7 +2114,7 @@ public class RCTMGLStyleFactory {
|
|
|
2103
2114
|
}
|
|
2104
2115
|
}
|
|
2105
2116
|
|
|
2106
|
-
public static void setHillshadeIlluminationAnchor(HillshadeLayer layer,
|
|
2117
|
+
public static void setHillshadeIlluminationAnchor(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2107
2118
|
if (styleValue.isExpression()) {
|
|
2108
2119
|
layer.setProperties(PropertyFactory.hillshadeIlluminationAnchor(styleValue.getExpression()));
|
|
2109
2120
|
} else {
|
|
@@ -2111,7 +2122,7 @@ public class RCTMGLStyleFactory {
|
|
|
2111
2122
|
}
|
|
2112
2123
|
}
|
|
2113
2124
|
|
|
2114
|
-
public static void setHillshadeExaggeration(HillshadeLayer layer,
|
|
2125
|
+
public static void setHillshadeExaggeration(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2115
2126
|
if (styleValue.isExpression()) {
|
|
2116
2127
|
layer.setProperties(PropertyFactory.hillshadeExaggeration(styleValue.getExpression()));
|
|
2117
2128
|
} else {
|
|
@@ -2120,14 +2131,14 @@ public class RCTMGLStyleFactory {
|
|
|
2120
2131
|
}
|
|
2121
2132
|
|
|
2122
2133
|
|
|
2123
|
-
public static void setHillshadeExaggerationTransition(HillshadeLayer layer,
|
|
2134
|
+
public static void setHillshadeExaggerationTransition(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2124
2135
|
TransitionOptions transition = styleValue.getTransition();
|
|
2125
2136
|
if (transition != null) {
|
|
2126
2137
|
layer.setHillshadeExaggerationTransition(transition);
|
|
2127
2138
|
}
|
|
2128
2139
|
}
|
|
2129
2140
|
|
|
2130
|
-
public static void setHillshadeShadowColor(HillshadeLayer layer,
|
|
2141
|
+
public static void setHillshadeShadowColor(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2131
2142
|
if (styleValue.isExpression()) {
|
|
2132
2143
|
layer.setProperties(PropertyFactory.hillshadeShadowColor(styleValue.getExpression()));
|
|
2133
2144
|
} else {
|
|
@@ -2136,14 +2147,14 @@ public class RCTMGLStyleFactory {
|
|
|
2136
2147
|
}
|
|
2137
2148
|
|
|
2138
2149
|
|
|
2139
|
-
public static void setHillshadeShadowColorTransition(HillshadeLayer layer,
|
|
2150
|
+
public static void setHillshadeShadowColorTransition(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2140
2151
|
TransitionOptions transition = styleValue.getTransition();
|
|
2141
2152
|
if (transition != null) {
|
|
2142
2153
|
layer.setHillshadeShadowColorTransition(transition);
|
|
2143
2154
|
}
|
|
2144
2155
|
}
|
|
2145
2156
|
|
|
2146
|
-
public static void setHillshadeHighlightColor(HillshadeLayer layer,
|
|
2157
|
+
public static void setHillshadeHighlightColor(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2147
2158
|
if (styleValue.isExpression()) {
|
|
2148
2159
|
layer.setProperties(PropertyFactory.hillshadeHighlightColor(styleValue.getExpression()));
|
|
2149
2160
|
} else {
|
|
@@ -2152,14 +2163,14 @@ public class RCTMGLStyleFactory {
|
|
|
2152
2163
|
}
|
|
2153
2164
|
|
|
2154
2165
|
|
|
2155
|
-
public static void setHillshadeHighlightColorTransition(HillshadeLayer layer,
|
|
2166
|
+
public static void setHillshadeHighlightColorTransition(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2156
2167
|
TransitionOptions transition = styleValue.getTransition();
|
|
2157
2168
|
if (transition != null) {
|
|
2158
2169
|
layer.setHillshadeHighlightColorTransition(transition);
|
|
2159
2170
|
}
|
|
2160
2171
|
}
|
|
2161
2172
|
|
|
2162
|
-
public static void setHillshadeAccentColor(HillshadeLayer layer,
|
|
2173
|
+
public static void setHillshadeAccentColor(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2163
2174
|
if (styleValue.isExpression()) {
|
|
2164
2175
|
layer.setProperties(PropertyFactory.hillshadeAccentColor(styleValue.getExpression()));
|
|
2165
2176
|
} else {
|
|
@@ -2168,18 +2179,18 @@ public class RCTMGLStyleFactory {
|
|
|
2168
2179
|
}
|
|
2169
2180
|
|
|
2170
2181
|
|
|
2171
|
-
public static void setHillshadeAccentColorTransition(HillshadeLayer layer,
|
|
2182
|
+
public static void setHillshadeAccentColorTransition(HillshadeLayer layer, RCTMLNStyleValue styleValue) {
|
|
2172
2183
|
TransitionOptions transition = styleValue.getTransition();
|
|
2173
2184
|
if (transition != null) {
|
|
2174
2185
|
layer.setHillshadeAccentColorTransition(transition);
|
|
2175
2186
|
}
|
|
2176
2187
|
}
|
|
2177
2188
|
|
|
2178
|
-
public static void setVisibility(BackgroundLayer layer,
|
|
2189
|
+
public static void setVisibility(BackgroundLayer layer, RCTMLNStyleValue styleValue) {
|
|
2179
2190
|
layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
|
|
2180
2191
|
}
|
|
2181
2192
|
|
|
2182
|
-
public static void setBackgroundColor(BackgroundLayer layer,
|
|
2193
|
+
public static void setBackgroundColor(BackgroundLayer layer, RCTMLNStyleValue styleValue) {
|
|
2183
2194
|
if (styleValue.isExpression()) {
|
|
2184
2195
|
layer.setProperties(PropertyFactory.backgroundColor(styleValue.getExpression()));
|
|
2185
2196
|
} else {
|
|
@@ -2188,14 +2199,14 @@ public class RCTMGLStyleFactory {
|
|
|
2188
2199
|
}
|
|
2189
2200
|
|
|
2190
2201
|
|
|
2191
|
-
public static void setBackgroundColorTransition(BackgroundLayer layer,
|
|
2202
|
+
public static void setBackgroundColorTransition(BackgroundLayer layer, RCTMLNStyleValue styleValue) {
|
|
2192
2203
|
TransitionOptions transition = styleValue.getTransition();
|
|
2193
2204
|
if (transition != null) {
|
|
2194
2205
|
layer.setBackgroundColorTransition(transition);
|
|
2195
2206
|
}
|
|
2196
2207
|
}
|
|
2197
2208
|
|
|
2198
|
-
public static void setBackgroundPattern(BackgroundLayer layer,
|
|
2209
|
+
public static void setBackgroundPattern(BackgroundLayer layer, RCTMLNStyleValue styleValue) {
|
|
2199
2210
|
if (styleValue.isExpression()) {
|
|
2200
2211
|
if (styleValue.isImageStringValue()) {
|
|
2201
2212
|
layer.setProperties(PropertyFactory.backgroundPattern(styleValue.getImageStringValue()));
|
|
@@ -2208,14 +2219,14 @@ public class RCTMGLStyleFactory {
|
|
|
2208
2219
|
}
|
|
2209
2220
|
|
|
2210
2221
|
|
|
2211
|
-
public static void setBackgroundPatternTransition(BackgroundLayer layer,
|
|
2222
|
+
public static void setBackgroundPatternTransition(BackgroundLayer layer, RCTMLNStyleValue styleValue) {
|
|
2212
2223
|
TransitionOptions transition = styleValue.getTransition();
|
|
2213
2224
|
if (transition != null) {
|
|
2214
2225
|
layer.setBackgroundPatternTransition(transition);
|
|
2215
2226
|
}
|
|
2216
2227
|
}
|
|
2217
2228
|
|
|
2218
|
-
public static void setBackgroundOpacity(BackgroundLayer layer,
|
|
2229
|
+
public static void setBackgroundOpacity(BackgroundLayer layer, RCTMLNStyleValue styleValue) {
|
|
2219
2230
|
if (styleValue.isExpression()) {
|
|
2220
2231
|
layer.setProperties(PropertyFactory.backgroundOpacity(styleValue.getExpression()));
|
|
2221
2232
|
} else {
|
|
@@ -2224,48 +2235,48 @@ public class RCTMGLStyleFactory {
|
|
|
2224
2235
|
}
|
|
2225
2236
|
|
|
2226
2237
|
|
|
2227
|
-
public static void setBackgroundOpacityTransition(BackgroundLayer layer,
|
|
2238
|
+
public static void setBackgroundOpacityTransition(BackgroundLayer layer, RCTMLNStyleValue styleValue) {
|
|
2228
2239
|
TransitionOptions transition = styleValue.getTransition();
|
|
2229
2240
|
if (transition != null) {
|
|
2230
2241
|
layer.setBackgroundOpacityTransition(transition);
|
|
2231
2242
|
}
|
|
2232
2243
|
}
|
|
2233
2244
|
|
|
2234
|
-
public static void setAnchor(Light layer,
|
|
2245
|
+
public static void setAnchor(Light layer, RCTMLNStyleValue styleValue) {
|
|
2235
2246
|
layer.setAnchor(styleValue.getString(VALUE_KEY));
|
|
2236
2247
|
}
|
|
2237
2248
|
|
|
2238
|
-
public static void setPosition(Light layer,
|
|
2249
|
+
public static void setPosition(Light layer, RCTMLNStyleValue styleValue) {
|
|
2239
2250
|
Float[] values = styleValue.getFloatArray(VALUE_KEY);
|
|
2240
2251
|
layer.setPosition(Position.fromPosition(values[0], values[1], values[2]));
|
|
2241
2252
|
}
|
|
2242
2253
|
|
|
2243
2254
|
|
|
2244
|
-
public static void setPositionTransition(Light layer,
|
|
2255
|
+
public static void setPositionTransition(Light layer, RCTMLNStyleValue styleValue) {
|
|
2245
2256
|
TransitionOptions transition = styleValue.getTransition();
|
|
2246
2257
|
if (transition != null) {
|
|
2247
2258
|
layer.setPositionTransition(transition);
|
|
2248
2259
|
}
|
|
2249
2260
|
}
|
|
2250
2261
|
|
|
2251
|
-
public static void setColor(Light layer,
|
|
2262
|
+
public static void setColor(Light layer, RCTMLNStyleValue styleValue) {
|
|
2252
2263
|
layer.setColor(styleValue.getInt(VALUE_KEY));
|
|
2253
2264
|
}
|
|
2254
2265
|
|
|
2255
2266
|
|
|
2256
|
-
public static void setColorTransition(Light layer,
|
|
2267
|
+
public static void setColorTransition(Light layer, RCTMLNStyleValue styleValue) {
|
|
2257
2268
|
TransitionOptions transition = styleValue.getTransition();
|
|
2258
2269
|
if (transition != null) {
|
|
2259
2270
|
layer.setColorTransition(transition);
|
|
2260
2271
|
}
|
|
2261
2272
|
}
|
|
2262
2273
|
|
|
2263
|
-
public static void setIntensity(Light layer,
|
|
2274
|
+
public static void setIntensity(Light layer, RCTMLNStyleValue styleValue) {
|
|
2264
2275
|
layer.setIntensity(styleValue.getFloat(VALUE_KEY));
|
|
2265
2276
|
}
|
|
2266
2277
|
|
|
2267
2278
|
|
|
2268
|
-
public static void setIntensityTransition(Light layer,
|
|
2279
|
+
public static void setIntensityTransition(Light layer, RCTMLNStyleValue styleValue) {
|
|
2269
2280
|
TransitionOptions transition = styleValue.getTransition();
|
|
2270
2281
|
if (transition != null) {
|
|
2271
2282
|
layer.setIntensityTransition(transition);
|