@maplibre/maplibre-react-native 8.6.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +3 -0
- package/.eslintrc.js +158 -0
- package/.gitattributes +1 -0
- package/.nvmrc +1 -0
- package/.prettierrc.js +7 -0
- package/.sonarcloud.properties +15 -0
- package/CHANGELOG.md +367 -0
- package/CODE_OF_CONDUCT.md +2 -0
- package/CONTRIBUTING.md +34 -0
- package/LICENSE.md +9 -0
- package/README.md +224 -0
- package/RELEASE.md +30 -0
- package/android/build.gradle +34 -0
- package/android/install.md +16 -0
- package/android/rctmgl/.settings/org.eclipse.buildship.core.prefs +2 -0
- package/android/rctmgl/build.gradle +61 -0
- package/android/rctmgl/proguard-rules.pro +25 -0
- package/android/rctmgl/src/main/AndroidManifest.xml +4 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/RCTMGLPackage.java +99 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractEvent.java +35 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractEventEmitter.java +80 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/AbstractMapFeature.java +19 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/MarkerView.java +23 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/MarkerViewManager.java +67 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCallout.java +15 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLCalloutManager.java +22 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.java +112 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.java +45 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotation.java +360 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/annotation/RCTMGLPointAnnotationManager.java +88 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraStop.java +249 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraUpdateItem.java +125 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraUpdateQueue.java +73 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCamera.java +530 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/RCTMGLCameraManager.java +101 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/constants/CameraMode.java +22 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImages.java +234 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/images/RCTMGLImagesManager.java +103 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/LocationComponentManager.java +149 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocation.java +66 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/location/RCTMGLNativeUserLocationManager.java +35 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/LayerSourceInfo.java +59 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapView.java +16 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLAndroidTextureMapViewManager.java +31 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java +1527 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapViewManager.java +353 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/helpers/CameraChangeTracker.java +41 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyle.java +83 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFactory.java +2242 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleFunctionParser.java +108 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/RCTMGLStyleValue.java +212 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTLayer.java +287 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayer.java +27 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLBackgroundLayerManager.java +64 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLCircleLayerManager.java +77 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillExtrusionLayerManager.java +80 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLFillLayerManager.java +80 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLHeatmapLayerManager.java +77 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLLineLayerManager.java +79 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayer.java +27 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLRasterLayerManager.java +64 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayer.java +55 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/layers/RCTMGLSymbolLayerManager.java +75 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLight.java +65 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/light/RCTMGLLightManager.java +29 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSource.java +81 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLImageSourceManager.java +72 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSource.java +45 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLRasterSourceManager.java +44 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSource.java +302 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSourceManager.java +227 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSource.java +97 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLTileSourceManager.java +80 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSource.java +64 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLVectorSourceManager.java +84 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTSource.java +244 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/AbstractEvent.java +66 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/AndroidCallbackEvent.java +38 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/EventEmitter.java +45 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/FeatureClickEvent.java +79 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/IEvent.java +18 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/ImageMissingEvent.java +42 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/LocationEvent.java +100 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapChangeEvent.java +47 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapClickEvent.java +51 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/MapUserTrackingModeEvent.java +36 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/OfflineEvent.java +29 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/PointAnnotationClickEvent.java +46 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/PointAnnotationDragEvent.java +51 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/constants/EventKeys.java +39 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/events/constants/EventTypes.java +51 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/http/CustomHeadersInterceptor.java +38 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/LocationManager.java +168 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserLocation.java +63 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserLocationVerticalAlignment.java +11 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserTrackingMode.java +63 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/location/UserTrackingState.java +19 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLocationModule.java +158 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLLogging.java +140 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLModule.java +348 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLOfflineModule.java +597 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/modules/RCTMGLSnapshotModule.java +139 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/BitmapUtils.java +129 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ConvertUtils.java +257 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/DownloadMapImageTask.java +159 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ExpressionParser.java +74 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/GeoJSONUtils.java +209 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/GeoViewport.java +38 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ImageEntry.java +25 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/ResourceUtils.java +30 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/SimpleEventCallback.java +30 -0
- package/android/rctmgl/src/main/java/com/mapbox/rctmgl/utils/SphericalMercator.java +69 -0
- package/android/rctmgl/src/main/res/drawable/empty.xml +5 -0
- package/android/rctmgl/src/main/res/drawable/empty_drawable.png +0 -0
- package/android/rctmgl/src/main/res/drawable-xxhdpi/red_marker.png +0 -0
- package/android/rctmgl/src/main/res/layout/annotation.xml +17 -0
- package/android/rctmgl/src/main/res/values/strings.xml +3 -0
- package/android/settings.gradle +1 -0
- package/app.plugin.js +1 -0
- package/assets/heading.png +0 -0
- package/assets/heading@2x.png +0 -0
- package/assets/heading@3x.png +0 -0
- package/assets/indoor_building_map_android.png +0 -0
- package/assets/indoor_building_map_ios.png +0 -0
- package/assets/mapbox_logo.png +0 -0
- package/babel.config.js +9 -0
- package/docs/Annotation.md +39 -0
- package/docs/Annotations.md +17 -0
- package/docs/BackgroundLayer.md +166 -0
- package/docs/Callout.md +15 -0
- package/docs/Camera.md +162 -0
- package/docs/CircleLayer.md +453 -0
- package/docs/CustomHttpHeaders.md +87 -0
- package/docs/FillExtrusionLayer.md +327 -0
- package/docs/FillLayer.md +293 -0
- package/docs/GettingStarted.md +72 -0
- package/docs/HeadingIndicator.md +10 -0
- package/docs/HeatmapLayer.md +215 -0
- package/docs/ImageSource.md +12 -0
- package/docs/Images.md +12 -0
- package/docs/Light.md +159 -0
- package/docs/LineLayer.md +567 -0
- package/docs/Logger.md +23 -0
- package/docs/MapView.md +211 -0
- package/docs/MapboxGL.md +65 -0
- package/docs/MarkerView.md +14 -0
- package/docs/NativeUserLocation.md +11 -0
- package/docs/OfflineManager.md +246 -0
- package/docs/PointAnnotation.md +34 -0
- package/docs/RasterLayer.md +357 -0
- package/docs/RasterSource.md +17 -0
- package/docs/ShapeSource.md +100 -0
- package/docs/Style.md +10 -0
- package/docs/StyleSheet.md +430 -0
- package/docs/SymbolLayer.md +1658 -0
- package/docs/UserLocation.md +39 -0
- package/docs/VectorSource.md +48 -0
- package/docs/docs.json +6093 -0
- package/docs/snapshotManager.md +53 -0
- package/index.d.ts +953 -0
- package/ios/RCTMGL/CameraMode.h +18 -0
- package/ios/RCTMGL/CameraMode.m +18 -0
- package/ios/RCTMGL/CameraStop.h +26 -0
- package/ios/RCTMGL/CameraStop.m +83 -0
- package/ios/RCTMGL/CameraUpdateItem.h +18 -0
- package/ios/RCTMGL/CameraUpdateItem.m +178 -0
- package/ios/RCTMGL/CameraUpdateQueue.h +21 -0
- package/ios/RCTMGL/CameraUpdateQueue.m +74 -0
- package/ios/RCTMGL/FilterParser.h +14 -0
- package/ios/RCTMGL/FilterParser.m +22 -0
- package/ios/RCTMGL/MGLCustomHeaders.h +20 -0
- package/ios/RCTMGL/MGLCustomHeaders.m +98 -0
- package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.h +23 -0
- package/ios/RCTMGL/MGLFaux3DUserLocationAnnotationView.m +474 -0
- package/ios/RCTMGL/MGLModule.h +13 -0
- package/ios/RCTMGL/MGLModule.m +269 -0
- package/ios/RCTMGL/MGLOfflineModule.h +19 -0
- package/ios/RCTMGL/MGLOfflineModule.m +516 -0
- package/ios/RCTMGL/MGLSnapshotModule.h +13 -0
- package/ios/RCTMGL/MGLSnapshotModule.m +80 -0
- package/ios/RCTMGL/MGLUserLocationHeadingArrowLayer.h +11 -0
- package/ios/RCTMGL/MGLUserLocationHeadingArrowLayer.m +57 -0
- package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.h +11 -0
- package/ios/RCTMGL/MGLUserLocationHeadingBeamLayer.m +102 -0
- package/ios/RCTMGL/MGLUserLocationHeadingIndicator.h +10 -0
- package/ios/RCTMGL/RCTConvert+Mapbox.h +16 -0
- package/ios/RCTMGL/RCTConvert+Mapbox.m +32 -0
- package/ios/RCTMGL/RCTMGL.h +13 -0
- package/ios/RCTMGL/RCTMGL.m +13 -0
- package/ios/RCTMGL/RCTMGLBackgroundLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLBackgroundLayer.m +27 -0
- package/ios/RCTMGL/RCTMGLBackgroundLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLBackgroundLayerManager.m +35 -0
- package/ios/RCTMGL/RCTMGLCallout.h +15 -0
- package/ios/RCTMGL/RCTMGLCallout.m +74 -0
- package/ios/RCTMGL/RCTMGLCalloutManager.h +13 -0
- package/ios/RCTMGL/RCTMGLCalloutManager.m +21 -0
- package/ios/RCTMGL/RCTMGLCamera.h +39 -0
- package/ios/RCTMGL/RCTMGLCamera.m +258 -0
- package/ios/RCTMGL/RCTMGLCameraManager.h +13 -0
- package/ios/RCTMGL/RCTMGLCameraManager.m +52 -0
- package/ios/RCTMGL/RCTMGLCircleLayer.h +13 -0
- package/ios/RCTMGL/RCTMGLCircleLayer.m +34 -0
- package/ios/RCTMGL/RCTMGLCircleLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLCircleLayerManager.m +39 -0
- package/ios/RCTMGL/RCTMGLEvent.h +21 -0
- package/ios/RCTMGL/RCTMGLEvent.m +47 -0
- package/ios/RCTMGL/RCTMGLEventProtocol.h +16 -0
- package/ios/RCTMGL/RCTMGLEventTypes.h +50 -0
- package/ios/RCTMGL/RCTMGLEventTypes.m +49 -0
- package/ios/RCTMGL/RCTMGLFillExtrusionLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLFillExtrusionLayer.m +32 -0
- package/ios/RCTMGL/RCTMGLFillExtrusionLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLFillExtrusionLayerManager.m +39 -0
- package/ios/RCTMGL/RCTMGLFillLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLFillLayer.m +33 -0
- package/ios/RCTMGL/RCTMGLFillLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLFillLayerManager.m +37 -0
- package/ios/RCTMGL/RCTMGLHeatmapLayer.h +12 -0
- package/ios/RCTMGL/RCTMGLHeatmapLayer.m +30 -0
- package/ios/RCTMGL/RCTMGLHeatmapLayerManager.h +12 -0
- package/ios/RCTMGL/RCTMGLHeatmapLayerManager.m +38 -0
- package/ios/RCTMGL/RCTMGLImageQueue.h +19 -0
- package/ios/RCTMGL/RCTMGLImageQueue.m +57 -0
- package/ios/RCTMGL/RCTMGLImageQueueOperation.h +17 -0
- package/ios/RCTMGL/RCTMGLImageQueueOperation.m +138 -0
- package/ios/RCTMGL/RCTMGLImageSource.h +16 -0
- package/ios/RCTMGL/RCTMGLImageSource.m +60 -0
- package/ios/RCTMGL/RCTMGLImageSourceManager.h +13 -0
- package/ios/RCTMGL/RCTMGLImageSourceManager.m +25 -0
- package/ios/RCTMGL/RCTMGLImages.h +25 -0
- package/ios/RCTMGL/RCTMGLImages.m +126 -0
- package/ios/RCTMGL/RCTMGLImagesManager.h +5 -0
- package/ios/RCTMGL/RCTMGLImagesManager.m +21 -0
- package/ios/RCTMGL/RCTMGLLayer.h +52 -0
- package/ios/RCTMGL/RCTMGLLayer.m +236 -0
- package/ios/RCTMGL/RCTMGLLight.h +17 -0
- package/ios/RCTMGL/RCTMGLLight.m +46 -0
- package/ios/RCTMGL/RCTMGLLightManager.h +13 -0
- package/ios/RCTMGL/RCTMGLLightManager.m +23 -0
- package/ios/RCTMGL/RCTMGLLineLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLLineLayer.m +33 -0
- package/ios/RCTMGL/RCTMGLLineLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLLineLayerManager.m +40 -0
- package/ios/RCTMGL/RCTMGLLocation.h +19 -0
- package/ios/RCTMGL/RCTMGLLocation.m +32 -0
- package/ios/RCTMGL/RCTMGLLocationManager.h +30 -0
- package/ios/RCTMGL/RCTMGLLocationManager.m +180 -0
- package/ios/RCTMGL/RCTMGLLocationManagerDelegate.h +20 -0
- package/ios/RCTMGL/RCTMGLLocationModule.h +15 -0
- package/ios/RCTMGL/RCTMGLLocationModule.m +99 -0
- package/ios/RCTMGL/RCTMGLLogging.h +18 -0
- package/ios/RCTMGL/RCTMGLLogging.m +132 -0
- package/ios/RCTMGL/RCTMGLMapTouchEvent.h +25 -0
- package/ios/RCTMGL/RCTMGLMapTouchEvent.m +77 -0
- package/ios/RCTMGL/RCTMGLMapView.h +91 -0
- package/ios/RCTMGL/RCTMGLMapView.m +536 -0
- package/ios/RCTMGL/RCTMGLMapViewManager.h +17 -0
- package/ios/RCTMGL/RCTMGLMapViewManager.m +625 -0
- package/ios/RCTMGL/RCTMGLNativeUserLocation.h +18 -0
- package/ios/RCTMGL/RCTMGLNativeUserLocation.m +49 -0
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.h +5 -0
- package/ios/RCTMGL/RCTMGLNativeUserLocationManager.m +25 -0
- package/ios/RCTMGL/RCTMGLPointAnnotation.h +41 -0
- package/ios/RCTMGL/RCTMGLPointAnnotation.m +251 -0
- package/ios/RCTMGL/RCTMGLPointAnnotationManager.h +13 -0
- package/ios/RCTMGL/RCTMGLPointAnnotationManager.m +36 -0
- package/ios/RCTMGL/RCTMGLRasterLayer.h +14 -0
- package/ios/RCTMGL/RCTMGLRasterLayer.m +30 -0
- package/ios/RCTMGL/RCTMGLRasterLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLRasterLayerManager.m +35 -0
- package/ios/RCTMGL/RCTMGLRasterSource.h +16 -0
- package/ios/RCTMGL/RCTMGLRasterSource.m +35 -0
- package/ios/RCTMGL/RCTMGLRasterSourceManager.h +13 -0
- package/ios/RCTMGL/RCTMGLRasterSourceManager.m +32 -0
- package/ios/RCTMGL/RCTMGLShapeSource.h +52 -0
- package/ios/RCTMGL/RCTMGLShapeSource.m +180 -0
- package/ios/RCTMGL/RCTMGLShapeSourceManager.h +14 -0
- package/ios/RCTMGL/RCTMGLShapeSourceManager.m +205 -0
- package/ios/RCTMGL/RCTMGLSource.h +35 -0
- package/ios/RCTMGL/RCTMGLSource.m +143 -0
- package/ios/RCTMGL/RCTMGLStyle.h +219 -0
- package/ios/RCTMGL/RCTMGLStyle.m +1654 -0
- package/ios/RCTMGL/RCTMGLStyleValue.h +27 -0
- package/ios/RCTMGL/RCTMGLStyleValue.m +167 -0
- package/ios/RCTMGL/RCTMGLSymbolLayer.h +19 -0
- package/ios/RCTMGL/RCTMGLSymbolLayer.m +121 -0
- package/ios/RCTMGL/RCTMGLSymbolLayerManager.h +13 -0
- package/ios/RCTMGL/RCTMGLSymbolLayerManager.m +40 -0
- package/ios/RCTMGL/RCTMGLTileSource.h +22 -0
- package/ios/RCTMGL/RCTMGLTileSource.m +31 -0
- package/ios/RCTMGL/RCTMGLUserLocation.h +15 -0
- package/ios/RCTMGL/RCTMGLUserLocation.m +38 -0
- package/ios/RCTMGL/RCTMGLUtils.h +31 -0
- package/ios/RCTMGL/RCTMGLUtils.m +218 -0
- package/ios/RCTMGL/RCTMGLVectorLayer.h +15 -0
- package/ios/RCTMGL/RCTMGLVectorLayer.m +59 -0
- package/ios/RCTMGL/RCTMGLVectorSource.h +16 -0
- package/ios/RCTMGL/RCTMGLVectorSource.m +28 -0
- package/ios/RCTMGL/RCTMGLVectorSourceManager.h +14 -0
- package/ios/RCTMGL/RCTMGLVectorSourceManager.m +79 -0
- package/ios/RCTMGL/RNMBImageUtils.h +17 -0
- package/ios/RCTMGL/RNMBImageUtils.m +31 -0
- package/ios/RCTMGL/ViewManager.h +16 -0
- package/ios/RCTMGL/ViewManager.m +63 -0
- package/ios/RCTMGL/index.d.ts +1164 -0
- package/ios/RCTMGL.xcodeproj/project.pbxproj +774 -0
- package/ios/install.md +44 -0
- package/javascript/components/AbstractLayer.js +75 -0
- package/javascript/components/AbstractSource.js +15 -0
- package/javascript/components/BackgroundLayer.js +97 -0
- package/javascript/components/Callout.js +139 -0
- package/javascript/components/Camera.js +665 -0
- package/javascript/components/CircleLayer.js +101 -0
- package/javascript/components/FillExtrusionLayer.js +98 -0
- package/javascript/components/FillLayer.js +94 -0
- package/javascript/components/HeadingIndicator.js +31 -0
- package/javascript/components/HeatmapLayer.js +99 -0
- package/javascript/components/ImageSource.js +82 -0
- package/javascript/components/Images.js +119 -0
- package/javascript/components/Light.js +47 -0
- package/javascript/components/LineLayer.js +94 -0
- package/javascript/components/MapView.js +817 -0
- package/javascript/components/MarkerView.js +87 -0
- package/javascript/components/NativeBridgeComponent.js +86 -0
- package/javascript/components/NativeUserLocation.js +41 -0
- package/javascript/components/PointAnnotation.js +216 -0
- package/javascript/components/RasterLayer.js +95 -0
- package/javascript/components/RasterSource.js +124 -0
- package/javascript/components/ShapeSource.js +357 -0
- package/javascript/components/Style.js +264 -0
- package/javascript/components/SymbolLayer.js +120 -0
- package/javascript/components/UserLocation.js +273 -0
- package/javascript/components/VectorSource.js +200 -0
- package/javascript/components/annotations/Annotation.js +122 -0
- package/javascript/index.js +153 -0
- package/javascript/modules/location/locationManager.js +101 -0
- package/javascript/modules/offline/OfflineCreatePackOptions.js +46 -0
- package/javascript/modules/offline/OfflinePack.js +40 -0
- package/javascript/modules/offline/offlineManager.js +378 -0
- package/javascript/modules/snapshot/SnapshotOptions.js +67 -0
- package/javascript/modules/snapshot/snapshotManager.js +62 -0
- package/javascript/utils/BridgeValue.js +81 -0
- package/javascript/utils/Logger.js +114 -0
- package/javascript/utils/animated/Animated.js +39 -0
- package/javascript/utils/animated/AnimatedCoordinatesArray.js +191 -0
- package/javascript/utils/animated/AnimatedExtractCoordinateFromArray.js +43 -0
- package/javascript/utils/animated/AnimatedPoint.js +126 -0
- package/javascript/utils/animated/AnimatedRouteCoordinatesArray.js +124 -0
- package/javascript/utils/animated/AnimatedShape.js +72 -0
- package/javascript/utils/deprecation.js +25 -0
- package/javascript/utils/filterUtils.js +7 -0
- package/javascript/utils/geoUtils.js +73 -0
- package/javascript/utils/index.js +113 -0
- package/javascript/utils/styleMap.js +1901 -0
- package/maplibre-react-native.podspec +79 -0
- package/package.json +120 -0
- package/plugin/build/withMapbox.d.ts +12 -0
- package/plugin/build/withMapbox.js +119 -0
- package/plugin/install.md +32 -0
- package/react-native.config.js +10 -0
- package/scripts/autogenHelpers/DocJSONBuilder.js +458 -0
- package/scripts/autogenHelpers/JSDocNodeTree.js +131 -0
- package/scripts/autogenHelpers/MarkdownBuilder.js +29 -0
- package/scripts/autogenHelpers/globals.js +507 -0
- package/scripts/autogenerate.js +374 -0
- package/scripts/download-style-spec.sh +15 -0
- package/scripts/templates/RCTMGLStyle.h.ejs +33 -0
- package/scripts/templates/RCTMGLStyle.m.ejs +97 -0
- package/scripts/templates/RCTMGLStyleFactory.java.ejs +107 -0
- package/scripts/templates/component.md.ejs +122 -0
- package/scripts/templates/index.d.ts.ejs +56 -0
- package/scripts/templates/styleMap.js.ejs +115 -0
- package/setup-jest.js +121 -0
- package/style-spec/v8.json +5798 -0
- package/tsconfig.json +65 -0
|
@@ -0,0 +1,1654 @@
|
|
|
1
|
+
// DO NOT MODIFY
|
|
2
|
+
// THIS FILE IS AUTOGENERATED
|
|
3
|
+
|
|
4
|
+
#import "RCTMGLStyle.h"
|
|
5
|
+
#import "RCTMGLUtils.h"
|
|
6
|
+
|
|
7
|
+
@implementation RCTMGLStyle
|
|
8
|
+
|
|
9
|
+
- (id)initWithMGLStyle:(MGLStyle*)mglStyle
|
|
10
|
+
{
|
|
11
|
+
if (self = [super init]) {
|
|
12
|
+
_style = mglStyle;
|
|
13
|
+
}
|
|
14
|
+
return self;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
- (void)fillLayer:(MGLFillStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
19
|
+
{
|
|
20
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
21
|
+
// TODO throw exception
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
26
|
+
for (NSString *prop in styleProps) {
|
|
27
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
32
|
+
|
|
33
|
+
if ([prop isEqualToString:@"visibility"]) {
|
|
34
|
+
[self setFillStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
35
|
+
} else if ([prop isEqualToString:@"fillAntialias"]) {
|
|
36
|
+
[self setFillAntialias:layer withReactStyleValue:styleValue];
|
|
37
|
+
} else if ([prop isEqualToString:@"fillOpacity"]) {
|
|
38
|
+
[self setFillOpacity:layer withReactStyleValue:styleValue];
|
|
39
|
+
} else if ([prop isEqualToString:@"fillOpacityTransition"]) {
|
|
40
|
+
[self setFillOpacityTransition:layer withReactStyleValue:styleValue];
|
|
41
|
+
} else if ([prop isEqualToString:@"fillColor"]) {
|
|
42
|
+
[self setFillColor:layer withReactStyleValue:styleValue];
|
|
43
|
+
} else if ([prop isEqualToString:@"fillColorTransition"]) {
|
|
44
|
+
[self setFillColorTransition:layer withReactStyleValue:styleValue];
|
|
45
|
+
} else if ([prop isEqualToString:@"fillOutlineColor"]) {
|
|
46
|
+
[self setFillOutlineColor:layer withReactStyleValue:styleValue];
|
|
47
|
+
} else if ([prop isEqualToString:@"fillOutlineColorTransition"]) {
|
|
48
|
+
[self setFillOutlineColorTransition:layer withReactStyleValue:styleValue];
|
|
49
|
+
} else if ([prop isEqualToString:@"fillTranslate"]) {
|
|
50
|
+
[self setFillTranslate:layer withReactStyleValue:styleValue];
|
|
51
|
+
} else if ([prop isEqualToString:@"fillTranslateTransition"]) {
|
|
52
|
+
[self setFillTranslateTransition:layer withReactStyleValue:styleValue];
|
|
53
|
+
} else if ([prop isEqualToString:@"fillTranslateAnchor"]) {
|
|
54
|
+
[self setFillTranslateAnchor:layer withReactStyleValue:styleValue];
|
|
55
|
+
} else if ([prop isEqualToString:@"fillPattern"]) {
|
|
56
|
+
if (![styleValue shouldAddImage]) {
|
|
57
|
+
[self setFillPattern:layer withReactStyleValue:styleValue];
|
|
58
|
+
} else {
|
|
59
|
+
NSString *imageURI = [styleValue getImageURI];
|
|
60
|
+
|
|
61
|
+
[RCTMGLUtils fetchImage:_bridge url:imageURI scale:[styleValue getImageScale] callback:^(NSError *error, UIImage *image) {
|
|
62
|
+
if (image != nil) {
|
|
63
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
64
|
+
if (isValid()) {
|
|
65
|
+
[self->_style setImage:image forName:imageURI];
|
|
66
|
+
[self setFillPattern:layer withReactStyleValue:styleValue];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}];
|
|
71
|
+
}
|
|
72
|
+
} else if ([prop isEqualToString:@"fillPatternTransition"]) {
|
|
73
|
+
[self setFillPatternTransition:layer withReactStyleValue:styleValue];
|
|
74
|
+
} else {
|
|
75
|
+
// TODO throw exception
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
- (void)lineLayer:(MGLLineStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
81
|
+
{
|
|
82
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
83
|
+
// TODO throw exception
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
88
|
+
for (NSString *prop in styleProps) {
|
|
89
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
94
|
+
|
|
95
|
+
if ([prop isEqualToString:@"lineCap"]) {
|
|
96
|
+
[self setLineCap:layer withReactStyleValue:styleValue];
|
|
97
|
+
} else if ([prop isEqualToString:@"lineJoin"]) {
|
|
98
|
+
[self setLineJoin:layer withReactStyleValue:styleValue];
|
|
99
|
+
} else if ([prop isEqualToString:@"lineMiterLimit"]) {
|
|
100
|
+
[self setLineMiterLimit:layer withReactStyleValue:styleValue];
|
|
101
|
+
} else if ([prop isEqualToString:@"lineRoundLimit"]) {
|
|
102
|
+
[self setLineRoundLimit:layer withReactStyleValue:styleValue];
|
|
103
|
+
} else if ([prop isEqualToString:@"visibility"]) {
|
|
104
|
+
[self setLineStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
105
|
+
} else if ([prop isEqualToString:@"lineOpacity"]) {
|
|
106
|
+
[self setLineOpacity:layer withReactStyleValue:styleValue];
|
|
107
|
+
} else if ([prop isEqualToString:@"lineOpacityTransition"]) {
|
|
108
|
+
[self setLineOpacityTransition:layer withReactStyleValue:styleValue];
|
|
109
|
+
} else if ([prop isEqualToString:@"lineColor"]) {
|
|
110
|
+
[self setLineColor:layer withReactStyleValue:styleValue];
|
|
111
|
+
} else if ([prop isEqualToString:@"lineColorTransition"]) {
|
|
112
|
+
[self setLineColorTransition:layer withReactStyleValue:styleValue];
|
|
113
|
+
} else if ([prop isEqualToString:@"lineTranslate"]) {
|
|
114
|
+
[self setLineTranslate:layer withReactStyleValue:styleValue];
|
|
115
|
+
} else if ([prop isEqualToString:@"lineTranslateTransition"]) {
|
|
116
|
+
[self setLineTranslateTransition:layer withReactStyleValue:styleValue];
|
|
117
|
+
} else if ([prop isEqualToString:@"lineTranslateAnchor"]) {
|
|
118
|
+
[self setLineTranslateAnchor:layer withReactStyleValue:styleValue];
|
|
119
|
+
} else if ([prop isEqualToString:@"lineWidth"]) {
|
|
120
|
+
[self setLineWidth:layer withReactStyleValue:styleValue];
|
|
121
|
+
} else if ([prop isEqualToString:@"lineWidthTransition"]) {
|
|
122
|
+
[self setLineWidthTransition:layer withReactStyleValue:styleValue];
|
|
123
|
+
} else if ([prop isEqualToString:@"lineGapWidth"]) {
|
|
124
|
+
[self setLineGapWidth:layer withReactStyleValue:styleValue];
|
|
125
|
+
} else if ([prop isEqualToString:@"lineGapWidthTransition"]) {
|
|
126
|
+
[self setLineGapWidthTransition:layer withReactStyleValue:styleValue];
|
|
127
|
+
} else if ([prop isEqualToString:@"lineOffset"]) {
|
|
128
|
+
[self setLineOffset:layer withReactStyleValue:styleValue];
|
|
129
|
+
} else if ([prop isEqualToString:@"lineOffsetTransition"]) {
|
|
130
|
+
[self setLineOffsetTransition:layer withReactStyleValue:styleValue];
|
|
131
|
+
} else if ([prop isEqualToString:@"lineBlur"]) {
|
|
132
|
+
[self setLineBlur:layer withReactStyleValue:styleValue];
|
|
133
|
+
} else if ([prop isEqualToString:@"lineBlurTransition"]) {
|
|
134
|
+
[self setLineBlurTransition:layer withReactStyleValue:styleValue];
|
|
135
|
+
} else if ([prop isEqualToString:@"lineDasharray"]) {
|
|
136
|
+
[self setLineDasharray:layer withReactStyleValue:styleValue];
|
|
137
|
+
} else if ([prop isEqualToString:@"lineDasharrayTransition"]) {
|
|
138
|
+
[self setLineDasharrayTransition:layer withReactStyleValue:styleValue];
|
|
139
|
+
} else if ([prop isEqualToString:@"linePattern"]) {
|
|
140
|
+
if (![styleValue shouldAddImage]) {
|
|
141
|
+
[self setLinePattern:layer withReactStyleValue:styleValue];
|
|
142
|
+
} else {
|
|
143
|
+
NSString *imageURI = [styleValue getImageURI];
|
|
144
|
+
|
|
145
|
+
[RCTMGLUtils fetchImage:_bridge url:imageURI scale:[styleValue getImageScale] callback:^(NSError *error, UIImage *image) {
|
|
146
|
+
if (image != nil) {
|
|
147
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
148
|
+
if (isValid()) {
|
|
149
|
+
[self->_style setImage:image forName:imageURI];
|
|
150
|
+
[self setLinePattern:layer withReactStyleValue:styleValue];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}];
|
|
155
|
+
}
|
|
156
|
+
} else if ([prop isEqualToString:@"linePatternTransition"]) {
|
|
157
|
+
[self setLinePatternTransition:layer withReactStyleValue:styleValue];
|
|
158
|
+
} else if ([prop isEqualToString:@"lineGradient"]) {
|
|
159
|
+
[self setLineGradient:layer withReactStyleValue:styleValue];
|
|
160
|
+
} else {
|
|
161
|
+
// TODO throw exception
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
- (void)symbolLayer:(MGLSymbolStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
167
|
+
{
|
|
168
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
169
|
+
// TODO throw exception
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
174
|
+
for (NSString *prop in styleProps) {
|
|
175
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
180
|
+
|
|
181
|
+
if ([prop isEqualToString:@"symbolPlacement"]) {
|
|
182
|
+
[self setSymbolPlacement:layer withReactStyleValue:styleValue];
|
|
183
|
+
} else if ([prop isEqualToString:@"symbolSpacing"]) {
|
|
184
|
+
[self setSymbolSpacing:layer withReactStyleValue:styleValue];
|
|
185
|
+
} else if ([prop isEqualToString:@"symbolAvoidEdges"]) {
|
|
186
|
+
[self setSymbolAvoidEdges:layer withReactStyleValue:styleValue];
|
|
187
|
+
} else if ([prop isEqualToString:@"symbolSortKey"]) {
|
|
188
|
+
[self setSymbolSortKey:layer withReactStyleValue:styleValue];
|
|
189
|
+
} else if ([prop isEqualToString:@"symbolZOrder"]) {
|
|
190
|
+
[self setSymbolZOrder:layer withReactStyleValue:styleValue];
|
|
191
|
+
} else if ([prop isEqualToString:@"iconAllowOverlap"]) {
|
|
192
|
+
[self setIconAllowOverlap:layer withReactStyleValue:styleValue];
|
|
193
|
+
} else if ([prop isEqualToString:@"iconIgnorePlacement"]) {
|
|
194
|
+
[self setIconIgnorePlacement:layer withReactStyleValue:styleValue];
|
|
195
|
+
} else if ([prop isEqualToString:@"iconOptional"]) {
|
|
196
|
+
[self setIconOptional:layer withReactStyleValue:styleValue];
|
|
197
|
+
} else if ([prop isEqualToString:@"iconRotationAlignment"]) {
|
|
198
|
+
[self setIconRotationAlignment:layer withReactStyleValue:styleValue];
|
|
199
|
+
} else if ([prop isEqualToString:@"iconSize"]) {
|
|
200
|
+
[self setIconSize:layer withReactStyleValue:styleValue];
|
|
201
|
+
} else if ([prop isEqualToString:@"iconTextFit"]) {
|
|
202
|
+
[self setIconTextFit:layer withReactStyleValue:styleValue];
|
|
203
|
+
} else if ([prop isEqualToString:@"iconTextFitPadding"]) {
|
|
204
|
+
[self setIconTextFitPadding:layer withReactStyleValue:styleValue];
|
|
205
|
+
} else if ([prop isEqualToString:@"iconImage"]) {
|
|
206
|
+
if (![styleValue shouldAddImage]) {
|
|
207
|
+
[self setIconImage:layer withReactStyleValue:styleValue];
|
|
208
|
+
} else {
|
|
209
|
+
NSString *imageURI = [styleValue getImageURI];
|
|
210
|
+
|
|
211
|
+
[RCTMGLUtils fetchImage:_bridge url:imageURI scale:[styleValue getImageScale] callback:^(NSError *error, UIImage *image) {
|
|
212
|
+
if (image != nil) {
|
|
213
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
214
|
+
if (isValid()) {
|
|
215
|
+
[self->_style setImage:image forName:imageURI];
|
|
216
|
+
[self setIconImage:layer withReactStyleValue:styleValue];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}];
|
|
221
|
+
}
|
|
222
|
+
} else if ([prop isEqualToString:@"iconRotate"]) {
|
|
223
|
+
[self setIconRotate:layer withReactStyleValue:styleValue];
|
|
224
|
+
} else if ([prop isEqualToString:@"iconPadding"]) {
|
|
225
|
+
[self setIconPadding:layer withReactStyleValue:styleValue];
|
|
226
|
+
} else if ([prop isEqualToString:@"iconKeepUpright"]) {
|
|
227
|
+
[self setIconKeepUpright:layer withReactStyleValue:styleValue];
|
|
228
|
+
} else if ([prop isEqualToString:@"iconOffset"]) {
|
|
229
|
+
[self setIconOffset:layer withReactStyleValue:styleValue];
|
|
230
|
+
} else if ([prop isEqualToString:@"iconAnchor"]) {
|
|
231
|
+
[self setIconAnchor:layer withReactStyleValue:styleValue];
|
|
232
|
+
} else if ([prop isEqualToString:@"iconPitchAlignment"]) {
|
|
233
|
+
[self setIconPitchAlignment:layer withReactStyleValue:styleValue];
|
|
234
|
+
} else if ([prop isEqualToString:@"textPitchAlignment"]) {
|
|
235
|
+
[self setTextPitchAlignment:layer withReactStyleValue:styleValue];
|
|
236
|
+
} else if ([prop isEqualToString:@"textRotationAlignment"]) {
|
|
237
|
+
[self setTextRotationAlignment:layer withReactStyleValue:styleValue];
|
|
238
|
+
} else if ([prop isEqualToString:@"textField"]) {
|
|
239
|
+
[self setTextField:layer withReactStyleValue:styleValue];
|
|
240
|
+
} else if ([prop isEqualToString:@"textFont"]) {
|
|
241
|
+
[self setTextFont:layer withReactStyleValue:styleValue];
|
|
242
|
+
} else if ([prop isEqualToString:@"textSize"]) {
|
|
243
|
+
[self setTextSize:layer withReactStyleValue:styleValue];
|
|
244
|
+
} else if ([prop isEqualToString:@"textMaxWidth"]) {
|
|
245
|
+
[self setTextMaxWidth:layer withReactStyleValue:styleValue];
|
|
246
|
+
} else if ([prop isEqualToString:@"textLineHeight"]) {
|
|
247
|
+
[self setTextLineHeight:layer withReactStyleValue:styleValue];
|
|
248
|
+
} else if ([prop isEqualToString:@"textLetterSpacing"]) {
|
|
249
|
+
[self setTextLetterSpacing:layer withReactStyleValue:styleValue];
|
|
250
|
+
} else if ([prop isEqualToString:@"textJustify"]) {
|
|
251
|
+
[self setTextJustify:layer withReactStyleValue:styleValue];
|
|
252
|
+
} else if ([prop isEqualToString:@"textRadialOffset"]) {
|
|
253
|
+
[self setTextRadialOffset:layer withReactStyleValue:styleValue];
|
|
254
|
+
} else if ([prop isEqualToString:@"textVariableAnchor"]) {
|
|
255
|
+
[self setTextVariableAnchor:layer withReactStyleValue:styleValue];
|
|
256
|
+
} else if ([prop isEqualToString:@"textAnchor"]) {
|
|
257
|
+
[self setTextAnchor:layer withReactStyleValue:styleValue];
|
|
258
|
+
} else if ([prop isEqualToString:@"textMaxAngle"]) {
|
|
259
|
+
[self setTextMaxAngle:layer withReactStyleValue:styleValue];
|
|
260
|
+
} else if ([prop isEqualToString:@"textWritingMode"]) {
|
|
261
|
+
[self setTextWritingMode:layer withReactStyleValue:styleValue];
|
|
262
|
+
} else if ([prop isEqualToString:@"textRotate"]) {
|
|
263
|
+
[self setTextRotate:layer withReactStyleValue:styleValue];
|
|
264
|
+
} else if ([prop isEqualToString:@"textPadding"]) {
|
|
265
|
+
[self setTextPadding:layer withReactStyleValue:styleValue];
|
|
266
|
+
} else if ([prop isEqualToString:@"textKeepUpright"]) {
|
|
267
|
+
[self setTextKeepUpright:layer withReactStyleValue:styleValue];
|
|
268
|
+
} else if ([prop isEqualToString:@"textTransform"]) {
|
|
269
|
+
[self setTextTransform:layer withReactStyleValue:styleValue];
|
|
270
|
+
} else if ([prop isEqualToString:@"textOffset"]) {
|
|
271
|
+
[self setTextOffset:layer withReactStyleValue:styleValue];
|
|
272
|
+
} else if ([prop isEqualToString:@"textAllowOverlap"]) {
|
|
273
|
+
[self setTextAllowOverlap:layer withReactStyleValue:styleValue];
|
|
274
|
+
} else if ([prop isEqualToString:@"textIgnorePlacement"]) {
|
|
275
|
+
[self setTextIgnorePlacement:layer withReactStyleValue:styleValue];
|
|
276
|
+
} else if ([prop isEqualToString:@"textOptional"]) {
|
|
277
|
+
[self setTextOptional:layer withReactStyleValue:styleValue];
|
|
278
|
+
} else if ([prop isEqualToString:@"visibility"]) {
|
|
279
|
+
[self setSymbolStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
280
|
+
} else if ([prop isEqualToString:@"iconOpacity"]) {
|
|
281
|
+
[self setIconOpacity:layer withReactStyleValue:styleValue];
|
|
282
|
+
} else if ([prop isEqualToString:@"iconOpacityTransition"]) {
|
|
283
|
+
[self setIconOpacityTransition:layer withReactStyleValue:styleValue];
|
|
284
|
+
} else if ([prop isEqualToString:@"iconColor"]) {
|
|
285
|
+
[self setIconColor:layer withReactStyleValue:styleValue];
|
|
286
|
+
} else if ([prop isEqualToString:@"iconColorTransition"]) {
|
|
287
|
+
[self setIconColorTransition:layer withReactStyleValue:styleValue];
|
|
288
|
+
} else if ([prop isEqualToString:@"iconHaloColor"]) {
|
|
289
|
+
[self setIconHaloColor:layer withReactStyleValue:styleValue];
|
|
290
|
+
} else if ([prop isEqualToString:@"iconHaloColorTransition"]) {
|
|
291
|
+
[self setIconHaloColorTransition:layer withReactStyleValue:styleValue];
|
|
292
|
+
} else if ([prop isEqualToString:@"iconHaloWidth"]) {
|
|
293
|
+
[self setIconHaloWidth:layer withReactStyleValue:styleValue];
|
|
294
|
+
} else if ([prop isEqualToString:@"iconHaloWidthTransition"]) {
|
|
295
|
+
[self setIconHaloWidthTransition:layer withReactStyleValue:styleValue];
|
|
296
|
+
} else if ([prop isEqualToString:@"iconHaloBlur"]) {
|
|
297
|
+
[self setIconHaloBlur:layer withReactStyleValue:styleValue];
|
|
298
|
+
} else if ([prop isEqualToString:@"iconHaloBlurTransition"]) {
|
|
299
|
+
[self setIconHaloBlurTransition:layer withReactStyleValue:styleValue];
|
|
300
|
+
} else if ([prop isEqualToString:@"iconTranslate"]) {
|
|
301
|
+
[self setIconTranslate:layer withReactStyleValue:styleValue];
|
|
302
|
+
} else if ([prop isEqualToString:@"iconTranslateTransition"]) {
|
|
303
|
+
[self setIconTranslateTransition:layer withReactStyleValue:styleValue];
|
|
304
|
+
} else if ([prop isEqualToString:@"iconTranslateAnchor"]) {
|
|
305
|
+
[self setIconTranslateAnchor:layer withReactStyleValue:styleValue];
|
|
306
|
+
} else if ([prop isEqualToString:@"textOpacity"]) {
|
|
307
|
+
[self setTextOpacity:layer withReactStyleValue:styleValue];
|
|
308
|
+
} else if ([prop isEqualToString:@"textOpacityTransition"]) {
|
|
309
|
+
[self setTextOpacityTransition:layer withReactStyleValue:styleValue];
|
|
310
|
+
} else if ([prop isEqualToString:@"textColor"]) {
|
|
311
|
+
[self setTextColor:layer withReactStyleValue:styleValue];
|
|
312
|
+
} else if ([prop isEqualToString:@"textColorTransition"]) {
|
|
313
|
+
[self setTextColorTransition:layer withReactStyleValue:styleValue];
|
|
314
|
+
} else if ([prop isEqualToString:@"textHaloColor"]) {
|
|
315
|
+
[self setTextHaloColor:layer withReactStyleValue:styleValue];
|
|
316
|
+
} else if ([prop isEqualToString:@"textHaloColorTransition"]) {
|
|
317
|
+
[self setTextHaloColorTransition:layer withReactStyleValue:styleValue];
|
|
318
|
+
} else if ([prop isEqualToString:@"textHaloWidth"]) {
|
|
319
|
+
[self setTextHaloWidth:layer withReactStyleValue:styleValue];
|
|
320
|
+
} else if ([prop isEqualToString:@"textHaloWidthTransition"]) {
|
|
321
|
+
[self setTextHaloWidthTransition:layer withReactStyleValue:styleValue];
|
|
322
|
+
} else if ([prop isEqualToString:@"textHaloBlur"]) {
|
|
323
|
+
[self setTextHaloBlur:layer withReactStyleValue:styleValue];
|
|
324
|
+
} else if ([prop isEqualToString:@"textHaloBlurTransition"]) {
|
|
325
|
+
[self setTextHaloBlurTransition:layer withReactStyleValue:styleValue];
|
|
326
|
+
} else if ([prop isEqualToString:@"textTranslate"]) {
|
|
327
|
+
[self setTextTranslate:layer withReactStyleValue:styleValue];
|
|
328
|
+
} else if ([prop isEqualToString:@"textTranslateTransition"]) {
|
|
329
|
+
[self setTextTranslateTransition:layer withReactStyleValue:styleValue];
|
|
330
|
+
} else if ([prop isEqualToString:@"textTranslateAnchor"]) {
|
|
331
|
+
[self setTextTranslateAnchor:layer withReactStyleValue:styleValue];
|
|
332
|
+
} else {
|
|
333
|
+
// TODO throw exception
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
- (void)circleLayer:(MGLCircleStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
339
|
+
{
|
|
340
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
341
|
+
// TODO throw exception
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
346
|
+
for (NSString *prop in styleProps) {
|
|
347
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
348
|
+
continue;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
352
|
+
|
|
353
|
+
if ([prop isEqualToString:@"visibility"]) {
|
|
354
|
+
[self setCircleStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
355
|
+
} else if ([prop isEqualToString:@"circleRadius"]) {
|
|
356
|
+
[self setCircleRadius:layer withReactStyleValue:styleValue];
|
|
357
|
+
} else if ([prop isEqualToString:@"circleRadiusTransition"]) {
|
|
358
|
+
[self setCircleRadiusTransition:layer withReactStyleValue:styleValue];
|
|
359
|
+
} else if ([prop isEqualToString:@"circleColor"]) {
|
|
360
|
+
[self setCircleColor:layer withReactStyleValue:styleValue];
|
|
361
|
+
} else if ([prop isEqualToString:@"circleColorTransition"]) {
|
|
362
|
+
[self setCircleColorTransition:layer withReactStyleValue:styleValue];
|
|
363
|
+
} else if ([prop isEqualToString:@"circleBlur"]) {
|
|
364
|
+
[self setCircleBlur:layer withReactStyleValue:styleValue];
|
|
365
|
+
} else if ([prop isEqualToString:@"circleBlurTransition"]) {
|
|
366
|
+
[self setCircleBlurTransition:layer withReactStyleValue:styleValue];
|
|
367
|
+
} else if ([prop isEqualToString:@"circleOpacity"]) {
|
|
368
|
+
[self setCircleOpacity:layer withReactStyleValue:styleValue];
|
|
369
|
+
} else if ([prop isEqualToString:@"circleOpacityTransition"]) {
|
|
370
|
+
[self setCircleOpacityTransition:layer withReactStyleValue:styleValue];
|
|
371
|
+
} else if ([prop isEqualToString:@"circleTranslate"]) {
|
|
372
|
+
[self setCircleTranslate:layer withReactStyleValue:styleValue];
|
|
373
|
+
} else if ([prop isEqualToString:@"circleTranslateTransition"]) {
|
|
374
|
+
[self setCircleTranslateTransition:layer withReactStyleValue:styleValue];
|
|
375
|
+
} else if ([prop isEqualToString:@"circleTranslateAnchor"]) {
|
|
376
|
+
[self setCircleTranslateAnchor:layer withReactStyleValue:styleValue];
|
|
377
|
+
} else if ([prop isEqualToString:@"circlePitchScale"]) {
|
|
378
|
+
[self setCirclePitchScale:layer withReactStyleValue:styleValue];
|
|
379
|
+
} else if ([prop isEqualToString:@"circlePitchAlignment"]) {
|
|
380
|
+
[self setCirclePitchAlignment:layer withReactStyleValue:styleValue];
|
|
381
|
+
} else if ([prop isEqualToString:@"circleStrokeWidth"]) {
|
|
382
|
+
[self setCircleStrokeWidth:layer withReactStyleValue:styleValue];
|
|
383
|
+
} else if ([prop isEqualToString:@"circleStrokeWidthTransition"]) {
|
|
384
|
+
[self setCircleStrokeWidthTransition:layer withReactStyleValue:styleValue];
|
|
385
|
+
} else if ([prop isEqualToString:@"circleStrokeColor"]) {
|
|
386
|
+
[self setCircleStrokeColor:layer withReactStyleValue:styleValue];
|
|
387
|
+
} else if ([prop isEqualToString:@"circleStrokeColorTransition"]) {
|
|
388
|
+
[self setCircleStrokeColorTransition:layer withReactStyleValue:styleValue];
|
|
389
|
+
} else if ([prop isEqualToString:@"circleStrokeOpacity"]) {
|
|
390
|
+
[self setCircleStrokeOpacity:layer withReactStyleValue:styleValue];
|
|
391
|
+
} else if ([prop isEqualToString:@"circleStrokeOpacityTransition"]) {
|
|
392
|
+
[self setCircleStrokeOpacityTransition:layer withReactStyleValue:styleValue];
|
|
393
|
+
} else {
|
|
394
|
+
// TODO throw exception
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
- (void)heatmapLayer:(MGLHeatmapStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
400
|
+
{
|
|
401
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
402
|
+
// TODO throw exception
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
407
|
+
for (NSString *prop in styleProps) {
|
|
408
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
409
|
+
continue;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
413
|
+
|
|
414
|
+
if ([prop isEqualToString:@"visibility"]) {
|
|
415
|
+
[self setHeatmapStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
416
|
+
} else if ([prop isEqualToString:@"heatmapRadius"]) {
|
|
417
|
+
[self setHeatmapRadius:layer withReactStyleValue:styleValue];
|
|
418
|
+
} else if ([prop isEqualToString:@"heatmapRadiusTransition"]) {
|
|
419
|
+
[self setHeatmapRadiusTransition:layer withReactStyleValue:styleValue];
|
|
420
|
+
} else if ([prop isEqualToString:@"heatmapWeight"]) {
|
|
421
|
+
[self setHeatmapWeight:layer withReactStyleValue:styleValue];
|
|
422
|
+
} else if ([prop isEqualToString:@"heatmapIntensity"]) {
|
|
423
|
+
[self setHeatmapIntensity:layer withReactStyleValue:styleValue];
|
|
424
|
+
} else if ([prop isEqualToString:@"heatmapIntensityTransition"]) {
|
|
425
|
+
[self setHeatmapIntensityTransition:layer withReactStyleValue:styleValue];
|
|
426
|
+
} else if ([prop isEqualToString:@"heatmapColor"]) {
|
|
427
|
+
[self setHeatmapColor:layer withReactStyleValue:styleValue];
|
|
428
|
+
} else if ([prop isEqualToString:@"heatmapOpacity"]) {
|
|
429
|
+
[self setHeatmapOpacity:layer withReactStyleValue:styleValue];
|
|
430
|
+
} else if ([prop isEqualToString:@"heatmapOpacityTransition"]) {
|
|
431
|
+
[self setHeatmapOpacityTransition:layer withReactStyleValue:styleValue];
|
|
432
|
+
} else {
|
|
433
|
+
// TODO throw exception
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
- (void)fillExtrusionLayer:(MGLFillExtrusionStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
439
|
+
{
|
|
440
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
441
|
+
// TODO throw exception
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
446
|
+
for (NSString *prop in styleProps) {
|
|
447
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
448
|
+
continue;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
452
|
+
|
|
453
|
+
if ([prop isEqualToString:@"visibility"]) {
|
|
454
|
+
[self setFillExtrusionStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
455
|
+
} else if ([prop isEqualToString:@"fillExtrusionOpacity"]) {
|
|
456
|
+
[self setFillExtrusionOpacity:layer withReactStyleValue:styleValue];
|
|
457
|
+
} else if ([prop isEqualToString:@"fillExtrusionOpacityTransition"]) {
|
|
458
|
+
[self setFillExtrusionOpacityTransition:layer withReactStyleValue:styleValue];
|
|
459
|
+
} else if ([prop isEqualToString:@"fillExtrusionColor"]) {
|
|
460
|
+
[self setFillExtrusionColor:layer withReactStyleValue:styleValue];
|
|
461
|
+
} else if ([prop isEqualToString:@"fillExtrusionColorTransition"]) {
|
|
462
|
+
[self setFillExtrusionColorTransition:layer withReactStyleValue:styleValue];
|
|
463
|
+
} else if ([prop isEqualToString:@"fillExtrusionTranslate"]) {
|
|
464
|
+
[self setFillExtrusionTranslate:layer withReactStyleValue:styleValue];
|
|
465
|
+
} else if ([prop isEqualToString:@"fillExtrusionTranslateTransition"]) {
|
|
466
|
+
[self setFillExtrusionTranslateTransition:layer withReactStyleValue:styleValue];
|
|
467
|
+
} else if ([prop isEqualToString:@"fillExtrusionTranslateAnchor"]) {
|
|
468
|
+
[self setFillExtrusionTranslateAnchor:layer withReactStyleValue:styleValue];
|
|
469
|
+
} else if ([prop isEqualToString:@"fillExtrusionPattern"]) {
|
|
470
|
+
if (![styleValue shouldAddImage]) {
|
|
471
|
+
[self setFillExtrusionPattern:layer withReactStyleValue:styleValue];
|
|
472
|
+
} else {
|
|
473
|
+
NSString *imageURI = [styleValue getImageURI];
|
|
474
|
+
|
|
475
|
+
[RCTMGLUtils fetchImage:_bridge url:imageURI scale:[styleValue getImageScale] callback:^(NSError *error, UIImage *image) {
|
|
476
|
+
if (image != nil) {
|
|
477
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
478
|
+
if (isValid()) {
|
|
479
|
+
[self->_style setImage:image forName:imageURI];
|
|
480
|
+
[self setFillExtrusionPattern:layer withReactStyleValue:styleValue];
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
}];
|
|
485
|
+
}
|
|
486
|
+
} else if ([prop isEqualToString:@"fillExtrusionPatternTransition"]) {
|
|
487
|
+
[self setFillExtrusionPatternTransition:layer withReactStyleValue:styleValue];
|
|
488
|
+
} else if ([prop isEqualToString:@"fillExtrusionHeight"]) {
|
|
489
|
+
[self setFillExtrusionHeight:layer withReactStyleValue:styleValue];
|
|
490
|
+
} else if ([prop isEqualToString:@"fillExtrusionHeightTransition"]) {
|
|
491
|
+
[self setFillExtrusionHeightTransition:layer withReactStyleValue:styleValue];
|
|
492
|
+
} else if ([prop isEqualToString:@"fillExtrusionBase"]) {
|
|
493
|
+
[self setFillExtrusionBase:layer withReactStyleValue:styleValue];
|
|
494
|
+
} else if ([prop isEqualToString:@"fillExtrusionBaseTransition"]) {
|
|
495
|
+
[self setFillExtrusionBaseTransition:layer withReactStyleValue:styleValue];
|
|
496
|
+
} else {
|
|
497
|
+
// TODO throw exception
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
- (void)rasterLayer:(MGLRasterStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
503
|
+
{
|
|
504
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
505
|
+
// TODO throw exception
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
510
|
+
for (NSString *prop in styleProps) {
|
|
511
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
516
|
+
|
|
517
|
+
if ([prop isEqualToString:@"visibility"]) {
|
|
518
|
+
[self setRasterStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
519
|
+
} else if ([prop isEqualToString:@"rasterOpacity"]) {
|
|
520
|
+
[self setRasterOpacity:layer withReactStyleValue:styleValue];
|
|
521
|
+
} else if ([prop isEqualToString:@"rasterOpacityTransition"]) {
|
|
522
|
+
[self setRasterOpacityTransition:layer withReactStyleValue:styleValue];
|
|
523
|
+
} else if ([prop isEqualToString:@"rasterHueRotate"]) {
|
|
524
|
+
[self setRasterHueRotate:layer withReactStyleValue:styleValue];
|
|
525
|
+
} else if ([prop isEqualToString:@"rasterHueRotateTransition"]) {
|
|
526
|
+
[self setRasterHueRotateTransition:layer withReactStyleValue:styleValue];
|
|
527
|
+
} else if ([prop isEqualToString:@"rasterBrightnessMin"]) {
|
|
528
|
+
[self setRasterBrightnessMin:layer withReactStyleValue:styleValue];
|
|
529
|
+
} else if ([prop isEqualToString:@"rasterBrightnessMinTransition"]) {
|
|
530
|
+
[self setRasterBrightnessMinTransition:layer withReactStyleValue:styleValue];
|
|
531
|
+
} else if ([prop isEqualToString:@"rasterBrightnessMax"]) {
|
|
532
|
+
[self setRasterBrightnessMax:layer withReactStyleValue:styleValue];
|
|
533
|
+
} else if ([prop isEqualToString:@"rasterBrightnessMaxTransition"]) {
|
|
534
|
+
[self setRasterBrightnessMaxTransition:layer withReactStyleValue:styleValue];
|
|
535
|
+
} else if ([prop isEqualToString:@"rasterSaturation"]) {
|
|
536
|
+
[self setRasterSaturation:layer withReactStyleValue:styleValue];
|
|
537
|
+
} else if ([prop isEqualToString:@"rasterSaturationTransition"]) {
|
|
538
|
+
[self setRasterSaturationTransition:layer withReactStyleValue:styleValue];
|
|
539
|
+
} else if ([prop isEqualToString:@"rasterContrast"]) {
|
|
540
|
+
[self setRasterContrast:layer withReactStyleValue:styleValue];
|
|
541
|
+
} else if ([prop isEqualToString:@"rasterContrastTransition"]) {
|
|
542
|
+
[self setRasterContrastTransition:layer withReactStyleValue:styleValue];
|
|
543
|
+
} else if ([prop isEqualToString:@"rasterResampling"]) {
|
|
544
|
+
[self setRasterResampling:layer withReactStyleValue:styleValue];
|
|
545
|
+
} else if ([prop isEqualToString:@"rasterFadeDuration"]) {
|
|
546
|
+
[self setRasterFadeDuration:layer withReactStyleValue:styleValue];
|
|
547
|
+
} else {
|
|
548
|
+
// TODO throw exception
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
- (void)hillshadeLayer:(MGLHillshadeStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
554
|
+
{
|
|
555
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
556
|
+
// TODO throw exception
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
561
|
+
for (NSString *prop in styleProps) {
|
|
562
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
563
|
+
continue;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
567
|
+
|
|
568
|
+
if ([prop isEqualToString:@"visibility"]) {
|
|
569
|
+
[self setHillshadeStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
570
|
+
} else if ([prop isEqualToString:@"hillshadeIlluminationDirection"]) {
|
|
571
|
+
[self setHillshadeIlluminationDirection:layer withReactStyleValue:styleValue];
|
|
572
|
+
} else if ([prop isEqualToString:@"hillshadeIlluminationAnchor"]) {
|
|
573
|
+
[self setHillshadeIlluminationAnchor:layer withReactStyleValue:styleValue];
|
|
574
|
+
} else if ([prop isEqualToString:@"hillshadeExaggeration"]) {
|
|
575
|
+
[self setHillshadeExaggeration:layer withReactStyleValue:styleValue];
|
|
576
|
+
} else if ([prop isEqualToString:@"hillshadeExaggerationTransition"]) {
|
|
577
|
+
[self setHillshadeExaggerationTransition:layer withReactStyleValue:styleValue];
|
|
578
|
+
} else if ([prop isEqualToString:@"hillshadeShadowColor"]) {
|
|
579
|
+
[self setHillshadeShadowColor:layer withReactStyleValue:styleValue];
|
|
580
|
+
} else if ([prop isEqualToString:@"hillshadeShadowColorTransition"]) {
|
|
581
|
+
[self setHillshadeShadowColorTransition:layer withReactStyleValue:styleValue];
|
|
582
|
+
} else if ([prop isEqualToString:@"hillshadeHighlightColor"]) {
|
|
583
|
+
[self setHillshadeHighlightColor:layer withReactStyleValue:styleValue];
|
|
584
|
+
} else if ([prop isEqualToString:@"hillshadeHighlightColorTransition"]) {
|
|
585
|
+
[self setHillshadeHighlightColorTransition:layer withReactStyleValue:styleValue];
|
|
586
|
+
} else if ([prop isEqualToString:@"hillshadeAccentColor"]) {
|
|
587
|
+
[self setHillshadeAccentColor:layer withReactStyleValue:styleValue];
|
|
588
|
+
} else if ([prop isEqualToString:@"hillshadeAccentColorTransition"]) {
|
|
589
|
+
[self setHillshadeAccentColorTransition:layer withReactStyleValue:styleValue];
|
|
590
|
+
} else {
|
|
591
|
+
// TODO throw exception
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
- (void)backgroundLayer:(MGLBackgroundStyleLayer *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
597
|
+
{
|
|
598
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
599
|
+
// TODO throw exception
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
604
|
+
for (NSString *prop in styleProps) {
|
|
605
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
606
|
+
continue;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
610
|
+
|
|
611
|
+
if ([prop isEqualToString:@"visibility"]) {
|
|
612
|
+
[self setBackgroundStyleLayerVisibility:layer withReactStyleValue:styleValue];
|
|
613
|
+
} else if ([prop isEqualToString:@"backgroundColor"]) {
|
|
614
|
+
[self setBackgroundColor:layer withReactStyleValue:styleValue];
|
|
615
|
+
} else if ([prop isEqualToString:@"backgroundColorTransition"]) {
|
|
616
|
+
[self setBackgroundColorTransition:layer withReactStyleValue:styleValue];
|
|
617
|
+
} else if ([prop isEqualToString:@"backgroundPattern"]) {
|
|
618
|
+
if (![styleValue shouldAddImage]) {
|
|
619
|
+
[self setBackgroundPattern:layer withReactStyleValue:styleValue];
|
|
620
|
+
} else {
|
|
621
|
+
NSString *imageURI = [styleValue getImageURI];
|
|
622
|
+
|
|
623
|
+
[RCTMGLUtils fetchImage:_bridge url:imageURI scale:[styleValue getImageScale] callback:^(NSError *error, UIImage *image) {
|
|
624
|
+
if (image != nil) {
|
|
625
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
626
|
+
if (isValid()) {
|
|
627
|
+
[self->_style setImage:image forName:imageURI];
|
|
628
|
+
[self setBackgroundPattern:layer withReactStyleValue:styleValue];
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
}];
|
|
633
|
+
}
|
|
634
|
+
} else if ([prop isEqualToString:@"backgroundPatternTransition"]) {
|
|
635
|
+
[self setBackgroundPatternTransition:layer withReactStyleValue:styleValue];
|
|
636
|
+
} else if ([prop isEqualToString:@"backgroundOpacity"]) {
|
|
637
|
+
[self setBackgroundOpacity:layer withReactStyleValue:styleValue];
|
|
638
|
+
} else if ([prop isEqualToString:@"backgroundOpacityTransition"]) {
|
|
639
|
+
[self setBackgroundOpacityTransition:layer withReactStyleValue:styleValue];
|
|
640
|
+
} else {
|
|
641
|
+
// TODO throw exception
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
- (void)lightLayer:(MGLLight *)layer withReactStyle:(NSDictionary *)reactStyle isValid:(BOOL (^)(void)) isValid
|
|
647
|
+
{
|
|
648
|
+
if (![self _hasReactStyle:reactStyle]) {
|
|
649
|
+
// TODO throw exception
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
NSArray<NSString*> *styleProps = [reactStyle allKeys];
|
|
654
|
+
for (NSString *prop in styleProps) {
|
|
655
|
+
if ([prop isEqualToString:@"__MAPBOX_STYLESHEET__"]) {
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
RCTMGLStyleValue *styleValue = [RCTMGLStyleValue make:reactStyle[prop]];
|
|
660
|
+
|
|
661
|
+
if ([prop isEqualToString:@"anchor"]) {
|
|
662
|
+
[self setAnchor:layer withReactStyleValue:styleValue];
|
|
663
|
+
} else if ([prop isEqualToString:@"position"]) {
|
|
664
|
+
[self setPosition:layer withReactStyleValue:styleValue];
|
|
665
|
+
} else if ([prop isEqualToString:@"positionTransition"]) {
|
|
666
|
+
[self setPositionTransition:layer withReactStyleValue:styleValue];
|
|
667
|
+
} else if ([prop isEqualToString:@"color"]) {
|
|
668
|
+
[self setColor:layer withReactStyleValue:styleValue];
|
|
669
|
+
} else if ([prop isEqualToString:@"colorTransition"]) {
|
|
670
|
+
[self setColorTransition:layer withReactStyleValue:styleValue];
|
|
671
|
+
} else if ([prop isEqualToString:@"intensity"]) {
|
|
672
|
+
[self setIntensity:layer withReactStyleValue:styleValue];
|
|
673
|
+
} else if ([prop isEqualToString:@"intensityTransition"]) {
|
|
674
|
+
[self setIntensityTransition:layer withReactStyleValue:styleValue];
|
|
675
|
+
} else {
|
|
676
|
+
// TODO throw exception
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
- (void)setFillStyleLayerVisibility:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
685
|
+
{
|
|
686
|
+
layer.visible = [styleValue isVisible];
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
- (void)setFillAntialias:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
690
|
+
{
|
|
691
|
+
layer.fillAntialiased = styleValue.mglStyleValue;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
- (void)setFillOpacity:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
695
|
+
{
|
|
696
|
+
layer.fillOpacity = styleValue.mglStyleValue;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
- (void)setFillOpacityTransition:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
700
|
+
{
|
|
701
|
+
layer.fillOpacityTransition = [styleValue getTransition];
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
- (void)setFillColor:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
705
|
+
{
|
|
706
|
+
layer.fillColor = styleValue.mglStyleValue;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
- (void)setFillColorTransition:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
710
|
+
{
|
|
711
|
+
layer.fillColorTransition = [styleValue getTransition];
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
- (void)setFillOutlineColor:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
715
|
+
{
|
|
716
|
+
layer.fillOutlineColor = styleValue.mglStyleValue;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
- (void)setFillOutlineColorTransition:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
720
|
+
{
|
|
721
|
+
layer.fillOutlineColorTransition = [styleValue getTransition];
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
- (void)setFillTranslate:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
725
|
+
{
|
|
726
|
+
layer.fillTranslation = styleValue.mglStyleValue;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
- (void)setFillTranslateTransition:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
730
|
+
{
|
|
731
|
+
layer.fillTranslationTransition = [styleValue getTransition];
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
- (void)setFillTranslateAnchor:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
735
|
+
{
|
|
736
|
+
layer.fillTranslationAnchor = styleValue.mglStyleValue;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
- (void)setFillPattern:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
740
|
+
{
|
|
741
|
+
layer.fillPattern = styleValue.mglStyleValue;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
- (void)setFillPatternTransition:(MGLFillStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
745
|
+
{
|
|
746
|
+
layer.fillPatternTransition = [styleValue getTransition];
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
- (void)setLineCap:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
752
|
+
{
|
|
753
|
+
layer.lineCap = styleValue.mglStyleValue;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
- (void)setLineJoin:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
757
|
+
{
|
|
758
|
+
layer.lineJoin = styleValue.mglStyleValue;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
- (void)setLineMiterLimit:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
762
|
+
{
|
|
763
|
+
layer.lineMiterLimit = styleValue.mglStyleValue;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
- (void)setLineRoundLimit:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
767
|
+
{
|
|
768
|
+
layer.lineRoundLimit = styleValue.mglStyleValue;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
- (void)setLineStyleLayerVisibility:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
772
|
+
{
|
|
773
|
+
layer.visible = [styleValue isVisible];
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
- (void)setLineOpacity:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
777
|
+
{
|
|
778
|
+
layer.lineOpacity = styleValue.mglStyleValue;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
- (void)setLineOpacityTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
782
|
+
{
|
|
783
|
+
layer.lineOpacityTransition = [styleValue getTransition];
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
- (void)setLineColor:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
787
|
+
{
|
|
788
|
+
layer.lineColor = styleValue.mglStyleValue;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
- (void)setLineColorTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
792
|
+
{
|
|
793
|
+
layer.lineColorTransition = [styleValue getTransition];
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
- (void)setLineTranslate:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
797
|
+
{
|
|
798
|
+
layer.lineTranslation = styleValue.mglStyleValue;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
- (void)setLineTranslateTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
802
|
+
{
|
|
803
|
+
layer.lineTranslationTransition = [styleValue getTransition];
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
- (void)setLineTranslateAnchor:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
807
|
+
{
|
|
808
|
+
layer.lineTranslationAnchor = styleValue.mglStyleValue;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
- (void)setLineWidth:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
812
|
+
{
|
|
813
|
+
layer.lineWidth = styleValue.mglStyleValue;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
- (void)setLineWidthTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
817
|
+
{
|
|
818
|
+
layer.lineWidthTransition = [styleValue getTransition];
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
- (void)setLineGapWidth:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
822
|
+
{
|
|
823
|
+
layer.lineGapWidth = styleValue.mglStyleValue;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
- (void)setLineGapWidthTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
827
|
+
{
|
|
828
|
+
layer.lineGapWidthTransition = [styleValue getTransition];
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
- (void)setLineOffset:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
832
|
+
{
|
|
833
|
+
layer.lineOffset = styleValue.mglStyleValue;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
- (void)setLineOffsetTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
837
|
+
{
|
|
838
|
+
layer.lineOffsetTransition = [styleValue getTransition];
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
- (void)setLineBlur:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
842
|
+
{
|
|
843
|
+
layer.lineBlur = styleValue.mglStyleValue;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
- (void)setLineBlurTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
847
|
+
{
|
|
848
|
+
layer.lineBlurTransition = [styleValue getTransition];
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
- (void)setLineDasharray:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
852
|
+
{
|
|
853
|
+
layer.lineDashPattern = styleValue.mglStyleValue;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
- (void)setLineDasharrayTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
857
|
+
{
|
|
858
|
+
layer.lineDashPatternTransition = [styleValue getTransition];
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
- (void)setLinePattern:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
862
|
+
{
|
|
863
|
+
layer.linePattern = styleValue.mglStyleValue;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
- (void)setLinePatternTransition:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
867
|
+
{
|
|
868
|
+
layer.linePatternTransition = [styleValue getTransition];
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
- (void)setLineGradient:(MGLLineStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
872
|
+
{
|
|
873
|
+
layer.lineGradient = styleValue.mglStyleValue;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
- (void)setSymbolPlacement:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
879
|
+
{
|
|
880
|
+
layer.symbolPlacement = styleValue.mglStyleValue;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
- (void)setSymbolSpacing:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
884
|
+
{
|
|
885
|
+
layer.symbolSpacing = styleValue.mglStyleValue;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
- (void)setSymbolAvoidEdges:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
889
|
+
{
|
|
890
|
+
layer.symbolAvoidsEdges = styleValue.mglStyleValue;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
- (void)setSymbolSortKey:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
894
|
+
{
|
|
895
|
+
layer.symbolSortKey = styleValue.mglStyleValue;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
- (void)setSymbolZOrder:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
899
|
+
{
|
|
900
|
+
layer.symbolZOrder = styleValue.mglStyleValue;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
- (void)setIconAllowOverlap:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
904
|
+
{
|
|
905
|
+
layer.iconAllowsOverlap = styleValue.mglStyleValue;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
- (void)setIconIgnorePlacement:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
909
|
+
{
|
|
910
|
+
layer.iconIgnoresPlacement = styleValue.mglStyleValue;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
- (void)setIconOptional:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
914
|
+
{
|
|
915
|
+
layer.iconOptional = styleValue.mglStyleValue;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
- (void)setIconRotationAlignment:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
919
|
+
{
|
|
920
|
+
layer.iconRotationAlignment = styleValue.mglStyleValue;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
- (void)setIconSize:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
924
|
+
{
|
|
925
|
+
layer.iconScale = styleValue.mglStyleValue;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
- (void)setIconTextFit:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
929
|
+
{
|
|
930
|
+
layer.iconTextFit = styleValue.mglStyleValue;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
- (void)setIconTextFitPadding:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
934
|
+
{
|
|
935
|
+
layer.iconTextFitPadding = styleValue.mglStyleValue;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
- (void)setIconImage:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
939
|
+
{
|
|
940
|
+
layer.iconImageName = styleValue.mglStyleValue;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
- (void)setIconRotate:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
944
|
+
{
|
|
945
|
+
layer.iconRotation = styleValue.mglStyleValue;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
- (void)setIconPadding:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
949
|
+
{
|
|
950
|
+
layer.iconPadding = styleValue.mglStyleValue;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
- (void)setIconKeepUpright:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
954
|
+
{
|
|
955
|
+
layer.keepsIconUpright = styleValue.mglStyleValue;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
- (void)setIconOffset:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
959
|
+
{
|
|
960
|
+
layer.iconOffset = styleValue.mglStyleValue;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
- (void)setIconAnchor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
964
|
+
{
|
|
965
|
+
layer.iconAnchor = styleValue.mglStyleValue;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
- (void)setIconPitchAlignment:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
969
|
+
{
|
|
970
|
+
layer.iconPitchAlignment = styleValue.mglStyleValue;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
- (void)setTextPitchAlignment:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
974
|
+
{
|
|
975
|
+
layer.textPitchAlignment = styleValue.mglStyleValue;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
- (void)setTextRotationAlignment:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
979
|
+
{
|
|
980
|
+
layer.textRotationAlignment = styleValue.mglStyleValue;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
- (void)setTextField:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
984
|
+
{
|
|
985
|
+
layer.text = styleValue.mglStyleValue;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
- (void)setTextFont:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
989
|
+
{
|
|
990
|
+
layer.textFontNames = styleValue.mglStyleValue;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
- (void)setTextSize:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
994
|
+
{
|
|
995
|
+
layer.textFontSize = styleValue.mglStyleValue;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
- (void)setTextMaxWidth:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
999
|
+
{
|
|
1000
|
+
layer.maximumTextWidth = styleValue.mglStyleValue;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
- (void)setTextLineHeight:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1004
|
+
{
|
|
1005
|
+
layer.textLineHeight = styleValue.mglStyleValue;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
- (void)setTextLetterSpacing:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1009
|
+
{
|
|
1010
|
+
layer.textLetterSpacing = styleValue.mglStyleValue;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
- (void)setTextJustify:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1014
|
+
{
|
|
1015
|
+
layer.textJustification = styleValue.mglStyleValue;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
- (void)setTextRadialOffset:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1019
|
+
{
|
|
1020
|
+
layer.textRadialOffset = styleValue.mglStyleValue;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
- (void)setTextVariableAnchor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1024
|
+
{
|
|
1025
|
+
layer.textVariableAnchor = styleValue.mglStyleValue;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
- (void)setTextAnchor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1029
|
+
{
|
|
1030
|
+
layer.textAnchor = styleValue.mglStyleValue;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
- (void)setTextMaxAngle:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1034
|
+
{
|
|
1035
|
+
layer.maximumTextAngle = styleValue.mglStyleValue;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
- (void)setTextWritingMode:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1039
|
+
{
|
|
1040
|
+
layer.textWritingModes = styleValue.mglStyleValue;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
- (void)setTextRotate:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1044
|
+
{
|
|
1045
|
+
layer.textRotation = styleValue.mglStyleValue;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
- (void)setTextPadding:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1049
|
+
{
|
|
1050
|
+
layer.textPadding = styleValue.mglStyleValue;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
- (void)setTextKeepUpright:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1054
|
+
{
|
|
1055
|
+
layer.keepsTextUpright = styleValue.mglStyleValue;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
- (void)setTextTransform:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1059
|
+
{
|
|
1060
|
+
layer.textTransform = styleValue.mglStyleValue;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
- (void)setTextOffset:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1064
|
+
{
|
|
1065
|
+
layer.textOffset = styleValue.mglStyleValue;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
- (void)setTextAllowOverlap:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1069
|
+
{
|
|
1070
|
+
layer.textAllowsOverlap = styleValue.mglStyleValue;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
- (void)setTextIgnorePlacement:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1074
|
+
{
|
|
1075
|
+
layer.textIgnoresPlacement = styleValue.mglStyleValue;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
- (void)setTextOptional:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1079
|
+
{
|
|
1080
|
+
layer.textOptional = styleValue.mglStyleValue;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
- (void)setSymbolStyleLayerVisibility:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1084
|
+
{
|
|
1085
|
+
layer.visible = [styleValue isVisible];
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
- (void)setIconOpacity:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1089
|
+
{
|
|
1090
|
+
layer.iconOpacity = styleValue.mglStyleValue;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
- (void)setIconOpacityTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1094
|
+
{
|
|
1095
|
+
layer.iconOpacityTransition = [styleValue getTransition];
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
- (void)setIconColor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1099
|
+
{
|
|
1100
|
+
layer.iconColor = styleValue.mglStyleValue;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
- (void)setIconColorTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1104
|
+
{
|
|
1105
|
+
layer.iconColorTransition = [styleValue getTransition];
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
- (void)setIconHaloColor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1109
|
+
{
|
|
1110
|
+
layer.iconHaloColor = styleValue.mglStyleValue;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
- (void)setIconHaloColorTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1114
|
+
{
|
|
1115
|
+
layer.iconHaloColorTransition = [styleValue getTransition];
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
- (void)setIconHaloWidth:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1119
|
+
{
|
|
1120
|
+
layer.iconHaloWidth = styleValue.mglStyleValue;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
- (void)setIconHaloWidthTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1124
|
+
{
|
|
1125
|
+
layer.iconHaloWidthTransition = [styleValue getTransition];
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
- (void)setIconHaloBlur:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1129
|
+
{
|
|
1130
|
+
layer.iconHaloBlur = styleValue.mglStyleValue;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
- (void)setIconHaloBlurTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1134
|
+
{
|
|
1135
|
+
layer.iconHaloBlurTransition = [styleValue getTransition];
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
- (void)setIconTranslate:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1139
|
+
{
|
|
1140
|
+
layer.iconTranslation = styleValue.mglStyleValue;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
- (void)setIconTranslateTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1144
|
+
{
|
|
1145
|
+
layer.iconTranslationTransition = [styleValue getTransition];
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
- (void)setIconTranslateAnchor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1149
|
+
{
|
|
1150
|
+
layer.iconTranslationAnchor = styleValue.mglStyleValue;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
- (void)setTextOpacity:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1154
|
+
{
|
|
1155
|
+
layer.textOpacity = styleValue.mglStyleValue;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
- (void)setTextOpacityTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1159
|
+
{
|
|
1160
|
+
layer.textOpacityTransition = [styleValue getTransition];
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
- (void)setTextColor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1164
|
+
{
|
|
1165
|
+
layer.textColor = styleValue.mglStyleValue;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
- (void)setTextColorTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1169
|
+
{
|
|
1170
|
+
layer.textColorTransition = [styleValue getTransition];
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
- (void)setTextHaloColor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1174
|
+
{
|
|
1175
|
+
layer.textHaloColor = styleValue.mglStyleValue;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
- (void)setTextHaloColorTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1179
|
+
{
|
|
1180
|
+
layer.textHaloColorTransition = [styleValue getTransition];
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
- (void)setTextHaloWidth:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1184
|
+
{
|
|
1185
|
+
layer.textHaloWidth = styleValue.mglStyleValue;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
- (void)setTextHaloWidthTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1189
|
+
{
|
|
1190
|
+
layer.textHaloWidthTransition = [styleValue getTransition];
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
- (void)setTextHaloBlur:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1194
|
+
{
|
|
1195
|
+
layer.textHaloBlur = styleValue.mglStyleValue;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
- (void)setTextHaloBlurTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1199
|
+
{
|
|
1200
|
+
layer.textHaloBlurTransition = [styleValue getTransition];
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
- (void)setTextTranslate:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1204
|
+
{
|
|
1205
|
+
layer.textTranslation = styleValue.mglStyleValue;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
- (void)setTextTranslateTransition:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1209
|
+
{
|
|
1210
|
+
layer.textTranslationTransition = [styleValue getTransition];
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
- (void)setTextTranslateAnchor:(MGLSymbolStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1214
|
+
{
|
|
1215
|
+
layer.textTranslationAnchor = styleValue.mglStyleValue;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
- (void)setCircleStyleLayerVisibility:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1221
|
+
{
|
|
1222
|
+
layer.visible = [styleValue isVisible];
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
- (void)setCircleRadius:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1226
|
+
{
|
|
1227
|
+
layer.circleRadius = styleValue.mglStyleValue;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
- (void)setCircleRadiusTransition:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1231
|
+
{
|
|
1232
|
+
layer.circleRadiusTransition = [styleValue getTransition];
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
- (void)setCircleColor:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1236
|
+
{
|
|
1237
|
+
layer.circleColor = styleValue.mglStyleValue;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
- (void)setCircleColorTransition:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1241
|
+
{
|
|
1242
|
+
layer.circleColorTransition = [styleValue getTransition];
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
- (void)setCircleBlur:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1246
|
+
{
|
|
1247
|
+
layer.circleBlur = styleValue.mglStyleValue;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
- (void)setCircleBlurTransition:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1251
|
+
{
|
|
1252
|
+
layer.circleBlurTransition = [styleValue getTransition];
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
- (void)setCircleOpacity:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1256
|
+
{
|
|
1257
|
+
layer.circleOpacity = styleValue.mglStyleValue;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
- (void)setCircleOpacityTransition:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1261
|
+
{
|
|
1262
|
+
layer.circleOpacityTransition = [styleValue getTransition];
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
- (void)setCircleTranslate:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1266
|
+
{
|
|
1267
|
+
layer.circleTranslation = styleValue.mglStyleValue;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
- (void)setCircleTranslateTransition:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1271
|
+
{
|
|
1272
|
+
layer.circleTranslationTransition = [styleValue getTransition];
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
- (void)setCircleTranslateAnchor:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1276
|
+
{
|
|
1277
|
+
layer.circleTranslationAnchor = styleValue.mglStyleValue;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
- (void)setCirclePitchScale:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1281
|
+
{
|
|
1282
|
+
layer.circleScaleAlignment = styleValue.mglStyleValue;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
- (void)setCirclePitchAlignment:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1286
|
+
{
|
|
1287
|
+
layer.circlePitchAlignment = styleValue.mglStyleValue;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
- (void)setCircleStrokeWidth:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1291
|
+
{
|
|
1292
|
+
layer.circleStrokeWidth = styleValue.mglStyleValue;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
- (void)setCircleStrokeWidthTransition:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1296
|
+
{
|
|
1297
|
+
layer.circleStrokeWidthTransition = [styleValue getTransition];
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
- (void)setCircleStrokeColor:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1301
|
+
{
|
|
1302
|
+
layer.circleStrokeColor = styleValue.mglStyleValue;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
- (void)setCircleStrokeColorTransition:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1306
|
+
{
|
|
1307
|
+
layer.circleStrokeColorTransition = [styleValue getTransition];
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
- (void)setCircleStrokeOpacity:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1311
|
+
{
|
|
1312
|
+
layer.circleStrokeOpacity = styleValue.mglStyleValue;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
- (void)setCircleStrokeOpacityTransition:(MGLCircleStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1316
|
+
{
|
|
1317
|
+
layer.circleStrokeOpacityTransition = [styleValue getTransition];
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
- (void)setHeatmapStyleLayerVisibility:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1323
|
+
{
|
|
1324
|
+
layer.visible = [styleValue isVisible];
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
- (void)setHeatmapRadius:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1328
|
+
{
|
|
1329
|
+
layer.heatmapRadius = styleValue.mglStyleValue;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
- (void)setHeatmapRadiusTransition:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1333
|
+
{
|
|
1334
|
+
layer.heatmapRadiusTransition = [styleValue getTransition];
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
- (void)setHeatmapWeight:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1338
|
+
{
|
|
1339
|
+
layer.heatmapWeight = styleValue.mglStyleValue;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
- (void)setHeatmapIntensity:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1343
|
+
{
|
|
1344
|
+
layer.heatmapIntensity = styleValue.mglStyleValue;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
- (void)setHeatmapIntensityTransition:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1348
|
+
{
|
|
1349
|
+
layer.heatmapIntensityTransition = [styleValue getTransition];
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
- (void)setHeatmapColor:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1353
|
+
{
|
|
1354
|
+
layer.heatmapColor = styleValue.mglStyleValue;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
- (void)setHeatmapOpacity:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1358
|
+
{
|
|
1359
|
+
layer.heatmapOpacity = styleValue.mglStyleValue;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
- (void)setHeatmapOpacityTransition:(MGLHeatmapStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1363
|
+
{
|
|
1364
|
+
layer.heatmapOpacityTransition = [styleValue getTransition];
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
- (void)setFillExtrusionStyleLayerVisibility:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1370
|
+
{
|
|
1371
|
+
layer.visible = [styleValue isVisible];
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
- (void)setFillExtrusionOpacity:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1375
|
+
{
|
|
1376
|
+
layer.fillExtrusionOpacity = styleValue.mglStyleValue;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
- (void)setFillExtrusionOpacityTransition:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1380
|
+
{
|
|
1381
|
+
layer.fillExtrusionOpacityTransition = [styleValue getTransition];
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
- (void)setFillExtrusionColor:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1385
|
+
{
|
|
1386
|
+
layer.fillExtrusionColor = styleValue.mglStyleValue;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
- (void)setFillExtrusionColorTransition:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1390
|
+
{
|
|
1391
|
+
layer.fillExtrusionColorTransition = [styleValue getTransition];
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
- (void)setFillExtrusionTranslate:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1395
|
+
{
|
|
1396
|
+
layer.fillExtrusionTranslation = styleValue.mglStyleValue;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
- (void)setFillExtrusionTranslateTransition:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1400
|
+
{
|
|
1401
|
+
layer.fillExtrusionTranslationTransition = [styleValue getTransition];
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
- (void)setFillExtrusionTranslateAnchor:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1405
|
+
{
|
|
1406
|
+
layer.fillExtrusionTranslationAnchor = styleValue.mglStyleValue;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
- (void)setFillExtrusionPattern:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1410
|
+
{
|
|
1411
|
+
layer.fillExtrusionPattern = styleValue.mglStyleValue;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
- (void)setFillExtrusionPatternTransition:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1415
|
+
{
|
|
1416
|
+
layer.fillExtrusionPatternTransition = [styleValue getTransition];
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
- (void)setFillExtrusionHeight:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1420
|
+
{
|
|
1421
|
+
layer.fillExtrusionHeight = styleValue.mglStyleValue;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
- (void)setFillExtrusionHeightTransition:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1425
|
+
{
|
|
1426
|
+
layer.fillExtrusionHeightTransition = [styleValue getTransition];
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
- (void)setFillExtrusionBase:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1430
|
+
{
|
|
1431
|
+
layer.fillExtrusionBase = styleValue.mglStyleValue;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
- (void)setFillExtrusionBaseTransition:(MGLFillExtrusionStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1435
|
+
{
|
|
1436
|
+
layer.fillExtrusionBaseTransition = [styleValue getTransition];
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
- (void)setRasterStyleLayerVisibility:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1442
|
+
{
|
|
1443
|
+
layer.visible = [styleValue isVisible];
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
- (void)setRasterOpacity:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1447
|
+
{
|
|
1448
|
+
layer.rasterOpacity = styleValue.mglStyleValue;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
- (void)setRasterOpacityTransition:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1452
|
+
{
|
|
1453
|
+
layer.rasterOpacityTransition = [styleValue getTransition];
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
- (void)setRasterHueRotate:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1457
|
+
{
|
|
1458
|
+
layer.rasterHueRotation = styleValue.mglStyleValue;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
- (void)setRasterHueRotateTransition:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1462
|
+
{
|
|
1463
|
+
layer.rasterHueRotationTransition = [styleValue getTransition];
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
- (void)setRasterBrightnessMin:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1467
|
+
{
|
|
1468
|
+
layer.minimumRasterBrightness = styleValue.mglStyleValue;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
- (void)setRasterBrightnessMinTransition:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1472
|
+
{
|
|
1473
|
+
layer.minimumRasterBrightnessTransition = [styleValue getTransition];
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
- (void)setRasterBrightnessMax:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1477
|
+
{
|
|
1478
|
+
layer.maximumRasterBrightness = styleValue.mglStyleValue;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
- (void)setRasterBrightnessMaxTransition:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1482
|
+
{
|
|
1483
|
+
layer.maximumRasterBrightnessTransition = [styleValue getTransition];
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
- (void)setRasterSaturation:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1487
|
+
{
|
|
1488
|
+
layer.rasterSaturation = styleValue.mglStyleValue;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
- (void)setRasterSaturationTransition:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1492
|
+
{
|
|
1493
|
+
layer.rasterSaturationTransition = [styleValue getTransition];
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
- (void)setRasterContrast:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1497
|
+
{
|
|
1498
|
+
layer.rasterContrast = styleValue.mglStyleValue;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
- (void)setRasterContrastTransition:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1502
|
+
{
|
|
1503
|
+
layer.rasterContrastTransition = [styleValue getTransition];
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
- (void)setRasterResampling:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1507
|
+
{
|
|
1508
|
+
layer.rasterResamplingMode = styleValue.mglStyleValue;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
- (void)setRasterFadeDuration:(MGLRasterStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1512
|
+
{
|
|
1513
|
+
layer.rasterFadeDuration = styleValue.mglStyleValue;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
- (void)setHillshadeStyleLayerVisibility:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1519
|
+
{
|
|
1520
|
+
layer.visible = [styleValue isVisible];
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
- (void)setHillshadeIlluminationDirection:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1524
|
+
{
|
|
1525
|
+
layer.hillshadeIlluminationDirection = styleValue.mglStyleValue;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
- (void)setHillshadeIlluminationAnchor:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1529
|
+
{
|
|
1530
|
+
layer.hillshadeIlluminationAnchor = styleValue.mglStyleValue;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
- (void)setHillshadeExaggeration:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1534
|
+
{
|
|
1535
|
+
layer.hillshadeExaggeration = styleValue.mglStyleValue;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
- (void)setHillshadeExaggerationTransition:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1539
|
+
{
|
|
1540
|
+
layer.hillshadeExaggerationTransition = [styleValue getTransition];
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
- (void)setHillshadeShadowColor:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1544
|
+
{
|
|
1545
|
+
layer.hillshadeShadowColor = styleValue.mglStyleValue;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
- (void)setHillshadeShadowColorTransition:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1549
|
+
{
|
|
1550
|
+
layer.hillshadeShadowColorTransition = [styleValue getTransition];
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
- (void)setHillshadeHighlightColor:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1554
|
+
{
|
|
1555
|
+
layer.hillshadeHighlightColor = styleValue.mglStyleValue;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
- (void)setHillshadeHighlightColorTransition:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1559
|
+
{
|
|
1560
|
+
layer.hillshadeHighlightColorTransition = [styleValue getTransition];
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
- (void)setHillshadeAccentColor:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1564
|
+
{
|
|
1565
|
+
layer.hillshadeAccentColor = styleValue.mglStyleValue;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
- (void)setHillshadeAccentColorTransition:(MGLHillshadeStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1569
|
+
{
|
|
1570
|
+
layer.hillshadeAccentColorTransition = [styleValue getTransition];
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
- (void)setBackgroundStyleLayerVisibility:(MGLBackgroundStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1576
|
+
{
|
|
1577
|
+
layer.visible = [styleValue isVisible];
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
- (void)setBackgroundColor:(MGLBackgroundStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1581
|
+
{
|
|
1582
|
+
layer.backgroundColor = styleValue.mglStyleValue;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
- (void)setBackgroundColorTransition:(MGLBackgroundStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1586
|
+
{
|
|
1587
|
+
layer.backgroundColorTransition = [styleValue getTransition];
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
- (void)setBackgroundPattern:(MGLBackgroundStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1591
|
+
{
|
|
1592
|
+
layer.backgroundPattern = styleValue.mglStyleValue;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
- (void)setBackgroundPatternTransition:(MGLBackgroundStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1596
|
+
{
|
|
1597
|
+
layer.backgroundPatternTransition = [styleValue getTransition];
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
- (void)setBackgroundOpacity:(MGLBackgroundStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1601
|
+
{
|
|
1602
|
+
layer.backgroundOpacity = styleValue.mglStyleValue;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
- (void)setBackgroundOpacityTransition:(MGLBackgroundStyleLayer *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1606
|
+
{
|
|
1607
|
+
layer.backgroundOpacityTransition = [styleValue getTransition];
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
- (void)setAnchor:(MGLLight *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1613
|
+
{
|
|
1614
|
+
layer.anchor = styleValue.mglStyleValue;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
- (void)setPosition:(MGLLight *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1618
|
+
{
|
|
1619
|
+
layer.position = [styleValue getSphericalPosition];
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
- (void)setPositionTransition:(MGLLight *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1623
|
+
{
|
|
1624
|
+
layer.positionTransition = [styleValue getTransition];
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
- (void)setColor:(MGLLight *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1628
|
+
{
|
|
1629
|
+
layer.color = styleValue.mglStyleValue;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
- (void)setColorTransition:(MGLLight *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1633
|
+
{
|
|
1634
|
+
layer.colorTransition = [styleValue getTransition];
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
- (void)setIntensity:(MGLLight *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1638
|
+
{
|
|
1639
|
+
layer.intensity = styleValue.mglStyleValue;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
- (void)setIntensityTransition:(MGLLight *)layer withReactStyleValue:(RCTMGLStyleValue *)styleValue
|
|
1643
|
+
{
|
|
1644
|
+
layer.intensityTransition = [styleValue getTransition];
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
- (BOOL)_hasReactStyle:(NSDictionary *)reactStyle
|
|
1650
|
+
{
|
|
1651
|
+
return reactStyle != nil && reactStyle.allKeys.count > 0;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
@end
|