@rnmapbox/maps 10.1.45 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +10 -2
- package/android/install.md +3 -14
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapView.kt +4 -2
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +514 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +341 -1
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Annotation.kt +1 -1
- package/ios/RNMBX/RNMBXMapViewComponentView.mm +8 -3
- package/ios/RNMBX/RNMBXStyle.swift +382 -0
- package/lib/commonjs/plugin/build/generateCode.js +0 -1
- package/lib/commonjs/plugin/build/withMapbox.js +14 -4
- package/lib/commonjs/plugin/install.md +18 -18
- package/lib/commonjs/plugin/src/generateCode.ts +0 -1
- package/lib/commonjs/plugin/src/withMapbox.ts +24 -4
- package/lib/module/Mapbox.js +3 -80
- package/lib/module/Mapbox.js.map +1 -1
- package/lib/module/Mapbox.native.js +83 -0
- package/lib/module/Mapbox.native.js.map +1 -0
- package/lib/module/RNMBXModule.js +0 -1
- package/lib/module/RNMBXModule.js.map +1 -1
- package/lib/module/classes/AnimatedRouteCoordinatesArray.js +2 -4
- package/lib/module/classes/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/module/classes/index.js +5 -5
- package/lib/module/classes/index.js.map +1 -1
- package/lib/module/components/AbstractLayer.js +2 -2
- package/lib/module/components/AbstractLayer.js.map +1 -1
- package/lib/module/components/Annotation.js +7 -4
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/Atmosphere.js +2 -2
- package/lib/module/components/Atmosphere.js.map +1 -1
- package/lib/module/components/BackgroundLayer.js +11 -9
- package/lib/module/components/BackgroundLayer.js.map +1 -1
- package/lib/module/components/Camera.js +16 -12
- package/lib/module/components/Camera.js.map +1 -1
- package/lib/module/components/CircleLayer.js +1 -1
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/CustomLocationProvider.js +1 -1
- package/lib/module/components/CustomLocationProvider.js.map +1 -1
- package/lib/module/components/FillExtrusionLayer.js +11 -9
- package/lib/module/components/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +1 -1
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeadingIndicator.js +2 -2
- package/lib/module/components/HeadingIndicator.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +1 -1
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/Image.js +2 -2
- package/lib/module/components/Image.js.map +1 -1
- package/lib/module/components/ImageSource.js +2 -2
- package/lib/module/components/ImageSource.js.map +1 -1
- package/lib/module/components/Images.js +2 -2
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/Light.js +3 -5
- package/lib/module/components/Light.js.map +1 -1
- package/lib/module/components/LineLayer.js +1 -2
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/LocationPuck.js +1 -1
- package/lib/module/components/LocationPuck.js.map +1 -1
- package/lib/module/components/MapView.js +12 -7
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +5 -5
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/ModelLayer.js +1 -2
- package/lib/module/components/ModelLayer.js.map +1 -1
- package/lib/module/components/Models.js +0 -1
- package/lib/module/components/Models.js.map +1 -1
- package/lib/module/components/NativeBridgeComponent.js +1 -1
- package/lib/module/components/NativeBridgeComponent.js.map +1 -1
- package/lib/module/components/PointAnnotation.js +5 -5
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterDemSource.js +4 -4
- package/lib/module/components/RasterDemSource.js.map +1 -1
- package/lib/module/components/RasterLayer.js +1 -1
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/RasterSource.js +4 -4
- package/lib/module/components/RasterSource.js.map +1 -1
- package/lib/module/components/ShapeSource.js +7 -7
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/SkyLayer.js +9 -7
- package/lib/module/components/SkyLayer.js.map +1 -1
- package/lib/module/components/Style.js +14 -14
- package/lib/module/components/Style.js.map +1 -1
- package/lib/module/components/StyleImport.js +1 -1
- package/lib/module/components/StyleImport.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +1 -1
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/Terrain.js +2 -2
- package/lib/module/components/Terrain.js.map +1 -1
- package/lib/module/components/UserLocation.js +5 -5
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js +5 -5
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/components/Viewport.js +6 -3
- package/lib/module/components/Viewport.js.map +1 -1
- package/lib/module/components/codeparts/LayerPropsCommon.codepart-tsx +1 -1
- package/lib/module/index.native.js +6 -0
- package/lib/module/index.native.js.map +1 -0
- package/lib/module/modules/location/locationManager.js +20 -17
- package/lib/module/modules/location/locationManager.js.map +1 -1
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +2 -2
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/module/modules/offline/TileStore.js +1 -1
- package/lib/module/modules/offline/TileStore.js.map +1 -1
- package/lib/module/modules/offline/offlineManager.js +4 -4
- package/lib/module/modules/offline/offlineManager.js.map +1 -1
- package/lib/module/modules/offline/offlineManagerLegacy.js +3 -3
- package/lib/module/modules/offline/offlineManagerLegacy.js.map +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js +2 -2
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/modules/snapshot/snapshotManager.js +1 -1
- package/lib/module/modules/snapshot/snapshotManager.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/requestAndroidLocationPermissions.js +1 -1
- package/lib/module/requestAndroidLocationPermissions.js.map +1 -1
- package/lib/module/shapeAnimators/ChangeLineOffsetsShapeAnimator.js +4 -2
- package/lib/module/shapeAnimators/ChangeLineOffsetsShapeAnimator.js.map +1 -1
- package/lib/module/shapeAnimators/MovePointShapeAnimator.js +2 -2
- package/lib/module/shapeAnimators/MovePointShapeAnimator.js.map +1 -1
- package/lib/module/specs/NativeMapViewModule.js +1 -1
- package/lib/module/specs/NativeMapViewModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXCameraModule.js +3 -1
- package/lib/module/specs/NativeRNMBXCameraModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXChangeLineOffsetsShapeAnimatorModule.js +3 -0
- package/lib/module/specs/NativeRNMBXChangeLineOffsetsShapeAnimatorModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXImageModule.js +1 -1
- package/lib/module/specs/NativeRNMBXImageModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXLocationModule.js +3 -1
- package/lib/module/specs/NativeRNMBXLocationModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXMovePointShapeAnimatorModule.js +2 -0
- package/lib/module/specs/NativeRNMBXMovePointShapeAnimatorModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXPointAnnotationModule.js +1 -1
- package/lib/module/specs/NativeRNMBXPointAnnotationModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXShapeSourceModule.js +1 -1
- package/lib/module/specs/NativeRNMBXShapeSourceModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXTileStoreModule.js +3 -1
- package/lib/module/specs/NativeRNMBXTileStoreModule.js.map +1 -1
- package/lib/module/specs/NativeRNMBXViewportModule.js +3 -1
- package/lib/module/specs/NativeRNMBXViewportModule.js.map +1 -1
- package/lib/module/specs/RNMBXAtmosphereNativeComponent.ts +1 -0
- package/lib/module/specs/RNMBXBackgroundLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXCalloutNativeComponent.ts +1 -1
- package/lib/module/specs/RNMBXCameraNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXCustomLocationProviderNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXFillExtrusionLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXFillLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXImageNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXImageSourceNativeComponent.ts +1 -0
- package/lib/module/specs/RNMBXImagesNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXLightNativeComponent.ts +1 -0
- package/lib/module/specs/RNMBXLineLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXMapViewNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXMarkerViewContentNativeComponent.ts +2 -2
- package/lib/module/specs/RNMBXMarkerViewNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXModelLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXModelsNativeComponent.ts +1 -0
- package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.ts +1 -0
- package/lib/module/specs/RNMBXPointAnnotationNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXRasterDemSourceNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXRasterSourceNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXShapeSourceNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXSkyLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXStyleImportNativeComponent.ts +1 -0
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXTerrainNativeComponent.ts +1 -0
- package/lib/module/specs/RNMBXVectorSourceNativeComponent.ts +2 -0
- package/lib/module/specs/RNMBXViewportNativeComponent.ts +2 -0
- package/lib/module/utils/BridgeValue.js +1 -1
- package/lib/module/utils/BridgeValue.js.map +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/MapboxStyles.d.js +48 -0
- package/lib/module/utils/MapboxStyles.d.js.map +1 -1
- package/lib/module/utils/NativeCommands.js.map +1 -1
- package/lib/module/utils/StyleValue.js +2 -2
- package/lib/module/utils/StyleValue.js.map +1 -1
- package/lib/module/utils/animated/Animated.js +9 -9
- package/lib/module/utils/animated/Animated.js.map +1 -1
- package/lib/module/utils/geoUtils.js +6 -1
- package/lib/module/utils/geoUtils.js.map +1 -1
- package/lib/module/utils/index.js +0 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/styleMap.js +31 -1
- package/lib/module/utils/styleMap.js.map +1 -1
- package/lib/module/web/MapboxModule.js +15 -8
- package/lib/module/web/MapboxModule.js.map +1 -1
- package/lib/module/web/components/Camera.js +3 -1
- package/lib/module/web/components/Camera.js.map +1 -1
- package/lib/module/web/components/MapView.js +1 -1
- package/lib/module/web/components/MapView.js.map +1 -1
- package/lib/module/web/components/MarkerView.js +1 -1
- package/lib/module/web/components/MarkerView.js.map +1 -1
- package/lib/module/web/index.js +6 -5
- package/lib/module/web/index.js.map +1 -1
- package/lib/module/web/utils/Logger.js +0 -2
- package/lib/module/web/utils/Logger.js.map +1 -1
- package/lib/typescript/app.plugin.d.ts +3 -0
- package/lib/typescript/app.plugin.d.ts.map +1 -0
- package/lib/typescript/babel.config.d.ts +10 -0
- package/lib/typescript/babel.config.d.ts.map +1 -0
- package/lib/typescript/eslint.config.d.mts +3 -0
- package/lib/typescript/eslint.config.d.mts.map +1 -0
- package/lib/typescript/example/src/examples/common/ExampleMetadata.d.ts +9 -0
- package/lib/typescript/example/src/examples/common/ExampleMetadata.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/plugin/build/generateCode.d.ts +41 -0
- package/lib/typescript/plugin/build/generateCode.d.ts.map +1 -0
- package/lib/typescript/plugin/build/withMapbox.d.ts +26 -0
- package/lib/typescript/plugin/build/withMapbox.d.ts.map +1 -0
- package/lib/typescript/plugin/copy-plugin.d.ts +2 -0
- package/lib/typescript/plugin/copy-plugin.d.ts.map +1 -0
- package/lib/typescript/plugin/jest.config.d.ts +3 -0
- package/lib/typescript/plugin/jest.config.d.ts.map +1 -0
- package/lib/typescript/plugin/src/generateCode.d.ts +43 -0
- package/lib/typescript/plugin/src/generateCode.d.ts.map +1 -0
- package/lib/typescript/plugin/src/withMapbox.d.ts +20 -0
- package/lib/typescript/plugin/src/withMapbox.d.ts.map +1 -0
- package/lib/typescript/scripts/actions/lint-code-example-in-issues/fetch-issue-for-testing.d.ts +2 -0
- package/lib/typescript/scripts/actions/lint-code-example-in-issues/fetch-issue-for-testing.d.ts.map +1 -0
- package/lib/typescript/scripts/actions/lint-code-example-in-issues/lint-code-example-in-issues.d.ts +2 -0
- package/lib/typescript/scripts/actions/lint-code-example-in-issues/lint-code-example-in-issues.d.ts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/DocJSONBuilder.d.mts +20 -0
- package/lib/typescript/scripts/autogenHelpers/DocJSONBuilder.d.mts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/JSDocNodeTree.d.ts +47 -0
- package/lib/typescript/scripts/autogenHelpers/JSDocNodeTree.d.ts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/MarkdownBuilder.d.mts +21 -0
- package/lib/typescript/scripts/autogenHelpers/MarkdownBuilder.d.mts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/docconfig.d.ts +13 -0
- package/lib/typescript/scripts/autogenHelpers/docconfig.d.ts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/examplesJsonSchema.d.ts +18 -0
- package/lib/typescript/scripts/autogenHelpers/examplesJsonSchema.d.ts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts +40 -0
- package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/generateIOSComponents.d.mts +17 -0
- package/lib/typescript/scripts/autogenHelpers/generateIOSComponents.d.mts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/globals.d.mts +34 -0
- package/lib/typescript/scripts/autogenHelpers/globals.d.mts.map +1 -0
- package/lib/typescript/scripts/autogenHelpers/screenshotsJsonSchema.d.ts +10 -0
- package/lib/typescript/scripts/autogenHelpers/screenshotsJsonSchema.d.ts.map +1 -0
- package/lib/typescript/scripts/autogenerate.d.mts +2 -0
- package/lib/typescript/scripts/autogenerate.d.mts.map +1 -0
- package/lib/typescript/scripts/codegen-old-arch.d.ts +3 -0
- package/lib/typescript/scripts/codegen-old-arch.d.ts.map +1 -0
- package/lib/typescript/scripts/codepart-replace.d.mts +9 -0
- package/lib/typescript/scripts/codepart-replace.d.mts.map +1 -0
- package/lib/typescript/scripts/doc-generate.d.mts +2 -0
- package/lib/typescript/scripts/doc-generate.d.mts.map +1 -0
- package/lib/typescript/scripts/docjsongenerate.d.mts +2 -0
- package/lib/typescript/scripts/docjsongenerate.d.mts.map +1 -0
- package/lib/typescript/scripts/example-docs.d.ts +5 -0
- package/lib/typescript/scripts/example-docs.d.ts.map +1 -0
- package/lib/typescript/setup-jest.d.ts +2 -0
- package/lib/typescript/setup-jest.d.ts.map +1 -0
- package/lib/typescript/src/Mapbox.d.ts +3 -70
- package/lib/typescript/src/Mapbox.d.ts.map +1 -1
- package/lib/typescript/src/Mapbox.native.d.ts +71 -0
- package/lib/typescript/src/Mapbox.native.d.ts.map +1 -0
- package/lib/typescript/src/RNMBXModule.d.ts.map +1 -1
- package/lib/typescript/src/classes/AnimatedCoordinatesArray.d.ts +46 -0
- package/lib/typescript/src/classes/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/src/classes/AnimatedExtractCoordinateFromArray.d.ts +12 -0
- package/lib/typescript/src/classes/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/src/classes/AnimatedPoint.d.ts +38 -0
- package/lib/typescript/src/classes/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/src/classes/AnimatedRouteCoordinatesArray.d.ts +23 -0
- package/lib/typescript/src/classes/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/src/classes/AnimatedShape.d.ts +24 -0
- package/lib/typescript/src/classes/AnimatedShape.d.ts.map +1 -0
- package/lib/typescript/src/classes/index.d.ts +6 -0
- package/lib/typescript/src/classes/index.d.ts.map +1 -0
- package/lib/typescript/src/components/AbstractLayer.d.ts +2 -2
- package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Annotation.d.ts +2 -2
- package/lib/typescript/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/src/components/Atmosphere.d.ts +1 -2
- package/lib/typescript/src/components/Atmosphere.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayer.d.ts +4 -4
- package/lib/typescript/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Callout.d.ts +167 -3
- package/lib/typescript/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/src/components/CircleLayer.d.ts +2 -2
- package/lib/typescript/src/components/CustomLocationProvider.d.ts +1 -2
- package/lib/typescript/src/components/CustomLocationProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/FillExtrusionLayer.d.ts +2 -2
- package/lib/typescript/src/components/FillLayer.d.ts +4 -4
- package/lib/typescript/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/HeadingIndicator.d.ts +1 -2
- package/lib/typescript/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/HeatmapLayer.d.ts +4 -4
- package/lib/typescript/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/ImageSource.d.ts +2 -2
- package/lib/typescript/src/components/Images.d.ts +2 -2
- package/lib/typescript/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/src/components/LineLayer.d.ts +2 -3
- package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/LocationPuck.d.ts +1 -2
- package/lib/typescript/src/components/LocationPuck.d.ts.map +1 -1
- package/lib/typescript/src/components/MapView.d.ts +3 -3
- package/lib/typescript/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/components/MarkerView.d.ts +1 -1
- package/lib/typescript/src/components/ModelLayer.d.ts +2 -3
- package/lib/typescript/src/components/ModelLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/Models.d.ts +1 -2
- package/lib/typescript/src/components/Models.d.ts.map +1 -1
- package/lib/typescript/src/components/PointAnnotation.d.ts +1 -1
- package/lib/typescript/src/components/RasterDemSource.d.ts +2 -2
- package/lib/typescript/src/components/RasterLayer.d.ts +2 -2
- package/lib/typescript/src/components/RasterSource.d.ts +2 -2
- package/lib/typescript/src/components/ShapeSource.d.ts +2 -2
- package/lib/typescript/src/components/SkyLayer.d.ts +2 -2
- package/lib/typescript/src/components/Style.d.ts +1 -2
- package/lib/typescript/src/components/Style.d.ts.map +1 -1
- package/lib/typescript/src/components/StyleImport.d.ts +1 -2
- package/lib/typescript/src/components/StyleImport.d.ts.map +1 -1
- package/lib/typescript/src/components/SymbolLayer.d.ts +2 -2
- package/lib/typescript/src/components/Terrain.d.ts +1 -2
- package/lib/typescript/src/components/Terrain.d.ts.map +1 -1
- package/lib/typescript/src/components/UserLocation.d.ts +2 -2
- package/lib/typescript/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/src/components/VectorSource.d.ts +2 -2
- package/lib/typescript/src/components/Viewport.d.ts.map +1 -1
- package/lib/typescript/src/index.native.d.ts +4 -0
- package/lib/typescript/src/index.native.d.ts.map +1 -0
- package/lib/typescript/src/modules/location/locationManager.d.ts +1 -1
- package/lib/typescript/src/modules/location/locationManager.d.ts.map +1 -1
- package/lib/typescript/src/modules/offline/offlineManager.d.ts +1 -1
- package/lib/typescript/src/modules/offline/offlineManager.d.ts.map +1 -1
- package/lib/typescript/src/modules/offline/offlineManagerLegacy.d.ts.map +1 -1
- package/lib/typescript/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeMapViewModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXCameraModule.d.ts +1 -1
- package/lib/typescript/src/specs/NativeRNMBXCameraModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXChangeLineOffsetsShapeAnimatorModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXImageModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXLocationModule.d.ts +1 -1
- package/lib/typescript/src/specs/NativeRNMBXLocationModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXMovePointShapeAnimatorModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXPointAnnotationModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXShapeSourceModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXTileStoreModule.d.ts +1 -1
- package/lib/typescript/src/specs/NativeRNMBXTileStoreModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeRNMBXViewportModule.d.ts +1 -1
- package/lib/typescript/src/specs/NativeRNMBXViewportModule.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXAtmosphereNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXBackgroundLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCalloutNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCameraNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXFillExtrusionLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXImageNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXImageSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXImagesNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXLightNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMarkerViewContentNativeComponent.d.ts +1 -1
- package/lib/typescript/src/specs/RNMBXMarkerViewContentNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXPointAnnotationNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterDemSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXShapeSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSkyLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXStyleImportNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXTerrainNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXVectorSourceNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXViewportNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/codegenUtils.d.ts.map +1 -1
- package/lib/typescript/src/utils/NativeCommands.d.ts.map +1 -1
- package/lib/typescript/src/utils/animated/Animated.d.ts +165 -9
- package/lib/typescript/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/src/utils/geoUtils.d.ts +7 -9
- package/lib/typescript/src/utils/geoUtils.d.ts.map +1 -1
- package/lib/typescript/src/utils/getAnnotationsLayerID.d.ts +1 -1
- package/lib/typescript/src/utils/getAnnotationsLayerID.d.ts.map +1 -1
- package/lib/typescript/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/nativeRef.d.ts +1 -1
- package/lib/typescript/src/utils/nativeRef.d.ts.map +1 -1
- package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
- package/lib/typescript/src/web/MapboxModule.d.ts +24 -0
- package/lib/typescript/src/web/MapboxModule.d.ts.map +1 -0
- package/lib/typescript/src/web/UnimplementedComponent.d.ts +47 -0
- package/lib/typescript/src/web/UnimplementedComponent.d.ts.map +1 -0
- package/lib/typescript/src/web/components/Camera.d.ts +1 -1
- package/lib/typescript/src/web/components/Camera.d.ts.map +1 -1
- package/lib/typescript/src/web/components/MapView.d.ts +1 -1
- package/lib/typescript/src/web/components/MarkerView.d.ts +1 -1
- package/lib/typescript/src/web/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/src/web/index.d.ts +28 -0
- package/lib/typescript/src/web/index.d.ts.map +1 -0
- package/lib/typescript/src/web/utils/Logger.d.ts.map +1 -1
- package/package.json +141 -97
- package/plugin/build/generateCode.js +0 -1
- package/plugin/build/withMapbox.js +14 -4
- package/plugin/install.md +18 -18
- package/plugin/src/generateCode.ts +0 -1
- package/plugin/src/withMapbox.ts +24 -4
- package/rnmapbox-maps.podspec +20 -4
- package/setup-jest.js +1 -0
- package/src/Mapbox.native.ts +125 -0
- package/src/Mapbox.ts +3 -124
- package/src/RNMBXModule.ts +0 -1
- package/src/classes/AnimatedRouteCoordinatesArray.js +1 -1
- package/src/components/Annotation.tsx +2 -0
- package/src/components/Atmosphere.tsx +1 -1
- package/src/components/BackgroundLayer.tsx +6 -6
- package/src/components/Camera.tsx +29 -16
- package/src/components/CircleLayer.tsx +1 -1
- package/src/components/CustomLocationProvider.tsx +1 -1
- package/src/components/FillExtrusionLayer.tsx +4 -4
- package/src/components/FillLayer.tsx +6 -3
- package/src/components/HeatmapLayer.tsx +3 -3
- package/src/components/Image.tsx +1 -1
- package/src/components/ImageSource.tsx +1 -1
- package/src/components/Images.tsx +13 -12
- package/src/components/Light.tsx +0 -1
- package/src/components/LineLayer.tsx +1 -2
- package/src/components/LocationPuck.tsx +1 -1
- package/src/components/MapView.tsx +8 -4
- package/src/components/MarkerView.tsx +3 -3
- package/src/components/ModelLayer.tsx +1 -2
- package/src/components/Models.tsx +1 -2
- package/src/components/RasterDemSource.tsx +3 -3
- package/src/components/RasterLayer.tsx +1 -1
- package/src/components/RasterSource.tsx +3 -3
- package/src/components/ShapeSource.tsx +3 -3
- package/src/components/SkyLayer.tsx +2 -2
- package/src/components/Style.tsx +4 -4
- package/src/components/StyleImport.tsx +1 -1
- package/src/components/SymbolLayer.tsx +1 -1
- package/src/components/Terrain.tsx +1 -1
- package/src/components/UserLocation.tsx +6 -1
- package/src/components/VectorSource.tsx +3 -3
- package/src/components/Viewport.tsx +2 -0
- package/src/components/codeparts/LayerPropsCommon.codepart-tsx +1 -1
- package/src/index.native.ts +4 -0
- package/src/modules/location/locationManager.ts +34 -23
- package/src/modules/offline/offlineManager.ts +7 -8
- package/src/modules/offline/offlineManagerLegacy.ts +3 -4
- package/src/requestAndroidLocationPermissions.ts +1 -1
- package/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.ts +1 -0
- package/src/specs/NativeMapViewModule.ts +1 -1
- package/src/specs/NativeRNMBXCameraModule.ts +3 -2
- package/src/specs/NativeRNMBXChangeLineOffsetsShapeAnimatorModule.ts +2 -0
- package/src/specs/NativeRNMBXImageModule.ts +1 -1
- package/src/specs/NativeRNMBXLocationModule.ts +21 -21
- package/src/specs/NativeRNMBXMovePointShapeAnimatorModule.ts +1 -0
- package/src/specs/NativeRNMBXPointAnnotationModule.ts +1 -1
- package/src/specs/NativeRNMBXShapeSourceModule.ts +1 -1
- package/src/specs/NativeRNMBXTileStoreModule.ts +3 -2
- package/src/specs/NativeRNMBXViewportModule.ts +3 -2
- package/src/specs/RNMBXAtmosphereNativeComponent.ts +1 -0
- package/src/specs/RNMBXBackgroundLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXCalloutNativeComponent.ts +1 -1
- package/src/specs/RNMBXCameraNativeComponent.ts +2 -0
- package/src/specs/RNMBXCircleLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXCustomLocationProviderNativeComponent.ts +2 -0
- package/src/specs/RNMBXFillExtrusionLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXFillLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXImageNativeComponent.ts +2 -0
- package/src/specs/RNMBXImageSourceNativeComponent.ts +1 -0
- package/src/specs/RNMBXImagesNativeComponent.ts +2 -0
- package/src/specs/RNMBXLightNativeComponent.ts +1 -0
- package/src/specs/RNMBXLineLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXMapViewNativeComponent.ts +2 -0
- package/src/specs/RNMBXMarkerViewContentNativeComponent.ts +2 -2
- package/src/specs/RNMBXMarkerViewNativeComponent.ts +2 -0
- package/src/specs/RNMBXModelLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXModelsNativeComponent.ts +1 -0
- package/src/specs/RNMBXNativeUserLocationNativeComponent.ts +1 -0
- package/src/specs/RNMBXPointAnnotationNativeComponent.ts +2 -0
- package/src/specs/RNMBXRasterDemSourceNativeComponent.ts +2 -0
- package/src/specs/RNMBXRasterLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXRasterSourceNativeComponent.ts +2 -0
- package/src/specs/RNMBXShapeSourceNativeComponent.ts +2 -0
- package/src/specs/RNMBXSkyLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXStyleImportNativeComponent.ts +1 -0
- package/src/specs/RNMBXSymbolLayerNativeComponent.ts +2 -0
- package/src/specs/RNMBXTerrainNativeComponent.ts +1 -0
- package/src/specs/RNMBXVectorSourceNativeComponent.ts +2 -0
- package/src/specs/RNMBXViewportNativeComponent.ts +2 -0
- package/src/specs/codegenUtils.ts +1 -0
- package/src/utils/BridgeValue.ts +1 -1
- package/src/utils/Logger.ts +1 -1
- package/src/utils/MapboxStyles.d.ts +238 -0
- package/src/utils/NativeCommands.ts +2 -4
- package/src/utils/geoUtils.ts +3 -0
- package/src/utils/index.ts +2 -3
- package/src/utils/nativeRef.ts +1 -1
- package/src/utils/styleMap.ts +30 -0
- package/src/web/MapboxModule.ts +24 -0
- package/src/web/components/Camera.tsx +2 -1
- package/src/web/components/MarkerView.tsx +2 -2
- package/src/web/{index.js → index.tsx} +3 -0
- package/src/web/utils/Logger.ts +0 -1
- package/android/.classpath +0 -6
- package/lib/commonjs/Mapbox.js +0 -456
- package/lib/commonjs/Mapbox.js.map +0 -1
- package/lib/commonjs/RNMBXModule.js +0 -46
- package/lib/commonjs/RNMBXModule.js.map +0 -1
- package/lib/commonjs/assets/heading.png +0 -0
- package/lib/commonjs/assets/heading@2x.png +0 -0
- package/lib/commonjs/assets/heading@3x.png +0 -0
- package/lib/commonjs/classes/AnimatedCoordinatesArray.js +0 -164
- package/lib/commonjs/classes/AnimatedCoordinatesArray.js.map +0 -1
- package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js +0 -42
- package/lib/commonjs/classes/AnimatedExtractCoordinateFromArray.js.map +0 -1
- package/lib/commonjs/classes/AnimatedPoint.js +0 -111
- package/lib/commonjs/classes/AnimatedPoint.js.map +0 -1
- package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js +0 -153
- package/lib/commonjs/classes/AnimatedRouteCoordinatesArray.js.map +0 -1
- package/lib/commonjs/classes/AnimatedShape.js +0 -77
- package/lib/commonjs/classes/AnimatedShape.js.map +0 -1
- package/lib/commonjs/classes/index.d.js +0 -18
- package/lib/commonjs/classes/index.d.js.map +0 -1
- package/lib/commonjs/classes/index.js +0 -61
- package/lib/commonjs/classes/index.js.map +0 -1
- package/lib/commonjs/components/AbstractLayer.js +0 -56
- package/lib/commonjs/components/AbstractLayer.js.map +0 -1
- package/lib/commonjs/components/AbstractSource.js +0 -20
- package/lib/commonjs/components/AbstractSource.js.map +0 -1
- package/lib/commonjs/components/Annotation.js +0 -99
- package/lib/commonjs/components/Annotation.js.map +0 -1
- package/lib/commonjs/components/Atmosphere.js +0 -25
- package/lib/commonjs/components/Atmosphere.js.map +0 -1
- package/lib/commonjs/components/BackgroundLayer.js +0 -32
- package/lib/commonjs/components/BackgroundLayer.js.map +0 -1
- package/lib/commonjs/components/Callout.js +0 -95
- package/lib/commonjs/components/Callout.js.map +0 -1
- package/lib/commonjs/components/Camera.js +0 -389
- package/lib/commonjs/components/Camera.js.map +0 -1
- package/lib/commonjs/components/CircleLayer.js +0 -43
- package/lib/commonjs/components/CircleLayer.js.map +0 -1
- package/lib/commonjs/components/CustomLocationProvider.js +0 -18
- package/lib/commonjs/components/CustomLocationProvider.js.map +0 -1
- package/lib/commonjs/components/FillExtrusionLayer.js +0 -36
- package/lib/commonjs/components/FillExtrusionLayer.js.map +0 -1
- package/lib/commonjs/components/FillLayer.js +0 -42
- package/lib/commonjs/components/FillLayer.js.map +0 -1
- package/lib/commonjs/components/HeadingIndicator.js +0 -39
- package/lib/commonjs/components/HeadingIndicator.js.map +0 -1
- package/lib/commonjs/components/HeatmapLayer.js +0 -43
- package/lib/commonjs/components/HeatmapLayer.js.map +0 -1
- package/lib/commonjs/components/Image.js +0 -47
- package/lib/commonjs/components/Image.js.map +0 -1
- package/lib/commonjs/components/ImageSource.js +0 -51
- package/lib/commonjs/components/ImageSource.js.map +0 -1
- package/lib/commonjs/components/Images.js +0 -110
- package/lib/commonjs/components/Images.js.map +0 -1
- package/lib/commonjs/components/Light.js +0 -45
- package/lib/commonjs/components/Light.js.map +0 -1
- package/lib/commonjs/components/LineLayer.js +0 -42
- package/lib/commonjs/components/LineLayer.js.map +0 -1
- package/lib/commonjs/components/LocationPuck.js +0 -68
- package/lib/commonjs/components/LocationPuck.js.map +0 -1
- package/lib/commonjs/components/MapView.js +0 -649
- package/lib/commonjs/components/MapView.js.map +0 -1
- package/lib/commonjs/components/MarkerView.js +0 -102
- package/lib/commonjs/components/MarkerView.js.map +0 -1
- package/lib/commonjs/components/ModelLayer.js +0 -38
- package/lib/commonjs/components/ModelLayer.js.map +0 -1
- package/lib/commonjs/components/Models.js +0 -44
- package/lib/commonjs/components/Models.js.map +0 -1
- package/lib/commonjs/components/NativeBridgeComponent.js +0 -41
- package/lib/commonjs/components/NativeBridgeComponent.js.map +0 -1
- package/lib/commonjs/components/PointAnnotation.js +0 -140
- package/lib/commonjs/components/PointAnnotation.js.map +0 -1
- package/lib/commonjs/components/RasterDemSource.js +0 -64
- package/lib/commonjs/components/RasterDemSource.js.map +0 -1
- package/lib/commonjs/components/RasterLayer.js +0 -39
- package/lib/commonjs/components/RasterLayer.js.map +0 -1
- package/lib/commonjs/components/RasterSource.js +0 -71
- package/lib/commonjs/components/RasterSource.js.map +0 -1
- package/lib/commonjs/components/ShapeSource.js +0 -163
- package/lib/commonjs/components/ShapeSource.js.map +0 -1
- package/lib/commonjs/components/SkyLayer.js +0 -31
- package/lib/commonjs/components/SkyLayer.js.map +0 -1
- package/lib/commonjs/components/Style.js +0 -265
- package/lib/commonjs/components/Style.js.map +0 -1
- package/lib/commonjs/components/StyleImport.js +0 -22
- package/lib/commonjs/components/StyleImport.js.map +0 -1
- package/lib/commonjs/components/SymbolLayer.js +0 -64
- package/lib/commonjs/components/SymbolLayer.js.map +0 -1
- package/lib/commonjs/components/Terrain.js +0 -35
- package/lib/commonjs/components/Terrain.js.map +0 -1
- package/lib/commonjs/components/UserLocation.js +0 -210
- package/lib/commonjs/components/UserLocation.js.map +0 -1
- package/lib/commonjs/components/VectorSource.js +0 -97
- package/lib/commonjs/components/VectorSource.js.map +0 -1
- package/lib/commonjs/components/Viewport.js +0 -64
- package/lib/commonjs/components/Viewport.js.map +0 -1
- package/lib/commonjs/components/codeparts/LayerPropsCommon.codepart-tsx +0 -62
- package/lib/commonjs/global.d.js +0 -2
- package/lib/commonjs/global.d.js.map +0 -1
- package/lib/commonjs/index.js +0 -22
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/index.web.js +0 -26
- package/lib/commonjs/index.web.js.map +0 -1
- package/lib/commonjs/modules/location/locationManager.js +0 -155
- package/lib/commonjs/modules/location/locationManager.js.map +0 -1
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +0 -43
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +0 -1
- package/lib/commonjs/modules/offline/OfflinePack.js +0 -40
- package/lib/commonjs/modules/offline/OfflinePack.js.map +0 -1
- package/lib/commonjs/modules/offline/OfflinePackLegacy.js +0 -40
- package/lib/commonjs/modules/offline/OfflinePackLegacy.js.map +0 -1
- package/lib/commonjs/modules/offline/TileStore.js +0 -46
- package/lib/commonjs/modules/offline/TileStore.js.map +0 -1
- package/lib/commonjs/modules/offline/offlineManager.js +0 -373
- package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
- package/lib/commonjs/modules/offline/offlineManagerLegacy.js +0 -166
- package/lib/commonjs/modules/offline/offlineManagerLegacy.js.map +0 -1
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +0 -58
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +0 -1
- package/lib/commonjs/modules/snapshot/snapshotManager.js +0 -66
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/requestAndroidLocationPermissions.js +0 -25
- package/lib/commonjs/requestAndroidLocationPermissions.js.map +0 -1
- package/lib/commonjs/shapeAnimators/ChangeLineOffsetsShapeAnimator.js +0 -27
- package/lib/commonjs/shapeAnimators/ChangeLineOffsetsShapeAnimator.js.map +0 -1
- package/lib/commonjs/shapeAnimators/MovePointShapeAnimator.js +0 -21
- package/lib/commonjs/shapeAnimators/MovePointShapeAnimator.js.map +0 -1
- package/lib/commonjs/shapeAnimators/ShapeAnimatorManager.js +0 -15
- package/lib/commonjs/shapeAnimators/ShapeAnimatorManager.js.map +0 -1
- package/lib/commonjs/shapeAnimators/index.js +0 -2
- package/lib/commonjs/shapeAnimators/index.js.map +0 -1
- package/lib/commonjs/specs/NativeMapViewModule.js +0 -10
- package/lib/commonjs/specs/NativeMapViewModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXCameraModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXCameraModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXChangeLineOffsetsShapeAnimatorModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXChangeLineOffsetsShapeAnimatorModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXImageModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXImageModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXLocationModule.js +0 -9
- package/lib/commonjs/specs/NativeRNMBXLocationModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXMovePointShapeAnimatorModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXMovePointShapeAnimatorModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXPointAnnotationModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXPointAnnotationModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXShapeSourceModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXShapeSourceModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXTileStoreModule.js +0 -11
- package/lib/commonjs/specs/NativeRNMBXTileStoreModule.js.map +0 -1
- package/lib/commonjs/specs/NativeRNMBXViewportModule.js +0 -10
- package/lib/commonjs/specs/NativeRNMBXViewportModule.js.map +0 -1
- package/lib/commonjs/specs/RNMBXAtmosphereNativeComponent.ts +0 -12
- package/lib/commonjs/specs/RNMBXBackgroundLayerNativeComponent.ts +0 -27
- package/lib/commonjs/specs/RNMBXCalloutNativeComponent.ts +0 -9
- package/lib/commonjs/specs/RNMBXCameraNativeComponent.ts +0 -46
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.ts +0 -37
- package/lib/commonjs/specs/RNMBXCustomLocationProviderNativeComponent.ts +0 -19
- package/lib/commonjs/specs/RNMBXFillExtrusionLayerNativeComponent.ts +0 -28
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.ts +0 -37
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.ts +0 -37
- package/lib/commonjs/specs/RNMBXImageNativeComponent.ts +0 -18
- package/lib/commonjs/specs/RNMBXImageSourceNativeComponent.ts +0 -15
- package/lib/commonjs/specs/RNMBXImagesNativeComponent.ts +0 -21
- package/lib/commonjs/specs/RNMBXLightNativeComponent.ts +0 -12
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.ts +0 -37
- package/lib/commonjs/specs/RNMBXMapViewNativeComponent.ts +0 -141
- package/lib/commonjs/specs/RNMBXMarkerViewContentNativeComponent.ts +0 -9
- package/lib/commonjs/specs/RNMBXMarkerViewNativeComponent.ts +0 -24
- package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.ts +0 -38
- package/lib/commonjs/specs/RNMBXModelsNativeComponent.ts +0 -18
- package/lib/commonjs/specs/RNMBXNativeUserLocationNativeComponent.ts +0 -39
- package/lib/commonjs/specs/RNMBXPointAnnotationNativeComponent.ts +0 -40
- package/lib/commonjs/specs/RNMBXRasterDemSourceNativeComponent.ts +0 -19
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.ts +0 -37
- package/lib/commonjs/specs/RNMBXRasterSourceNativeComponent.ts +0 -22
- package/lib/commonjs/specs/RNMBXShapeSourceNativeComponent.ts +0 -33
- package/lib/commonjs/specs/RNMBXSkyLayerNativeComponent.ts +0 -27
- package/lib/commonjs/specs/RNMBXStyleImportNativeComponent.ts +0 -14
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.ts +0 -37
- package/lib/commonjs/specs/RNMBXTerrainNativeComponent.ts +0 -13
- package/lib/commonjs/specs/RNMBXVectorSourceNativeComponent.ts +0 -28
- package/lib/commonjs/specs/RNMBXViewportNativeComponent.ts +0 -117
- package/lib/commonjs/specs/codegenUtils.js +0 -6
- package/lib/commonjs/specs/codegenUtils.js.map +0 -1
- package/lib/commonjs/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +0 -18
- package/lib/commonjs/types/BaseProps.js +0 -2
- package/lib/commonjs/types/BaseProps.js.map +0 -1
- package/lib/commonjs/types/OnPressEvent.js +0 -2
- package/lib/commonjs/types/OnPressEvent.js.map +0 -1
- package/lib/commonjs/types/Position.js +0 -2
- package/lib/commonjs/types/Position.js.map +0 -1
- package/lib/commonjs/types/index.js +0 -6
- package/lib/commonjs/types/index.js.map +0 -1
- package/lib/commonjs/utils/BridgeValue.js +0 -64
- package/lib/commonjs/utils/BridgeValue.js.map +0 -1
- package/lib/commonjs/utils/Logger.js +0 -122
- package/lib/commonjs/utils/Logger.js.map +0 -1
- package/lib/commonjs/utils/MapboxStyles.d.js +0 -282
- package/lib/commonjs/utils/MapboxStyles.d.js.map +0 -1
- package/lib/commonjs/utils/NativeCommands.js +0 -50
- package/lib/commonjs/utils/NativeCommands.js.map +0 -1
- package/lib/commonjs/utils/StyleValue.js +0 -44
- package/lib/commonjs/utils/StyleValue.js.map +0 -1
- package/lib/commonjs/utils/animated/Animated.js +0 -32
- package/lib/commonjs/utils/animated/Animated.js.map +0 -1
- package/lib/commonjs/utils/checkRequiredProps.js +0 -14
- package/lib/commonjs/utils/checkRequiredProps.js.map +0 -1
- package/lib/commonjs/utils/deprecation.js +0 -39
- package/lib/commonjs/utils/deprecation.js.map +0 -1
- package/lib/commonjs/utils/filterUtils.js +0 -13
- package/lib/commonjs/utils/filterUtils.js.map +0 -1
- package/lib/commonjs/utils/geoUtils.js +0 -32
- package/lib/commonjs/utils/geoUtils.js.map +0 -1
- package/lib/commonjs/utils/getAnnotationsLayerID.js +0 -21
- package/lib/commonjs/utils/getAnnotationsLayerID.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -91
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/nativeRef.js +0 -27
- package/lib/commonjs/utils/nativeRef.js.map +0 -1
- package/lib/commonjs/utils/styleMap.js +0 -343
- package/lib/commonjs/utils/styleMap.js.map +0 -1
- package/lib/commonjs/web/MapContext.js +0 -11
- package/lib/commonjs/web/MapContext.js.map +0 -1
- package/lib/commonjs/web/MapboxModule.js +0 -20
- package/lib/commonjs/web/MapboxModule.js.map +0 -1
- package/lib/commonjs/web/UnimplementedComponent.js +0 -18
- package/lib/commonjs/web/UnimplementedComponent.js.map +0 -1
- package/lib/commonjs/web/components/Camera.js +0 -185
- package/lib/commonjs/web/components/Camera.js.map +0 -1
- package/lib/commonjs/web/components/MapView.js +0 -67
- package/lib/commonjs/web/components/MapView.js.map +0 -1
- package/lib/commonjs/web/components/MarkerView.js +0 -63
- package/lib/commonjs/web/components/MarkerView.js.map +0 -1
- package/lib/commonjs/web/index.js +0 -49
- package/lib/commonjs/web/index.js.map +0 -1
- package/lib/commonjs/web/install.md +0 -25
- package/lib/commonjs/web/utils/Logger.js +0 -97
- package/lib/commonjs/web/utils/Logger.js.map +0 -1
- package/lib/module/index.web.js +0 -5
- package/lib/module/index.web.js.map +0 -1
- package/src/index.web.js +0 -2
- package/src/web/MapboxModule.js +0 -16
|
@@ -85,6 +85,16 @@ object RNMBXStyleFactory {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
})
|
|
88
|
+
"fillPatternCrossFade" ->
|
|
89
|
+
style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
|
|
90
|
+
override fun onAllImagesLoaded() {
|
|
91
|
+
try {
|
|
92
|
+
setFillPatternCrossFade(layer, styleValue)
|
|
93
|
+
} catch (exception: RuntimeException) {
|
|
94
|
+
Logger.e("RNMBXFill",String.format("Exception failed during setFillPatternCrossFade: %s", exception.message))
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
})
|
|
88
98
|
"fillEmissiveStrength" ->
|
|
89
99
|
setFillEmissiveStrength(layer, styleValue)
|
|
90
100
|
"fillEmissiveStrengthTransition" ->
|
|
@@ -165,10 +175,36 @@ object RNMBXStyleFactory {
|
|
|
165
175
|
setLineGradient(layer, styleValue)
|
|
166
176
|
"lineTrimOffset" ->
|
|
167
177
|
setLineTrimOffset(layer, styleValue)
|
|
178
|
+
"lineZOffset" ->
|
|
179
|
+
setLineZOffset(layer, styleValue)
|
|
180
|
+
"lineElevationReference" ->
|
|
181
|
+
setLineElevationReference(layer, styleValue)
|
|
182
|
+
"lineCrossSlope" ->
|
|
183
|
+
setLineCrossSlope(layer, styleValue)
|
|
184
|
+
"linePatternCrossFade" ->
|
|
185
|
+
style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
|
|
186
|
+
override fun onAllImagesLoaded() {
|
|
187
|
+
try {
|
|
188
|
+
setLinePatternCrossFade(layer, styleValue)
|
|
189
|
+
} catch (exception: RuntimeException) {
|
|
190
|
+
Logger.e("RNMBXLine",String.format("Exception failed during setLinePatternCrossFade: %s", exception.message))
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
})
|
|
194
|
+
"lineTrimFadeRange" ->
|
|
195
|
+
setLineTrimFadeRange(layer, styleValue)
|
|
196
|
+
"lineTrimColor" ->
|
|
197
|
+
setLineTrimColor(layer, styleValue)
|
|
198
|
+
"lineTrimColorTransition" ->
|
|
199
|
+
setLineTrimColorTransition(layer, styleValue)
|
|
168
200
|
"lineEmissiveStrength" ->
|
|
169
201
|
setLineEmissiveStrength(layer, styleValue)
|
|
170
202
|
"lineEmissiveStrengthTransition" ->
|
|
171
203
|
setLineEmissiveStrengthTransition(layer, styleValue)
|
|
204
|
+
"lineOcclusionOpacity" ->
|
|
205
|
+
setLineOcclusionOpacity(layer, styleValue)
|
|
206
|
+
"lineOcclusionOpacityTransition" ->
|
|
207
|
+
setLineOcclusionOpacityTransition(layer, styleValue)
|
|
172
208
|
}
|
|
173
209
|
} catch (e: MapboxStyleException) {
|
|
174
210
|
Logger.e(LOG_TAG, "Failed to update: $styleKey ${e.message}")
|
|
@@ -333,6 +369,12 @@ object RNMBXStyleFactory {
|
|
|
333
369
|
setTextTranslateAnchor(layer, styleValue)
|
|
334
370
|
"symbolZElevate" ->
|
|
335
371
|
setSymbolZElevate(layer, styleValue)
|
|
372
|
+
"symbolElevationReference" ->
|
|
373
|
+
setSymbolElevationReference(layer, styleValue)
|
|
374
|
+
"iconOcclusionOpacity" ->
|
|
375
|
+
setIconOcclusionOpacity(layer, styleValue)
|
|
376
|
+
"iconOcclusionOpacityTransition" ->
|
|
377
|
+
setIconOcclusionOpacityTransition(layer, styleValue)
|
|
336
378
|
"iconEmissiveStrength" ->
|
|
337
379
|
setIconEmissiveStrength(layer, styleValue)
|
|
338
380
|
"iconEmissiveStrengthTransition" ->
|
|
@@ -351,6 +393,16 @@ object RNMBXStyleFactory {
|
|
|
351
393
|
}
|
|
352
394
|
}
|
|
353
395
|
})
|
|
396
|
+
"textOcclusionOpacity" ->
|
|
397
|
+
setTextOcclusionOpacity(layer, styleValue)
|
|
398
|
+
"textOcclusionOpacityTransition" ->
|
|
399
|
+
setTextOcclusionOpacityTransition(layer, styleValue)
|
|
400
|
+
"iconColorSaturation" ->
|
|
401
|
+
setIconColorSaturation(layer, styleValue)
|
|
402
|
+
"symbolZOffset" ->
|
|
403
|
+
setSymbolZOffset(layer, styleValue)
|
|
404
|
+
"symbolZOffsetTransition" ->
|
|
405
|
+
setSymbolZOffsetTransition(layer, styleValue)
|
|
354
406
|
}
|
|
355
407
|
} catch (e: MapboxStyleException) {
|
|
356
408
|
Logger.e(LOG_TAG, "Failed to update: $styleKey ${e.message}")
|
|
@@ -411,6 +463,8 @@ object RNMBXStyleFactory {
|
|
|
411
463
|
setCircleStrokeOpacity(layer, styleValue)
|
|
412
464
|
"circleStrokeOpacityTransition" ->
|
|
413
465
|
setCircleStrokeOpacityTransition(layer, styleValue)
|
|
466
|
+
"circleElevationReference" ->
|
|
467
|
+
setCircleElevationReference(layer, styleValue)
|
|
414
468
|
"circleEmissiveStrength" ->
|
|
415
469
|
setCircleEmissiveStrength(layer, styleValue)
|
|
416
470
|
"circleEmissiveStrengthTransition" ->
|
|
@@ -517,6 +571,20 @@ object RNMBXStyleFactory {
|
|
|
517
571
|
setFillExtrusionAmbientOcclusionRadiusTransition(layer, styleValue)
|
|
518
572
|
"fillExtrusionRoundedRoof" ->
|
|
519
573
|
setFillExtrusionRoundedRoof(layer, styleValue)
|
|
574
|
+
"fillExtrusionPatternCrossFade" ->
|
|
575
|
+
style.addImage(styleValue!!, styleKey, object : OnAllImagesLoaded {
|
|
576
|
+
override fun onAllImagesLoaded() {
|
|
577
|
+
try {
|
|
578
|
+
setFillExtrusionPatternCrossFade(layer, styleValue)
|
|
579
|
+
} catch (exception: RuntimeException) {
|
|
580
|
+
Logger.e("RNMBXFillExtrusion",String.format("Exception failed during setFillExtrusionPatternCrossFade: %s", exception.message))
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
})
|
|
584
|
+
"fillExtrusionHeightAlignment" ->
|
|
585
|
+
setFillExtrusionHeightAlignment(layer, styleValue)
|
|
586
|
+
"fillExtrusionBaseAlignment" ->
|
|
587
|
+
setFillExtrusionBaseAlignment(layer, styleValue)
|
|
520
588
|
"fillExtrusionAmbientOcclusionWallRadius" ->
|
|
521
589
|
setFillExtrusionAmbientOcclusionWallRadius(layer, styleValue)
|
|
522
590
|
"fillExtrusionAmbientOcclusionWallRadiusTransition" ->
|
|
@@ -559,6 +627,10 @@ object RNMBXStyleFactory {
|
|
|
559
627
|
setFillExtrusionEmissiveStrength(layer, styleValue)
|
|
560
628
|
"fillExtrusionEmissiveStrengthTransition" ->
|
|
561
629
|
setFillExtrusionEmissiveStrengthTransition(layer, styleValue)
|
|
630
|
+
"fillExtrusionLineWidth" ->
|
|
631
|
+
setFillExtrusionLineWidth(layer, styleValue)
|
|
632
|
+
"fillExtrusionLineWidthTransition" ->
|
|
633
|
+
setFillExtrusionLineWidthTransition(layer, styleValue)
|
|
562
634
|
}
|
|
563
635
|
} catch (e: MapboxStyleException) {
|
|
564
636
|
Logger.e(LOG_TAG, "Failed to update: $styleKey ${e.message}")
|
|
@@ -617,6 +689,16 @@ object RNMBXStyleFactory {
|
|
|
617
689
|
setRasterColorRange(layer, styleValue)
|
|
618
690
|
"rasterColorRangeTransition" ->
|
|
619
691
|
setRasterColorRangeTransition(layer, styleValue)
|
|
692
|
+
"rasterEmissiveStrength" ->
|
|
693
|
+
setRasterEmissiveStrength(layer, styleValue)
|
|
694
|
+
"rasterEmissiveStrengthTransition" ->
|
|
695
|
+
setRasterEmissiveStrengthTransition(layer, styleValue)
|
|
696
|
+
"rasterArrayBand" ->
|
|
697
|
+
setRasterArrayBand(layer, styleValue)
|
|
698
|
+
"rasterElevation" ->
|
|
699
|
+
setRasterElevation(layer, styleValue)
|
|
700
|
+
"rasterElevationTransition" ->
|
|
701
|
+
setRasterElevationTransition(layer, styleValue)
|
|
620
702
|
}
|
|
621
703
|
} catch (e: MapboxStyleException) {
|
|
622
704
|
Logger.e(LOG_TAG, "Failed to update: $styleKey ${e.message}")
|
|
@@ -765,6 +847,8 @@ object RNMBXStyleFactory {
|
|
|
765
847
|
setBackgroundOpacity(layer, styleValue)
|
|
766
848
|
"backgroundOpacityTransition" ->
|
|
767
849
|
setBackgroundOpacityTransition(layer, styleValue)
|
|
850
|
+
"backgroundPitchAlignment" ->
|
|
851
|
+
setBackgroundPitchAlignment(layer, styleValue)
|
|
768
852
|
"backgroundEmissiveStrength" ->
|
|
769
853
|
setBackgroundEmissiveStrength(layer, styleValue)
|
|
770
854
|
"backgroundEmissiveStrengthTransition" ->
|
|
@@ -1098,6 +1182,24 @@ object RNMBXStyleFactory {
|
|
|
1098
1182
|
}
|
|
1099
1183
|
}
|
|
1100
1184
|
|
|
1185
|
+
fun setFillPatternCrossFade(layer: FillLayer, styleValue: RNMBXStyleValue ) {
|
|
1186
|
+
if (styleValue.isExpression()) {
|
|
1187
|
+
val expression = styleValue.getExpression()
|
|
1188
|
+
if (expression != null) {
|
|
1189
|
+
layer.fillPatternCrossFade(expression)
|
|
1190
|
+
} else {
|
|
1191
|
+
Logger.e("RNMBXFill", "Expression for fillPatternCrossFade is null")
|
|
1192
|
+
}
|
|
1193
|
+
} else {
|
|
1194
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1195
|
+
if (value != null) {
|
|
1196
|
+
layer.fillPatternCrossFade(value)
|
|
1197
|
+
} else {
|
|
1198
|
+
Logger.e("RNMBXFill", "value for fillPatternCrossFade is null")
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1101
1203
|
fun setFillEmissiveStrength(layer: FillLayer, styleValue: RNMBXStyleValue ) {
|
|
1102
1204
|
if (styleValue.isExpression()) {
|
|
1103
1205
|
val expression = styleValue.getExpression()
|
|
@@ -1479,6 +1581,117 @@ object RNMBXStyleFactory {
|
|
|
1479
1581
|
}
|
|
1480
1582
|
}
|
|
1481
1583
|
|
|
1584
|
+
fun setLineZOffset(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1585
|
+
if (styleValue.isExpression()) {
|
|
1586
|
+
val expression = styleValue.getExpression()
|
|
1587
|
+
if (expression != null) {
|
|
1588
|
+
layer.lineZOffset(expression)
|
|
1589
|
+
} else {
|
|
1590
|
+
Logger.e("RNMBXLine", "Expression for lineZOffset is null")
|
|
1591
|
+
}
|
|
1592
|
+
} else {
|
|
1593
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1594
|
+
if (value != null) {
|
|
1595
|
+
layer.lineZOffset(value)
|
|
1596
|
+
} else {
|
|
1597
|
+
Logger.e("RNMBXLine", "value for lineZOffset is null")
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
fun setLineElevationReference(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1603
|
+
if (styleValue.isExpression()) {
|
|
1604
|
+
val expression = styleValue.getExpression()
|
|
1605
|
+
if (expression != null) {
|
|
1606
|
+
layer.lineElevationReference(expression)
|
|
1607
|
+
} else {
|
|
1608
|
+
Logger.e("RNMBXLine", "Expression for lineElevationReference is null")
|
|
1609
|
+
}
|
|
1610
|
+
} else {
|
|
1611
|
+
layer.lineElevationReference(LineElevationReference.valueOf(styleValue.getEnumName()))
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
fun setLineCrossSlope(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1616
|
+
if (styleValue.isExpression()) {
|
|
1617
|
+
val expression = styleValue.getExpression()
|
|
1618
|
+
if (expression != null) {
|
|
1619
|
+
layer.lineCrossSlope(expression)
|
|
1620
|
+
} else {
|
|
1621
|
+
Logger.e("RNMBXLine", "Expression for lineCrossSlope is null")
|
|
1622
|
+
}
|
|
1623
|
+
} else {
|
|
1624
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1625
|
+
if (value != null) {
|
|
1626
|
+
layer.lineCrossSlope(value)
|
|
1627
|
+
} else {
|
|
1628
|
+
Logger.e("RNMBXLine", "value for lineCrossSlope is null")
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
fun setLinePatternCrossFade(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1634
|
+
if (styleValue.isExpression()) {
|
|
1635
|
+
val expression = styleValue.getExpression()
|
|
1636
|
+
if (expression != null) {
|
|
1637
|
+
layer.linePatternCrossFade(expression)
|
|
1638
|
+
} else {
|
|
1639
|
+
Logger.e("RNMBXLine", "Expression for linePatternCrossFade is null")
|
|
1640
|
+
}
|
|
1641
|
+
} else {
|
|
1642
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1643
|
+
if (value != null) {
|
|
1644
|
+
layer.linePatternCrossFade(value)
|
|
1645
|
+
} else {
|
|
1646
|
+
Logger.e("RNMBXLine", "value for linePatternCrossFade is null")
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
fun setLineTrimFadeRange(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1652
|
+
if (styleValue.isExpression()) {
|
|
1653
|
+
val expression = styleValue.getExpression()
|
|
1654
|
+
if (expression != null) {
|
|
1655
|
+
layer.lineTrimFadeRange(expression)
|
|
1656
|
+
} else {
|
|
1657
|
+
Logger.e("RNMBXLine", "Expression for lineTrimFadeRange is null")
|
|
1658
|
+
}
|
|
1659
|
+
} else {
|
|
1660
|
+
val value = styleValue.getFloatArray(VALUE_KEY)
|
|
1661
|
+
if (value != null) {
|
|
1662
|
+
layer.lineTrimFadeRange(value)
|
|
1663
|
+
} else {
|
|
1664
|
+
Logger.e("RNMBXLine", "value for lineTrimFadeRange is null")
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
fun setLineTrimColor(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1670
|
+
if (styleValue.isExpression()) {
|
|
1671
|
+
val expression = styleValue.getExpression()
|
|
1672
|
+
if (expression != null) {
|
|
1673
|
+
layer.lineTrimColor(expression)
|
|
1674
|
+
} else {
|
|
1675
|
+
Logger.e("RNMBXLine", "Expression for lineTrimColor is null")
|
|
1676
|
+
}
|
|
1677
|
+
} else {
|
|
1678
|
+
val value = styleValue.getInt(VALUE_KEY)
|
|
1679
|
+
if (value != null) {
|
|
1680
|
+
layer.lineTrimColor(value)
|
|
1681
|
+
} else {
|
|
1682
|
+
Logger.e("RNMBXLine", "value for lineTrimColor is null")
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
fun setLineTrimColorTransition(layer: LineLayer, styleValue: RNMBXStyleValue) {
|
|
1689
|
+
val transition = styleValue.transition
|
|
1690
|
+
if (transition != null) {
|
|
1691
|
+
layer.lineTrimColorTransition(transition);
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1482
1695
|
fun setLineEmissiveStrength(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1483
1696
|
if (styleValue.isExpression()) {
|
|
1484
1697
|
val expression = styleValue.getExpression()
|
|
@@ -1505,6 +1718,32 @@ object RNMBXStyleFactory {
|
|
|
1505
1718
|
}
|
|
1506
1719
|
}
|
|
1507
1720
|
|
|
1721
|
+
fun setLineOcclusionOpacity(layer: LineLayer, styleValue: RNMBXStyleValue ) {
|
|
1722
|
+
if (styleValue.isExpression()) {
|
|
1723
|
+
val expression = styleValue.getExpression()
|
|
1724
|
+
if (expression != null) {
|
|
1725
|
+
layer.lineOcclusionOpacity(expression)
|
|
1726
|
+
} else {
|
|
1727
|
+
Logger.e("RNMBXLine", "Expression for lineOcclusionOpacity is null")
|
|
1728
|
+
}
|
|
1729
|
+
} else {
|
|
1730
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
1731
|
+
if (value != null) {
|
|
1732
|
+
layer.lineOcclusionOpacity(value)
|
|
1733
|
+
} else {
|
|
1734
|
+
Logger.e("RNMBXLine", "value for lineOcclusionOpacity is null")
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
fun setLineOcclusionOpacityTransition(layer: LineLayer, styleValue: RNMBXStyleValue) {
|
|
1741
|
+
val transition = styleValue.transition
|
|
1742
|
+
if (transition != null) {
|
|
1743
|
+
layer.lineOcclusionOpacityTransition(transition);
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1508
1747
|
fun setSymbolPlacement(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
|
|
1509
1748
|
if (styleValue.isExpression()) {
|
|
1510
1749
|
val expression = styleValue.getExpression()
|
|
@@ -2557,6 +2796,45 @@ object RNMBXStyleFactory {
|
|
|
2557
2796
|
}
|
|
2558
2797
|
}
|
|
2559
2798
|
|
|
2799
|
+
fun setSymbolElevationReference(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
|
|
2800
|
+
if (styleValue.isExpression()) {
|
|
2801
|
+
val expression = styleValue.getExpression()
|
|
2802
|
+
if (expression != null) {
|
|
2803
|
+
layer.symbolElevationReference(expression)
|
|
2804
|
+
} else {
|
|
2805
|
+
Logger.e("RNMBXSymbol", "Expression for symbolElevationReference is null")
|
|
2806
|
+
}
|
|
2807
|
+
} else {
|
|
2808
|
+
layer.symbolElevationReference(SymbolElevationReference.valueOf(styleValue.getEnumName()))
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
fun setIconOcclusionOpacity(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
|
|
2813
|
+
if (styleValue.isExpression()) {
|
|
2814
|
+
val expression = styleValue.getExpression()
|
|
2815
|
+
if (expression != null) {
|
|
2816
|
+
layer.iconOcclusionOpacity(expression)
|
|
2817
|
+
} else {
|
|
2818
|
+
Logger.e("RNMBXSymbol", "Expression for iconOcclusionOpacity is null")
|
|
2819
|
+
}
|
|
2820
|
+
} else {
|
|
2821
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2822
|
+
if (value != null) {
|
|
2823
|
+
layer.iconOcclusionOpacity(value)
|
|
2824
|
+
} else {
|
|
2825
|
+
Logger.e("RNMBXSymbol", "value for iconOcclusionOpacity is null")
|
|
2826
|
+
}
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
fun setIconOcclusionOpacityTransition(layer: SymbolLayer, styleValue: RNMBXStyleValue) {
|
|
2832
|
+
val transition = styleValue.transition
|
|
2833
|
+
if (transition != null) {
|
|
2834
|
+
layer.iconOcclusionOpacityTransition(transition);
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2560
2838
|
fun setIconEmissiveStrength(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
|
|
2561
2839
|
if (styleValue.isExpression()) {
|
|
2562
2840
|
val expression = styleValue.getExpression()
|
|
@@ -2627,6 +2905,76 @@ object RNMBXStyleFactory {
|
|
|
2627
2905
|
}
|
|
2628
2906
|
}
|
|
2629
2907
|
|
|
2908
|
+
fun setTextOcclusionOpacity(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
|
|
2909
|
+
if (styleValue.isExpression()) {
|
|
2910
|
+
val expression = styleValue.getExpression()
|
|
2911
|
+
if (expression != null) {
|
|
2912
|
+
layer.textOcclusionOpacity(expression)
|
|
2913
|
+
} else {
|
|
2914
|
+
Logger.e("RNMBXSymbol", "Expression for textOcclusionOpacity is null")
|
|
2915
|
+
}
|
|
2916
|
+
} else {
|
|
2917
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2918
|
+
if (value != null) {
|
|
2919
|
+
layer.textOcclusionOpacity(value)
|
|
2920
|
+
} else {
|
|
2921
|
+
Logger.e("RNMBXSymbol", "value for textOcclusionOpacity is null")
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
fun setTextOcclusionOpacityTransition(layer: SymbolLayer, styleValue: RNMBXStyleValue) {
|
|
2928
|
+
val transition = styleValue.transition
|
|
2929
|
+
if (transition != null) {
|
|
2930
|
+
layer.textOcclusionOpacityTransition(transition);
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
fun setIconColorSaturation(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
|
|
2935
|
+
if (styleValue.isExpression()) {
|
|
2936
|
+
val expression = styleValue.getExpression()
|
|
2937
|
+
if (expression != null) {
|
|
2938
|
+
layer.iconColorSaturation(expression)
|
|
2939
|
+
} else {
|
|
2940
|
+
Logger.e("RNMBXSymbol", "Expression for iconColorSaturation is null")
|
|
2941
|
+
}
|
|
2942
|
+
} else {
|
|
2943
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2944
|
+
if (value != null) {
|
|
2945
|
+
layer.iconColorSaturation(value)
|
|
2946
|
+
} else {
|
|
2947
|
+
Logger.e("RNMBXSymbol", "value for iconColorSaturation is null")
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
fun setSymbolZOffset(layer: SymbolLayer, styleValue: RNMBXStyleValue ) {
|
|
2953
|
+
if (styleValue.isExpression()) {
|
|
2954
|
+
val expression = styleValue.getExpression()
|
|
2955
|
+
if (expression != null) {
|
|
2956
|
+
layer.symbolZOffset(expression)
|
|
2957
|
+
} else {
|
|
2958
|
+
Logger.e("RNMBXSymbol", "Expression for symbolZOffset is null")
|
|
2959
|
+
}
|
|
2960
|
+
} else {
|
|
2961
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
2962
|
+
if (value != null) {
|
|
2963
|
+
layer.symbolZOffset(value)
|
|
2964
|
+
} else {
|
|
2965
|
+
Logger.e("RNMBXSymbol", "value for symbolZOffset is null")
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
fun setSymbolZOffsetTransition(layer: SymbolLayer, styleValue: RNMBXStyleValue) {
|
|
2972
|
+
val transition = styleValue.transition
|
|
2973
|
+
if (transition != null) {
|
|
2974
|
+
layer.symbolZOffsetTransition(transition);
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2630
2978
|
fun setCircleSortKey(layer: CircleLayer, styleValue: RNMBXStyleValue ) {
|
|
2631
2979
|
if (styleValue.isExpression()) {
|
|
2632
2980
|
val expression = styleValue.getExpression()
|
|
@@ -2896,6 +3244,19 @@ object RNMBXStyleFactory {
|
|
|
2896
3244
|
}
|
|
2897
3245
|
}
|
|
2898
3246
|
|
|
3247
|
+
fun setCircleElevationReference(layer: CircleLayer, styleValue: RNMBXStyleValue ) {
|
|
3248
|
+
if (styleValue.isExpression()) {
|
|
3249
|
+
val expression = styleValue.getExpression()
|
|
3250
|
+
if (expression != null) {
|
|
3251
|
+
layer.circleElevationReference(expression)
|
|
3252
|
+
} else {
|
|
3253
|
+
Logger.e("RNMBXCircle", "Expression for circleElevationReference is null")
|
|
3254
|
+
}
|
|
3255
|
+
} else {
|
|
3256
|
+
layer.circleElevationReference(CircleElevationReference.valueOf(styleValue.getEnumName()))
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
|
|
2899
3260
|
fun setCircleEmissiveStrength(layer: CircleLayer, styleValue: RNMBXStyleValue ) {
|
|
2900
3261
|
if (styleValue.isExpression()) {
|
|
2901
3262
|
val expression = styleValue.getExpression()
|
|
@@ -3315,6 +3676,50 @@ object RNMBXStyleFactory {
|
|
|
3315
3676
|
}
|
|
3316
3677
|
}
|
|
3317
3678
|
|
|
3679
|
+
fun setFillExtrusionPatternCrossFade(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
|
|
3680
|
+
if (styleValue.isExpression()) {
|
|
3681
|
+
val expression = styleValue.getExpression()
|
|
3682
|
+
if (expression != null) {
|
|
3683
|
+
layer.fillExtrusionPatternCrossFade(expression)
|
|
3684
|
+
} else {
|
|
3685
|
+
Logger.e("RNMBXFillExtrusion", "Expression for fillExtrusionPatternCrossFade is null")
|
|
3686
|
+
}
|
|
3687
|
+
} else {
|
|
3688
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
3689
|
+
if (value != null) {
|
|
3690
|
+
layer.fillExtrusionPatternCrossFade(value)
|
|
3691
|
+
} else {
|
|
3692
|
+
Logger.e("RNMBXFillExtrusion", "value for fillExtrusionPatternCrossFade is null")
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
fun setFillExtrusionHeightAlignment(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
|
|
3698
|
+
if (styleValue.isExpression()) {
|
|
3699
|
+
val expression = styleValue.getExpression()
|
|
3700
|
+
if (expression != null) {
|
|
3701
|
+
layer.fillExtrusionHeightAlignment(expression)
|
|
3702
|
+
} else {
|
|
3703
|
+
Logger.e("RNMBXFillExtrusion", "Expression for fillExtrusionHeightAlignment is null")
|
|
3704
|
+
}
|
|
3705
|
+
} else {
|
|
3706
|
+
layer.fillExtrusionHeightAlignment(FillExtrusionHeightAlignment.valueOf(styleValue.getEnumName()))
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
fun setFillExtrusionBaseAlignment(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
|
|
3711
|
+
if (styleValue.isExpression()) {
|
|
3712
|
+
val expression = styleValue.getExpression()
|
|
3713
|
+
if (expression != null) {
|
|
3714
|
+
layer.fillExtrusionBaseAlignment(expression)
|
|
3715
|
+
} else {
|
|
3716
|
+
Logger.e("RNMBXFillExtrusion", "Expression for fillExtrusionBaseAlignment is null")
|
|
3717
|
+
}
|
|
3718
|
+
} else {
|
|
3719
|
+
layer.fillExtrusionBaseAlignment(FillExtrusionBaseAlignment.valueOf(styleValue.getEnumName()))
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3318
3723
|
fun setFillExtrusionAmbientOcclusionWallRadius(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
|
|
3319
3724
|
if (styleValue.isExpression()) {
|
|
3320
3725
|
val expression = styleValue.getExpression()
|
|
@@ -3593,6 +3998,32 @@ object RNMBXStyleFactory {
|
|
|
3593
3998
|
}
|
|
3594
3999
|
}
|
|
3595
4000
|
|
|
4001
|
+
fun setFillExtrusionLineWidth(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue ) {
|
|
4002
|
+
if (styleValue.isExpression()) {
|
|
4003
|
+
val expression = styleValue.getExpression()
|
|
4004
|
+
if (expression != null) {
|
|
4005
|
+
layer.fillExtrusionLineWidth(expression)
|
|
4006
|
+
} else {
|
|
4007
|
+
Logger.e("RNMBXFillExtrusion", "Expression for fillExtrusionLineWidth is null")
|
|
4008
|
+
}
|
|
4009
|
+
} else {
|
|
4010
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
4011
|
+
if (value != null) {
|
|
4012
|
+
layer.fillExtrusionLineWidth(value)
|
|
4013
|
+
} else {
|
|
4014
|
+
Logger.e("RNMBXFillExtrusion", "value for fillExtrusionLineWidth is null")
|
|
4015
|
+
}
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
|
|
4019
|
+
|
|
4020
|
+
fun setFillExtrusionLineWidthTransition(layer: FillExtrusionLayer, styleValue: RNMBXStyleValue) {
|
|
4021
|
+
val transition = styleValue.transition
|
|
4022
|
+
if (transition != null) {
|
|
4023
|
+
layer.fillExtrusionLineWidthTransition(transition);
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
|
|
3596
4027
|
fun setVisibility(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
3597
4028
|
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
3598
4029
|
}
|
|
@@ -3854,6 +4285,76 @@ object RNMBXStyleFactory {
|
|
|
3854
4285
|
}
|
|
3855
4286
|
}
|
|
3856
4287
|
|
|
4288
|
+
fun setRasterEmissiveStrength(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
4289
|
+
if (styleValue.isExpression()) {
|
|
4290
|
+
val expression = styleValue.getExpression()
|
|
4291
|
+
if (expression != null) {
|
|
4292
|
+
layer.rasterEmissiveStrength(expression)
|
|
4293
|
+
} else {
|
|
4294
|
+
Logger.e("RNMBXRaster", "Expression for rasterEmissiveStrength is null")
|
|
4295
|
+
}
|
|
4296
|
+
} else {
|
|
4297
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
4298
|
+
if (value != null) {
|
|
4299
|
+
layer.rasterEmissiveStrength(value)
|
|
4300
|
+
} else {
|
|
4301
|
+
Logger.e("RNMBXRaster", "value for rasterEmissiveStrength is null")
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
|
|
4307
|
+
fun setRasterEmissiveStrengthTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
|
|
4308
|
+
val transition = styleValue.transition
|
|
4309
|
+
if (transition != null) {
|
|
4310
|
+
layer.rasterEmissiveStrengthTransition(transition);
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
|
|
4314
|
+
fun setRasterArrayBand(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
4315
|
+
if (styleValue.isExpression()) {
|
|
4316
|
+
val expression = styleValue.getExpression()
|
|
4317
|
+
if (expression != null) {
|
|
4318
|
+
layer.rasterArrayBand(expression)
|
|
4319
|
+
} else {
|
|
4320
|
+
Logger.e("RNMBXRaster", "Expression for rasterArrayBand is null")
|
|
4321
|
+
}
|
|
4322
|
+
} else {
|
|
4323
|
+
val value = styleValue.getString(VALUE_KEY)
|
|
4324
|
+
if (value != null) {
|
|
4325
|
+
layer.rasterArrayBand(value)
|
|
4326
|
+
} else {
|
|
4327
|
+
Logger.e("RNMBXRaster", "value for rasterArrayBand is null")
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
|
|
4332
|
+
fun setRasterElevation(layer: RasterLayer, styleValue: RNMBXStyleValue ) {
|
|
4333
|
+
if (styleValue.isExpression()) {
|
|
4334
|
+
val expression = styleValue.getExpression()
|
|
4335
|
+
if (expression != null) {
|
|
4336
|
+
layer.rasterElevation(expression)
|
|
4337
|
+
} else {
|
|
4338
|
+
Logger.e("RNMBXRaster", "Expression for rasterElevation is null")
|
|
4339
|
+
}
|
|
4340
|
+
} else {
|
|
4341
|
+
val value = styleValue.getDouble(VALUE_KEY)
|
|
4342
|
+
if (value != null) {
|
|
4343
|
+
layer.rasterElevation(value)
|
|
4344
|
+
} else {
|
|
4345
|
+
Logger.e("RNMBXRaster", "value for rasterElevation is null")
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
|
|
4351
|
+
fun setRasterElevationTransition(layer: RasterLayer, styleValue: RNMBXStyleValue) {
|
|
4352
|
+
val transition = styleValue.transition
|
|
4353
|
+
if (transition != null) {
|
|
4354
|
+
layer.rasterElevationTransition(transition);
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
|
|
3857
4358
|
fun setVisibility(layer: HillshadeLayer, styleValue: RNMBXStyleValue ) {
|
|
3858
4359
|
layer.visibility(Visibility.valueOf(styleValue.getEnumName()));
|
|
3859
4360
|
}
|
|
@@ -4425,6 +4926,19 @@ object RNMBXStyleFactory {
|
|
|
4425
4926
|
}
|
|
4426
4927
|
}
|
|
4427
4928
|
|
|
4929
|
+
fun setBackgroundPitchAlignment(layer: BackgroundLayer, styleValue: RNMBXStyleValue ) {
|
|
4930
|
+
if (styleValue.isExpression()) {
|
|
4931
|
+
val expression = styleValue.getExpression()
|
|
4932
|
+
if (expression != null) {
|
|
4933
|
+
layer.backgroundPitchAlignment(expression)
|
|
4934
|
+
} else {
|
|
4935
|
+
Logger.e("RNMBXBackground", "Expression for backgroundPitchAlignment is null")
|
|
4936
|
+
}
|
|
4937
|
+
} else {
|
|
4938
|
+
layer.backgroundPitchAlignment(BackgroundPitchAlignment.valueOf(styleValue.getEnumName()))
|
|
4939
|
+
}
|
|
4940
|
+
}
|
|
4941
|
+
|
|
4428
4942
|
fun setBackgroundEmissiveStrength(layer: BackgroundLayer, styleValue: RNMBXStyleValue ) {
|
|
4429
4943
|
if (styleValue.isExpression()) {
|
|
4430
4944
|
val expression = styleValue.getExpression()
|