@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
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
-
import { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
|
-
|
|
5
|
-
import type { UnsafeMixed } from './codegenUtils';
|
|
6
|
-
|
|
7
|
-
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
|
-
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
|
-
|
|
10
|
-
export type FollowPuckOptionsNative = {
|
|
11
|
-
zoom?: number | 'keep';
|
|
12
|
-
pitch?: number | 'keep';
|
|
13
|
-
bearing?: 'course' | 'heading' | number | 'keep';
|
|
14
|
-
padding?:
|
|
15
|
-
| {
|
|
16
|
-
top?: number;
|
|
17
|
-
left?: number;
|
|
18
|
-
bottom?: number;
|
|
19
|
-
right?: number;
|
|
20
|
-
}
|
|
21
|
-
| 'keep';
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export type ViewportStateNative =
|
|
25
|
-
| {
|
|
26
|
-
kind: 'followPuck';
|
|
27
|
-
options?: FollowPuckOptionsNative;
|
|
28
|
-
}
|
|
29
|
-
| {
|
|
30
|
-
kind: 'overview';
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
type ViewportStatus =
|
|
34
|
-
| {
|
|
35
|
-
kind: 'idle';
|
|
36
|
-
}
|
|
37
|
-
| {
|
|
38
|
-
kind: 'transition';
|
|
39
|
-
toState: ViewportStateNative;
|
|
40
|
-
transition: ViewportTransition;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
type ViewportTransition =
|
|
44
|
-
| {
|
|
45
|
-
kind: 'immediate';
|
|
46
|
-
}
|
|
47
|
-
| {
|
|
48
|
-
kind: 'default';
|
|
49
|
-
maxDurationMs?: number;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
type ViewportStatusChangeReason =
|
|
53
|
-
| 'TransitionStarted'
|
|
54
|
-
| 'TransitionSucceeded'
|
|
55
|
-
| 'IdleRequested'
|
|
56
|
-
| 'UserInteraction';
|
|
57
|
-
|
|
58
|
-
//type OnStatusChangedEventType = { __fabric_todo: string };
|
|
59
|
-
|
|
60
|
-
/*
|
|
61
|
-
type OnStatusChangedEventTypeOk = {
|
|
62
|
-
from: {
|
|
63
|
-
kind: string;
|
|
64
|
-
toState?: {
|
|
65
|
-
kind: string;
|
|
66
|
-
};
|
|
67
|
-
transition?: {
|
|
68
|
-
kind: string;
|
|
69
|
-
maxDurationMs?: number;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
to: {
|
|
73
|
-
kind: string;
|
|
74
|
-
toState?: {
|
|
75
|
-
kind: string;
|
|
76
|
-
};
|
|
77
|
-
transition?: {
|
|
78
|
-
kind: string;
|
|
79
|
-
maxDurationMs?: number;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
reason: string;
|
|
83
|
-
};*/
|
|
84
|
-
|
|
85
|
-
export type OnStatusChangedEventPayload = {
|
|
86
|
-
from: ViewportStatus;
|
|
87
|
-
to: ViewportStatus;
|
|
88
|
-
reason: ViewportStatusChangeReason;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
type OnStatusChangedEventType = {
|
|
92
|
-
type: string;
|
|
93
|
-
payload: string;
|
|
94
|
-
// RN 0.73+:
|
|
95
|
-
//payload: UnsafeMixed<OnStatusChangedEventPayload>;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export type OnStatusChangedEventTypeReal = {
|
|
99
|
-
type: 'statuschanged';
|
|
100
|
-
payload: UnsafeMixed<OnStatusChangedEventPayload>;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export interface NativeProps extends ViewProps {
|
|
104
|
-
transitionsToIdleUponUserInteraction?: OptionalProp<boolean>;
|
|
105
|
-
hasStatusChanged: boolean;
|
|
106
|
-
onStatusChanged?: DirectEventHandler<OnStatusChangedEventType>;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export default codegenNativeComponent<NativeProps>(
|
|
110
|
-
'RNMBXViewport',
|
|
111
|
-
) as HostComponent<NativeProps>;
|
|
112
|
-
|
|
113
|
-
export type NativeViewportReal = HostComponent<
|
|
114
|
-
Omit<NativeProps, 'onStatusChanged'> & {
|
|
115
|
-
onStatusChanged?: DirectEventHandler<OnStatusChangedEventTypeReal>;
|
|
116
|
-
}
|
|
117
|
-
>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["specs/codegenUtils.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
2
|
-
type OptionalProp<T> = UnsafeMixed<T>;
|
|
3
|
-
type Slot = 'bottom' | 'middle' | 'top';
|
|
4
|
-
|
|
5
|
-
type CommonProps = {
|
|
6
|
-
sourceID?: OptionalProp<string>;
|
|
7
|
-
existing?: OptionalProp<boolean>;
|
|
8
|
-
filter?: UnsafeMixed<FilterExpression>;
|
|
9
|
-
|
|
10
|
-
aboveLayerID?: OptionalProp<string>;
|
|
11
|
-
belowLayerID?: OptionalProp<string>;
|
|
12
|
-
layerIndex?: OptionalProp<Int32>;
|
|
13
|
-
|
|
14
|
-
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
-
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
-
sourceLayerID?: OptionalProp<string>;
|
|
17
|
-
slot?: OptionalProp<Slot>;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/BaseProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/OnPressEvent.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/Position.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _index = require("./index");
|
|
8
|
-
class BridgeValue {
|
|
9
|
-
constructor(rawValue) {
|
|
10
|
-
this.rawValue = rawValue;
|
|
11
|
-
}
|
|
12
|
-
get type() {
|
|
13
|
-
if (Array.isArray(this.rawValue)) {
|
|
14
|
-
return 'array';
|
|
15
|
-
}
|
|
16
|
-
if ((0, _index.isBoolean)(this.rawValue)) {
|
|
17
|
-
return 'boolean';
|
|
18
|
-
}
|
|
19
|
-
if ((0, _index.isNumber)(this.rawValue)) {
|
|
20
|
-
return 'number';
|
|
21
|
-
}
|
|
22
|
-
if ((0, _index.isString)(this.rawValue)) {
|
|
23
|
-
return 'string';
|
|
24
|
-
}
|
|
25
|
-
if (this.rawValue && typeof this.rawValue === 'object') {
|
|
26
|
-
return 'hashmap';
|
|
27
|
-
}
|
|
28
|
-
throw new Error(`[type - ${this.rawValue}] BridgeValue must be a primitive/array/object`);
|
|
29
|
-
}
|
|
30
|
-
get value() {
|
|
31
|
-
const {
|
|
32
|
-
type
|
|
33
|
-
} = this;
|
|
34
|
-
let value;
|
|
35
|
-
if (type === 'array') {
|
|
36
|
-
value = [];
|
|
37
|
-
const rawValue = this.rawValue;
|
|
38
|
-
for (const innerRawValue of rawValue) {
|
|
39
|
-
const bridgeValue = new BridgeValue(innerRawValue);
|
|
40
|
-
value.push(bridgeValue.toJSON());
|
|
41
|
-
}
|
|
42
|
-
} else if (type === 'hashmap') {
|
|
43
|
-
value = [];
|
|
44
|
-
const rawValue = this.rawValue;
|
|
45
|
-
const stringKeys = Object.keys(rawValue);
|
|
46
|
-
for (const stringKey of stringKeys) {
|
|
47
|
-
value.push([new BridgeValue(stringKey).toJSON(), new BridgeValue(rawValue[stringKey]).toJSON()]);
|
|
48
|
-
}
|
|
49
|
-
} else if (type === 'boolean' || type === 'number' || type === 'string') {
|
|
50
|
-
value = this.rawValue;
|
|
51
|
-
} else {
|
|
52
|
-
throw new Error(`[value - ${this.rawValue}] BridgeValue must be a primitive/array/object`);
|
|
53
|
-
}
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
toJSON(formatter) {
|
|
57
|
-
return {
|
|
58
|
-
type: this.type,
|
|
59
|
-
value: typeof formatter === 'function' ? formatter(this.value) : this.value
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.default = BridgeValue;
|
|
64
|
-
//# sourceMappingURL=BridgeValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","BridgeValue","constructor","rawValue","type","Array","isArray","isBoolean","isNumber","isString","Error","value","innerRawValue","bridgeValue","push","toJSON","stringKeys","Object","keys","stringKey","formatter","exports","default"],"sourceRoot":"../../../src","sources":["utils/BridgeValue.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAkBe,MAAMC,WAAW,CAAC;EAG/BC,WAAWA,CAACC,QAAsB,EAAE;IAClC,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC1B;EAEA,IAAIC,IAAIA,CAAA,EAAoB;IAC1B,IAAIC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACH,QAAQ,CAAC,EAAE;MAChC,OAAO,OAAO;IAChB;IACA,IAAI,IAAAI,gBAAS,EAAC,IAAI,CAACJ,QAAQ,CAAC,EAAE;MAC5B,OAAO,SAAS;IAClB;IACA,IAAI,IAAAK,eAAQ,EAAC,IAAI,CAACL,QAAQ,CAAC,EAAE;MAC3B,OAAO,QAAQ;IACjB;IACA,IAAI,IAAAM,eAAQ,EAAC,IAAI,CAACN,QAAQ,CAAC,EAAE;MAC3B,OAAO,QAAQ;IACjB;IACA,IAAI,IAAI,CAACA,QAAQ,IAAI,OAAO,IAAI,CAACA,QAAQ,KAAK,QAAQ,EAAE;MACtD,OAAO,SAAS;IAClB;IACA,MAAM,IAAIO,KAAK,CACb,WAAW,IAAI,CAACP,QAAQ,gDAC1B,CAAC;EACH;EAEA,IAAIQ,KAAKA,CAAA,EAAG;IACV,MAAM;MAAEP;IAAK,CAAC,GAAG,IAAI;IAErB,IAAIO,KAAK;IAET,IAAIP,IAAI,KAAK,OAAO,EAAE;MACpBO,KAAK,GAAG,EAAE;MAEV,MAAMR,QAAQ,GAAG,IAAI,CAACA,QAA0B;MAChD,KAAK,MAAMS,aAAa,IAAIT,QAAQ,EAAE;QACpC,MAAMU,WAAW,GAAG,IAAIZ,WAAW,CAACW,aAAa,CAAC;QAClDD,KAAK,CAACG,IAAI,CAACD,WAAW,CAACE,MAAM,CAAC,CAAC,CAAC;MAClC;IACF,CAAC,MAAM,IAAIX,IAAI,KAAK,SAAS,EAAE;MAC7BO,KAAK,GAAG,EAAE;MAEV,MAAMR,QAAQ,GAAG,IAAI,CAACA,QAA2C;MACjE,MAAMa,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACf,QAAQ,CAAC;MACxC,KAAK,MAAMgB,SAAS,IAAIH,UAAU,EAAE;QAClCL,KAAK,CAACG,IAAI,CAAC,CACT,IAAIb,WAAW,CAACkB,SAAS,CAAC,CAACJ,MAAM,CAAC,CAAC,EACnC,IAAId,WAAW,CAACE,QAAQ,CAACgB,SAAS,CAAC,CAAC,CAACJ,MAAM,CAAC,CAAC,CAC9C,CAAC;MACJ;IACF,CAAC,MAAM,IAAIX,IAAI,KAAK,SAAS,IAAIA,IAAI,KAAK,QAAQ,IAAIA,IAAI,KAAK,QAAQ,EAAE;MACvEO,KAAK,GAAG,IAAI,CAACR,QAAQ;IACvB,CAAC,MAAM;MACL,MAAM,IAAIO,KAAK,CACb,YAAY,IAAI,CAACP,QAAQ,gDAC3B,CAAC;IACH;IAEA,OAAOQ,KAAK;EACd;EAEAI,MAAMA,CAACK,SAA6B,EAAkB;IACpD,OAAO;MACLhB,IAAI,EAAE,IAAI,CAACA,IAAI;MACfO,KAAK,EACH,OAAOS,SAAS,KAAK,UAAU,GAAGA,SAAS,CAAC,IAAI,CAACT,KAAK,CAAC,GAAG,IAAI,CAACA;IACnE,CAAC;EACH;AACF;AAACU,OAAA,CAAAC,OAAA,GAAArB,WAAA","ignoreList":[]}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
const {
|
|
9
|
-
RNMBXLogging
|
|
10
|
-
} = _reactNative.NativeModules;
|
|
11
|
-
class Logger {
|
|
12
|
-
static instance = null;
|
|
13
|
-
static sharedInstance() {
|
|
14
|
-
if (this.instance === null) {
|
|
15
|
-
this.instance = new Logger();
|
|
16
|
-
}
|
|
17
|
-
return this.instance;
|
|
18
|
-
}
|
|
19
|
-
constructor() {
|
|
20
|
-
this.loggerEmitter = new _reactNative.NativeEventEmitter(RNMBXLogging);
|
|
21
|
-
this.startedCount = 0;
|
|
22
|
-
this.logCallback = undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Set custom logger function.
|
|
27
|
-
* @param {Logger~logCallback} logCallback - callback taking a log object as param. If callback return falsy value then
|
|
28
|
-
* default logging will take place.
|
|
29
|
-
*/
|
|
30
|
-
static setLogCallback(logCallback) {
|
|
31
|
-
this.sharedInstance().setLogCallback(logCallback);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Set custom logger function.
|
|
36
|
-
* @param {Logger~logCallback} logCallback - callback taking a log object as param. If callback return falsy value then
|
|
37
|
-
* default logging will take place.
|
|
38
|
-
*/
|
|
39
|
-
setLogCallback(logCallback) {
|
|
40
|
-
this.logCallback = logCallback;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* This callback is displayed as part of the Requester class.
|
|
45
|
-
* @callback Logger~logCallback
|
|
46
|
-
* @param {object} log
|
|
47
|
-
* @param {string} log.level - log level
|
|
48
|
-
* @param {string} log.tag - optional tag used on android
|
|
49
|
-
* @param {string} log.message - the message of the log
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* setLogLevel
|
|
54
|
-
* @param {LogLevel} level
|
|
55
|
-
*/
|
|
56
|
-
static setLogLevel(level) {
|
|
57
|
-
RNMBXLogging.setLogLevel(level);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @type {('error'|'warning'|'info'|'debug'|'verbose')} LogLevel - Supported log levels
|
|
62
|
-
*/
|
|
63
|
-
start() {
|
|
64
|
-
if (this.startedCount === 0) {
|
|
65
|
-
this.subscribe();
|
|
66
|
-
}
|
|
67
|
-
this.startedCount += 1;
|
|
68
|
-
}
|
|
69
|
-
stop() {
|
|
70
|
-
this.startedCount -= 1;
|
|
71
|
-
if (this.startedCount === 0) {
|
|
72
|
-
this.unsubscribe();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
subscribe() {
|
|
76
|
-
this.subscription = this.loggerEmitter.addListener('LogEvent', log => {
|
|
77
|
-
this.onLog(log);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
unsubscribe() {
|
|
81
|
-
this.subscription?.remove();
|
|
82
|
-
this.subscription = undefined;
|
|
83
|
-
}
|
|
84
|
-
effectiveLevel(log) {
|
|
85
|
-
const {
|
|
86
|
-
level,
|
|
87
|
-
message,
|
|
88
|
-
tag
|
|
89
|
-
} = log;
|
|
90
|
-
if (level === 'warning') {
|
|
91
|
-
if (tag === 'Mbgl-HttpRequest' && message.startsWith('Request failed due to a permanent error: Canceled')) {
|
|
92
|
-
// this seems to happening too much to show a warning every time
|
|
93
|
-
return 'info';
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return level;
|
|
97
|
-
}
|
|
98
|
-
onLog(log) {
|
|
99
|
-
if (!this.logCallback || !this.logCallback(log)) {
|
|
100
|
-
const {
|
|
101
|
-
tag,
|
|
102
|
-
message
|
|
103
|
-
} = log;
|
|
104
|
-
const _level = this.effectiveLevel(log);
|
|
105
|
-
const _levelDisp = `Mapbox [${_level}]`;
|
|
106
|
-
let _message = message;
|
|
107
|
-
if (tag) {
|
|
108
|
-
_message = `${tag} | ${_message}`;
|
|
109
|
-
}
|
|
110
|
-
if (_level === 'error') {
|
|
111
|
-
console.error(_levelDisp, _message);
|
|
112
|
-
} else if (_level === 'warning') {
|
|
113
|
-
console.warn(_levelDisp, _message);
|
|
114
|
-
} else {
|
|
115
|
-
console.log(_levelDisp, _message);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
Logger.sharedInstance().start();
|
|
121
|
-
var _default = exports.default = Logger;
|
|
122
|
-
//# sourceMappingURL=Logger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","RNMBXLogging","NativeModules","Logger","instance","sharedInstance","constructor","loggerEmitter","NativeEventEmitter","startedCount","logCallback","undefined","setLogCallback","setLogLevel","level","start","subscribe","stop","unsubscribe","subscription","addListener","log","onLog","remove","effectiveLevel","message","tag","startsWith","_level","_levelDisp","_message","console","error","warn","_default","exports","default"],"sourceRoot":"../../../src","sources":["utils/Logger.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,MAAM;EAAEC;AAAa,CAAC,GAAGC,0BAAa;AAYtC,MAAMC,MAAM,CAAC;EACX,OAAOC,QAAQ,GAAkB,IAAI;EAOrC,OAAOC,cAAcA,CAAA,EAAG;IACtB,IAAI,IAAI,CAACD,QAAQ,KAAK,IAAI,EAAE;MAC1B,IAAI,CAACA,QAAQ,GAAG,IAAID,MAAM,CAAC,CAAC;IAC9B;IACA,OAAO,IAAI,CAACC,QAAQ;EACtB;EAEAE,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,aAAa,GAAG,IAAIC,+BAAkB,CAACP,YAAY,CAAC;IACzD,IAAI,CAACQ,YAAY,GAAG,CAAC;IACrB,IAAI,CAACC,WAAW,GAAGC,SAAS;EAC9B;;EAEA;AACF;AACA;AACA;AACA;EACE,OAAOC,cAAcA,CAACF,WAAwB,EAAE;IAC9C,IAAI,CAACL,cAAc,CAAC,CAAC,CAACO,cAAc,CAACF,WAAW,CAAC;EACnD;;EAEA;AACF;AACA;AACA;AACA;EACEE,cAAcA,CAACF,WAAwB,EAAE;IACvC,IAAI,CAACA,WAAW,GAAGA,WAAW;EAChC;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;EAEE;AACF;AACA;AACA;EACE,OAAOG,WAAWA,CAACC,KAAe,EAAE;IAClCb,YAAY,CAACY,WAAW,CAACC,KAAK,CAAC;EACjC;;EAEA;AACF;AACA;EACEC,KAAKA,CAAA,EAAG;IACN,IAAI,IAAI,CAACN,YAAY,KAAK,CAAC,EAAE;MAC3B,IAAI,CAACO,SAAS,CAAC,CAAC;IAClB;IACA,IAAI,CAACP,YAAY,IAAI,CAAC;EACxB;EAEAQ,IAAIA,CAAA,EAAG;IACL,IAAI,CAACR,YAAY,IAAI,CAAC;IACtB,IAAI,IAAI,CAACA,YAAY,KAAK,CAAC,EAAE;MAC3B,IAAI,CAACS,WAAW,CAAC,CAAC;IACpB;EACF;EAEAF,SAASA,CAAA,EAAG;IACV,IAAI,CAACG,YAAY,GAAG,IAAI,CAACZ,aAAa,CAACa,WAAW,CAAC,UAAU,EAAGC,GAAG,IAAK;MACtE,IAAI,CAACC,KAAK,CAACD,GAAG,CAAC;IACjB,CAAC,CAAC;EACJ;EAEAH,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,YAAY,EAAEI,MAAM,CAAC,CAAC;IAC3B,IAAI,CAACJ,YAAY,GAAGR,SAAS;EAC/B;EAEAa,cAAcA,CAACH,GAAc,EAAE;IAC7B,MAAM;MAAEP,KAAK;MAAEW,OAAO;MAAEC;IAAI,CAAC,GAAGL,GAAG;IAEnC,IAAIP,KAAK,KAAK,SAAS,EAAE;MACvB,IACEY,GAAG,KAAK,kBAAkB,IAC1BD,OAAO,CAACE,UAAU,CAAC,mDAAmD,CAAC,EACvE;QACA;QACA,OAAO,MAAM;MACf;IACF;IACA,OAAOb,KAAK;EACd;EAEAQ,KAAKA,CAACD,GAAc,EAAE;IACpB,IAAI,CAAC,IAAI,CAACX,WAAW,IAAI,CAAC,IAAI,CAACA,WAAW,CAACW,GAAG,CAAC,EAAE;MAC/C,MAAM;QAAEK,GAAG;QAAED;MAAQ,CAAC,GAAGJ,GAAG;MAE5B,MAAMO,MAAM,GAAG,IAAI,CAACJ,cAAc,CAACH,GAAG,CAAC;MACvC,MAAMQ,UAAU,GAAG,WAAWD,MAAM,GAAG;MAEvC,IAAIE,QAAQ,GAAGL,OAAO;MACtB,IAAIC,GAAG,EAAE;QACPI,QAAQ,GAAG,GAAGJ,GAAG,MAAMI,QAAQ,EAAE;MACnC;MAEA,IAAIF,MAAM,KAAK,OAAO,EAAE;QACtBG,OAAO,CAACC,KAAK,CAACH,UAAU,EAAEC,QAAQ,CAAC;MACrC,CAAC,MAAM,IAAIF,MAAM,KAAK,SAAS,EAAE;QAC/BG,OAAO,CAACE,IAAI,CAACJ,UAAU,EAAEC,QAAQ,CAAC;MACpC,CAAC,MAAM;QACLC,OAAO,CAACV,GAAG,CAACQ,UAAU,EAAEC,QAAQ,CAAC;MACnC;IACF;EACF;AACF;AAEA3B,MAAM,CAACE,cAAc,CAAC,CAAC,CAACU,KAAK,CAAC,CAAC;AAAC,IAAAmB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEjBjC,MAAM","ignoreList":[]}
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
/* This file was generated from MapboxStyle.ts.ejs do not modify */
|
|
7
|
-
/* TODO */
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
|
-
var VisibilityEnum = /*#__PURE__*/function (VisibilityEnum) {
|
|
10
|
-
/** The layer is shown. */
|
|
11
|
-
VisibilityEnum["Visible"] = "visible";
|
|
12
|
-
/** The layer is not shown. */
|
|
13
|
-
VisibilityEnum["None"] = "none";
|
|
14
|
-
return VisibilityEnum;
|
|
15
|
-
}(VisibilityEnum || {});
|
|
16
|
-
var FillTranslateAnchorEnum = /*#__PURE__*/function (FillTranslateAnchorEnum) {
|
|
17
|
-
/** The fill is translated relative to the map. */
|
|
18
|
-
FillTranslateAnchorEnum["Map"] = "map";
|
|
19
|
-
/** The fill is translated relative to the viewport. */
|
|
20
|
-
FillTranslateAnchorEnum["Viewport"] = "viewport";
|
|
21
|
-
return FillTranslateAnchorEnum;
|
|
22
|
-
}(FillTranslateAnchorEnum || {});
|
|
23
|
-
var LineCapEnum = /*#__PURE__*/function (LineCapEnum) {
|
|
24
|
-
/** A cap with a squared-off end which is drawn to the exact endpoint of the line. */
|
|
25
|
-
LineCapEnum["Butt"] = "butt";
|
|
26
|
-
/** A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line. */
|
|
27
|
-
LineCapEnum["Round"] = "round";
|
|
28
|
-
/** A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width. */
|
|
29
|
-
LineCapEnum["Square"] = "square";
|
|
30
|
-
return LineCapEnum;
|
|
31
|
-
}(LineCapEnum || {});
|
|
32
|
-
var LineJoinEnum = /*#__PURE__*/function (LineJoinEnum) {
|
|
33
|
-
/** A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width. */
|
|
34
|
-
LineJoinEnum["Bevel"] = "bevel";
|
|
35
|
-
/** A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line. */
|
|
36
|
-
LineJoinEnum["Round"] = "round";
|
|
37
|
-
/** A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet. */
|
|
38
|
-
LineJoinEnum["Miter"] = "miter";
|
|
39
|
-
/** Line segments are not joined together, each one creates a separate line. Useful in combination with line-pattern. Line-cap property is not respected. Can't be used with data-driven styling. */
|
|
40
|
-
LineJoinEnum["None"] = "none";
|
|
41
|
-
return LineJoinEnum;
|
|
42
|
-
}(LineJoinEnum || {});
|
|
43
|
-
var LineTranslateAnchorEnum = /*#__PURE__*/function (LineTranslateAnchorEnum) {
|
|
44
|
-
/** The line is translated relative to the map. */
|
|
45
|
-
LineTranslateAnchorEnum["Map"] = "map";
|
|
46
|
-
/** The line is translated relative to the viewport. */
|
|
47
|
-
LineTranslateAnchorEnum["Viewport"] = "viewport";
|
|
48
|
-
return LineTranslateAnchorEnum;
|
|
49
|
-
}(LineTranslateAnchorEnum || {});
|
|
50
|
-
var SymbolPlacementEnum = /*#__PURE__*/function (SymbolPlacementEnum) {
|
|
51
|
-
/** The label is placed at the point where the geometry is located. */
|
|
52
|
-
SymbolPlacementEnum["Point"] = "point";
|
|
53
|
-
/** The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. */
|
|
54
|
-
SymbolPlacementEnum["Line"] = "line";
|
|
55
|
-
/** The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries. */
|
|
56
|
-
SymbolPlacementEnum["LineCenter"] = "line-center";
|
|
57
|
-
return SymbolPlacementEnum;
|
|
58
|
-
}(SymbolPlacementEnum || {});
|
|
59
|
-
var SymbolZOrderEnum = /*#__PURE__*/function (SymbolZOrderEnum) {
|
|
60
|
-
/** Sorts symbols by `symbol-sort-key` if set. Otherwise, sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`. */
|
|
61
|
-
SymbolZOrderEnum["Auto"] = "auto";
|
|
62
|
-
/** Sorts symbols by their y-position relative to the viewport if any of the following is set to `true`: `icon-allow-overlap`, `text-allow-overlap`, `icon-ignore-placement`, `text-ignore-placement`. */
|
|
63
|
-
SymbolZOrderEnum["ViewportY"] = "viewport-y";
|
|
64
|
-
/** Sorts symbols by `symbol-sort-key` if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data. */
|
|
65
|
-
SymbolZOrderEnum["Source"] = "source";
|
|
66
|
-
return SymbolZOrderEnum;
|
|
67
|
-
}(SymbolZOrderEnum || {});
|
|
68
|
-
var IconRotationAlignmentEnum = /*#__PURE__*/function (IconRotationAlignmentEnum) {
|
|
69
|
-
/** When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line. */
|
|
70
|
-
IconRotationAlignmentEnum["Map"] = "map";
|
|
71
|
-
/** Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`. */
|
|
72
|
-
IconRotationAlignmentEnum["Viewport"] = "viewport";
|
|
73
|
-
/** When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`. */
|
|
74
|
-
IconRotationAlignmentEnum["Auto"] = "auto";
|
|
75
|
-
return IconRotationAlignmentEnum;
|
|
76
|
-
}(IconRotationAlignmentEnum || {});
|
|
77
|
-
var IconTextFitEnum = /*#__PURE__*/function (IconTextFitEnum) {
|
|
78
|
-
/** The icon is displayed at its intrinsic aspect ratio. */
|
|
79
|
-
IconTextFitEnum["None"] = "none";
|
|
80
|
-
/** The icon is scaled in the x-dimension to fit the width of the text. */
|
|
81
|
-
IconTextFitEnum["Width"] = "width";
|
|
82
|
-
/** The icon is scaled in the y-dimension to fit the height of the text. */
|
|
83
|
-
IconTextFitEnum["Height"] = "height";
|
|
84
|
-
/** The icon is scaled in both x- and y-dimensions. */
|
|
85
|
-
IconTextFitEnum["Both"] = "both";
|
|
86
|
-
return IconTextFitEnum;
|
|
87
|
-
}(IconTextFitEnum || {});
|
|
88
|
-
var IconAnchorEnum = /*#__PURE__*/function (IconAnchorEnum) {
|
|
89
|
-
/** The center of the icon is placed closest to the anchor. */
|
|
90
|
-
IconAnchorEnum["Center"] = "center";
|
|
91
|
-
/** The left side of the icon is placed closest to the anchor. */
|
|
92
|
-
IconAnchorEnum["Left"] = "left";
|
|
93
|
-
/** The right side of the icon is placed closest to the anchor. */
|
|
94
|
-
IconAnchorEnum["Right"] = "right";
|
|
95
|
-
/** The top of the icon is placed closest to the anchor. */
|
|
96
|
-
IconAnchorEnum["Top"] = "top";
|
|
97
|
-
/** The bottom of the icon is placed closest to the anchor. */
|
|
98
|
-
IconAnchorEnum["Bottom"] = "bottom";
|
|
99
|
-
/** The top left corner of the icon is placed closest to the anchor. */
|
|
100
|
-
IconAnchorEnum["TopLeft"] = "top-left";
|
|
101
|
-
/** The top right corner of the icon is placed closest to the anchor. */
|
|
102
|
-
IconAnchorEnum["TopRight"] = "top-right";
|
|
103
|
-
/** The bottom left corner of the icon is placed closest to the anchor. */
|
|
104
|
-
IconAnchorEnum["BottomLeft"] = "bottom-left";
|
|
105
|
-
/** The bottom right corner of the icon is placed closest to the anchor. */
|
|
106
|
-
IconAnchorEnum["BottomRight"] = "bottom-right";
|
|
107
|
-
return IconAnchorEnum;
|
|
108
|
-
}(IconAnchorEnum || {});
|
|
109
|
-
var IconPitchAlignmentEnum = /*#__PURE__*/function (IconPitchAlignmentEnum) {
|
|
110
|
-
/** The icon is aligned to the plane of the map. */
|
|
111
|
-
IconPitchAlignmentEnum["Map"] = "map";
|
|
112
|
-
/** The icon is aligned to the plane of the viewport. */
|
|
113
|
-
IconPitchAlignmentEnum["Viewport"] = "viewport";
|
|
114
|
-
/** Automatically matches the value of `icon-rotation-alignment`. */
|
|
115
|
-
IconPitchAlignmentEnum["Auto"] = "auto";
|
|
116
|
-
return IconPitchAlignmentEnum;
|
|
117
|
-
}(IconPitchAlignmentEnum || {});
|
|
118
|
-
var TextPitchAlignmentEnum = /*#__PURE__*/function (TextPitchAlignmentEnum) {
|
|
119
|
-
/** The text is aligned to the plane of the map. */
|
|
120
|
-
TextPitchAlignmentEnum["Map"] = "map";
|
|
121
|
-
/** The text is aligned to the plane of the viewport. */
|
|
122
|
-
TextPitchAlignmentEnum["Viewport"] = "viewport";
|
|
123
|
-
/** Automatically matches the value of `text-rotation-alignment`. */
|
|
124
|
-
TextPitchAlignmentEnum["Auto"] = "auto";
|
|
125
|
-
return TextPitchAlignmentEnum;
|
|
126
|
-
}(TextPitchAlignmentEnum || {});
|
|
127
|
-
var TextRotationAlignmentEnum = /*#__PURE__*/function (TextRotationAlignmentEnum) {
|
|
128
|
-
/** When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line. */
|
|
129
|
-
TextRotationAlignmentEnum["Map"] = "map";
|
|
130
|
-
/** Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`. */
|
|
131
|
-
TextRotationAlignmentEnum["Viewport"] = "viewport";
|
|
132
|
-
/** When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`. */
|
|
133
|
-
TextRotationAlignmentEnum["Auto"] = "auto";
|
|
134
|
-
return TextRotationAlignmentEnum;
|
|
135
|
-
}(TextRotationAlignmentEnum || {});
|
|
136
|
-
var TextJustifyEnum = /*#__PURE__*/function (TextJustifyEnum) {
|
|
137
|
-
/** The text is aligned towards the anchor position. */
|
|
138
|
-
TextJustifyEnum["Auto"] = "auto";
|
|
139
|
-
/** The text is aligned to the left. */
|
|
140
|
-
TextJustifyEnum["Left"] = "left";
|
|
141
|
-
/** The text is centered. */
|
|
142
|
-
TextJustifyEnum["Center"] = "center";
|
|
143
|
-
/** The text is aligned to the right. */
|
|
144
|
-
TextJustifyEnum["Right"] = "right";
|
|
145
|
-
return TextJustifyEnum;
|
|
146
|
-
}(TextJustifyEnum || {});
|
|
147
|
-
var TextVariableAnchorEnum = /*#__PURE__*/function (TextVariableAnchorEnum) {
|
|
148
|
-
/** The center of the text is placed closest to the anchor. */
|
|
149
|
-
TextVariableAnchorEnum["Center"] = "center";
|
|
150
|
-
/** The left side of the text is placed closest to the anchor. */
|
|
151
|
-
TextVariableAnchorEnum["Left"] = "left";
|
|
152
|
-
/** The right side of the text is placed closest to the anchor. */
|
|
153
|
-
TextVariableAnchorEnum["Right"] = "right";
|
|
154
|
-
/** The top of the text is placed closest to the anchor. */
|
|
155
|
-
TextVariableAnchorEnum["Top"] = "top";
|
|
156
|
-
/** The bottom of the text is placed closest to the anchor. */
|
|
157
|
-
TextVariableAnchorEnum["Bottom"] = "bottom";
|
|
158
|
-
/** The top left corner of the text is placed closest to the anchor. */
|
|
159
|
-
TextVariableAnchorEnum["TopLeft"] = "top-left";
|
|
160
|
-
/** The top right corner of the text is placed closest to the anchor. */
|
|
161
|
-
TextVariableAnchorEnum["TopRight"] = "top-right";
|
|
162
|
-
/** The bottom left corner of the text is placed closest to the anchor. */
|
|
163
|
-
TextVariableAnchorEnum["BottomLeft"] = "bottom-left";
|
|
164
|
-
/** The bottom right corner of the text is placed closest to the anchor. */
|
|
165
|
-
TextVariableAnchorEnum["BottomRight"] = "bottom-right";
|
|
166
|
-
return TextVariableAnchorEnum;
|
|
167
|
-
}(TextVariableAnchorEnum || {});
|
|
168
|
-
var TextAnchorEnum = /*#__PURE__*/function (TextAnchorEnum) {
|
|
169
|
-
/** The center of the text is placed closest to the anchor. */
|
|
170
|
-
TextAnchorEnum["Center"] = "center";
|
|
171
|
-
/** The left side of the text is placed closest to the anchor. */
|
|
172
|
-
TextAnchorEnum["Left"] = "left";
|
|
173
|
-
/** The right side of the text is placed closest to the anchor. */
|
|
174
|
-
TextAnchorEnum["Right"] = "right";
|
|
175
|
-
/** The top of the text is placed closest to the anchor. */
|
|
176
|
-
TextAnchorEnum["Top"] = "top";
|
|
177
|
-
/** The bottom of the text is placed closest to the anchor. */
|
|
178
|
-
TextAnchorEnum["Bottom"] = "bottom";
|
|
179
|
-
/** The top left corner of the text is placed closest to the anchor. */
|
|
180
|
-
TextAnchorEnum["TopLeft"] = "top-left";
|
|
181
|
-
/** The top right corner of the text is placed closest to the anchor. */
|
|
182
|
-
TextAnchorEnum["TopRight"] = "top-right";
|
|
183
|
-
/** The bottom left corner of the text is placed closest to the anchor. */
|
|
184
|
-
TextAnchorEnum["BottomLeft"] = "bottom-left";
|
|
185
|
-
/** The bottom right corner of the text is placed closest to the anchor. */
|
|
186
|
-
TextAnchorEnum["BottomRight"] = "bottom-right";
|
|
187
|
-
return TextAnchorEnum;
|
|
188
|
-
}(TextAnchorEnum || {});
|
|
189
|
-
var TextWritingModeEnum = /*#__PURE__*/function (TextWritingModeEnum) {
|
|
190
|
-
/** If a text's language supports horizontal writing mode, symbols would be laid out horizontally. */
|
|
191
|
-
TextWritingModeEnum["Horizontal"] = "horizontal";
|
|
192
|
-
/** If a text's language supports vertical writing mode, symbols would be laid out vertically. */
|
|
193
|
-
TextWritingModeEnum["Vertical"] = "vertical";
|
|
194
|
-
return TextWritingModeEnum;
|
|
195
|
-
}(TextWritingModeEnum || {});
|
|
196
|
-
var TextTransformEnum = /*#__PURE__*/function (TextTransformEnum) {
|
|
197
|
-
/** The text is not altered. */
|
|
198
|
-
TextTransformEnum["None"] = "none";
|
|
199
|
-
/** Forces all letters to be displayed in uppercase. */
|
|
200
|
-
TextTransformEnum["Uppercase"] = "uppercase";
|
|
201
|
-
/** Forces all letters to be displayed in lowercase. */
|
|
202
|
-
TextTransformEnum["Lowercase"] = "lowercase";
|
|
203
|
-
return TextTransformEnum;
|
|
204
|
-
}(TextTransformEnum || {});
|
|
205
|
-
var IconTranslateAnchorEnum = /*#__PURE__*/function (IconTranslateAnchorEnum) {
|
|
206
|
-
/** Icons are translated relative to the map. */
|
|
207
|
-
IconTranslateAnchorEnum["Map"] = "map";
|
|
208
|
-
/** Icons are translated relative to the viewport. */
|
|
209
|
-
IconTranslateAnchorEnum["Viewport"] = "viewport";
|
|
210
|
-
return IconTranslateAnchorEnum;
|
|
211
|
-
}(IconTranslateAnchorEnum || {});
|
|
212
|
-
var TextTranslateAnchorEnum = /*#__PURE__*/function (TextTranslateAnchorEnum) {
|
|
213
|
-
/** The text is translated relative to the map. */
|
|
214
|
-
TextTranslateAnchorEnum["Map"] = "map";
|
|
215
|
-
/** The text is translated relative to the viewport. */
|
|
216
|
-
TextTranslateAnchorEnum["Viewport"] = "viewport";
|
|
217
|
-
return TextTranslateAnchorEnum;
|
|
218
|
-
}(TextTranslateAnchorEnum || {});
|
|
219
|
-
var CircleTranslateAnchorEnum = /*#__PURE__*/function (CircleTranslateAnchorEnum) {
|
|
220
|
-
/** The circle is translated relative to the map. */
|
|
221
|
-
CircleTranslateAnchorEnum["Map"] = "map";
|
|
222
|
-
/** The circle is translated relative to the viewport. */
|
|
223
|
-
CircleTranslateAnchorEnum["Viewport"] = "viewport";
|
|
224
|
-
return CircleTranslateAnchorEnum;
|
|
225
|
-
}(CircleTranslateAnchorEnum || {});
|
|
226
|
-
var CirclePitchScaleEnum = /*#__PURE__*/function (CirclePitchScaleEnum) {
|
|
227
|
-
/** Circles are scaled according to their apparent distance to the camera. */
|
|
228
|
-
CirclePitchScaleEnum["Map"] = "map";
|
|
229
|
-
/** Circles are not scaled. */
|
|
230
|
-
CirclePitchScaleEnum["Viewport"] = "viewport";
|
|
231
|
-
return CirclePitchScaleEnum;
|
|
232
|
-
}(CirclePitchScaleEnum || {});
|
|
233
|
-
var CirclePitchAlignmentEnum = /*#__PURE__*/function (CirclePitchAlignmentEnum) {
|
|
234
|
-
/** The circle is aligned to the plane of the map. */
|
|
235
|
-
CirclePitchAlignmentEnum["Map"] = "map";
|
|
236
|
-
/** The circle is aligned to the plane of the viewport. */
|
|
237
|
-
CirclePitchAlignmentEnum["Viewport"] = "viewport";
|
|
238
|
-
return CirclePitchAlignmentEnum;
|
|
239
|
-
}(CirclePitchAlignmentEnum || {});
|
|
240
|
-
var FillExtrusionTranslateAnchorEnum = /*#__PURE__*/function (FillExtrusionTranslateAnchorEnum) {
|
|
241
|
-
/** The fill extrusion is translated relative to the map. */
|
|
242
|
-
FillExtrusionTranslateAnchorEnum["Map"] = "map";
|
|
243
|
-
/** The fill extrusion is translated relative to the viewport. */
|
|
244
|
-
FillExtrusionTranslateAnchorEnum["Viewport"] = "viewport";
|
|
245
|
-
return FillExtrusionTranslateAnchorEnum;
|
|
246
|
-
}(FillExtrusionTranslateAnchorEnum || {});
|
|
247
|
-
var RasterResamplingEnum = /*#__PURE__*/function (RasterResamplingEnum) {
|
|
248
|
-
/** (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 */
|
|
249
|
-
RasterResamplingEnum["Linear"] = "linear";
|
|
250
|
-
/** Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled */
|
|
251
|
-
RasterResamplingEnum["Nearest"] = "nearest";
|
|
252
|
-
return RasterResamplingEnum;
|
|
253
|
-
}(RasterResamplingEnum || {});
|
|
254
|
-
var HillshadeIlluminationAnchorEnum = /*#__PURE__*/function (HillshadeIlluminationAnchorEnum) {
|
|
255
|
-
/** The hillshade illumination is relative to the north direction. */
|
|
256
|
-
HillshadeIlluminationAnchorEnum["Map"] = "map";
|
|
257
|
-
/** The hillshade illumination is relative to the top of the viewport. */
|
|
258
|
-
HillshadeIlluminationAnchorEnum["Viewport"] = "viewport";
|
|
259
|
-
return HillshadeIlluminationAnchorEnum;
|
|
260
|
-
}(HillshadeIlluminationAnchorEnum || {});
|
|
261
|
-
var ModelTypeEnum = /*#__PURE__*/function (ModelTypeEnum) {
|
|
262
|
-
/** Integrated to 3D scene, using depth testing, along with terrain, fill-extrusions and custom layer. */
|
|
263
|
-
ModelTypeEnum["Common3d"] = "common-3d";
|
|
264
|
-
/** Displayed over other 3D content, occluded by terrain. */
|
|
265
|
-
ModelTypeEnum["LocationIndicator"] = "location-indicator";
|
|
266
|
-
return ModelTypeEnum;
|
|
267
|
-
}(ModelTypeEnum || {});
|
|
268
|
-
var SkyTypeEnum = /*#__PURE__*/function (SkyTypeEnum) {
|
|
269
|
-
/** Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`. */
|
|
270
|
-
SkyTypeEnum["Gradient"] = "gradient";
|
|
271
|
-
/** Renders the sky with a simulated atmospheric scattering algorithm, the sun direction can be attached to the light position or explicitly set through `sky-atmosphere-sun`. */
|
|
272
|
-
SkyTypeEnum["Atmosphere"] = "atmosphere";
|
|
273
|
-
return SkyTypeEnum;
|
|
274
|
-
}(SkyTypeEnum || {});
|
|
275
|
-
var AnchorEnum = /*#__PURE__*/function (AnchorEnum) {
|
|
276
|
-
/** The position of the light source is aligned to the rotation of the map. */
|
|
277
|
-
AnchorEnum["Map"] = "map";
|
|
278
|
-
/** The position of the light source is aligned to the rotation of the viewport. */
|
|
279
|
-
AnchorEnum["Viewport"] = "viewport";
|
|
280
|
-
return AnchorEnum;
|
|
281
|
-
}(AnchorEnum || {});
|
|
282
|
-
//# sourceMappingURL=MapboxStyles.d.js.map
|