@maplibre/maplibre-react-native 10.0.0-beta.12 → 10.0.0-beta.14
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/README.md +11 -13
- package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +37 -48
- package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +16 -9
- package/app.plugin.js +1 -1
- package/ios/MLRN/MLRNCamera.m +6 -7
- package/lib/commonjs/MapLibreRN.js +77 -59
- package/lib/commonjs/MapLibreRN.js.map +1 -1
- package/lib/commonjs/components/Annotation.js +7 -9
- package/lib/commonjs/components/Annotation.js.map +1 -1
- package/lib/commonjs/components/BackgroundLayer.js +6 -8
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
- package/lib/commonjs/components/Callout.js +2 -2
- package/lib/commonjs/components/Callout.js.map +1 -1
- package/lib/commonjs/components/Camera.js +111 -63
- package/lib/commonjs/components/Camera.js.map +1 -1
- package/lib/commonjs/components/CircleLayer.js +6 -8
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillExtrusionLayer.js +6 -8
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +6 -8
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeadingIndicator.js +4 -4
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +6 -8
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/ImageSource.js +4 -5
- package/lib/commonjs/components/ImageSource.js.map +1 -1
- package/lib/commonjs/components/Images.js +2 -2
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/Light.js +4 -6
- package/lib/commonjs/components/Light.js.map +1 -1
- package/lib/commonjs/components/LineLayer.js +6 -8
- package/lib/commonjs/components/LineLayer.js.map +1 -1
- package/lib/commonjs/components/MapView.js +44 -45
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/commonjs/components/MarkerView.js +4 -5
- package/lib/commonjs/components/MarkerView.js.map +1 -1
- package/lib/commonjs/components/NativeUserLocation.js +2 -2
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/PointAnnotation.js +4 -6
- package/lib/commonjs/components/PointAnnotation.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +6 -8
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/RasterSource.js +8 -10
- package/lib/commonjs/components/RasterSource.js.map +1 -1
- package/lib/commonjs/components/ShapeSource.js +6 -8
- package/lib/commonjs/components/ShapeSource.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +6 -7
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/UserLocation.js +20 -22
- package/lib/commonjs/components/UserLocation.js.map +1 -1
- package/lib/commonjs/components/VectorSource.js +8 -10
- package/lib/commonjs/components/VectorSource.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js.map +1 -1
- package/lib/commonjs/hooks/useNativeBridge.js +2 -2
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -1
- package/lib/commonjs/hooks/useOnce.js +2 -2
- package/lib/commonjs/hooks/useOnce.js.map +1 -1
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/location/{locationManager.js → LocationManager.js} +10 -10
- package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -2
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/commonjs/modules/offline/{offlineManager.js → OfflineManager.js} +34 -36
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +2 -2
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
- package/lib/commonjs/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +12 -14
- package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +3 -4
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/commonjs/plugin/withMapLibre.js +149 -0
- package/lib/commonjs/plugin/withMapLibre.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +2 -2
- package/lib/commonjs/utils/BridgeValue.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +2 -2
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/StyleValue.js +2 -3
- package/lib/commonjs/utils/StyleValue.js.map +1 -1
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/commonjs/utils/animated/Animated.js +29 -31
- package/lib/commonjs/utils/animated/Animated.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +4 -5
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedPoint.js +1 -2
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +4 -4
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedShape.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/module/MapLibreRN.js +40 -28
- package/lib/module/MapLibreRN.js.map +1 -1
- package/lib/module/components/Annotation.js +5 -6
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/BackgroundLayer.js +4 -6
- package/lib/module/components/BackgroundLayer.js.map +1 -1
- package/lib/module/components/Callout.js +2 -3
- package/lib/module/components/Callout.js.map +1 -1
- package/lib/module/components/Camera.js +112 -64
- package/lib/module/components/Camera.js.map +1 -1
- package/lib/module/components/CircleLayer.js +4 -6
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillExtrusionLayer.js +4 -6
- package/lib/module/components/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +4 -6
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeadingIndicator.js +2 -3
- package/lib/module/components/HeadingIndicator.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +4 -6
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/ImageSource.js +2 -3
- package/lib/module/components/ImageSource.js.map +1 -1
- package/lib/module/components/Images.js +2 -3
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/Light.js +2 -4
- package/lib/module/components/Light.js.map +1 -1
- package/lib/module/components/LineLayer.js +4 -6
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/MapView.js +40 -41
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +2 -3
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/NativeUserLocation.js +1 -2
- package/lib/module/components/NativeUserLocation.js.map +1 -1
- package/lib/module/components/PointAnnotation.js +2 -3
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterLayer.js +4 -6
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/RasterSource.js +5 -7
- package/lib/module/components/RasterSource.js.map +1 -1
- package/lib/module/components/ShapeSource.js +4 -5
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +4 -5
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/UserLocation.js +13 -14
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js +5 -6
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/hooks/useAbstractLayer.js +1 -1
- package/lib/module/hooks/useAbstractLayer.js.map +1 -1
- package/lib/module/hooks/useAbstractSource.js +1 -1
- package/lib/module/hooks/useAbstractSource.js.map +1 -1
- package/lib/module/hooks/useNativeBridge.js +1 -2
- package/lib/module/hooks/useNativeBridge.js.map +1 -1
- package/lib/module/hooks/useNativeRef.js.map +1 -1
- package/lib/module/hooks/useOnce.js +1 -2
- package/lib/module/hooks/useOnce.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/location/{locationManager.js → LocationManager.js} +10 -9
- package/lib/module/modules/location/LocationManager.js.map +1 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +1 -2
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/module/modules/offline/{offlineManager.js → OfflineManager.js} +30 -30
- package/lib/module/modules/offline/OfflineManager.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +1 -2
- package/lib/module/modules/offline/OfflinePack.js.map +1 -1
- package/lib/module/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +10 -10
- package/lib/module/modules/snapshot/{snapshotManager.js.map → SnapshotManager.js.map} +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js +2 -3
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/plugin/withMapLibre.js +140 -0
- package/lib/module/plugin/withMapLibre.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +1 -1
- package/lib/module/utils/BridgeValue.js.map +1 -1
- package/lib/module/utils/Logger.js +1 -2
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/StyleValue.js +1 -1
- package/lib/module/utils/StyleValue.js.map +1 -1
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +1 -2
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/module/utils/animated/Animated.js +14 -15
- package/lib/module/utils/animated/Animated.js.map +1 -1
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +2 -3
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedPoint.js +0 -1
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +2 -2
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedShape.js +1 -2
- package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/typescript/commonjs/src/MLRNModule.d.ts +1 -1
- package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +41 -29
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Annotation.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +1 -3
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Callout.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Camera.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +1 -3
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +1 -3
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts +1 -3
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +1 -3
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Images.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Light.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts +1 -3
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MapView.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +4 -3
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +1 -3
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +1 -2
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts +4 -3
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +3 -2
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/offline/{offlineManager.d.ts → OfflineManager.d.ts} +25 -25
- package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +2 -3
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{module/src/modules/snapshot/snapshotManager.d.ts → commonjs/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/{plugin/build → lib/typescript/commonjs/src/plugin}/withMapLibre.d.ts +1 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/module/src/MLRNModule.d.ts +1 -1
- package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/module/src/MapLibreRN.d.ts +41 -29
- package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Annotation.d.ts +4 -4
- package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts +1 -3
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Callout.d.ts +3 -4
- package/lib/typescript/module/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Camera.d.ts +4 -4
- package/lib/typescript/module/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/module/src/components/CircleLayer.d.ts +1 -3
- package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +1 -3
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillLayer.d.ts +1 -3
- package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts +1 -3
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Images.d.ts +4 -4
- package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Light.d.ts +2 -3
- package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/module/src/components/LineLayer.d.ts +1 -3
- package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MapView.d.ts +4 -4
- package/lib/typescript/module/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/PointAnnotation.d.ts +4 -3
- package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterLayer.d.ts +1 -3
- package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ShapeSource.d.ts +4 -4
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +1 -2
- package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/VectorSource.d.ts +4 -3
- package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +3 -2
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/offline/{offlineManager.d.ts → OfflineManager.d.ts} +25 -25
- package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +2 -3
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/modules/snapshot/snapshotManager.d.ts → module/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/module/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts +13 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/package.json +8 -10
- package/src/MLRNModule.ts +1 -1
- package/src/MapLibreRN.ts +46 -30
- package/src/components/Annotation.tsx +9 -11
- package/src/components/BackgroundLayer.tsx +5 -7
- package/src/components/Callout.tsx +8 -10
- package/src/components/Camera.tsx +154 -78
- package/src/components/CircleLayer.tsx +5 -7
- package/src/components/FillExtrusionLayer.tsx +5 -7
- package/src/components/FillLayer.tsx +5 -7
- package/src/components/HeadingIndicator.tsx +2 -6
- package/src/components/HeatmapLayer.tsx +5 -7
- package/src/components/ImageSource.tsx +4 -6
- package/src/components/Images.tsx +6 -8
- package/src/components/Light.tsx +3 -5
- package/src/components/LineLayer.tsx +5 -7
- package/src/components/MapView.tsx +42 -43
- package/src/components/MarkerView.tsx +4 -6
- package/src/components/NativeUserLocation.tsx +1 -4
- package/src/components/PointAnnotation.tsx +7 -6
- package/src/components/RasterLayer.tsx +5 -7
- package/src/components/RasterSource.tsx +7 -9
- package/src/components/ShapeSource.tsx +6 -8
- package/src/components/SymbolLayer.tsx +5 -6
- package/src/components/UserLocation.tsx +18 -19
- package/src/components/VectorSource.tsx +7 -9
- package/src/hooks/useAbstractLayer.ts +5 -5
- package/src/hooks/useAbstractSource.ts +6 -6
- package/src/hooks/useNativeBridge.ts +9 -6
- package/src/hooks/useNativeRef.ts +2 -2
- package/src/hooks/useOnce.ts +3 -3
- package/src/index.ts +3 -0
- package/src/modules/location/{locationManager.ts → LocationManager.ts} +16 -15
- package/src/modules/offline/OfflineCreatePackOptions.ts +1 -3
- package/src/modules/offline/{offlineManager.ts → OfflineManager.ts} +30 -29
- package/src/modules/offline/OfflinePack.ts +2 -4
- package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
- package/src/modules/snapshot/SnapshotOptions.ts +2 -4
- package/src/plugin/withMapLibre.ts +181 -0
- package/src/utils/BridgeValue.ts +1 -1
- package/src/utils/Logger.ts +1 -3
- package/src/utils/StyleValue.ts +2 -1
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +3 -3
- package/src/utils/animated/Animated.ts +23 -21
- package/src/utils/animated/AnimatedCoordinatesArray.ts +3 -4
- package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +1 -1
- package/src/utils/animated/AnimatedPoint.ts +0 -2
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -2
- package/src/utils/animated/AnimatedShape.ts +4 -6
- package/lib/commonjs/modules/location/locationManager.js.map +0 -1
- package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
- package/lib/module/modules/location/locationManager.js.map +0 -1
- package/lib/module/modules/offline/offlineManager.js.map +0 -1
- package/lib/typescript/commonjs/jest.config.d.ts +0 -2
- package/lib/typescript/commonjs/jest.config.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/module/jest.config.d.ts +0 -2
- package/lib/typescript/module/jest.config.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/plugin/build/withMapLibre.js +0 -148
|
@@ -18,7 +18,7 @@ export type StyleValueJSON = {
|
|
|
18
18
|
value: unknown[];
|
|
19
19
|
};
|
|
20
20
|
type StyleValueTypes = "boolean" | "number" | "string" | "hashmap" | "array";
|
|
21
|
-
export
|
|
21
|
+
export declare class BridgeValue {
|
|
22
22
|
rawValue: RawValueType;
|
|
23
23
|
constructor(rawValue: RawValueType);
|
|
24
24
|
get type(): StyleValueTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BridgeValue.d.ts","sourceRoot":"","sources":["../../../../../src/utils/BridgeValue.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,OAAO,GACP,YAAY,EAAE,GACd;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,CAAC;AAEpC,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC;AAExC,KAAK,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7E,
|
|
1
|
+
{"version":3,"file":"BridgeValue.d.ts","sourceRoot":"","sources":["../../../../../src/utils/BridgeValue.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,OAAO,GACP,YAAY,EAAE,GACd;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,CAAC;AAEpC,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC;AAExC,KAAK,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7E,qBAAa,WAAW;IACtB,QAAQ,EAAE,YAAY,CAAC;gBAEX,QAAQ,EAAE,YAAY;IAIlC,IAAI,IAAI,IAAI,eAAe,CAmB1B;IAED,IAAI,KAAK,IACL,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,GAClC,cAAc,EAAE,GAChB,YAAY,CA+Bf;IAED,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,cAAc;CAOtD"}
|
|
@@ -5,7 +5,7 @@ interface Log {
|
|
|
5
5
|
tag?: string;
|
|
6
6
|
}
|
|
7
7
|
type LogCallback = (log: Log) => boolean;
|
|
8
|
-
declare class Logger {
|
|
8
|
+
export declare class Logger {
|
|
9
9
|
static instance: Logger | null;
|
|
10
10
|
static sharedInstance(): Logger;
|
|
11
11
|
private loggerEmitter;
|
|
@@ -48,5 +48,5 @@ declare class Logger {
|
|
|
48
48
|
effectiveLevel({ level, message, tag }: Log): LogLevel;
|
|
49
49
|
onLog(log: Log): void;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export {};
|
|
52
52
|
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../../../src/utils/Logger.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAC1E,UAAU,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;AAEzC,
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../../../src/utils/Logger.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAC1E,UAAU,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;AAEzC,qBAAa,MAAM;IACjB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEtC,MAAM,CAAC,cAAc,IAAI,MAAM;IAO/B,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,YAAY,CAA6B;;IASjD;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAIrD;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAI9C;;;;;;;OAOG;IAEH;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAIzC;;OAEG;IAEH,KAAK,IAAI,IAAI;IAOb,IAAI,IAAI,IAAI;IAOZ,SAAS,IAAI,IAAI;IAMjB,WAAW,IAAI,IAAI;IAOnB,cAAc,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,GAAG,GAAG,QAAQ;IAatD,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;CAatB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyleValue.d.ts","sourceRoot":"","sources":["../../../../../src/utils/StyleValue.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"StyleValue.d.ts","sourceRoot":"","sources":["../../../../../src/utils/StyleValue.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,cAAc,CAAC;CAC5B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAkC3C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Animated } from "react-native";
|
|
2
2
|
declare const AnimatedWithChildren: any;
|
|
3
3
|
export type AnimatedCoordinates = [number, number];
|
|
4
|
-
declare abstract class AbstractAnimatedCoordinates<State> extends AnimatedWithChildren {
|
|
4
|
+
export declare abstract class AbstractAnimatedCoordinates<State> extends AnimatedWithChildren {
|
|
5
5
|
static [x: string]: any;
|
|
6
6
|
constructor(coords: AnimatedCoordinates[]);
|
|
7
7
|
/**
|
|
@@ -33,5 +33,5 @@ declare abstract class AbstractAnimatedCoordinates<State> extends AnimatedWithCh
|
|
|
33
33
|
}): Animated.CompositeAnimation;
|
|
34
34
|
__getValue(): AnimatedCoordinates[];
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export {};
|
|
37
37
|
//# sourceMappingURL=AbstractAnimatedCoordinates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractAnimatedCoordinates.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AbstractAnimatedCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAMnD,
|
|
1
|
+
{"version":3,"file":"AbstractAnimatedCoordinates.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AbstractAnimatedCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAMnD,8BAAsB,2BAA2B,CAC/C,KAAK,CACL,SAAQ,oBAAoB;;gBAChB,MAAM,EAAE,mBAAmB,EAAE;IAMzC;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,KAAK;IAC7D;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK;IAE3D,OAAO,CACL,aAAa,EAAE,QAAQ,CAAC,KAAK,EAC7B,iBAAiB,EAAE,QAAQ,CAAC,kBAAkB,EAC9C,MAAM,EAAE,CACJ,QAAQ,CAAC,qBAAqB,GAC9B,QAAQ,CAAC,qBAAqB,GAC9B,QAAQ,CAAC,oBAAoB,CAChC,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GACrC,QAAQ,CAAC,kBAAkB;IA2B9B,MAAM,CACJ,MAAM,EAAE,QAAQ,CAAC,qBAAqB,GAAG;QACvC,OAAO,EAAE,mBAAmB,EAAE,CAAC;KAChC,GACA,QAAQ,CAAC,kBAAkB;IAa9B,MAAM,CACJ,MAAM,EAAE,QAAQ,CAAC,qBAAqB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GAC1E,QAAQ,CAAC,kBAAkB;IAa9B,KAAK,CACH,MAAM,EAAE,QAAQ,CAAC,oBAAoB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GACzE,QAAQ,CAAC,kBAAkB;IAY9B,UAAU,IAAI,mBAAmB,EAAE;CAQpC"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ForwardRefExoticComponent, type MemoExoticComponent, type RefAttributes } from "react";
|
|
2
2
|
import { Animated as RNAnimated } from "react-native";
|
|
3
|
-
import AnimatedCoordinatesArray from "./AnimatedCoordinatesArray";
|
|
4
|
-
import AnimatedExtractCoordinateFromArray from "./AnimatedExtractCoordinateFromArray";
|
|
5
|
-
import AnimatedRouteCoordinatesArray from "./AnimatedRouteCoordinatesArray";
|
|
6
|
-
import AnimatedShape from "./AnimatedShape";
|
|
3
|
+
import { AnimatedCoordinatesArray } from "./AnimatedCoordinatesArray";
|
|
4
|
+
import { AnimatedExtractCoordinateFromArray } from "./AnimatedExtractCoordinateFromArray";
|
|
5
|
+
import { AnimatedRouteCoordinatesArray } from "./AnimatedRouteCoordinatesArray";
|
|
6
|
+
import { AnimatedShape } from "./AnimatedShape";
|
|
7
7
|
import { type ShapeSourceProps, type ShapeSourceRef } from "../../components/ShapeSource";
|
|
8
|
-
declare const Animated: {
|
|
9
|
-
ShapeSource: RNAnimated.AnimatedComponent<
|
|
10
|
-
ImageSource: RNAnimated.AnimatedComponent<
|
|
11
|
-
FillLayer: RNAnimated.AnimatedComponent<
|
|
12
|
-
FillExtrusionLayer: RNAnimated.AnimatedComponent<
|
|
13
|
-
LineLayer: RNAnimated.AnimatedComponent<
|
|
14
|
-
CircleLayer: RNAnimated.AnimatedComponent<
|
|
15
|
-
SymbolLayer: RNAnimated.AnimatedComponent<
|
|
16
|
-
RasterLayer: RNAnimated.AnimatedComponent<
|
|
17
|
-
BackgroundLayer: RNAnimated.AnimatedComponent<
|
|
8
|
+
export declare const Animated: {
|
|
9
|
+
ShapeSource: RNAnimated.AnimatedComponent<MemoExoticComponent<ForwardRefExoticComponent<ShapeSourceProps & RefAttributes<ShapeSourceRef>>>>;
|
|
10
|
+
ImageSource: RNAnimated.AnimatedComponent<(props: import("../../components/ImageSource").ImageSourceProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
11
|
+
FillLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/FillLayer").FillLayerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
+
FillExtrusionLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/FillExtrusionLayer").FillExtrusionLayerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
13
|
+
LineLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/LineLayer").LineLayerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
CircleLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/CircleLayer").CircleLayerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
+
SymbolLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/SymbolLayer").SymbolLayerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
+
RasterLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/RasterLayer").RasterLayerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
17
|
+
BackgroundLayer: RNAnimated.AnimatedComponent<({ sourceID, ...props }: import("../../components/BackgroundLayer").BackgroundLayerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
18
|
CoordinatesArray: typeof AnimatedCoordinatesArray;
|
|
19
19
|
RouteCoordinatesArray: typeof AnimatedRouteCoordinatesArray;
|
|
20
20
|
Shape: typeof AnimatedShape;
|
|
21
21
|
ExtractCoordinateFromArray: typeof AnimatedExtractCoordinateFromArray;
|
|
22
22
|
};
|
|
23
|
-
type ShapeSourcePropsWithRef = ShapeSourceProps &
|
|
24
|
-
type BaseShapeSourceComponent =
|
|
25
|
-
type AnimatedShapeSourceType = RNAnimated.AnimatedComponent<BaseShapeSourceComponent> &
|
|
23
|
+
type ShapeSourcePropsWithRef = ShapeSourceProps & RefAttributes<ShapeSourceRef>;
|
|
24
|
+
type BaseShapeSourceComponent = ForwardRefExoticComponent<ShapeSourcePropsWithRef>;
|
|
25
|
+
type AnimatedShapeSourceType = RNAnimated.AnimatedComponent<BaseShapeSourceComponent> & MemoExoticComponent<BaseShapeSourceComponent>;
|
|
26
26
|
/**
|
|
27
27
|
* Manual typing is required for AnimatedShapeSource because the
|
|
28
28
|
* following error:
|
|
29
29
|
* `Type instantiation is excessively deep and possibly infinite.ts(2589)`
|
|
30
30
|
*/
|
|
31
31
|
export declare const AnimatedShapeSource: AnimatedShapeSourceType;
|
|
32
|
-
export
|
|
32
|
+
export {};
|
|
33
33
|
//# sourceMappingURL=Animated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/Animated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/Animated.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQhD,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,8BAA8B,CAAC;AAGtC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,KAAK,uBAAuB,GAAG,gBAAgB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;AAEhF,KAAK,wBAAwB,GAC3B,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;AAErD,KAAK,uBAAuB,GAC1B,UAAU,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,GACpD,mBAAmB,CAAC,wBAAwB,CAAC,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAE3B,uBAAuB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import AbstractAnimatedCoordinates,
|
|
1
|
+
import { AbstractAnimatedCoordinates, type AnimatedCoordinates } from "./AbstractAnimatedCoordinates";
|
|
2
2
|
interface CoordinatesState {
|
|
3
3
|
coords: AnimatedCoordinates[];
|
|
4
4
|
targetCoords: AnimatedCoordinates[];
|
|
5
5
|
}
|
|
6
|
-
declare class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesState> {
|
|
6
|
+
export declare class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesState> {
|
|
7
7
|
/**
|
|
8
8
|
* Subclasses can override to calculate initial state
|
|
9
9
|
*
|
|
@@ -36,5 +36,5 @@ declare class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<Coord
|
|
|
36
36
|
*/
|
|
37
37
|
onStart(state: CoordinatesState, toValue: AnimatedCoordinates[]): CoordinatesState;
|
|
38
38
|
}
|
|
39
|
-
export
|
|
39
|
+
export {};
|
|
40
40
|
//# sourceMappingURL=AnimatedCoordinatesArray.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedCoordinatesArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedCoordinatesArray.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,
|
|
1
|
+
{"version":3,"file":"AnimatedCoordinatesArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedCoordinatesArray.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,UAAU,gBAAgB;IACxB,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,YAAY,EAAE,mBAAmB,EAAE,CAAC;CACrC;AAED,qBAAa,wBAAyB,SAAQ,2BAA2B,CAAC,gBAAgB,CAAC;IACzF;;;;;OAKG;IACH,cAAc,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,GAAG,gBAAgB;IAUzE;;;;;;OAMG;IACH,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC;IAI/D;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,GAAG,gBAAgB;IA+CxE;;;;;;OAMG;IACH,OAAO,CACL,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,mBAAmB,EAAE,GAC7B,gBAAgB;CASpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const AnimatedWithChildren: any;
|
|
2
|
-
export
|
|
2
|
+
export declare class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
|
|
3
3
|
static [x: string]: any;
|
|
4
4
|
_array: AnimatedExtractCoordinateFromArray;
|
|
5
5
|
_index: number;
|
package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,
|
|
1
|
+
{"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,qBAAa,kCAAmC,SAAQ,oBAAoB;;IAC1E,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB
|
|
1
|
+
{"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Coord, type Units } from "@turf/helpers";
|
|
2
|
-
import AbstractAnimatedCoordinates,
|
|
2
|
+
import { AbstractAnimatedCoordinates, type AnimatedCoordinates } from "./AbstractAnimatedCoordinates";
|
|
3
3
|
interface AnimatedRouteState {
|
|
4
4
|
actRoute?: AnimatedCoordinates[];
|
|
5
5
|
fullRoute: AnimatedCoordinates[];
|
|
@@ -11,7 +11,7 @@ interface AnimatedRouteState {
|
|
|
11
11
|
along?: Coord;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export declare class AnimatedRouteCoordinatesArray extends AbstractAnimatedCoordinates<AnimatedRouteState> {
|
|
15
15
|
/**
|
|
16
16
|
* Calculate initial state
|
|
17
17
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedRouteCoordinatesArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedRouteCoordinatesArray.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAIvB,OAAO,2BAA2B,
|
|
1
|
+
{"version":3,"file":"AnimatedRouteCoordinatesArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedRouteCoordinatesArray.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,2BAA2B,EAC3B,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjC,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,GAAG,EAAE;QACH,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,CAAC;CACH;AAED,qBAAa,6BAA8B,SAAQ,2BAA2B,CAAC,kBAAkB,CAAC;IAChG;;;;;OAKG;IACH,cAAc,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,GAAG,kBAAkB;IAS3E;;;;;OAKG;IACH,UAAU,CACR,KAAK,EAAE,kBAAkB,GACxB,kBAAkB,GAAG,mBAAmB,EAAE;IAI7C;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,GAAG,kBAAkB;IAgC5E;;;;;;OAMG;IACH,OAAO,CACL,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE;QAAE,GAAG,EAAE;YAAE,KAAK,CAAC,EAAE,KAAK,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GACjE,kBAAkB;IA0CrB,IAAI,aAAa,IAAI,mBAAmB,EAAE,CAEzC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Animated } from "react-native";
|
|
2
|
-
import AnimatedCoordinatesArray from "./AnimatedCoordinatesArray";
|
|
3
|
-
import AnimatedExtractCoordinateFromArray from "./AnimatedExtractCoordinateFromArray";
|
|
4
|
-
import AnimatedRouteCoordinatesArray from "./AnimatedRouteCoordinatesArray";
|
|
2
|
+
import { AnimatedCoordinatesArray } from "./AnimatedCoordinatesArray";
|
|
3
|
+
import { AnimatedExtractCoordinateFromArray } from "./AnimatedExtractCoordinateFromArray";
|
|
4
|
+
import { AnimatedRouteCoordinatesArray } from "./AnimatedRouteCoordinatesArray";
|
|
5
5
|
declare const AnimatedWithChildren: any;
|
|
6
6
|
type Shape = {
|
|
7
7
|
type: "Point";
|
|
@@ -15,7 +15,7 @@ type Shape = {
|
|
|
15
15
|
* @example
|
|
16
16
|
* <AnimatedShapeSource ... shape={new AnimatedShape({type:'LineString', coordinates: animatedCoords})} />
|
|
17
17
|
*/
|
|
18
|
-
declare class AnimatedShape extends AnimatedWithChildren {
|
|
18
|
+
export declare class AnimatedShape extends AnimatedWithChildren {
|
|
19
19
|
static [x: string]: any;
|
|
20
20
|
constructor(shape: Shape);
|
|
21
21
|
_walkShapeAndGetValues(value: any): any;
|
|
@@ -24,5 +24,5 @@ declare class AnimatedShape extends AnimatedWithChildren {
|
|
|
24
24
|
__attach(): void;
|
|
25
25
|
__detach(): void;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export {};
|
|
28
28
|
//# sourceMappingURL=AnimatedShape.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAIhF,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,KAAK,KAAK,GACN;IACE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EACP,kCAAkC,GAClC,6BAA6B,CAAC;CACnC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC;AAEN;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,oBAAoB;;gBAIzC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplibre/maplibre-react-native",
|
|
3
3
|
"description": "React Native library for creating maps with MapLibre Native for Android & iOS",
|
|
4
|
-
"version": "10.0.0-beta.
|
|
4
|
+
"version": "10.0.0-beta.14",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"provenance": true
|
|
@@ -31,12 +31,7 @@
|
|
|
31
31
|
"lint:eslint": "eslint ./ --max-warnings 0",
|
|
32
32
|
"lint:eslint:fix": "yarn lint:eslint --fix",
|
|
33
33
|
"test": "jest",
|
|
34
|
-
"
|
|
35
|
-
"plugin:lint:tsc": "tsc --noEmit --project ./plugin",
|
|
36
|
-
"plugin:lint:eslint": "eslint ./plugin/src/* --max-warnings 0",
|
|
37
|
-
"plugin:test": "jest ./plugin",
|
|
38
|
-
"plugin:build": "tsc --build ./plugin",
|
|
39
|
-
"prepack": "bob build && yarn plugin:build",
|
|
34
|
+
"prepack": "bob build",
|
|
40
35
|
"example:react-native": "yarn workspace react-native-app",
|
|
41
36
|
"example:expo": "yarn workspace expo-app"
|
|
42
37
|
},
|
|
@@ -65,9 +60,13 @@
|
|
|
65
60
|
}
|
|
66
61
|
},
|
|
67
62
|
"./plugin": {
|
|
63
|
+
"import": {
|
|
64
|
+
"types": "./lib/typescript/module/src/plugin/withMapLibre.d.ts",
|
|
65
|
+
"default": "./lib/module/plugin/withMapLibre.js"
|
|
66
|
+
},
|
|
68
67
|
"require": {
|
|
69
|
-
"types": "./plugin/
|
|
70
|
-
"default": "./plugin/
|
|
68
|
+
"types": "./lib/typescript/commonjs/src/plugin/withMapLibre.d.ts",
|
|
69
|
+
"default": "./lib/commonjs/plugin/withMapLibre.js"
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
},
|
|
@@ -80,7 +79,6 @@
|
|
|
80
79
|
"*.podspec",
|
|
81
80
|
"react-native.config.json",
|
|
82
81
|
"app.plugin.js",
|
|
83
|
-
"plugin/build/**",
|
|
84
82
|
"!ios/build",
|
|
85
83
|
"!android/build",
|
|
86
84
|
"!android/gradle",
|
package/src/MLRNModule.ts
CHANGED
package/src/MapLibreRN.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./MLRNModule";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
Camera,
|
|
4
4
|
UserTrackingMode,
|
|
5
5
|
type CameraPadding,
|
|
6
6
|
type CameraAnimationMode,
|
|
@@ -8,53 +8,69 @@ export {
|
|
|
8
8
|
type CameraRef,
|
|
9
9
|
} from "./components/Camera";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
MapView,
|
|
12
12
|
type MapViewRef,
|
|
13
13
|
type RegionPayload,
|
|
14
14
|
} from "./components/MapView";
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
15
|
+
export { Light } from "./components/Light";
|
|
16
|
+
export { PointAnnotation } from "./components/PointAnnotation";
|
|
17
17
|
export type { PointAnnotationRef } from "./components/PointAnnotation";
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
18
|
+
export { Annotation } from "./components/Annotation";
|
|
19
|
+
export { Callout } from "./components/Callout";
|
|
20
20
|
export { requestAndroidLocationPermissions } from "./requestAndroidLocationPermissions";
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
UserLocation,
|
|
23
23
|
UserLocationRenderMode,
|
|
24
24
|
} from "./components/UserLocation";
|
|
25
25
|
export type { UserLocationRef } from "./components/UserLocation";
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
26
|
+
export { VectorSource } from "./components/VectorSource";
|
|
27
|
+
export { ShapeSource } from "./components/ShapeSource";
|
|
28
28
|
export type { ShapeSourceRef } from "./components/ShapeSource";
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
29
|
+
export { RasterSource } from "./components/RasterSource";
|
|
30
|
+
export { ImageSource } from "./components/ImageSource";
|
|
31
|
+
export { Images } from "./components/Images";
|
|
32
|
+
export { FillLayer } from "./components/FillLayer";
|
|
33
|
+
export { FillExtrusionLayer } from "./components/FillExtrusionLayer";
|
|
34
|
+
export { HeatmapLayer } from "./components/HeatmapLayer";
|
|
35
|
+
export { LineLayer } from "./components/LineLayer";
|
|
36
|
+
export { CircleLayer } from "./components/CircleLayer";
|
|
37
|
+
export { SymbolLayer } from "./components/SymbolLayer";
|
|
38
|
+
export { RasterLayer } from "./components/RasterLayer";
|
|
39
|
+
export { BackgroundLayer } from "./components/BackgroundLayer";
|
|
40
|
+
export { MarkerView } from "./components/MarkerView";
|
|
41
41
|
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
LocationManager,
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Use LocationManager instead
|
|
46
|
+
*/
|
|
47
|
+
LocationManager as locationManager,
|
|
44
48
|
type Location,
|
|
45
|
-
} from "./modules/location/
|
|
46
|
-
export {
|
|
47
|
-
|
|
49
|
+
} from "./modules/location/LocationManager";
|
|
50
|
+
export {
|
|
51
|
+
OfflineManager,
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use OfflineManager instead
|
|
54
|
+
*/
|
|
55
|
+
OfflineManager as offlineManager,
|
|
56
|
+
} from "./modules/offline/OfflineManager";
|
|
57
|
+
export type { OfflinePackError } from "./modules/offline/OfflineManager";
|
|
48
58
|
export type { OfflinePackStatus } from "./modules/offline/OfflinePack";
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
59
|
+
export { OfflinePack } from "./modules/offline/OfflinePack";
|
|
60
|
+
export { OfflineCreatePackOptions } from "./modules/offline/OfflineCreatePackOptions";
|
|
61
|
+
export {
|
|
62
|
+
SnapshotManager,
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Use SnapshotManager instead
|
|
65
|
+
*/
|
|
66
|
+
SnapshotManager as snapshotManager,
|
|
67
|
+
} from "./modules/snapshot/SnapshotManager";
|
|
52
68
|
export type { SnapshotInputOptions } from "./modules/snapshot/SnapshotOptions";
|
|
53
69
|
|
|
54
70
|
export type { MapLibreRNEvent } from "./types/MapLibreRNEvent";
|
|
55
71
|
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
72
|
+
export { Animated } from "./utils/animated/Animated";
|
|
73
|
+
export { Logger, type LogLevel } from "./utils/Logger";
|
|
58
74
|
export type {
|
|
59
75
|
FillLayerStyle,
|
|
60
76
|
LineLayerStyle,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
forwardRef,
|
|
3
|
-
type
|
|
3
|
+
type ReactNode,
|
|
4
4
|
useCallback,
|
|
5
5
|
useEffect,
|
|
6
6
|
useImperativeHandle,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "react";
|
|
9
9
|
import { Animated as RNAnimated, Easing } from "react-native";
|
|
10
10
|
|
|
11
|
-
import SymbolLayer from "./SymbolLayer";
|
|
11
|
+
import { SymbolLayer } from "./SymbolLayer";
|
|
12
12
|
import { type SymbolLayerStyle } from "../types/MapLibreRNStyles";
|
|
13
13
|
import { type OnPressEvent } from "../types/OnPressEvent";
|
|
14
14
|
import { AnimatedShapeSource } from "../utils/animated/Animated";
|
|
15
|
-
import
|
|
15
|
+
import { AnimatedPoint } from "../utils/animated/AnimatedPoint";
|
|
16
16
|
|
|
17
17
|
interface AnnotationProps {
|
|
18
18
|
id: string;
|
|
@@ -21,12 +21,12 @@ interface AnnotationProps {
|
|
|
21
21
|
animationEasingFunction?(x: number): number;
|
|
22
22
|
coordinates?: number[];
|
|
23
23
|
onPress?(event: OnPressEvent): void;
|
|
24
|
-
children?:
|
|
24
|
+
children?: ReactNode;
|
|
25
25
|
style?: object;
|
|
26
26
|
icon?: string | number | object;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
type Shape =
|
|
29
|
+
type Shape = AnimatedPoint | GeoJSON.Point;
|
|
30
30
|
|
|
31
31
|
function getShapeFromProps(props: Partial<AnnotationProps> = {}): Shape {
|
|
32
32
|
const lng = props.coordinates?.[0] || 0;
|
|
@@ -34,14 +34,14 @@ function getShapeFromProps(props: Partial<AnnotationProps> = {}): Shape {
|
|
|
34
34
|
const point: GeoJSON.Point = { type: "Point", coordinates: [lng, lat] };
|
|
35
35
|
|
|
36
36
|
if (props.animated) {
|
|
37
|
-
return new
|
|
37
|
+
return new AnimatedPoint(point);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
return point;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
function isShapeAnimated(shape: Shape): shape is
|
|
44
|
-
return shape instanceof
|
|
43
|
+
function isShapeAnimated(shape: Shape): shape is AnimatedPoint {
|
|
44
|
+
return shape instanceof AnimatedPoint;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
interface AnnotationRef {
|
|
@@ -49,7 +49,7 @@ interface AnnotationRef {
|
|
|
49
49
|
symbolStyle: SymbolLayerStyle | undefined;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
const Annotation = forwardRef<AnnotationRef, AnnotationProps>(
|
|
52
|
+
export const Annotation = forwardRef<AnnotationRef, AnnotationProps>(
|
|
53
53
|
(
|
|
54
54
|
{
|
|
55
55
|
animated = false,
|
|
@@ -160,5 +160,3 @@ const Annotation = forwardRef<AnnotationRef, AnnotationProps>(
|
|
|
160
160
|
);
|
|
161
161
|
|
|
162
162
|
Annotation.displayName = "Annotation";
|
|
163
|
-
|
|
164
|
-
export default Annotation;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { NativeModules, requireNativeComponent } from "react-native";
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import {
|
|
4
|
+
useAbstractLayer,
|
|
5
5
|
type BaseLayerProps,
|
|
6
6
|
type NativeBaseProps,
|
|
7
7
|
} from "../hooks/useAbstractLayer";
|
|
8
8
|
import { type BaseProps } from "../types/BaseProps";
|
|
9
9
|
import { type BackgroundLayerStyle } from "../types/MapLibreRNStyles";
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const MLRNModule = NativeModules.MLRNModule;
|
|
12
12
|
|
|
13
13
|
export const NATIVE_MODULE_NAME = "MLRNBackgroundLayer";
|
|
14
14
|
|
|
@@ -26,8 +26,8 @@ interface NativeProps
|
|
|
26
26
|
const MLRNBackgroundLayer =
|
|
27
27
|
requireNativeComponent<BackgroundLayerProps>(NATIVE_MODULE_NAME);
|
|
28
28
|
|
|
29
|
-
const BackgroundLayer
|
|
30
|
-
sourceID =
|
|
29
|
+
export const BackgroundLayer = ({
|
|
30
|
+
sourceID = MLRNModule.StyleSource.DefaultSourceID,
|
|
31
31
|
...props
|
|
32
32
|
}: BackgroundLayerProps) => {
|
|
33
33
|
const { baseProps, setNativeLayer } = useAbstractLayer<
|
|
@@ -46,5 +46,3 @@ const BackgroundLayer: React.FC<BackgroundLayerProps> = ({
|
|
|
46
46
|
/>
|
|
47
47
|
);
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
export default BackgroundLayer;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import { Children } from "react";
|
|
2
2
|
import {
|
|
3
|
-
View,
|
|
4
|
-
Text,
|
|
5
3
|
Animated,
|
|
6
4
|
requireNativeComponent,
|
|
5
|
+
type StyleProp,
|
|
7
6
|
StyleSheet,
|
|
8
|
-
|
|
7
|
+
Text,
|
|
8
|
+
View,
|
|
9
9
|
type ViewProps,
|
|
10
|
-
type
|
|
10
|
+
type ViewStyle,
|
|
11
11
|
} from "react-native";
|
|
12
12
|
|
|
13
13
|
export const NATIVE_MODULE_NAME = "MLRNCallout";
|
|
@@ -82,7 +82,7 @@ interface NativeProps extends Omit<CalloutProps, "style"> {
|
|
|
82
82
|
/**
|
|
83
83
|
* Callout that displays information about a selected annotation near the annotation.
|
|
84
84
|
*/
|
|
85
|
-
const Callout = (props: CalloutProps)
|
|
85
|
+
export const Callout = (props: CalloutProps) => {
|
|
86
86
|
const {
|
|
87
87
|
title,
|
|
88
88
|
style,
|
|
@@ -104,7 +104,7 @@ const Callout = (props: CalloutProps): ReactElement => {
|
|
|
104
104
|
|
|
105
105
|
const _hasChildren = Children.count(children) > 0;
|
|
106
106
|
|
|
107
|
-
const _renderDefaultCallout = ()
|
|
107
|
+
const _renderDefaultCallout = () => {
|
|
108
108
|
return (
|
|
109
109
|
<Animated.View testID="container" style={[styles.container, style]}>
|
|
110
110
|
<View testID="wrapper" style={[styles.content, contentStyle]}>
|
|
@@ -117,7 +117,7 @@ const Callout = (props: CalloutProps): ReactElement => {
|
|
|
117
117
|
);
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
const _renderCustomCallout = ()
|
|
120
|
+
const _renderCustomCallout = () => {
|
|
121
121
|
return (
|
|
122
122
|
<Animated.View testID="container" {...props} style={style}>
|
|
123
123
|
{children}
|
|
@@ -137,5 +137,3 @@ const Callout = (props: CalloutProps): ReactElement => {
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
const MLRNCallout = requireNativeComponent<NativeProps>(NATIVE_MODULE_NAME);
|
|
140
|
-
|
|
141
|
-
export default Callout;
|