@rnmapbox/maps 10.1.45 → 10.2.0-beta.3
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/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 +3 -3
- 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/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 +3 -3
- 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 +1 -1
- 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 +1 -1
- package/lib/typescript/src/components/FillLayer.d.ts +3 -3
- 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 +3 -3
- package/lib/typescript/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/ImageSource.d.ts +1 -1
- 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 +1 -2
- 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 +1 -2
- 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 +1 -1
- package/lib/typescript/src/components/RasterLayer.d.ts +1 -1
- package/lib/typescript/src/components/RasterSource.d.ts +1 -1
- package/lib/typescript/src/components/ShapeSource.d.ts +1 -1
- package/lib/typescript/src/components/SkyLayer.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +5 -5
- package/src/components/Camera.tsx +29 -16
- package/src/components/CustomLocationProvider.tsx +1 -1
- package/src/components/FillExtrusionLayer.tsx +3 -3
- package/src/components/FillLayer.tsx +5 -2
- package/src/components/HeatmapLayer.tsx +2 -2
- package/src/components/Image.tsx +1 -1
- package/src/components/Images.tsx +13 -12
- package/src/components/Light.tsx +0 -1
- package/src/components/LineLayer.tsx +0 -1
- package/src/components/LocationPuck.tsx +1 -1
- package/src/components/MapView.tsx +8 -4
- package/src/components/ModelLayer.tsx +0 -1
- package/src/components/Models.tsx +1 -2
- package/src/components/RasterDemSource.tsx +2 -2
- package/src/components/RasterSource.tsx +2 -2
- package/src/components/ShapeSource.tsx +2 -2
- package/src/components/SkyLayer.tsx +1 -1
- package/src/components/Style.tsx +4 -4
- package/src/components/StyleImport.tsx +1 -1
- package/src/components/Terrain.tsx +1 -1
- package/src/components/UserLocation.tsx +6 -1
- package/src/components/VectorSource.tsx +2 -2
- package/src/components/Viewport.tsx +2 -0
- 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
|
@@ -61,6 +61,16 @@ func fillLayer(layer: inout FillLayer, reactStyle:Dictionary<String, Any>, oldRe
|
|
|
61
61
|
setImageOnLayerLater: { (_) in applyUpdater { (layer: inout FillLayer) in self.setFillPattern(&layer, styleValue: styleValue) } },
|
|
62
62
|
name: "Fill.\(prop)"
|
|
63
63
|
)
|
|
64
|
+
} else if (prop == "fillPatternCrossFade") {
|
|
65
|
+
styleValue.setImage(
|
|
66
|
+
bridge: bridge!,
|
|
67
|
+
style: style,
|
|
68
|
+
oldValue: oldReactStyle?[prop],
|
|
69
|
+
setImageOnLayer: { (_) in self.setFillPatternCrossFade(&layer, styleValue:styleValue) },
|
|
70
|
+
isLayerStillValid: isValid,
|
|
71
|
+
setImageOnLayerLater: { (_) in applyUpdater { (layer: inout FillLayer) in self.setFillPatternCrossFade(&layer, styleValue: styleValue) } },
|
|
72
|
+
name: "Fill.\(prop)"
|
|
73
|
+
)
|
|
64
74
|
} else if (prop == "fillEmissiveStrength") {
|
|
65
75
|
self.setFillEmissiveStrength(&layer, styleValue:styleValue);
|
|
66
76
|
} else if (prop == "fillEmissiveStrengthTransition") {
|
|
@@ -144,10 +154,36 @@ func lineLayer(layer: inout LineLayer, reactStyle:Dictionary<String, Any>, oldRe
|
|
|
144
154
|
self.setLineGradient(&layer, styleValue:styleValue);
|
|
145
155
|
} else if (prop == "lineTrimOffset") {
|
|
146
156
|
self.setLineTrimOffset(&layer, styleValue:styleValue);
|
|
157
|
+
} else if (prop == "lineZOffset") {
|
|
158
|
+
self.setLineZOffset(&layer, styleValue:styleValue);
|
|
159
|
+
} else if (prop == "lineElevationReference") {
|
|
160
|
+
self.setLineElevationReference(&layer, styleValue:styleValue);
|
|
161
|
+
} else if (prop == "lineCrossSlope") {
|
|
162
|
+
self.setLineCrossSlope(&layer, styleValue:styleValue);
|
|
163
|
+
} else if (prop == "linePatternCrossFade") {
|
|
164
|
+
styleValue.setImage(
|
|
165
|
+
bridge: bridge!,
|
|
166
|
+
style: style,
|
|
167
|
+
oldValue: oldReactStyle?[prop],
|
|
168
|
+
setImageOnLayer: { (_) in self.setLinePatternCrossFade(&layer, styleValue:styleValue) },
|
|
169
|
+
isLayerStillValid: isValid,
|
|
170
|
+
setImageOnLayerLater: { (_) in applyUpdater { (layer: inout LineLayer) in self.setLinePatternCrossFade(&layer, styleValue: styleValue) } },
|
|
171
|
+
name: "Line.\(prop)"
|
|
172
|
+
)
|
|
173
|
+
} else if (prop == "lineTrimFadeRange") {
|
|
174
|
+
self.setLineTrimFadeRange(&layer, styleValue:styleValue);
|
|
175
|
+
} else if (prop == "lineTrimColor") {
|
|
176
|
+
self.setLineTrimColor(&layer, styleValue:styleValue);
|
|
177
|
+
} else if (prop == "lineTrimColorTransition") {
|
|
178
|
+
self.setLineTrimColorTransition(&layer, styleValue:styleValue);
|
|
147
179
|
} else if (prop == "lineEmissiveStrength") {
|
|
148
180
|
self.setLineEmissiveStrength(&layer, styleValue:styleValue);
|
|
149
181
|
} else if (prop == "lineEmissiveStrengthTransition") {
|
|
150
182
|
self.setLineEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
183
|
+
} else if (prop == "lineOcclusionOpacity") {
|
|
184
|
+
self.setLineOcclusionOpacity(&layer, styleValue:styleValue);
|
|
185
|
+
} else if (prop == "lineOcclusionOpacityTransition") {
|
|
186
|
+
self.setLineOcclusionOpacityTransition(&layer, styleValue:styleValue);
|
|
151
187
|
} else {
|
|
152
188
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: line")
|
|
153
189
|
}
|
|
@@ -315,6 +351,12 @@ func symbolLayer(layer: inout SymbolLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
315
351
|
self.setTextTranslateAnchor(&layer, styleValue:styleValue);
|
|
316
352
|
} else if (prop == "symbolZElevate") {
|
|
317
353
|
self.setSymbolZElevate(&layer, styleValue:styleValue);
|
|
354
|
+
} else if (prop == "symbolElevationReference") {
|
|
355
|
+
self.setSymbolElevationReference(&layer, styleValue:styleValue);
|
|
356
|
+
} else if (prop == "iconOcclusionOpacity") {
|
|
357
|
+
self.setIconOcclusionOpacity(&layer, styleValue:styleValue);
|
|
358
|
+
} else if (prop == "iconOcclusionOpacityTransition") {
|
|
359
|
+
self.setIconOcclusionOpacityTransition(&layer, styleValue:styleValue);
|
|
318
360
|
} else if (prop == "iconEmissiveStrength") {
|
|
319
361
|
self.setIconEmissiveStrength(&layer, styleValue:styleValue);
|
|
320
362
|
} else if (prop == "iconEmissiveStrengthTransition") {
|
|
@@ -333,6 +375,16 @@ func symbolLayer(layer: inout SymbolLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
333
375
|
setImageOnLayerLater: { (_) in applyUpdater { (layer: inout SymbolLayer) in self.setIconImageCrossFade(&layer, styleValue: styleValue) } },
|
|
334
376
|
name: "Symbol.\(prop)"
|
|
335
377
|
)
|
|
378
|
+
} else if (prop == "textOcclusionOpacity") {
|
|
379
|
+
self.setTextOcclusionOpacity(&layer, styleValue:styleValue);
|
|
380
|
+
} else if (prop == "textOcclusionOpacityTransition") {
|
|
381
|
+
self.setTextOcclusionOpacityTransition(&layer, styleValue:styleValue);
|
|
382
|
+
} else if (prop == "iconColorSaturation") {
|
|
383
|
+
self.setIconColorSaturation(&layer, styleValue:styleValue);
|
|
384
|
+
} else if (prop == "symbolZOffset") {
|
|
385
|
+
self.setSymbolZOffset(&layer, styleValue:styleValue);
|
|
386
|
+
} else if (prop == "symbolZOffsetTransition") {
|
|
387
|
+
self.setSymbolZOffsetTransition(&layer, styleValue:styleValue);
|
|
336
388
|
} else {
|
|
337
389
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: symbol")
|
|
338
390
|
}
|
|
@@ -396,6 +448,8 @@ func circleLayer(layer: inout CircleLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
396
448
|
self.setCircleStrokeOpacity(&layer, styleValue:styleValue);
|
|
397
449
|
} else if (prop == "circleStrokeOpacityTransition") {
|
|
398
450
|
self.setCircleStrokeOpacityTransition(&layer, styleValue:styleValue);
|
|
451
|
+
} else if (prop == "circleElevationReference") {
|
|
452
|
+
self.setCircleElevationReference(&layer, styleValue:styleValue);
|
|
399
453
|
} else if (prop == "circleEmissiveStrength") {
|
|
400
454
|
self.setCircleEmissiveStrength(&layer, styleValue:styleValue);
|
|
401
455
|
} else if (prop == "circleEmissiveStrengthTransition") {
|
|
@@ -508,6 +562,20 @@ func fillExtrusionLayer(layer: inout FillExtrusionLayer, reactStyle:Dictionary<S
|
|
|
508
562
|
self.setFillExtrusionAmbientOcclusionRadiusTransition(&layer, styleValue:styleValue);
|
|
509
563
|
} else if (prop == "fillExtrusionRoundedRoof") {
|
|
510
564
|
self.setFillExtrusionRoundedRoof(&layer, styleValue:styleValue);
|
|
565
|
+
} else if (prop == "fillExtrusionPatternCrossFade") {
|
|
566
|
+
styleValue.setImage(
|
|
567
|
+
bridge: bridge!,
|
|
568
|
+
style: style,
|
|
569
|
+
oldValue: oldReactStyle?[prop],
|
|
570
|
+
setImageOnLayer: { (_) in self.setFillExtrusionPatternCrossFade(&layer, styleValue:styleValue) },
|
|
571
|
+
isLayerStillValid: isValid,
|
|
572
|
+
setImageOnLayerLater: { (_) in applyUpdater { (layer: inout FillExtrusionLayer) in self.setFillExtrusionPatternCrossFade(&layer, styleValue: styleValue) } },
|
|
573
|
+
name: "FillExtrusion.\(prop)"
|
|
574
|
+
)
|
|
575
|
+
} else if (prop == "fillExtrusionHeightAlignment") {
|
|
576
|
+
self.setFillExtrusionHeightAlignment(&layer, styleValue:styleValue);
|
|
577
|
+
} else if (prop == "fillExtrusionBaseAlignment") {
|
|
578
|
+
self.setFillExtrusionBaseAlignment(&layer, styleValue:styleValue);
|
|
511
579
|
} else if (prop == "fillExtrusionAmbientOcclusionWallRadius") {
|
|
512
580
|
self.setFillExtrusionAmbientOcclusionWallRadius(&layer, styleValue:styleValue);
|
|
513
581
|
} else if (prop == "fillExtrusionAmbientOcclusionWallRadiusTransition") {
|
|
@@ -550,6 +618,10 @@ func fillExtrusionLayer(layer: inout FillExtrusionLayer, reactStyle:Dictionary<S
|
|
|
550
618
|
self.setFillExtrusionEmissiveStrength(&layer, styleValue:styleValue);
|
|
551
619
|
} else if (prop == "fillExtrusionEmissiveStrengthTransition") {
|
|
552
620
|
self.setFillExtrusionEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
621
|
+
} else if (prop == "fillExtrusionLineWidth") {
|
|
622
|
+
self.setFillExtrusionLineWidth(&layer, styleValue:styleValue);
|
|
623
|
+
} else if (prop == "fillExtrusionLineWidthTransition") {
|
|
624
|
+
self.setFillExtrusionLineWidthTransition(&layer, styleValue:styleValue);
|
|
553
625
|
} else {
|
|
554
626
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: fill-extrusion")
|
|
555
627
|
}
|
|
@@ -611,6 +683,16 @@ func rasterLayer(layer: inout RasterLayer, reactStyle:Dictionary<String, Any>, o
|
|
|
611
683
|
self.setRasterColorRange(&layer, styleValue:styleValue);
|
|
612
684
|
} else if (prop == "rasterColorRangeTransition") {
|
|
613
685
|
self.setRasterColorRangeTransition(&layer, styleValue:styleValue);
|
|
686
|
+
} else if (prop == "rasterEmissiveStrength") {
|
|
687
|
+
self.setRasterEmissiveStrength(&layer, styleValue:styleValue);
|
|
688
|
+
} else if (prop == "rasterEmissiveStrengthTransition") {
|
|
689
|
+
self.setRasterEmissiveStrengthTransition(&layer, styleValue:styleValue);
|
|
690
|
+
} else if (prop == "rasterArrayBand") {
|
|
691
|
+
self.setRasterArrayBand(&layer, styleValue:styleValue);
|
|
692
|
+
} else if (prop == "rasterElevation") {
|
|
693
|
+
self.setRasterElevation(&layer, styleValue:styleValue);
|
|
694
|
+
} else if (prop == "rasterElevationTransition") {
|
|
695
|
+
self.setRasterElevationTransition(&layer, styleValue:styleValue);
|
|
614
696
|
} else {
|
|
615
697
|
Logger.log(level:.error, message: "Unexpected property \(prop) for layer: raster")
|
|
616
698
|
}
|
|
@@ -768,6 +850,8 @@ func backgroundLayer(layer: inout BackgroundLayer, reactStyle:Dictionary<String,
|
|
|
768
850
|
self.setBackgroundOpacity(&layer, styleValue:styleValue);
|
|
769
851
|
} else if (prop == "backgroundOpacityTransition") {
|
|
770
852
|
self.setBackgroundOpacityTransition(&layer, styleValue:styleValue);
|
|
853
|
+
} else if (prop == "backgroundPitchAlignment") {
|
|
854
|
+
self.setBackgroundPitchAlignment(&layer, styleValue:styleValue);
|
|
771
855
|
} else if (prop == "backgroundEmissiveStrength") {
|
|
772
856
|
self.setBackgroundEmissiveStrength(&layer, styleValue:styleValue);
|
|
773
857
|
} else if (prop == "backgroundEmissiveStrengthTransition") {
|
|
@@ -1028,6 +1112,17 @@ func setFillPattern(_ layer: inout FillLayer, styleValue: RNMBXStyleValue)
|
|
|
1028
1112
|
|
|
1029
1113
|
}
|
|
1030
1114
|
|
|
1115
|
+
func setFillPatternCrossFade(_ layer: inout FillLayer, styleValue: RNMBXStyleValue)
|
|
1116
|
+
{
|
|
1117
|
+
#if RNMBX_11
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
layer.fillPatternCrossFade = styleValue.mglStyleValueNumber();
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
#endif
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1031
1126
|
func setFillEmissiveStrength(_ layer: inout FillLayer, styleValue: RNMBXStyleValue)
|
|
1032
1127
|
{
|
|
1033
1128
|
#if RNMBX_11
|
|
@@ -1241,6 +1336,79 @@ func setLineTrimOffset(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
|
1241
1336
|
|
|
1242
1337
|
}
|
|
1243
1338
|
|
|
1339
|
+
func setLineZOffset(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1340
|
+
{
|
|
1341
|
+
#if RNMBX_11
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
layer.lineZOffset = styleValue.mglStyleValueNumber();
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
#endif
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
func setLineElevationReference(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1351
|
+
{
|
|
1352
|
+
#if RNMBX_11
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
layer.lineElevationReference = styleValue.mglStyleValueEnum();
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
#endif
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
func setLineCrossSlope(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1362
|
+
{
|
|
1363
|
+
#if RNMBX_11
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
layer.lineCrossSlope = styleValue.mglStyleValueNumber();
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
#endif
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
func setLinePatternCrossFade(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1373
|
+
{
|
|
1374
|
+
#if RNMBX_11
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
layer.linePatternCrossFade = styleValue.mglStyleValueNumber();
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
#endif
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
func setLineTrimFadeRange(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1384
|
+
{
|
|
1385
|
+
#if RNMBX_11
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
layer.lineTrimFadeRange = styleValue.mglStyleValueArrayNumber();
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
#endif
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
func setLineTrimColor(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1395
|
+
{
|
|
1396
|
+
#if RNMBX_11
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
layer.lineTrimColor = styleValue.mglStyleValueColor();
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
#endif
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
func setLineTrimColorTransition(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1406
|
+
{
|
|
1407
|
+
#if RNMBX_11
|
|
1408
|
+
layer.lineTrimColorTransition = styleValue.getTransition();
|
|
1409
|
+
#endif
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1244
1412
|
func setLineEmissiveStrength(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1245
1413
|
{
|
|
1246
1414
|
#if RNMBX_11
|
|
@@ -1259,6 +1427,24 @@ func setLineEmissiveStrengthTransition(_ layer: inout LineLayer, styleValue: RNM
|
|
|
1259
1427
|
#endif
|
|
1260
1428
|
}
|
|
1261
1429
|
|
|
1430
|
+
func setLineOcclusionOpacity(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1431
|
+
{
|
|
1432
|
+
#if RNMBX_11
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
layer.lineOcclusionOpacity = styleValue.mglStyleValueNumber();
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
#endif
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
func setLineOcclusionOpacityTransition(_ layer: inout LineLayer, styleValue: RNMBXStyleValue)
|
|
1442
|
+
{
|
|
1443
|
+
#if RNMBX_11
|
|
1444
|
+
layer.lineOcclusionOpacityTransition = styleValue.getTransition();
|
|
1445
|
+
#endif
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1262
1448
|
|
|
1263
1449
|
|
|
1264
1450
|
func setSymbolPlacement(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
@@ -1832,6 +2018,35 @@ func setSymbolZElevate(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
|
1832
2018
|
#endif
|
|
1833
2019
|
}
|
|
1834
2020
|
|
|
2021
|
+
func setSymbolElevationReference(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2022
|
+
{
|
|
2023
|
+
#if RNMBX_11
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
layer.symbolElevationReference = styleValue.mglStyleValueEnum();
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
#endif
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
func setIconOcclusionOpacity(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2033
|
+
{
|
|
2034
|
+
#if RNMBX_11
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
layer.iconOcclusionOpacity = styleValue.mglStyleValueNumber();
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
#endif
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
func setIconOcclusionOpacityTransition(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2044
|
+
{
|
|
2045
|
+
#if RNMBX_11
|
|
2046
|
+
layer.iconOcclusionOpacityTransition = styleValue.getTransition();
|
|
2047
|
+
#endif
|
|
2048
|
+
}
|
|
2049
|
+
|
|
1835
2050
|
func setIconEmissiveStrength(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
1836
2051
|
{
|
|
1837
2052
|
#if RNMBX_11
|
|
@@ -1879,6 +2094,53 @@ func setIconImageCrossFade(_ layer: inout SymbolLayer, styleValue: RNMBXStyleVal
|
|
|
1879
2094
|
#endif
|
|
1880
2095
|
}
|
|
1881
2096
|
|
|
2097
|
+
func setTextOcclusionOpacity(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2098
|
+
{
|
|
2099
|
+
#if RNMBX_11
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
layer.textOcclusionOpacity = styleValue.mglStyleValueNumber();
|
|
2103
|
+
|
|
2104
|
+
|
|
2105
|
+
#endif
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
func setTextOcclusionOpacityTransition(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2109
|
+
{
|
|
2110
|
+
#if RNMBX_11
|
|
2111
|
+
layer.textOcclusionOpacityTransition = styleValue.getTransition();
|
|
2112
|
+
#endif
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
func setIconColorSaturation(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2116
|
+
{
|
|
2117
|
+
#if RNMBX_11
|
|
2118
|
+
|
|
2119
|
+
|
|
2120
|
+
layer.iconColorSaturation = styleValue.mglStyleValueNumber();
|
|
2121
|
+
|
|
2122
|
+
|
|
2123
|
+
#endif
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
func setSymbolZOffset(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2127
|
+
{
|
|
2128
|
+
#if RNMBX_11
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
layer.symbolZOffset = styleValue.mglStyleValueNumber();
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
#endif
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
func setSymbolZOffsetTransition(_ layer: inout SymbolLayer, styleValue: RNMBXStyleValue)
|
|
2138
|
+
{
|
|
2139
|
+
#if RNMBX_11
|
|
2140
|
+
layer.symbolZOffsetTransition = styleValue.getTransition();
|
|
2141
|
+
#endif
|
|
2142
|
+
}
|
|
2143
|
+
|
|
1882
2144
|
|
|
1883
2145
|
|
|
1884
2146
|
func setCircleSortKey(_ layer: inout CircleLayer, styleValue: RNMBXStyleValue)
|
|
@@ -2034,6 +2296,17 @@ func setCircleStrokeOpacityTransition(_ layer: inout CircleLayer, styleValue: RN
|
|
|
2034
2296
|
layer.circleStrokeOpacityTransition = styleValue.getTransition();
|
|
2035
2297
|
}
|
|
2036
2298
|
|
|
2299
|
+
func setCircleElevationReference(_ layer: inout CircleLayer, styleValue: RNMBXStyleValue)
|
|
2300
|
+
{
|
|
2301
|
+
#if RNMBX_11
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
layer.circleElevationReference = styleValue.mglStyleValueEnum();
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
#endif
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2037
2310
|
func setCircleEmissiveStrength(_ layer: inout CircleLayer, styleValue: RNMBXStyleValue)
|
|
2038
2311
|
{
|
|
2039
2312
|
#if RNMBX_11
|
|
@@ -2273,6 +2546,39 @@ func setFillExtrusionRoundedRoof(_ layer: inout FillExtrusionLayer, styleValue:
|
|
|
2273
2546
|
#endif
|
|
2274
2547
|
}
|
|
2275
2548
|
|
|
2549
|
+
func setFillExtrusionPatternCrossFade(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2550
|
+
{
|
|
2551
|
+
#if RNMBX_11
|
|
2552
|
+
|
|
2553
|
+
|
|
2554
|
+
layer.fillExtrusionPatternCrossFade = styleValue.mglStyleValueNumber();
|
|
2555
|
+
|
|
2556
|
+
|
|
2557
|
+
#endif
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
func setFillExtrusionHeightAlignment(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2561
|
+
{
|
|
2562
|
+
#if RNMBX_11
|
|
2563
|
+
|
|
2564
|
+
|
|
2565
|
+
layer.fillExtrusionHeightAlignment = styleValue.mglStyleValueEnum();
|
|
2566
|
+
|
|
2567
|
+
|
|
2568
|
+
#endif
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
func setFillExtrusionBaseAlignment(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2572
|
+
{
|
|
2573
|
+
#if RNMBX_11
|
|
2574
|
+
|
|
2575
|
+
|
|
2576
|
+
layer.fillExtrusionBaseAlignment = styleValue.mglStyleValueEnum();
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
#endif
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2276
2582
|
func setFillExtrusionAmbientOcclusionWallRadius(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2277
2583
|
{
|
|
2278
2584
|
#if RNMBX_11
|
|
@@ -2464,6 +2770,24 @@ func setFillExtrusionEmissiveStrengthTransition(_ layer: inout FillExtrusionLaye
|
|
|
2464
2770
|
#endif
|
|
2465
2771
|
}
|
|
2466
2772
|
|
|
2773
|
+
func setFillExtrusionLineWidth(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2774
|
+
{
|
|
2775
|
+
#if RNMBX_11
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
layer.fillExtrusionLineWidth = styleValue.mglStyleValueNumber();
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
#endif
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
func setFillExtrusionLineWidthTransition(_ layer: inout FillExtrusionLayer, styleValue: RNMBXStyleValue)
|
|
2785
|
+
{
|
|
2786
|
+
#if RNMBX_11
|
|
2787
|
+
layer.fillExtrusionLineWidthTransition = styleValue.getTransition();
|
|
2788
|
+
#endif
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2467
2791
|
|
|
2468
2792
|
|
|
2469
2793
|
func setRasterStyleLayerVisibility(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
@@ -2620,6 +2944,53 @@ func setRasterColorRangeTransition(_ layer: inout RasterLayer, styleValue: RNMBX
|
|
|
2620
2944
|
#endif
|
|
2621
2945
|
}
|
|
2622
2946
|
|
|
2947
|
+
func setRasterEmissiveStrength(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2948
|
+
{
|
|
2949
|
+
#if RNMBX_11
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
layer.rasterEmissiveStrength = styleValue.mglStyleValueNumber();
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
#endif
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
func setRasterEmissiveStrengthTransition(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2959
|
+
{
|
|
2960
|
+
#if RNMBX_11
|
|
2961
|
+
layer.rasterEmissiveStrengthTransition = styleValue.getTransition();
|
|
2962
|
+
#endif
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
func setRasterArrayBand(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2966
|
+
{
|
|
2967
|
+
#if RNMBX_11
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
layer.rasterArrayBand = styleValue.mglStyleValueString();
|
|
2971
|
+
|
|
2972
|
+
|
|
2973
|
+
#endif
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
func setRasterElevation(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2977
|
+
{
|
|
2978
|
+
#if RNMBX_11
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
layer.rasterElevation = styleValue.mglStyleValueNumber();
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
#endif
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
func setRasterElevationTransition(_ layer: inout RasterLayer, styleValue: RNMBXStyleValue)
|
|
2988
|
+
{
|
|
2989
|
+
#if RNMBX_11
|
|
2990
|
+
layer.rasterElevationTransition = styleValue.getTransition();
|
|
2991
|
+
#endif
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2623
2994
|
|
|
2624
2995
|
|
|
2625
2996
|
func setHillshadeStyleLayerVisibility(_ layer: inout HillshadeLayer, styleValue: RNMBXStyleValue)
|
|
@@ -2979,6 +3350,17 @@ func setBackgroundOpacityTransition(_ layer: inout BackgroundLayer, styleValue:
|
|
|
2979
3350
|
layer.backgroundOpacityTransition = styleValue.getTransition();
|
|
2980
3351
|
}
|
|
2981
3352
|
|
|
3353
|
+
func setBackgroundPitchAlignment(_ layer: inout BackgroundLayer, styleValue: RNMBXStyleValue)
|
|
3354
|
+
{
|
|
3355
|
+
#if RNMBX_11
|
|
3356
|
+
|
|
3357
|
+
|
|
3358
|
+
layer.backgroundPitchAlignment = styleValue.mglStyleValueEnum();
|
|
3359
|
+
|
|
3360
|
+
|
|
3361
|
+
#endif
|
|
3362
|
+
}
|
|
3363
|
+
|
|
2982
3364
|
func setBackgroundEmissiveStrength(_ layer: inout BackgroundLayer, styleValue: RNMBXStyleValue)
|
|
2983
3365
|
{
|
|
2984
3366
|
#if RNMBX_11
|
|
@@ -67,7 +67,6 @@ function addLines(content, find, offset, toAdd) {
|
|
|
67
67
|
let lineIndex = lines.findIndex((line) => line.match(find));
|
|
68
68
|
if (lineIndex < 0) {
|
|
69
69
|
const error = new Error(`Failed to match "${find}" in contents:\n${content}`);
|
|
70
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
71
70
|
// @ts-ignore
|
|
72
71
|
error.code = 'ERR_NO_MATCH';
|
|
73
72
|
throw error;
|
|
@@ -61,6 +61,8 @@ const addConstantBlock = (src, { RNMapboxMapsImpl, RNMapboxMapsVersion, RNMapbox
|
|
|
61
61
|
}
|
|
62
62
|
const newSrc = [];
|
|
63
63
|
if (RNMapboxMapsDownloadToken) {
|
|
64
|
+
console.warn('⚠️ RNMapbox: RNMapboxMapsDownloadToken is deprecated. Use RNMAPBOX_MAPS_DOWNLOAD_TOKEN environment variable instead.');
|
|
65
|
+
console.warn('⚠️ RNMapbox: This token will be part of your Podfile. Be careful about committing it to source control.');
|
|
64
66
|
newSrc.push(`$RNMapboxMapsDownloadToken = '${RNMapboxMapsDownloadToken}'`);
|
|
65
67
|
}
|
|
66
68
|
if (RNMapboxMapsImpl) {
|
|
@@ -132,6 +134,8 @@ const withCocoaPodsInstallerBlocks = (config, { RNMapboxMapsImpl, RNMapboxMapsVe
|
|
|
132
134
|
const withAndroidPropertiesDownloadToken = (config, { RNMapboxMapsDownloadToken }) => {
|
|
133
135
|
const key = 'MAPBOX_DOWNLOADS_TOKEN';
|
|
134
136
|
if (RNMapboxMapsDownloadToken) {
|
|
137
|
+
console.warn('⚠️ WARNING: RNMapboxMapsDownloadToken is deprecated. Use RNMAPBOX_MAPS_DOWNLOAD_TOKEN environment variable instead.');
|
|
138
|
+
console.warn('⚠️ WARNING: This token will be part of your gradle.properties. Be careful about committing it to source control.');
|
|
135
139
|
return (0, config_plugins_1.withGradleProperties)(config, (exportedConfig) => {
|
|
136
140
|
exportedConfig.modResults = exportedConfig.modResults.filter((item) => !(item.type === 'property' && item.key === key));
|
|
137
141
|
exportedConfig.modResults.push({
|
|
@@ -207,10 +211,16 @@ allprojects {
|
|
|
207
211
|
repositories {
|
|
208
212
|
maven {
|
|
209
213
|
url 'https://api.mapbox.com/downloads/v2/releases/maven'
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
+
// Authentication is no longer required as per Mapbox's removal of download token requirement
|
|
215
|
+
// See: https://github.com/mapbox/mapbox-maps-flutter/issues/775
|
|
216
|
+
// Keeping this as optional for backward compatibility
|
|
217
|
+
def token = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: System.getenv('RNMAPBOX_MAPS_DOWNLOAD_TOKEN')
|
|
218
|
+
if (token) {
|
|
219
|
+
authentication { basic(BasicAuthentication) }
|
|
220
|
+
credentials {
|
|
221
|
+
username = 'mapbox'
|
|
222
|
+
password = token
|
|
223
|
+
}
|
|
214
224
|
}
|
|
215
225
|
}
|
|
216
226
|
}
|
|
@@ -28,23 +28,15 @@ After installing this package, add the [config plugin](https://docs.expo.io/guid
|
|
|
28
28
|
}
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
You'll need to provide
|
|
31
|
+
You'll need to provide a download token. Set the `RNMAPBOX_MAPS_DOWNLOAD_TOKEN` environment variable to your download token (requires the `DOWNLOADS:READ` scope):
|
|
32
32
|
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"plugins": [
|
|
37
|
-
[
|
|
38
|
-
"@rnmapbox/maps",
|
|
39
|
-
{
|
|
40
|
-
"RNMapboxMapsDownloadToken": "sk.ey...qg"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
}
|
|
33
|
+
```bash
|
|
34
|
+
export RNMAPBOX_MAPS_DOWNLOAD_TOKEN="sk.ey...qg"
|
|
35
|
+
npx expo prebuild
|
|
46
36
|
```
|
|
47
37
|
|
|
38
|
+
For more information about obtaining a download token, refer to the [iOS guide](https://docs.mapbox.com/ios/maps/guides/install/#configure-credentials), which explains how to configure this token under the section `Configure your secret token`.
|
|
39
|
+
|
|
48
40
|
If you want to show the user's current location on the map with the [UserLocation](../docs/UserLocation.md) component, you can use the [expo-location](https://docs.expo.dev/versions/latest/sdk/location/) plugin to configure the required `NSLocationWhenInUseUsageDescription` property. Install the plugin with `npx expo install expo-location` and add its config plugin to the plugins array of your `app.{json,config.js,config.ts}`:
|
|
49
41
|
|
|
50
42
|
```json
|
|
@@ -75,8 +67,7 @@ It's possible to overwrite the native SDK version with `RNMapboxMapsVersion`:
|
|
|
75
67
|
[
|
|
76
68
|
"@rnmapbox/maps",
|
|
77
69
|
{
|
|
78
|
-
"RNMapboxMapsVersion": "
|
|
79
|
-
"RNMapboxMapsDownloadToken": "sk.ey...qg"
|
|
70
|
+
"RNMapboxMapsVersion": "11.16.0"
|
|
80
71
|
}
|
|
81
72
|
]
|
|
82
73
|
]
|
|
@@ -93,8 +84,7 @@ To use V11 just set the version to a 11 version, see [the ios guide](/ios/instal
|
|
|
93
84
|
[
|
|
94
85
|
"@rnmapbox/maps",
|
|
95
86
|
{
|
|
96
|
-
"RNMapboxMapsVersion": "11.13.4"
|
|
97
|
-
"RNMapboxMapsDownloadToken": "sk.ey...qg",
|
|
87
|
+
"RNMapboxMapsVersion": "11.13.4"
|
|
98
88
|
}
|
|
99
89
|
]
|
|
100
90
|
]
|
|
@@ -102,6 +92,16 @@ To use V11 just set the version to a 11 version, see [the ios guide](/ios/instal
|
|
|
102
92
|
}
|
|
103
93
|
```
|
|
104
94
|
|
|
95
|
+
### Download Token Configuration
|
|
96
|
+
|
|
97
|
+
For Expo projects, we recommend using the `RNMAPBOX_MAPS_DOWNLOAD_TOKEN` environment variable:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
# Set the environment variable before building
|
|
101
|
+
export RNMAPBOX_MAPS_DOWNLOAD_TOKEN="sk.ey...qg"
|
|
102
|
+
npx expo prebuild
|
|
103
|
+
```
|
|
104
|
+
|
|
105
105
|
## Manual Setup
|
|
106
106
|
|
|
107
107
|
For bare workflow projects, you can follow the manual setup guides:
|
|
@@ -103,6 +103,13 @@ export const addConstantBlock = (
|
|
|
103
103
|
const newSrc = [];
|
|
104
104
|
|
|
105
105
|
if (RNMapboxMapsDownloadToken) {
|
|
106
|
+
console.warn(
|
|
107
|
+
'⚠️ RNMapbox: RNMapboxMapsDownloadToken is deprecated. Use RNMAPBOX_MAPS_DOWNLOAD_TOKEN environment variable instead.',
|
|
108
|
+
);
|
|
109
|
+
console.warn(
|
|
110
|
+
'⚠️ RNMapbox: This token will be part of your Podfile. Be careful about committing it to source control.',
|
|
111
|
+
);
|
|
112
|
+
|
|
106
113
|
newSrc.push(`$RNMapboxMapsDownloadToken = '${RNMapboxMapsDownloadToken}'`);
|
|
107
114
|
}
|
|
108
115
|
|
|
@@ -214,6 +221,13 @@ const withAndroidPropertiesDownloadToken: ConfigPlugin<MapboxPlugProps> = (
|
|
|
214
221
|
const key = 'MAPBOX_DOWNLOADS_TOKEN';
|
|
215
222
|
|
|
216
223
|
if (RNMapboxMapsDownloadToken) {
|
|
224
|
+
console.warn(
|
|
225
|
+
'⚠️ WARNING: RNMapboxMapsDownloadToken is deprecated. Use RNMAPBOX_MAPS_DOWNLOAD_TOKEN environment variable instead.',
|
|
226
|
+
);
|
|
227
|
+
console.warn(
|
|
228
|
+
'⚠️ WARNING: This token will be part of your gradle.properties. Be careful about committing it to source control.',
|
|
229
|
+
);
|
|
230
|
+
|
|
217
231
|
return withGradleProperties(config, (exportedConfig) => {
|
|
218
232
|
exportedConfig.modResults = exportedConfig.modResults.filter(
|
|
219
233
|
(item) => !(item.type === 'property' && item.key === key),
|
|
@@ -317,10 +331,16 @@ allprojects {
|
|
|
317
331
|
repositories {
|
|
318
332
|
maven {
|
|
319
333
|
url 'https://api.mapbox.com/downloads/v2/releases/maven'
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
334
|
+
// Authentication is no longer required as per Mapbox's removal of download token requirement
|
|
335
|
+
// See: https://github.com/mapbox/mapbox-maps-flutter/issues/775
|
|
336
|
+
// Keeping this as optional for backward compatibility
|
|
337
|
+
def token = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: System.getenv('RNMAPBOX_MAPS_DOWNLOAD_TOKEN')
|
|
338
|
+
if (token) {
|
|
339
|
+
authentication { basic(BasicAuthentication) }
|
|
340
|
+
credentials {
|
|
341
|
+
username = 'mapbox'
|
|
342
|
+
password = token
|
|
343
|
+
}
|
|
324
344
|
}
|
|
325
345
|
}
|
|
326
346
|
}
|