@maplibre/maplibre-react-native 10.0.0-beta.2 → 10.0.0-beta.21
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 +12 -56
- package/android/build.gradle +120 -50
- package/android/gradle.properties +15 -0
- package/android/src/main/AndroidManifest.xml +4 -2
- package/android/src/main/AndroidManifestNew.xml +5 -0
- package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.java +0 -5
- 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/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.java +11 -13
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.java +4 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyle.java +1 -4
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleFactory.java +10 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSource.java +0 -66
- package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSourceManager.java +0 -28
- package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.java +7 -11
- package/android/src/main/java/org/maplibre/reactnative/location/engine/DefaultLocationEngineProvider.java +18 -0
- package/android/src/main/java/org/maplibre/reactnative/location/engine/LocationEngineProvidable.java +9 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNModule.java +27 -148
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.java +1 -3
- package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.java +123 -18
- package/android/src/main/location-engine-default/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineImpl.java +151 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineProvider.java +24 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/app.plugin.js +1 -1
- package/ios/MLRN/MLRNBackgroundLayer.h +0 -1
- package/ios/MLRN/MLRNCamera.m +6 -7
- package/ios/MLRN/MLRNFillExtrusionLayer.h +0 -1
- package/ios/MLRN/MLRNFillLayer.h +0 -1
- package/ios/MLRN/MLRNFillLayer.m +1 -0
- package/ios/MLRN/MLRNLineLayer.h +0 -1
- package/ios/MLRN/MLRNMapView.h +1 -1
- package/ios/MLRN/MLRNMapView.m +7 -7
- package/ios/MLRN/MLRNMapViewManager.m +1 -1
- package/ios/MLRN/MLRNModule.m +8 -139
- package/ios/MLRN/MLRNRasterLayer.h +0 -1
- package/ios/MLRN/MLRNShapeSource.h +0 -11
- package/ios/MLRN/MLRNShapeSource.m +0 -38
- package/ios/MLRN/MLRNShapeSourceManager.m +0 -68
- package/ios/MLRN/MLRNStyle.m +0 -40
- package/ios/MLRN/MLRNSymbolLayer.h +1 -7
- package/ios/MLRN/MLRNSymbolLayer.m +1 -89
- package/ios/MLRN/MLRNSymbolLayerManager.m +0 -1
- package/lib/commonjs/MLRNModule.js +7 -5
- package/lib/commonjs/MLRNModule.js.map +1 -1
- package/lib/commonjs/MapLibreRN.js +74 -68
- 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 +3 -7
- 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 +69 -83
- 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 +7 -10
- 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 +11 -45
- package/lib/commonjs/components/ShapeSource.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +8 -24
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/UserLocation.js +21 -23
- package/lib/commonjs/components/UserLocation.js.map +1 -1
- package/lib/commonjs/components/VectorSource.js +9 -21
- 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/MapLibrePluginProps.js +2 -0
- package/lib/commonjs/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/commonjs/plugin/android.js +41 -0
- package/lib/commonjs/plugin/android.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +131 -0
- package/lib/commonjs/plugin/ios.js.map +1 -0
- package/lib/commonjs/plugin/withMapLibre.js +31 -0
- package/lib/commonjs/plugin/withMapLibre.js.map +1 -0
- package/lib/commonjs/types/MapLibreRNStyles.js +6 -0
- package/lib/commonjs/types/MapLibreRNStyles.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 +4 -5
- 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/commonjs/utils/getStylePropertyType.js +252 -0
- package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
- package/lib/module/MLRNModule.js +3 -2
- package/lib/module/MLRNModule.js.map +1 -1
- package/lib/module/MapLibreRN.js +40 -32
- 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 +3 -8
- 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 +65 -79
- 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 +5 -7
- 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 +9 -42
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +7 -23
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/UserLocation.js +14 -15
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js +6 -17
- 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/MapLibrePluginProps.js +2 -0
- package/lib/module/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/module/plugin/android.js +34 -0
- package/lib/module/plugin/android.js.map +1 -0
- package/lib/module/plugin/ios.js +123 -0
- package/lib/module/plugin/ios.js.map +1 -0
- package/lib/module/plugin/withMapLibre.js +27 -0
- package/lib/module/plugin/withMapLibre.js.map +1 -0
- package/lib/module/types/MapLibreRNStyles.js +4 -0
- package/lib/module/types/MapLibreRNStyles.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 +3 -3
- 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/module/utils/getStylePropertyType.js +248 -0
- package/lib/module/utils/getStylePropertyType.js.map +1 -0
- package/lib/typescript/commonjs/src/MLRNModule.d.ts +3 -7
- package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +44 -34
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +3 -5
- 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 +3 -5
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts +3 -5
- 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 +3 -5
- 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 +5 -5
- package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Light.d.ts +4 -5
- package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MapView.d.ts +12 -16
- 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 +7 -8
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +3 -5
- 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 +8 -16
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +3 -10
- 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 -8
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +5 -4
- 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/{module/src/modules/offline/offlineManager.d.ts → commonjs/src/modules/offline/OfflineManager.d.ts} +27 -37
- package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +3 -4
- 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/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts +16 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.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 +2 -2
- 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/commonjs/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/src/MLRNModule.d.ts +3 -7
- package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/module/src/MapLibreRN.d.ts +44 -34
- package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts +3 -5
- 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 +3 -5
- package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillLayer.d.ts +3 -5
- 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 +3 -5
- 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 +5 -5
- package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Light.d.ts +4 -5
- package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/module/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MapView.d.ts +12 -16
- 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 +7 -8
- package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterLayer.d.ts +3 -5
- 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 +8 -16
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +3 -10
- 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 -8
- package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +5 -4
- 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/{commonjs/src/modules/offline/offlineManager.d.ts → module/src/modules/offline/OfflineManager.d.ts} +27 -37
- package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +3 -4
- 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/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/android.d.ts +16 -0
- package/lib/typescript/module/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/module/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.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 +2 -2
- 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/lib/typescript/module/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/maplibre-react-native.podspec +15 -14
- package/package.json +17 -14
- package/src/MLRNModule.ts +24 -10
- package/src/MapLibreRN.ts +66 -49
- package/src/components/Annotation.tsx +12 -14
- package/src/components/BackgroundLayer.tsx +7 -9
- package/src/components/Callout.tsx +8 -10
- package/src/components/Camera.tsx +154 -78
- package/src/components/CircleLayer.tsx +7 -9
- package/src/components/FillExtrusionLayer.tsx +7 -9
- package/src/components/FillLayer.tsx +7 -9
- package/src/components/HeadingIndicator.tsx +2 -6
- package/src/components/HeatmapLayer.tsx +7 -9
- package/src/components/ImageSource.tsx +4 -6
- package/src/components/Images.tsx +8 -19
- package/src/components/Light.tsx +5 -7
- package/src/components/LineLayer.tsx +7 -9
- package/src/components/MapView.tsx +85 -105
- package/src/components/MarkerView.tsx +4 -6
- package/src/components/NativeUserLocation.tsx +1 -4
- package/src/components/PointAnnotation.tsx +10 -11
- package/src/components/RasterLayer.tsx +7 -9
- package/src/components/RasterSource.tsx +7 -9
- package/src/components/ShapeSource.tsx +22 -95
- package/src/components/SymbolLayer.tsx +12 -41
- package/src/components/UserLocation.tsx +21 -22
- package/src/components/VectorSource.tsx +12 -35
- package/src/hooks/useAbstractLayer.ts +8 -8
- 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} +32 -45
- package/src/modules/offline/OfflinePack.ts +3 -5
- package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
- package/src/modules/snapshot/SnapshotOptions.ts +2 -4
- package/src/plugin/MapLibrePluginProps.ts +83 -0
- package/src/plugin/android.ts +64 -0
- package/src/plugin/ios.ts +166 -0
- package/src/plugin/withMapLibre.ts +30 -0
- package/src/{utils/MapLibreRNStyles.d.ts → types/MapLibreRNStyles.ts} +86 -406
- package/src/utils/BridgeValue.ts +1 -1
- package/src/utils/Logger.ts +1 -3
- package/src/utils/StyleValue.ts +6 -5
- 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/src/utils/filterUtils.ts +1 -1
- package/src/utils/getStylePropertyType.ts +265 -0
- package/android/src/main/res/values/strings.xml +0 -3
- package/lib/commonjs/components/Style.js +0 -266
- package/lib/commonjs/components/Style.js.map +0 -1
- 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/commonjs/types/StyleURL.js +0 -11
- package/lib/commonjs/types/StyleURL.js.map +0 -1
- package/lib/commonjs/utils/MapLibreRNStyles.d.js +0 -181
- package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/commonjs/utils/deprecation.js +0 -31
- package/lib/commonjs/utils/deprecation.js.map +0 -1
- package/lib/commonjs/utils/styleMap.js +0 -255
- package/lib/commonjs/utils/styleMap.js.map +0 -1
- package/lib/module/components/Style.js +0 -261
- package/lib/module/components/Style.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/module/types/StyleURL.js +0 -7
- package/lib/module/types/StyleURL.js.map +0 -1
- package/lib/module/utils/MapLibreRNStyles.d.js +0 -180
- package/lib/module/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/module/utils/deprecation.js +0 -27
- package/lib/module/utils/deprecation.js.map +0 -1
- package/lib/module/utils/styleMap.js +0 -249
- package/lib/module/utils/styleMap.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/components/Style.d.ts +0 -81
- package/lib/typescript/commonjs/src/components/Style.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/commonjs/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts +0 -6
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/commonjs/src/utils/styleMap.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/components/Style.d.ts +0 -81
- package/lib/typescript/module/src/components/Style.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/lib/typescript/module/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/module/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/deprecation.d.ts +0 -6
- package/lib/typescript/module/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/module/src/utils/styleMap.d.ts.map +0 -1
- package/plugin/build/withMapLibre.d.ts +0 -12
- package/plugin/build/withMapLibre.js +0 -148
- package/src/components/Style.tsx +0 -371
- package/src/types/StyleURL.ts +0 -3
- package/src/utils/deprecation.ts +0 -31
- package/src/utils/styleMap.ts +0 -265
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Component, type
|
|
1
|
+
import { Component, type ReactNode } from "react";
|
|
2
2
|
import { type NativeMethods, type NativeSyntheticEvent } from "react-native";
|
|
3
3
|
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type ExpressionField, type FilterExpression } from "../types/MapLibreRNStyles";
|
|
4
5
|
import { type OnPressEvent } from "../types/OnPressEvent";
|
|
5
|
-
import { type ExpressionField, type FilterExpression } from "../utils/MapLibreRNStyles";
|
|
6
6
|
export declare const NATIVE_MODULE_NAME = "MLRNShapeSource";
|
|
7
|
-
export declare const SHAPE_SOURCE_NATIVE_ASSETS_KEY = "assets";
|
|
8
7
|
interface NativeProps {
|
|
9
8
|
shape?: string;
|
|
10
9
|
}
|
|
@@ -47,7 +46,7 @@ export interface ShapeSourceProps extends BaseProps {
|
|
|
47
46
|
* it accumulates the property value from clusters/points the cluster contains
|
|
48
47
|
* `map_expression` produces the value of a single point
|
|
49
48
|
*
|
|
50
|
-
*
|
|
49
|
+
* @example `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }`
|
|
51
50
|
*
|
|
52
51
|
*/
|
|
53
52
|
clusterProperties?: {
|
|
@@ -79,18 +78,11 @@ export interface ShapeSourceProps extends BaseProps {
|
|
|
79
78
|
*/
|
|
80
79
|
lineMetrics?: boolean;
|
|
81
80
|
/**
|
|
82
|
-
* Source press listener, gets called when a user presses one of the children layers only
|
|
83
|
-
* if that layer has a higher z-index than another source layers
|
|
84
|
-
*
|
|
85
|
-
* @param {Object} event
|
|
86
|
-
* @param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)
|
|
87
|
-
* @param {Object} event.coordinates - the coordinates of the click
|
|
88
|
-
* @param {Object} event.point - the point of the click
|
|
89
|
-
* @return void
|
|
81
|
+
* Source press listener, gets called when a user presses one of the children layers only if that layer has a higher z-index than another source layers.
|
|
90
82
|
*/
|
|
91
83
|
onPress?: (event: OnPressEvent) => void;
|
|
92
84
|
/**
|
|
93
|
-
* Overrides the default touch hitbox(44x44 pixels) for the source layers
|
|
85
|
+
* Overrides the default touch hitbox (44x44 pixels) for the source layers
|
|
94
86
|
*/
|
|
95
87
|
hitbox?: {
|
|
96
88
|
/**
|
|
@@ -102,7 +94,7 @@ export interface ShapeSourceProps extends BaseProps {
|
|
|
102
94
|
*/
|
|
103
95
|
height: number;
|
|
104
96
|
};
|
|
105
|
-
children?:
|
|
97
|
+
children?: ReactNode;
|
|
106
98
|
}
|
|
107
99
|
export interface ShapeSourceRef {
|
|
108
100
|
features(filter?: FilterExpression): Promise<GeoJSON.FeatureCollection>;
|
|
@@ -119,6 +111,6 @@ export interface ShapeSourceRef {
|
|
|
119
111
|
* ShapeSource is a map content source that supplies vector shapes to be shown on the map.
|
|
120
112
|
* The shape may be a url or a GeoJSON object
|
|
121
113
|
*/
|
|
122
|
-
declare const ShapeSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ShapeSourceProps & import("react").RefAttributes<ShapeSourceRef>>>;
|
|
123
|
-
export
|
|
114
|
+
export declare const ShapeSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ShapeSourceProps & import("react").RefAttributes<ShapeSourceRef>>>;
|
|
115
|
+
export {};
|
|
124
116
|
//# sourceMappingURL=ShapeSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/ShapeSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"ShapeSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/ShapeSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAGT,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAU1D,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,sBAAsB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAE/E,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EACF,OAAO,CAAC,kBAAkB,GAC1B,OAAO,CAAC,OAAO,GACf,OAAO,CAAC,iBAAiB,GACzB,OAAO,C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W,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC;QAAE,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC,KAAK,IAAI,CAAC;IAG1E,UAAU,EAAE,sBAAsB,GAAG,SAAS,CAAC;CAChD;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,kJA2MvB,CAAC"}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import { type ReactElement } from "react";
|
|
2
1
|
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
2
|
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
-
import { type
|
|
3
|
+
import { type SymbolLayerStyle } from "../types/MapLibreRNStyles";
|
|
5
4
|
export declare const NATIVE_MODULE_NAME = "MLRNSymbolLayer";
|
|
6
5
|
export interface SymbolLayerProps extends BaseProps, BaseLayerProps {
|
|
7
6
|
/**
|
|
8
7
|
* Customizable style attributes
|
|
9
8
|
*/
|
|
10
|
-
style?:
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated passed children used to create an image with id of symbol in style and also set the iconImageName property accordingly.
|
|
13
|
-
* This is now deprecated, use Image component instead.
|
|
14
|
-
*/
|
|
15
|
-
children?: ReactElement | ReactElement[];
|
|
9
|
+
style?: SymbolLayerStyle;
|
|
16
10
|
}
|
|
17
11
|
/**
|
|
18
12
|
* SymbolLayer is a style layer that renders icon and text labels at points or along lines on the map.
|
|
19
13
|
*/
|
|
20
|
-
declare const SymbolLayer:
|
|
21
|
-
export default SymbolLayer;
|
|
14
|
+
export declare const SymbolLayer: ({ sourceID, ...props }: SymbolLayerProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
15
|
//# sourceMappingURL=SymbolLayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SymbolLayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SymbolLayer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,SAAS,EAAE,cAAc;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAQD;;GAEG;AACH,eAAO,MAAM,WAAW,2BAGrB,gBAAgB,4CAclB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type Location } from "../modules/location/
|
|
3
|
-
export declare const normalIcon: (showsUserHeadingIndicator?: boolean, heading?: number) =>
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type Location } from "../modules/location/LocationManager";
|
|
3
|
+
export declare const normalIcon: (showsUserHeadingIndicator?: boolean, heading?: number) => import("react/jsx-runtime").JSX.Element[];
|
|
4
4
|
interface UserLocationProps {
|
|
5
5
|
/**
|
|
6
6
|
* Whether location icon is animated between updates
|
|
@@ -52,7 +52,7 @@ interface UserLocationProps {
|
|
|
52
52
|
*
|
|
53
53
|
* NOTE: Forking maintainer does not understand the above comment.
|
|
54
54
|
*/
|
|
55
|
-
children?:
|
|
55
|
+
children?: ReactNode;
|
|
56
56
|
}
|
|
57
57
|
export declare enum UserLocationRenderMode {
|
|
58
58
|
Native = "native",
|
|
@@ -65,6 +65,6 @@ export interface UserLocationRef {
|
|
|
65
65
|
needsLocationManagerRunning: () => boolean;
|
|
66
66
|
_onLocationUpdate: (location: Location | null) => void;
|
|
67
67
|
}
|
|
68
|
-
declare const UserLocation: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<UserLocationProps & import("react").RefAttributes<UserLocationRef>>>;
|
|
69
|
-
export
|
|
68
|
+
export declare const UserLocation: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<UserLocationProps & import("react").RefAttributes<UserLocationRef>>>;
|
|
69
|
+
export {};
|
|
70
70
|
//# sourceMappingURL=UserLocation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,
|
|
1
|
+
{"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAMf,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,qCAAqC,CAAC;AAwB7C,eAAO,MAAM,UAAU,+BACO,OAAO,YACzB,MAAM,8CAqBjB,CAAC;AAEF,UAAU,iBAAiB;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IACjD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACpC;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAQD,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,kBAAkB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,2BAA2B,EAAE,MAAM,OAAO,CAAC;IAC3C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;CACxD;AAED,eAAO,MAAM,YAAY,oJAwKxB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
import { type BaseProps } from "../types/BaseProps";
|
|
2
3
|
import { type OnPressEvent } from "../types/OnPressEvent";
|
|
3
4
|
export declare const NATIVE_MODULE_NAME = "MLRNVectorSource";
|
|
@@ -39,11 +40,6 @@ interface VectorSourceProps extends BaseProps {
|
|
|
39
40
|
/**
|
|
40
41
|
* Source press listener, gets called when a user presses one of the children layers only
|
|
41
42
|
* if that layer has a higher z-index than another source layers
|
|
42
|
-
*
|
|
43
|
-
* @param {Object} event
|
|
44
|
-
* @param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)
|
|
45
|
-
* @param {Object} event.coordinates - the coordinates of the click
|
|
46
|
-
* @param {Object} event.point - the point of the click
|
|
47
43
|
*/
|
|
48
44
|
onPress?: (event: OnPressEvent) => void;
|
|
49
45
|
/**
|
|
@@ -59,12 +55,12 @@ interface VectorSourceProps extends BaseProps {
|
|
|
59
55
|
*/
|
|
60
56
|
height: number;
|
|
61
57
|
};
|
|
62
|
-
children?:
|
|
58
|
+
children?: ReactNode;
|
|
63
59
|
}
|
|
64
60
|
/**
|
|
65
61
|
* VectorSource is a map content source that supplies tiled vector data in Mapbox Vector Tile format to be shown on the map.
|
|
66
62
|
* The location of and metadata about the tiles are defined either by an option dictionary or by an external file that conforms to the TileJSON specification.
|
|
67
63
|
*/
|
|
68
|
-
declare const VectorSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<VectorSourceProps & import("react").RefAttributes<unknown>>>;
|
|
69
|
-
export
|
|
64
|
+
export declare const VectorSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<VectorSourceProps & import("react").RefAttributes<unknown>>>;
|
|
65
|
+
export {};
|
|
70
66
|
//# sourceMappingURL=VectorSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/VectorSource.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/VectorSource.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAS9E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAM1D,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,UAAU,iBAAkB,SAAQ,SAAS;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAOD;;;GAGG;AACH,eAAO,MAAM,YAAY,4IA4GxB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type Component } from "react";
|
|
1
2
|
import { processColor, type NativeMethods } from "react-native";
|
|
2
3
|
import { type BaseProps } from "../types/BaseProps";
|
|
3
|
-
import { type
|
|
4
|
+
import { type AllLayerStyle, type FilterExpression } from "../types/MapLibreRNStyles";
|
|
4
5
|
import { type StyleValue } from "../utils/StyleValue";
|
|
5
6
|
export interface BaseLayerProps {
|
|
6
7
|
/**
|
|
@@ -44,16 +45,16 @@ export interface BaseLayerProps {
|
|
|
44
45
|
/**
|
|
45
46
|
* Customizable style attributes
|
|
46
47
|
*/
|
|
47
|
-
style?:
|
|
48
|
+
style?: AllLayerStyle;
|
|
48
49
|
}
|
|
49
50
|
export interface NativeBaseProps {
|
|
50
51
|
reactStyle?: {
|
|
51
52
|
[key: string]: StyleValue;
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
|
-
export
|
|
55
|
+
export declare function useAbstractLayer<Props extends BaseProps, NativeProps extends NativeBaseProps>(props: Props & BaseLayerProps): {
|
|
55
56
|
baseProps: Props & BaseLayerProps;
|
|
56
|
-
setNativeLayer: (instance: (
|
|
57
|
+
setNativeLayer: (instance: (Component<NativeProps> & Readonly<NativeMethods>) | null) => void;
|
|
57
58
|
getStyleTypeFormatter: (styleType: string) => typeof processColor | undefined;
|
|
58
59
|
setNativeProps: (nativeProps: {
|
|
59
60
|
[key: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAbstractLayer.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractLayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAbstractLayer.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AACxD,OAA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AG,SAAS,CAAC;IAC9E,cAAc,EAAE,CAAC,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CACnE,CAoDA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
1
2
|
import { type NativeMethods } from "react-native";
|
|
2
|
-
export
|
|
3
|
-
_nativeRef: (
|
|
4
|
-
setNativeRef: (instance:
|
|
3
|
+
export declare function useAbstractSource<NativePropsType extends object>(): {
|
|
4
|
+
_nativeRef: (Component<NativePropsType> & Readonly<NativeMethods>) | undefined;
|
|
5
|
+
setNativeRef: (instance: Component<NativePropsType> & Readonly<NativeMethods>) => void;
|
|
5
6
|
setNativeProps: (nativeProps: NativePropsType) => void;
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=useAbstractSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAbstractSource.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAbstractSource.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,wBAAgB,iBAAiB,CAAC,eAAe,SAAS,MAAM,KAAK;IACnE,UAAU,EACN,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,GACtD,SAAS,CAAC;IACd,YAAY,EAAE,CACZ,QAAQ,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,KAC3D,IAAI,CAAC;IACV,cAAc,EAAE,CAAC,WAAW,EAAE,eAAe,KAAK,IAAI,CAAC;CACxD,CAsBA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, type SyntheticEvent } from "react";
|
|
1
|
+
import { Component, type MutableRefObject, type SyntheticEvent } from "react";
|
|
2
2
|
import { type NativeArg } from "../utils";
|
|
3
3
|
export type RNMLEvent<PayloadType = {
|
|
4
4
|
[key: string]: string;
|
|
@@ -9,13 +9,13 @@ export type RNMLEvent<PayloadType = {
|
|
|
9
9
|
type UseNativeBridge = {
|
|
10
10
|
_nativeModuleName: string;
|
|
11
11
|
_onAndroidCallback: (e: SyntheticEvent<Element, RNMLEvent>) => void;
|
|
12
|
-
_callbackMap:
|
|
13
|
-
_preRefMapMethodQueue:
|
|
12
|
+
_callbackMap: MutableRefObject<Map<string, any>>;
|
|
13
|
+
_preRefMapMethodQueue: MutableRefObject<any[]>;
|
|
14
14
|
_addAddAndroidCallback: <ReturnType>(id: string, resolve: (value: ReturnType) => void, reject: (error: Error) => void) => void;
|
|
15
15
|
_removeAndroidCallback: (id: string) => void;
|
|
16
16
|
_runPendingNativeCommands: <RefType extends Component>(nativeRef: RefType | null | undefined) => Promise<void>;
|
|
17
17
|
_runNativeCommand: <RefType extends Component, ReturnType = NativeArg>(methodName: string, nativeRef: RefType | undefined | null, args?: NativeArg[]) => Promise<ReturnType>;
|
|
18
18
|
};
|
|
19
|
-
declare const useNativeBridge: (moduleName: string) => UseNativeBridge;
|
|
20
|
-
export
|
|
19
|
+
export declare const useNativeBridge: (moduleName: string) => UseNativeBridge;
|
|
20
|
+
export {};
|
|
21
21
|
//# sourceMappingURL=useNativeBridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNativeBridge.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useNativeBridge.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,cAAc,E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1,8 +1,8 @@
|
|
|
1
|
-
import { Component } from "react";
|
|
1
|
+
import { Component, type RefObject } from "react";
|
|
2
2
|
import { type NativeMethods } from "react-native";
|
|
3
3
|
export type NativeRef<NativeProps> = Component<NativeProps> & Readonly<NativeMethods>;
|
|
4
4
|
/**
|
|
5
5
|
* Separate module which allows to be mocked in tests.
|
|
6
6
|
*/
|
|
7
|
-
export declare function useNativeRef<NativeProps = object>():
|
|
7
|
+
export declare function useNativeRef<NativeProps = object>(): RefObject<NativeRef<NativeProps>>;
|
|
8
8
|
//# sourceMappingURL=useNativeRef.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNativeRef.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useNativeRef.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,WAAW,CAAC,GACzD,QAAQ,CAAC,aAAa,CAAC,CAAC;AAE1B;;GAEG;AACH,wBAAgB,YAAY,CAAC,WAAW,GAAG,MAAM,KAAK,SAAS,CAC7D,SAAS,CAAC,WAAW,CAAC,CACvB,CAEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOnce.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useOnce.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"useOnce.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useOnce.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,IAS/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,cAAc,cAAc,CAAC;AAE7B,eAAe,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,cAAc,cAAc,CAAC;AAE7B;;GAEG;AACH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NativeEventEmitter, type EmitterSubscription } from "react-native";
|
|
2
|
+
export declare const LocationModuleEventEmitter: NativeEventEmitter;
|
|
3
|
+
export interface Location {
|
|
4
|
+
coords: Coordinates;
|
|
5
|
+
timestamp?: number;
|
|
6
|
+
}
|
|
7
|
+
interface Coordinates {
|
|
8
|
+
heading?: number;
|
|
9
|
+
course?: number;
|
|
10
|
+
speed?: number;
|
|
11
|
+
latitude: number;
|
|
12
|
+
longitude: number;
|
|
13
|
+
accuracy?: number;
|
|
14
|
+
altitude?: number;
|
|
15
|
+
}
|
|
16
|
+
declare class LocationManager {
|
|
17
|
+
_listeners: ((location: Location) => void)[];
|
|
18
|
+
_lastKnownLocation: Location | null;
|
|
19
|
+
_isListening: boolean;
|
|
20
|
+
subscription: EmitterSubscription | null;
|
|
21
|
+
constructor();
|
|
22
|
+
getLastKnownLocation(): Promise<Location | null>;
|
|
23
|
+
addListener(listener: (location: Location) => void): void;
|
|
24
|
+
removeListener(listener: (location: Location) => void): void;
|
|
25
|
+
removeAllListeners(): void;
|
|
26
|
+
start(displacement?: number): void;
|
|
27
|
+
stop(): void;
|
|
28
|
+
setMinDisplacement(minDisplacement: number): void;
|
|
29
|
+
onUpdate(location: Location): void;
|
|
30
|
+
}
|
|
31
|
+
declare const locationManager: LocationManager;
|
|
32
|
+
export { locationManager as LocationManager };
|
|
33
|
+
//# sourceMappingURL=LocationManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationManager.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/location/LocationManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EAClB,KAAK,mBAAmB,EACzB,MAAM,cAAc,CAAC;AAKtB,eAAO,MAAM,0BAA0B,oBAEtC,CAAC;AAKF,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,UAAU,WAAW;IAOnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,QAAQ,EAAE,MAAM,CAAC;IAKjB,SAAS,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,cAAM,eAAe;IACnB,UAAU,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC;IAC7C,kBAAkB,EAAE,QAAQ,GAAG,IAAI,CAAC;IACpC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;;IAUnC,oBAAoB,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAsBtD,WAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAazD,cAAc,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAO5D,kBAAkB,IAAI,IAAI;IAK1B,KAAK,CAAC,YAAY,SAAI,GAAG,IAAI;IAa7B,IAAI,IAAI,IAAI;IAUZ,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI;IAIjD,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;CAKnC;AAED,QAAA,MAAM,eAAe,iBAAwB,CAAC;AAC9C,OAAO,EAAE,eAAe,IAAI,eAAe,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ export interface OfflineCreatePackInputOptions {
|
|
|
6
6
|
maxZoom?: number;
|
|
7
7
|
metadata?: Record<string, any>;
|
|
8
8
|
}
|
|
9
|
-
declare class OfflineCreatePackOptions {
|
|
9
|
+
export declare class OfflineCreatePackOptions {
|
|
10
10
|
name: string;
|
|
11
11
|
styleURL: string;
|
|
12
12
|
bounds: string;
|
|
@@ -17,5 +17,4 @@ declare class OfflineCreatePackOptions {
|
|
|
17
17
|
_assert(options: OfflineCreatePackInputOptions): void;
|
|
18
18
|
_makeMetadata(metadata?: Record<string, any>): string;
|
|
19
19
|
}
|
|
20
|
-
export default OfflineCreatePackOptions;
|
|
21
20
|
//# sourceMappingURL=OfflineCreatePackOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfflineCreatePackOptions.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/offline/OfflineCreatePackOptions.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,
|
|
1
|
+
{"version":3,"file":"OfflineCreatePackOptions.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/offline/OfflineCreatePackOptions.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,qBAAa,wBAAwB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;gBAEL,OAAO,EAAE,6BAA6B;IAWlD,OAAO,CAAC,OAAO,EAAE,6BAA6B,GAAG,IAAI;IAgBrD,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM;CAMtD"}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { NativeEventEmitter, type EventSubscription } from "react-native";
|
|
2
2
|
import { type OfflineCreatePackInputOptions } from "./OfflineCreatePackOptions";
|
|
3
|
-
import OfflinePack from "./OfflinePack";
|
|
3
|
+
import { OfflinePack, type OfflinePackStatus } from "./OfflinePack";
|
|
4
4
|
export declare const OfflineModuleEventEmitter: NativeEventEmitter;
|
|
5
|
-
export type OfflineProgressStatus = {
|
|
6
|
-
name: string;
|
|
7
|
-
state: number;
|
|
8
|
-
percentage: number;
|
|
9
|
-
completedResourceSize: number;
|
|
10
|
-
completedTileCount: number;
|
|
11
|
-
completedResourceCount: number;
|
|
12
|
-
requiredResourceCount: number;
|
|
13
|
-
completedTileSize: number;
|
|
14
|
-
};
|
|
15
5
|
export type OfflinePackError = {
|
|
16
6
|
name: string;
|
|
17
7
|
message: string;
|
|
@@ -20,9 +10,9 @@ type ErrorEvent = {
|
|
|
20
10
|
payload: OfflinePackError;
|
|
21
11
|
};
|
|
22
12
|
type ProgressEvent = {
|
|
23
|
-
payload:
|
|
13
|
+
payload: OfflinePackStatus;
|
|
24
14
|
};
|
|
25
|
-
type ProgressListener = (pack: OfflinePack, status:
|
|
15
|
+
type ProgressListener = (pack: OfflinePack, status: OfflinePackStatus) => void;
|
|
26
16
|
type ErrorListener = (pack: OfflinePack, err: OfflinePackError) => void;
|
|
27
17
|
/**
|
|
28
18
|
* OfflineManager implements a singleton (shared object) that manages offline packs.
|
|
@@ -45,7 +35,7 @@ declare class OfflineManager {
|
|
|
45
35
|
* const progressListener = (offlineRegion, status) => console.log(offlineRegion, status);
|
|
46
36
|
* const errorListener = (offlineRegion, err) => console.log(offlineRegion, err);
|
|
47
37
|
*
|
|
48
|
-
* await
|
|
38
|
+
* await OfflineManager.createPack({
|
|
49
39
|
* name: 'offlinePack',
|
|
50
40
|
* styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json',
|
|
51
41
|
* minZoom: 14,
|
|
@@ -65,9 +55,9 @@ declare class OfflineManager {
|
|
|
65
55
|
* This is more efficient than deleting the offline pack and downloading it again. If the data stored locally matches that on the server, new data will not be downloaded.
|
|
66
56
|
*
|
|
67
57
|
* @example
|
|
68
|
-
* await
|
|
58
|
+
* await OfflineManager.invalidatePack('packName')
|
|
69
59
|
*
|
|
70
|
-
* @param {
|
|
60
|
+
* @param {string} name Name of the offline pack.
|
|
71
61
|
* @return {void}
|
|
72
62
|
*/
|
|
73
63
|
invalidatePack(name: string): Promise<void>;
|
|
@@ -75,9 +65,9 @@ declare class OfflineManager {
|
|
|
75
65
|
* Unregisters the given offline pack and allows resources that are no longer required by any remaining packs to be potentially freed.
|
|
76
66
|
*
|
|
77
67
|
* @example
|
|
78
|
-
* await
|
|
68
|
+
* await OfflineManager.deletePack('packName')
|
|
79
69
|
*
|
|
80
|
-
* @param {
|
|
70
|
+
* @param {string} name Name of the offline pack.
|
|
81
71
|
* @return {void}
|
|
82
72
|
*/
|
|
83
73
|
deletePack(name: string): Promise<void>;
|
|
@@ -88,7 +78,7 @@ declare class OfflineManager {
|
|
|
88
78
|
* It does not erase resources from the ambient cache or delete the database, which can be computationally expensive operations that may carry unintended side effects.
|
|
89
79
|
*
|
|
90
80
|
* @example
|
|
91
|
-
* await
|
|
81
|
+
* await OfflineManager.invalidateAmbientCache();
|
|
92
82
|
*
|
|
93
83
|
* @return {void}
|
|
94
84
|
*/
|
|
@@ -98,7 +88,7 @@ declare class OfflineManager {
|
|
|
98
88
|
* This method clears the cache and decreases the amount of space that map resources take up on the device.
|
|
99
89
|
*
|
|
100
90
|
* @example
|
|
101
|
-
* await
|
|
91
|
+
* await OfflineManager.clearAmbientCache();
|
|
102
92
|
*
|
|
103
93
|
* @return {void}
|
|
104
94
|
*/
|
|
@@ -108,9 +98,9 @@ declare class OfflineManager {
|
|
|
108
98
|
* This method may be computationally expensive because it will erase resources from the ambient cache if its size is decreased.
|
|
109
99
|
*
|
|
110
100
|
* @example
|
|
111
|
-
* await
|
|
101
|
+
* await OfflineManager.setMaximumAmbientCacheSize(5000000);
|
|
112
102
|
*
|
|
113
|
-
* @param {
|
|
103
|
+
* @param {number} size Size of ambient cache.
|
|
114
104
|
* @return {void}
|
|
115
105
|
*/
|
|
116
106
|
setMaximumAmbientCacheSize(size: number): Promise<void>;
|
|
@@ -118,7 +108,7 @@ declare class OfflineManager {
|
|
|
118
108
|
* Deletes the existing database, which includes both the ambient cache and offline packs, then reinitializes it.
|
|
119
109
|
*
|
|
120
110
|
* @example
|
|
121
|
-
* await
|
|
111
|
+
* await OfflineManager.resetDatabase();
|
|
122
112
|
*
|
|
123
113
|
* @return {void}
|
|
124
114
|
*/
|
|
@@ -127,7 +117,7 @@ declare class OfflineManager {
|
|
|
127
117
|
* Retrieves all the current offline packs that are stored in the database.
|
|
128
118
|
*
|
|
129
119
|
* @example
|
|
130
|
-
* const offlinePacks = await
|
|
120
|
+
* const offlinePacks = await OfflineManager.getPacks();
|
|
131
121
|
*
|
|
132
122
|
* @return {Array<OfflinePack>}
|
|
133
123
|
*/
|
|
@@ -136,9 +126,9 @@ declare class OfflineManager {
|
|
|
136
126
|
* Retrieves an offline pack that is stored in the database by name.
|
|
137
127
|
*
|
|
138
128
|
* @example
|
|
139
|
-
* const offlinePack = await
|
|
129
|
+
* const offlinePack = await OfflineManager.getPack();
|
|
140
130
|
*
|
|
141
|
-
* @param {
|
|
131
|
+
* @param {string} name Name of the offline pack.
|
|
142
132
|
* @return {OfflinePack}
|
|
143
133
|
*/
|
|
144
134
|
getPack(name: string): Promise<OfflinePack | undefined>;
|
|
@@ -146,9 +136,9 @@ declare class OfflineManager {
|
|
|
146
136
|
* Sideloads offline db
|
|
147
137
|
*
|
|
148
138
|
* @example
|
|
149
|
-
* await
|
|
139
|
+
* await OfflineManager.mergeOfflineRegions(path);
|
|
150
140
|
*
|
|
151
|
-
* @param {
|
|
141
|
+
* @param {string} path Path to offline tile db on file system.
|
|
152
142
|
* @return {void}
|
|
153
143
|
*/
|
|
154
144
|
mergeOfflineRegions(path: string): Promise<void>;
|
|
@@ -157,9 +147,9 @@ declare class OfflineManager {
|
|
|
157
147
|
* Consult the Terms of Service for your map tile host before changing this value.
|
|
158
148
|
*
|
|
159
149
|
* @example
|
|
160
|
-
*
|
|
150
|
+
* OfflineManager.setTileCountLimit(1000);
|
|
161
151
|
*
|
|
162
|
-
* @param {
|
|
152
|
+
* @param {number} limit Map tile limit count.
|
|
163
153
|
* @return {void}
|
|
164
154
|
*/
|
|
165
155
|
setTileCountLimit(limit: number): void;
|
|
@@ -168,9 +158,9 @@ declare class OfflineManager {
|
|
|
168
158
|
* The default is 500ms.
|
|
169
159
|
*
|
|
170
160
|
* @example
|
|
171
|
-
*
|
|
161
|
+
* OfflineManager.setProgressEventThrottle(500);
|
|
172
162
|
*
|
|
173
|
-
* @param {
|
|
163
|
+
* @param {number} throttleValue event throttle value in ms.
|
|
174
164
|
* @return {void}
|
|
175
165
|
*/
|
|
176
166
|
setProgressEventThrottle(throttleValue: number): void;
|
|
@@ -181,7 +171,7 @@ declare class OfflineManager {
|
|
|
181
171
|
* @example
|
|
182
172
|
* const progressListener = (offlinePack, status) => console.log(offlinePack, status)
|
|
183
173
|
* const errorListener = (offlinePack, err) => console.log(offlinePack, err)
|
|
184
|
-
*
|
|
174
|
+
* OfflineManager.subscribe('packName', progressListener, errorListener)
|
|
185
175
|
*
|
|
186
176
|
* @param {string} packName Name of the offline pack.
|
|
187
177
|
* @param {ProgressListener} progressListener Callback that listens for status events while downloading the offline resource.
|
|
@@ -194,9 +184,9 @@ declare class OfflineManager {
|
|
|
194
184
|
* It's a good idea to call this on componentWillUnmount.
|
|
195
185
|
*
|
|
196
186
|
* @example
|
|
197
|
-
*
|
|
187
|
+
* OfflineManager.unsubscribe('packName')
|
|
198
188
|
*
|
|
199
|
-
* @param {
|
|
189
|
+
* @param {string} packName Name of the offline pack.
|
|
200
190
|
* @return {void}
|
|
201
191
|
*/
|
|
202
192
|
unsubscribe(packName: string): void;
|
|
@@ -206,5 +196,5 @@ declare class OfflineManager {
|
|
|
206
196
|
_hasListeners(name: string, listenerMap: Record<string, ProgressListener> | Record<string, ErrorListener>): boolean;
|
|
207
197
|
}
|
|
208
198
|
declare const offlineManager: OfflineManager;
|
|
209
|
-
export
|
|
210
|
-
//# sourceMappingURL=
|
|
199
|
+
export { offlineManager as OfflineManager };
|
|
200
|
+
//# sourceMappingURL=OfflineManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfflineManager.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/offline/OfflineManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EAClB,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,WAA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@@
|
|
|
1
|
-
import OfflineCreatePackOptions from "./OfflineCreatePackOptions";
|
|
1
|
+
import { OfflineCreatePackOptions } from "./OfflineCreatePackOptions";
|
|
2
2
|
export type OfflinePackStatus = {
|
|
3
3
|
name: string;
|
|
4
4
|
state: number;
|
|
5
5
|
percentage: number;
|
|
6
6
|
completedResourceCount: number;
|
|
7
7
|
completedResourceSize: number;
|
|
8
|
-
completedTileSize: number;
|
|
9
8
|
completedTileCount: number;
|
|
9
|
+
completedTileSize: number;
|
|
10
10
|
requiredResourceCount: number;
|
|
11
11
|
};
|
|
12
|
-
declare class OfflinePack {
|
|
12
|
+
export declare class OfflinePack {
|
|
13
13
|
private pack;
|
|
14
14
|
private _metadata;
|
|
15
15
|
constructor(pack: OfflineCreatePackOptions);
|
|
@@ -20,5 +20,4 @@ declare class OfflinePack {
|
|
|
20
20
|
resume(): Promise<void>;
|
|
21
21
|
pause(): Promise<void>;
|
|
22
22
|
}
|
|
23
|
-
export default OfflinePack;
|
|
24
23
|
//# sourceMappingURL=OfflinePack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfflinePack.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/offline/OfflinePack.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"OfflinePack.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/offline/OfflinePack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAItE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,qBAAa,WAAW;IACtB,OAAO,CAAC,IAAI,CAA2B;IACvC,OAAO,CAAC,SAAS,CAA6B;gBAElC,IAAI,EAAE,wBAAwB;IAK1C,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAGxB;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAKzC;IAED,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAIpC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAGvB"}
|