@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
|
@@ -173,6 +173,21 @@ enum LineTranslateAnchorEnum {
|
|
|
173
173
|
Viewport = 'viewport',
|
|
174
174
|
}
|
|
175
175
|
type LineTranslateAnchorEnumValues = 'map' | 'viewport';
|
|
176
|
+
enum LineElevationReferenceEnum {
|
|
177
|
+
/** Elevated rendering is disabled. */
|
|
178
|
+
None = 'none',
|
|
179
|
+
/** Elevated rendering is enabled. Use this mode to elevate lines relative to the sea level. */
|
|
180
|
+
Sea = 'sea',
|
|
181
|
+
/** Elevated rendering is enabled. Use this mode to elevate lines relative to the ground's height below them. */
|
|
182
|
+
Ground = 'ground',
|
|
183
|
+
/** Elevated rendering is enabled. Use this mode to describe additive and stackable features that should exist only on top of road polygons. */
|
|
184
|
+
HdRoadMarkup = 'hd-road-markup',
|
|
185
|
+
}
|
|
186
|
+
type LineElevationReferenceEnumValues =
|
|
187
|
+
| 'none'
|
|
188
|
+
| 'sea'
|
|
189
|
+
| 'ground'
|
|
190
|
+
| 'hd-road-markup';
|
|
176
191
|
enum SymbolPlacementEnum {
|
|
177
192
|
/** The label is placed at the point where the geometry is located. */
|
|
178
193
|
Point = 'point',
|
|
@@ -369,6 +384,15 @@ enum TextTranslateAnchorEnum {
|
|
|
369
384
|
Viewport = 'viewport',
|
|
370
385
|
}
|
|
371
386
|
type TextTranslateAnchorEnumValues = 'map' | 'viewport';
|
|
387
|
+
enum SymbolElevationReferenceEnum {
|
|
388
|
+
/** Elevate symbols relative to the sea level. */
|
|
389
|
+
Sea = 'sea',
|
|
390
|
+
/** Elevate symbols relative to the ground's height below them. */
|
|
391
|
+
Ground = 'ground',
|
|
392
|
+
/** Use this mode to enable elevated behavior for features that are rendered on top of 3D road polygons. The feature is currently being developed. */
|
|
393
|
+
HdRoadMarkup = 'hd-road-markup',
|
|
394
|
+
}
|
|
395
|
+
type SymbolElevationReferenceEnumValues = 'sea' | 'ground' | 'hd-road-markup';
|
|
372
396
|
enum CircleTranslateAnchorEnum {
|
|
373
397
|
/** The circle is translated relative to the map. */
|
|
374
398
|
Map = 'map',
|
|
@@ -390,6 +414,13 @@ enum CirclePitchAlignmentEnum {
|
|
|
390
414
|
Viewport = 'viewport',
|
|
391
415
|
}
|
|
392
416
|
type CirclePitchAlignmentEnumValues = 'map' | 'viewport';
|
|
417
|
+
enum CircleElevationReferenceEnum {
|
|
418
|
+
/** Elevated rendering is disabled. */
|
|
419
|
+
None = 'none',
|
|
420
|
+
/** Elevated rendering is enabled. Use this mode to describe additive and stackable features that should exist only on top of road polygons. */
|
|
421
|
+
HdRoadMarkup = 'hd-road-markup',
|
|
422
|
+
}
|
|
423
|
+
type CircleElevationReferenceEnumValues = 'none' | 'hd-road-markup';
|
|
393
424
|
enum FillExtrusionTranslateAnchorEnum {
|
|
394
425
|
/** The fill extrusion is translated relative to the map. */
|
|
395
426
|
Map = 'map',
|
|
@@ -397,6 +428,20 @@ enum FillExtrusionTranslateAnchorEnum {
|
|
|
397
428
|
Viewport = 'viewport',
|
|
398
429
|
}
|
|
399
430
|
type FillExtrusionTranslateAnchorEnumValues = 'map' | 'viewport';
|
|
431
|
+
enum FillExtrusionHeightAlignmentEnum {
|
|
432
|
+
/** The fill extrusion height follows terrain slope. */
|
|
433
|
+
Terrain = 'terrain',
|
|
434
|
+
/** The fill extrusion height is flat over terrain. */
|
|
435
|
+
Flat = 'flat',
|
|
436
|
+
}
|
|
437
|
+
type FillExtrusionHeightAlignmentEnumValues = 'terrain' | 'flat';
|
|
438
|
+
enum FillExtrusionBaseAlignmentEnum {
|
|
439
|
+
/** The fill extrusion base follows terrain slope. */
|
|
440
|
+
Terrain = 'terrain',
|
|
441
|
+
/** The fill extrusion base is flat over terrain. */
|
|
442
|
+
Flat = 'flat',
|
|
443
|
+
}
|
|
444
|
+
type FillExtrusionBaseAlignmentEnumValues = 'terrain' | 'flat';
|
|
400
445
|
enum RasterResamplingEnum {
|
|
401
446
|
/** (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled */
|
|
402
447
|
Linear = 'linear',
|
|
@@ -418,6 +463,13 @@ enum ModelTypeEnum {
|
|
|
418
463
|
LocationIndicator = 'location-indicator',
|
|
419
464
|
}
|
|
420
465
|
type ModelTypeEnumValues = 'common-3d' | 'location-indicator';
|
|
466
|
+
enum BackgroundPitchAlignmentEnum {
|
|
467
|
+
/** The background is aligned to the plane of the map. */
|
|
468
|
+
Map = 'map',
|
|
469
|
+
/** The background is aligned to the plane of the viewport, covering the whole screen. Note: This mode disables the automatic reordering of the layer when terrain or globe projection is used. */
|
|
470
|
+
Viewport = 'viewport',
|
|
471
|
+
}
|
|
472
|
+
type BackgroundPitchAlignmentEnumValues = 'map' | 'viewport';
|
|
421
473
|
enum SkyTypeEnum {
|
|
422
474
|
/** Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`. */
|
|
423
475
|
Gradient = 'gradient',
|
|
@@ -510,6 +562,12 @@ export interface FillLayerStyleProps {
|
|
|
510
562
|
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
|
|
511
563
|
*/
|
|
512
564
|
fillPattern?: Value<ResolvedImageType, ['zoom', 'feature']>;
|
|
565
|
+
/**
|
|
566
|
+
* Controls the transition progress between the image variants of fillPattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector).
|
|
567
|
+
*
|
|
568
|
+
* @requires linePattern
|
|
569
|
+
*/
|
|
570
|
+
fillPatternCrossFade?: Value<number, ['zoom', 'measure-light']>;
|
|
513
571
|
/**
|
|
514
572
|
* Controls the intensity of light emitted on the source features.
|
|
515
573
|
*
|
|
@@ -659,6 +717,56 @@ export interface LineLayerStyleProps {
|
|
|
659
717
|
* The line part between [trimStart, trimEnd] will be painted using `lineTrimColor,` which is transparent by default to produce a route vanishing effect. The line trimOff offset is based on the whole line range [0.0, 1.0].
|
|
660
718
|
*/
|
|
661
719
|
lineTrimOffset?: number[];
|
|
720
|
+
/**
|
|
721
|
+
* Vertical offset from ground, in meters. Defaults to 0. This is an experimental property with some known issues:
|
|
722
|
+
* Not supported for globe projection at the moment
|
|
723
|
+
* Elevated line discontinuity is possible on tile borders with terrain enabled
|
|
724
|
+
* Rendering artifacts can happen near line joins and line caps depending on the line styling
|
|
725
|
+
* Rendering artifacts relating to `lineOpacity` and `lineBlur`
|
|
726
|
+
* Elevated line visibility is determined by layer order
|
|
727
|
+
* ZFighting issues can happen with intersecting elevated lines
|
|
728
|
+
* Elevated lines don't cast shadows
|
|
729
|
+
*
|
|
730
|
+
* @requires lineElevationReference
|
|
731
|
+
*/
|
|
732
|
+
lineZOffset?: Value<number, ['zoom', 'feature', 'line-progress']>;
|
|
733
|
+
/**
|
|
734
|
+
* Selects the base of lineElevation. Some modes might require precomputed elevation data in the tileset.
|
|
735
|
+
*/
|
|
736
|
+
lineElevationReference?: Value<
|
|
737
|
+
Enum<LineElevationReferenceEnum, LineElevationReferenceEnumValues>
|
|
738
|
+
>;
|
|
739
|
+
/**
|
|
740
|
+
* Defines the slope of an elevated line. A value of 0 creates a horizontal line. A value of 1 creates a vertical line. Other values are currently not supported. If undefined, the line follows the terrain slope. This is an experimental property with some known issues:
|
|
741
|
+
* Vertical lines don't support line caps
|
|
742
|
+
* `lineJoin: round` is not supported with this property
|
|
743
|
+
*
|
|
744
|
+
* @requires lineZOffset
|
|
745
|
+
*/
|
|
746
|
+
lineCrossSlope?: Value<number>;
|
|
747
|
+
/**
|
|
748
|
+
* Controls the transition progress between the image variants of linePattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector).
|
|
749
|
+
*
|
|
750
|
+
* @requires linePattern
|
|
751
|
+
*/
|
|
752
|
+
linePatternCrossFade?: Value<number, ['zoom', 'measure-light']>;
|
|
753
|
+
/**
|
|
754
|
+
* The fade range for the trimStart and trimEnd points is defined by the `lineTrimOffset` property. The first element of the array represents the fade range from the trimStart point toward the end of the line, while the second element defines the fade range from the trimEnd point toward the beginning of the line. The fade result is achieved by interpolating between `lineTrimColor` and the color specified by the `lineColor` or the `lineGradient` property.
|
|
755
|
+
*
|
|
756
|
+
* @requires lineTrimOffset
|
|
757
|
+
*/
|
|
758
|
+
lineTrimFadeRange?: Value<number[], ['zoom', 'measure-light']>;
|
|
759
|
+
/**
|
|
760
|
+
* The color to be used for rendering the trimmed line section that is defined by the `lineTrimOffset` property.
|
|
761
|
+
*
|
|
762
|
+
* @requires lineTrimOffset
|
|
763
|
+
*/
|
|
764
|
+
lineTrimColor?: Value<string, ['zoom', 'measure-light']>;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* The transition affecting any changes to this layer’s lineTrimColor property.
|
|
768
|
+
*/
|
|
769
|
+
lineTrimColorTransition?: Transition;
|
|
662
770
|
/**
|
|
663
771
|
* Controls the intensity of light emitted on the source features.
|
|
664
772
|
*
|
|
@@ -670,6 +778,15 @@ export interface LineLayerStyleProps {
|
|
|
670
778
|
* The transition affecting any changes to this layer’s lineEmissiveStrength property.
|
|
671
779
|
*/
|
|
672
780
|
lineEmissiveStrengthTransition?: Transition;
|
|
781
|
+
/**
|
|
782
|
+
* Opacity multiplier (multiplies lineOpacity value) of the line part that is occluded by 3D objects. Value 0 hides occluded part, value 1 means the same opacity as nonOccluded part. The property is not supported when `lineOpacity` has dataDriven styling.
|
|
783
|
+
*/
|
|
784
|
+
lineOcclusionOpacity?: Value<number, ['zoom']>;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The transition affecting any changes to this layer’s lineOcclusionOpacity property.
|
|
788
|
+
*/
|
|
789
|
+
lineOcclusionOpacityTransition?: Transition;
|
|
673
790
|
}
|
|
674
791
|
export interface SymbolLayerStyleProps {
|
|
675
792
|
/**
|
|
@@ -1135,6 +1252,27 @@ export interface SymbolLayerStyleProps {
|
|
|
1135
1252
|
* Position symbol on buildings (both fill extrusions and models) rooftops. In order to have minimal impact on performance, this is supported only when `fillExtrusionHeight` is not zoomDependent and remains unchanged. For fading in buildings when zooming in, fillExtrusionVerticalScale should be used and symbols would raise with building rooftops. Symbols are sorted by elevation, except in cases when `viewportY` sorting or `symbolSortKey` are applied.
|
|
1136
1253
|
*/
|
|
1137
1254
|
symbolZElevate?: Value<boolean, ['zoom']>;
|
|
1255
|
+
/**
|
|
1256
|
+
* Selects the base of symbolElevation.
|
|
1257
|
+
*/
|
|
1258
|
+
symbolElevationReference?: Value<
|
|
1259
|
+
Enum<SymbolElevationReferenceEnum, SymbolElevationReferenceEnumValues>,
|
|
1260
|
+
['zoom']
|
|
1261
|
+
>;
|
|
1262
|
+
/**
|
|
1263
|
+
* The opacity at which the icon will be drawn in case of being depth occluded. Absent value means full occlusion against terrain only.
|
|
1264
|
+
*
|
|
1265
|
+
* @requires iconImage
|
|
1266
|
+
*/
|
|
1267
|
+
iconOcclusionOpacity?: Value<
|
|
1268
|
+
number,
|
|
1269
|
+
['zoom', 'feature', 'feature-state', 'measure-light']
|
|
1270
|
+
>;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* The transition affecting any changes to this layer’s iconOcclusionOpacity property.
|
|
1274
|
+
*/
|
|
1275
|
+
iconOcclusionOpacityTransition?: Transition;
|
|
1138
1276
|
/**
|
|
1139
1277
|
* Controls the intensity of light emitted on the source features.
|
|
1140
1278
|
*
|
|
@@ -1169,6 +1307,33 @@ export interface SymbolLayerStyleProps {
|
|
|
1169
1307
|
* @requires iconImage
|
|
1170
1308
|
*/
|
|
1171
1309
|
iconImageCrossFade?: Value<number, ['zoom', 'measure-light']>;
|
|
1310
|
+
/**
|
|
1311
|
+
* The opacity at which the text will be drawn in case of being depth occluded. Absent value means full occlusion against terrain only.
|
|
1312
|
+
*
|
|
1313
|
+
* @requires textField
|
|
1314
|
+
*/
|
|
1315
|
+
textOcclusionOpacity?: Value<
|
|
1316
|
+
number,
|
|
1317
|
+
['zoom', 'feature', 'feature-state', 'measure-light']
|
|
1318
|
+
>;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* The transition affecting any changes to this layer’s textOcclusionOpacity property.
|
|
1322
|
+
*/
|
|
1323
|
+
textOcclusionOpacityTransition?: Transition;
|
|
1324
|
+
/**
|
|
1325
|
+
* Increase or reduce the saturation of the symbol icon.
|
|
1326
|
+
*/
|
|
1327
|
+
iconColorSaturation?: Value<number>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Specifies an uniform elevation from the ground, in meters.
|
|
1330
|
+
*/
|
|
1331
|
+
symbolZOffset?: Value<number, ['zoom', 'feature']>;
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* The transition affecting any changes to this layer’s symbolZOffset property.
|
|
1335
|
+
*/
|
|
1336
|
+
symbolZOffsetTransition?: Transition;
|
|
1172
1337
|
}
|
|
1173
1338
|
export interface CircleLayerStyleProps {
|
|
1174
1339
|
/**
|
|
@@ -1295,6 +1460,12 @@ export interface CircleLayerStyleProps {
|
|
|
1295
1460
|
* The transition affecting any changes to this layer’s circleStrokeOpacity property.
|
|
1296
1461
|
*/
|
|
1297
1462
|
circleStrokeOpacityTransition?: Transition;
|
|
1463
|
+
/**
|
|
1464
|
+
* Selects the base of circleElevation. Some modes might require precomputed elevation data in the tileset.
|
|
1465
|
+
*/
|
|
1466
|
+
circleElevationReference?: Value<
|
|
1467
|
+
Enum<CircleElevationReferenceEnum, CircleElevationReferenceEnumValues>
|
|
1468
|
+
>;
|
|
1298
1469
|
/**
|
|
1299
1470
|
* Controls the intensity of light emitted on the source features.
|
|
1300
1471
|
*
|
|
@@ -1461,6 +1632,30 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1461
1632
|
* @requires fillExtrusionEdgeRadius
|
|
1462
1633
|
*/
|
|
1463
1634
|
fillExtrusionRoundedRoof?: Value<boolean, ['zoom']>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Controls the transition progress between the image variants of fillExtrusionPattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector).
|
|
1637
|
+
*
|
|
1638
|
+
* @requires linePattern
|
|
1639
|
+
*/
|
|
1640
|
+
fillExtrusionPatternCrossFade?: Value<number, ['zoom', 'measure-light']>;
|
|
1641
|
+
/**
|
|
1642
|
+
* Controls the behavior of fill extrusion height over terrain
|
|
1643
|
+
*
|
|
1644
|
+
* @requires fillExtrusionHeight
|
|
1645
|
+
*/
|
|
1646
|
+
fillExtrusionHeightAlignment?: Enum<
|
|
1647
|
+
FillExtrusionHeightAlignmentEnum,
|
|
1648
|
+
FillExtrusionHeightAlignmentEnumValues
|
|
1649
|
+
>;
|
|
1650
|
+
/**
|
|
1651
|
+
* Controls the behavior of fill extrusion base over terrain
|
|
1652
|
+
*
|
|
1653
|
+
* @requires fillExtrusionBase
|
|
1654
|
+
*/
|
|
1655
|
+
fillExtrusionBaseAlignment?: Enum<
|
|
1656
|
+
FillExtrusionBaseAlignmentEnum,
|
|
1657
|
+
FillExtrusionBaseAlignmentEnumValues
|
|
1658
|
+
>;
|
|
1464
1659
|
/**
|
|
1465
1660
|
* Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the most plausible results for buildings.
|
|
1466
1661
|
*
|
|
@@ -1582,6 +1777,18 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1582
1777
|
* The transition affecting any changes to this layer’s fillExtrusionEmissiveStrength property.
|
|
1583
1778
|
*/
|
|
1584
1779
|
fillExtrusionEmissiveStrengthTransition?: Transition;
|
|
1780
|
+
/**
|
|
1781
|
+
* If a nonZero value is provided, it sets the fillExtrusion layer into wall rendering mode. The value is used to render the feature with the given width over the outlines of the geometry. Note: This property is experimental and some other fillExtrusion properties might not be supported with nonZero line width.
|
|
1782
|
+
*/
|
|
1783
|
+
fillExtrusionLineWidth?: Value<
|
|
1784
|
+
number,
|
|
1785
|
+
['zoom', 'feature', 'feature-state', 'measure-light']
|
|
1786
|
+
>;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* The transition affecting any changes to this layer’s fillExtrusionLineWidth property.
|
|
1790
|
+
*/
|
|
1791
|
+
fillExtrusionLineWidthTransition?: Transition;
|
|
1585
1792
|
}
|
|
1586
1793
|
export interface RasterLayerStyleProps {
|
|
1587
1794
|
/**
|
|
@@ -1679,6 +1886,30 @@ export interface RasterLayerStyleProps {
|
|
|
1679
1886
|
* The transition affecting any changes to this layer’s rasterColorRange property.
|
|
1680
1887
|
*/
|
|
1681
1888
|
rasterColorRangeTransition?: Transition;
|
|
1889
|
+
/**
|
|
1890
|
+
* Controls the intensity of light emitted on the source features.
|
|
1891
|
+
*
|
|
1892
|
+
* @requires lights
|
|
1893
|
+
*/
|
|
1894
|
+
rasterEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* The transition affecting any changes to this layer’s rasterEmissiveStrength property.
|
|
1898
|
+
*/
|
|
1899
|
+
rasterEmissiveStrengthTransition?: Transition;
|
|
1900
|
+
/**
|
|
1901
|
+
* Displayed band of raster array source layer. Defaults to the first band if not set.
|
|
1902
|
+
*/
|
|
1903
|
+
rasterArrayBand?: string;
|
|
1904
|
+
/**
|
|
1905
|
+
* Specifies an uniform elevation from the ground, in meters.
|
|
1906
|
+
*/
|
|
1907
|
+
rasterElevation?: Value<number, ['zoom']>;
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* The transition affecting any changes to this layer’s rasterElevation property.
|
|
1911
|
+
*/
|
|
1912
|
+
rasterElevationTransition?: Transition;
|
|
1682
1913
|
}
|
|
1683
1914
|
export interface HillshadeLayerStyleProps {
|
|
1684
1915
|
/**
|
|
@@ -1893,6 +2124,13 @@ export interface BackgroundLayerStyleProps {
|
|
|
1893
2124
|
* The transition affecting any changes to this layer’s backgroundOpacity property.
|
|
1894
2125
|
*/
|
|
1895
2126
|
backgroundOpacityTransition?: Transition;
|
|
2127
|
+
/**
|
|
2128
|
+
* Orientation of background layer.
|
|
2129
|
+
*/
|
|
2130
|
+
backgroundPitchAlignment?: Value<
|
|
2131
|
+
Enum<BackgroundPitchAlignmentEnum, BackgroundPitchAlignmentEnumValues>,
|
|
2132
|
+
[]
|
|
2133
|
+
>;
|
|
1896
2134
|
/**
|
|
1897
2135
|
* Controls the intensity of light emitted on the source features.
|
|
1898
2136
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { findNodeHandle } from 'react-native';
|
|
2
2
|
|
|
3
3
|
export type NativeArg =
|
|
4
4
|
| string
|
|
@@ -7,13 +7,11 @@ export type NativeArg =
|
|
|
7
7
|
| null
|
|
8
8
|
| { [k: string]: NativeArg }
|
|
9
9
|
| NativeArg[]
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
11
10
|
| Function
|
|
12
11
|
| GeoJSON.Geometry
|
|
13
12
|
| undefined;
|
|
14
13
|
|
|
15
14
|
type FunctionKeys<T> = keyof {
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
17
15
|
[K in keyof T as T[K] extends Function ? K : never]: T[K];
|
|
18
16
|
};
|
|
19
17
|
|
|
@@ -74,7 +72,7 @@ export class NativeCommands<Spec extends object> {
|
|
|
74
72
|
if (handle) {
|
|
75
73
|
return (
|
|
76
74
|
this.module[name] as (
|
|
77
|
-
arg0:
|
|
75
|
+
arg0: number | null,
|
|
78
76
|
...args: NativeArg[]
|
|
79
77
|
) => Promise<T>
|
|
80
78
|
)(handle, ...args);
|
package/src/utils/geoUtils.ts
CHANGED
|
@@ -11,8 +11,11 @@ import {
|
|
|
11
11
|
Geometry,
|
|
12
12
|
Point,
|
|
13
13
|
Feature,
|
|
14
|
+
// @ts-expect-error - @turf packages have type resolution issues with package.json exports
|
|
14
15
|
} from '@turf/helpers';
|
|
16
|
+
// @ts-expect-error - @turf packages have type resolution issues with package.json exports
|
|
15
17
|
import distance from '@turf/distance';
|
|
18
|
+
// @ts-expect-error - @turf packages have type resolution issues with package.json exports
|
|
16
19
|
import along from '@turf/along';
|
|
17
20
|
|
|
18
21
|
export const makePoint = point;
|
package/src/utils/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
1
|
import React, { ReactNode } from 'react';
|
|
3
2
|
import {
|
|
4
3
|
findNodeHandle,
|
|
@@ -77,7 +76,7 @@ export function cloneReactChildrenWithProps(
|
|
|
77
76
|
return null;
|
|
78
77
|
}
|
|
79
78
|
|
|
80
|
-
let foundChildren: typeof children[] | null = null;
|
|
79
|
+
let foundChildren: (typeof children)[] | null = null;
|
|
81
80
|
|
|
82
81
|
if (!Array.isArray(children)) {
|
|
83
82
|
foundChildren = [children];
|
|
@@ -103,7 +102,7 @@ export function cloneReactChildrenWithProps(
|
|
|
103
102
|
|
|
104
103
|
export function resolveImagePath(imageRef: ImageSourcePropType): string {
|
|
105
104
|
const res = Image.resolveAssetSource(imageRef);
|
|
106
|
-
return res
|
|
105
|
+
return res!.uri;
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
export function toJSONString(json: any = '') {
|
package/src/utils/nativeRef.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type NativeRefType<P> = MutableRefObject<
|
|
|
21
21
|
* ...
|
|
22
22
|
* <RNMBXCamera ref={ref} ... />
|
|
23
23
|
*/
|
|
24
|
-
export default function nativeRef<P>(
|
|
24
|
+
export default function nativeRef<P extends {}>(
|
|
25
25
|
c: RefObject<HostComponent<P> | null>,
|
|
26
26
|
): MutableRefObject<(Component<P> & Readonly<NativeMethods>) | null> {
|
|
27
27
|
return c as NativeRefType<P>;
|
package/src/utils/styleMap.ts
CHANGED
|
@@ -38,6 +38,7 @@ const styleMap = {
|
|
|
38
38
|
fillTranslateTransition: StyleTypes.Transition,
|
|
39
39
|
fillTranslateAnchor: StyleTypes.Enum,
|
|
40
40
|
fillPattern: StyleTypes.Image,
|
|
41
|
+
fillPatternCrossFade: StyleTypes.Constant,
|
|
41
42
|
fillEmissiveStrength: StyleTypes.Constant,
|
|
42
43
|
fillEmissiveStrengthTransition: StyleTypes.Transition,
|
|
43
44
|
|
|
@@ -65,8 +66,17 @@ const styleMap = {
|
|
|
65
66
|
linePattern: StyleTypes.Image,
|
|
66
67
|
lineGradient: StyleTypes.Color,
|
|
67
68
|
lineTrimOffset: StyleTypes.Constant,
|
|
69
|
+
lineZOffset: StyleTypes.Constant,
|
|
70
|
+
lineElevationReference: StyleTypes.Enum,
|
|
71
|
+
lineCrossSlope: StyleTypes.Constant,
|
|
72
|
+
linePatternCrossFade: StyleTypes.Constant,
|
|
73
|
+
lineTrimFadeRange: StyleTypes.Constant,
|
|
74
|
+
lineTrimColor: StyleTypes.Color,
|
|
75
|
+
lineTrimColorTransition: StyleTypes.Transition,
|
|
68
76
|
lineEmissiveStrength: StyleTypes.Constant,
|
|
69
77
|
lineEmissiveStrengthTransition: StyleTypes.Transition,
|
|
78
|
+
lineOcclusionOpacity: StyleTypes.Constant,
|
|
79
|
+
lineOcclusionOpacityTransition: StyleTypes.Transition,
|
|
70
80
|
|
|
71
81
|
symbolPlacement: StyleTypes.Enum,
|
|
72
82
|
symbolSpacing: StyleTypes.Constant,
|
|
@@ -136,11 +146,19 @@ const styleMap = {
|
|
|
136
146
|
textTranslateTransition: StyleTypes.Transition,
|
|
137
147
|
textTranslateAnchor: StyleTypes.Enum,
|
|
138
148
|
symbolZElevate: StyleTypes.Constant,
|
|
149
|
+
symbolElevationReference: StyleTypes.Enum,
|
|
150
|
+
iconOcclusionOpacity: StyleTypes.Constant,
|
|
151
|
+
iconOcclusionOpacityTransition: StyleTypes.Transition,
|
|
139
152
|
iconEmissiveStrength: StyleTypes.Constant,
|
|
140
153
|
iconEmissiveStrengthTransition: StyleTypes.Transition,
|
|
141
154
|
textEmissiveStrength: StyleTypes.Constant,
|
|
142
155
|
textEmissiveStrengthTransition: StyleTypes.Transition,
|
|
143
156
|
iconImageCrossFade: StyleTypes.Constant,
|
|
157
|
+
textOcclusionOpacity: StyleTypes.Constant,
|
|
158
|
+
textOcclusionOpacityTransition: StyleTypes.Transition,
|
|
159
|
+
iconColorSaturation: StyleTypes.Constant,
|
|
160
|
+
symbolZOffset: StyleTypes.Constant,
|
|
161
|
+
symbolZOffsetTransition: StyleTypes.Transition,
|
|
144
162
|
|
|
145
163
|
circleSortKey: StyleTypes.Constant,
|
|
146
164
|
circleRadius: StyleTypes.Constant,
|
|
@@ -162,6 +180,7 @@ const styleMap = {
|
|
|
162
180
|
circleStrokeColorTransition: StyleTypes.Transition,
|
|
163
181
|
circleStrokeOpacity: StyleTypes.Constant,
|
|
164
182
|
circleStrokeOpacityTransition: StyleTypes.Transition,
|
|
183
|
+
circleElevationReference: StyleTypes.Enum,
|
|
165
184
|
circleEmissiveStrength: StyleTypes.Constant,
|
|
166
185
|
circleEmissiveStrengthTransition: StyleTypes.Transition,
|
|
167
186
|
|
|
@@ -193,6 +212,9 @@ const styleMap = {
|
|
|
193
212
|
fillExtrusionAmbientOcclusionRadius: StyleTypes.Constant,
|
|
194
213
|
fillExtrusionAmbientOcclusionRadiusTransition: StyleTypes.Transition,
|
|
195
214
|
fillExtrusionRoundedRoof: StyleTypes.Constant,
|
|
215
|
+
fillExtrusionPatternCrossFade: StyleTypes.Constant,
|
|
216
|
+
fillExtrusionHeightAlignment: StyleTypes.Enum,
|
|
217
|
+
fillExtrusionBaseAlignment: StyleTypes.Enum,
|
|
196
218
|
fillExtrusionAmbientOcclusionWallRadius: StyleTypes.Constant,
|
|
197
219
|
fillExtrusionAmbientOcclusionWallRadiusTransition: StyleTypes.Transition,
|
|
198
220
|
fillExtrusionAmbientOcclusionGroundRadius: StyleTypes.Constant,
|
|
@@ -215,6 +237,8 @@ const styleMap = {
|
|
|
215
237
|
fillExtrusionCutoffFadeRange: StyleTypes.Constant,
|
|
216
238
|
fillExtrusionEmissiveStrength: StyleTypes.Constant,
|
|
217
239
|
fillExtrusionEmissiveStrengthTransition: StyleTypes.Transition,
|
|
240
|
+
fillExtrusionLineWidth: StyleTypes.Constant,
|
|
241
|
+
fillExtrusionLineWidthTransition: StyleTypes.Transition,
|
|
218
242
|
|
|
219
243
|
rasterOpacity: StyleTypes.Constant,
|
|
220
244
|
rasterOpacityTransition: StyleTypes.Transition,
|
|
@@ -235,6 +259,11 @@ const styleMap = {
|
|
|
235
259
|
rasterColorMixTransition: StyleTypes.Transition,
|
|
236
260
|
rasterColorRange: StyleTypes.Constant,
|
|
237
261
|
rasterColorRangeTransition: StyleTypes.Transition,
|
|
262
|
+
rasterEmissiveStrength: StyleTypes.Constant,
|
|
263
|
+
rasterEmissiveStrengthTransition: StyleTypes.Transition,
|
|
264
|
+
rasterArrayBand: StyleTypes.Constant,
|
|
265
|
+
rasterElevation: StyleTypes.Constant,
|
|
266
|
+
rasterElevationTransition: StyleTypes.Transition,
|
|
238
267
|
|
|
239
268
|
hillshadeIlluminationDirection: StyleTypes.Constant,
|
|
240
269
|
hillshadeIlluminationAnchor: StyleTypes.Enum,
|
|
@@ -278,6 +307,7 @@ const styleMap = {
|
|
|
278
307
|
backgroundPattern: StyleTypes.Image,
|
|
279
308
|
backgroundOpacity: StyleTypes.Constant,
|
|
280
309
|
backgroundOpacityTransition: StyleTypes.Transition,
|
|
310
|
+
backgroundPitchAlignment: StyleTypes.Enum,
|
|
281
311
|
backgroundEmissiveStrength: StyleTypes.Constant,
|
|
282
312
|
backgroundEmissiveStrengthTransition: StyleTypes.Transition,
|
|
283
313
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import mapboxgl from 'mapbox-gl';
|
|
2
|
+
|
|
3
|
+
export const LineJoin = {
|
|
4
|
+
Bevel: 'bevel',
|
|
5
|
+
Round: 'round',
|
|
6
|
+
Miter: 'miter',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const StyleURL = {
|
|
10
|
+
Street: 'mapbox://styles/mapbox/streets-v11',
|
|
11
|
+
Satellite: 'mapbox://styles/mapbox/satellite-v9',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const setAccessToken = (token: string) => {
|
|
15
|
+
mapboxgl.accessToken = token;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const MapboxModule = {
|
|
19
|
+
LineJoin,
|
|
20
|
+
StyleURL,
|
|
21
|
+
setAccessToken,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default MapboxModule;
|
|
@@ -54,7 +54,8 @@ class Camera
|
|
|
54
54
|
>
|
|
55
55
|
implements Omit<CameraRef, 'setCamera' | 'moveBy' | 'scaleBy'>
|
|
56
56
|
{
|
|
57
|
-
context
|
|
57
|
+
// @ts-ignore - context is provided by React.Component with contextType
|
|
58
|
+
context: ContextType<typeof MapContext>;
|
|
58
59
|
|
|
59
60
|
static contextType = MapContext;
|
|
60
61
|
static UserTrackingModes = [];
|
package/src/web/utils/Logger.ts
CHANGED
package/android/.classpath
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<classpath>
|
|
3
|
-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
|
|
4
|
-
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
|
5
|
-
<classpathentry kind="output" path="bin/default"/>
|
|
6
|
-
</classpath>
|