@maplibre/maplibre-react-native 10.0.0-beta.9 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -54
- package/android/build.gradle +35 -12
- package/android/gradle.properties +14 -6
- 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/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 +49 -24
- 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/MLRNCamera.m +6 -7
- 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/MLRNStyle.m +0 -40
- package/lib/commonjs/MLRNModule.js +3 -5
- package/lib/commonjs/MLRNModule.js.map +1 -1
- 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 +69 -76
- 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 +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 +21 -23
- 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/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 +1 -2
- package/lib/module/MLRNModule.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 +65 -72
- 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 +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 +14 -15
- 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/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 +2 -6
- package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +43 -30
- 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 -15
- 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 -15
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +3 -4
- 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/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/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 +2 -6
- package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/module/src/MapLibreRN.d.ts +43 -30
- 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 -15
- 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 -15
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +3 -4
- 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/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/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 +15 -10
- package/src/MapLibreRN.ts +59 -41
- 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 +7 -9
- package/src/components/Light.tsx +5 -7
- package/src/components/LineLayer.tsx +7 -9
- package/src/components/MapView.tsx +85 -94
- 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 +17 -22
- package/src/components/SymbolLayer.tsx +7 -8
- package/src/components/UserLocation.tsx +21 -22
- package/src/components/VectorSource.tsx +8 -15
- 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} +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/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/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/styleMap.js +0 -255
- package/lib/commonjs/utils/styleMap.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/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/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/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/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/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/types/StyleURL.ts +0 -3
- package/src/utils/styleMap.ts +0 -265
package/src/utils/BridgeValue.ts
CHANGED
package/src/utils/Logger.ts
CHANGED
|
@@ -14,7 +14,7 @@ interface Log {
|
|
|
14
14
|
|
|
15
15
|
type LogCallback = (log: Log) => boolean;
|
|
16
16
|
|
|
17
|
-
class Logger {
|
|
17
|
+
export class Logger {
|
|
18
18
|
static instance: Logger | null = null;
|
|
19
19
|
|
|
20
20
|
static sharedInstance(): Logger {
|
|
@@ -129,5 +129,3 @@ class Logger {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
export default Logger;
|
package/src/utils/StyleValue.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Image, processColor } from "react-native";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import {
|
|
4
|
+
BridgeValue,
|
|
4
5
|
type RawValueType,
|
|
5
6
|
type StyleValueJSON,
|
|
6
7
|
} from "./BridgeValue";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
8
|
+
import { getStylePropertyType } from "./getStylePropertyType";
|
|
9
|
+
import { type AllLayerStyle } from "../types/MapLibreRNStyles";
|
|
9
10
|
|
|
10
11
|
export type StyleValue = {
|
|
11
12
|
styletype: string;
|
|
@@ -13,7 +14,7 @@ export type StyleValue = {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export function transformStyle(
|
|
16
|
-
style:
|
|
17
|
+
style: AllLayerStyle | undefined,
|
|
17
18
|
): undefined | { [key: string]: StyleValue } {
|
|
18
19
|
if (!style) {
|
|
19
20
|
return undefined;
|
|
@@ -22,7 +23,7 @@ export function transformStyle(
|
|
|
22
23
|
const nativeStyle: { [key: string]: StyleValue } = {};
|
|
23
24
|
const styleProps = Object.keys(style) as (keyof typeof style)[];
|
|
24
25
|
for (const styleProp of styleProps) {
|
|
25
|
-
const styleType =
|
|
26
|
+
const styleType = getStylePropertyType(styleProp);
|
|
26
27
|
let rawStyle: RawValueType | undefined = style[styleProp];
|
|
27
28
|
|
|
28
29
|
if (styleType === "color" && typeof rawStyle === "string") {
|
|
@@ -17,7 +17,9 @@ const defaultConfig = {
|
|
|
17
17
|
useNativeDriver: false,
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
abstract class AbstractAnimatedCoordinates<
|
|
20
|
+
export abstract class AbstractAnimatedCoordinates<
|
|
21
|
+
State,
|
|
22
|
+
> extends AnimatedWithChildren {
|
|
21
23
|
constructor(coords: AnimatedCoordinates[]) {
|
|
22
24
|
super();
|
|
23
25
|
|
|
@@ -130,5 +132,3 @@ abstract class AbstractAnimatedCoordinates<State> extends AnimatedWithChildren {
|
|
|
130
132
|
);
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
|
-
|
|
134
|
-
export default AbstractAnimatedCoordinates;
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
type ForwardRefExoticComponent,
|
|
3
|
+
type MemoExoticComponent,
|
|
4
|
+
type RefAttributes,
|
|
5
|
+
} from "react";
|
|
2
6
|
import { Animated as RNAnimated } from "react-native";
|
|
3
7
|
|
|
4
|
-
import AnimatedCoordinatesArray from "./AnimatedCoordinatesArray";
|
|
5
|
-
import AnimatedExtractCoordinateFromArray from "./AnimatedExtractCoordinateFromArray";
|
|
6
|
-
import AnimatedRouteCoordinatesArray from "./AnimatedRouteCoordinatesArray";
|
|
7
|
-
import AnimatedShape from "./AnimatedShape";
|
|
8
|
-
import BackgroundLayer from "../../components/BackgroundLayer";
|
|
9
|
-
import CircleLayer from "../../components/CircleLayer";
|
|
10
|
-
import FillExtrusionLayer from "../../components/FillExtrusionLayer";
|
|
11
|
-
import FillLayer from "../../components/FillLayer";
|
|
12
|
-
import ImageSource from "../../components/ImageSource";
|
|
13
|
-
import LineLayer from "../../components/LineLayer";
|
|
14
|
-
import RasterLayer from "../../components/RasterLayer";
|
|
15
|
-
import
|
|
8
|
+
import { AnimatedCoordinatesArray } from "./AnimatedCoordinatesArray";
|
|
9
|
+
import { AnimatedExtractCoordinateFromArray } from "./AnimatedExtractCoordinateFromArray";
|
|
10
|
+
import { AnimatedRouteCoordinatesArray } from "./AnimatedRouteCoordinatesArray";
|
|
11
|
+
import { AnimatedShape } from "./AnimatedShape";
|
|
12
|
+
import { BackgroundLayer } from "../../components/BackgroundLayer";
|
|
13
|
+
import { CircleLayer } from "../../components/CircleLayer";
|
|
14
|
+
import { FillExtrusionLayer } from "../../components/FillExtrusionLayer";
|
|
15
|
+
import { FillLayer } from "../../components/FillLayer";
|
|
16
|
+
import { ImageSource } from "../../components/ImageSource";
|
|
17
|
+
import { LineLayer } from "../../components/LineLayer";
|
|
18
|
+
import { RasterLayer } from "../../components/RasterLayer";
|
|
19
|
+
import {
|
|
20
|
+
ShapeSource,
|
|
16
21
|
type ShapeSourceProps,
|
|
17
22
|
type ShapeSourceRef,
|
|
18
23
|
} from "../../components/ShapeSource";
|
|
19
|
-
import SymbolLayer from "../../components/SymbolLayer";
|
|
24
|
+
import { SymbolLayer } from "../../components/SymbolLayer";
|
|
20
25
|
|
|
21
|
-
const Animated = {
|
|
26
|
+
export const Animated = {
|
|
22
27
|
// sources
|
|
23
28
|
ShapeSource: RNAnimated.createAnimatedComponent(ShapeSource),
|
|
24
29
|
ImageSource: RNAnimated.createAnimatedComponent(ImageSource),
|
|
@@ -39,15 +44,14 @@ const Animated = {
|
|
|
39
44
|
ExtractCoordinateFromArray: AnimatedExtractCoordinateFromArray,
|
|
40
45
|
};
|
|
41
46
|
|
|
42
|
-
type ShapeSourcePropsWithRef = ShapeSourceProps &
|
|
43
|
-
React.RefAttributes<ShapeSourceRef>;
|
|
47
|
+
type ShapeSourcePropsWithRef = ShapeSourceProps & RefAttributes<ShapeSourceRef>;
|
|
44
48
|
|
|
45
49
|
type BaseShapeSourceComponent =
|
|
46
|
-
|
|
50
|
+
ForwardRefExoticComponent<ShapeSourcePropsWithRef>;
|
|
47
51
|
|
|
48
52
|
type AnimatedShapeSourceType =
|
|
49
53
|
RNAnimated.AnimatedComponent<BaseShapeSourceComponent> &
|
|
50
|
-
|
|
54
|
+
MemoExoticComponent<BaseShapeSourceComponent>;
|
|
51
55
|
|
|
52
56
|
/**
|
|
53
57
|
* Manual typing is required for AnimatedShapeSource because the
|
|
@@ -57,5 +61,3 @@ type AnimatedShapeSourceType =
|
|
|
57
61
|
export const AnimatedShapeSource = RNAnimated.createAnimatedComponent(
|
|
58
62
|
ShapeSource,
|
|
59
63
|
) as AnimatedShapeSourceType;
|
|
60
|
-
|
|
61
|
-
export default Animated;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
AbstractAnimatedCoordinates,
|
|
2
3
|
type AnimatedCoordinates,
|
|
3
4
|
} from "./AbstractAnimatedCoordinates";
|
|
4
5
|
|
|
@@ -7,7 +8,7 @@ interface CoordinatesState {
|
|
|
7
8
|
targetCoords: AnimatedCoordinates[];
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesState> {
|
|
11
|
+
export class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesState> {
|
|
11
12
|
/**
|
|
12
13
|
* Subclasses can override to calculate initial state
|
|
13
14
|
*
|
|
@@ -109,5 +110,3 @@ class AnimatedCoordinatesArray extends AbstractAnimatedCoordinates<CoordinatesSt
|
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
-
export default AnimatedCoordinatesArray;
|
|
@@ -11,7 +11,7 @@ if (__DEV__) {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
|
|
15
15
|
_array: AnimatedExtractCoordinateFromArray;
|
|
16
16
|
|
|
17
17
|
_index = 0;
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
import length from "@turf/length";
|
|
10
10
|
import nearestPointOnLine from "@turf/nearest-point-on-line";
|
|
11
11
|
|
|
12
|
-
import
|
|
12
|
+
import {
|
|
13
|
+
AbstractAnimatedCoordinates,
|
|
13
14
|
type AnimatedCoordinates,
|
|
14
15
|
} from "./AbstractAnimatedCoordinates";
|
|
15
16
|
|
|
@@ -25,7 +26,7 @@ interface AnimatedRouteState {
|
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
export
|
|
29
|
+
export class AnimatedRouteCoordinatesArray extends AbstractAnimatedCoordinates<AnimatedRouteState> {
|
|
29
30
|
/**
|
|
30
31
|
* Calculate initial state
|
|
31
32
|
*
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { Animated } from "react-native";
|
|
4
4
|
|
|
5
|
-
import AnimatedCoordinatesArray from "./AnimatedCoordinatesArray";
|
|
6
|
-
import AnimatedExtractCoordinateFromArray from "./AnimatedExtractCoordinateFromArray";
|
|
7
|
-
import AnimatedRouteCoordinatesArray from "./AnimatedRouteCoordinatesArray";
|
|
5
|
+
import { AnimatedCoordinatesArray } from "./AnimatedCoordinatesArray";
|
|
6
|
+
import { AnimatedExtractCoordinateFromArray } from "./AnimatedExtractCoordinateFromArray";
|
|
7
|
+
import { AnimatedRouteCoordinatesArray } from "./AnimatedRouteCoordinatesArray";
|
|
8
8
|
|
|
9
9
|
// see
|
|
10
10
|
// https://github.com/facebook/react-native/blob/master/Libraries/Animated/src/nodes/AnimatedWithChildren.js
|
|
@@ -34,7 +34,7 @@ type Shape =
|
|
|
34
34
|
* @example
|
|
35
35
|
* <AnimatedShapeSource ... shape={new AnimatedShape({type:'LineString', coordinates: animatedCoords})} />
|
|
36
36
|
*/
|
|
37
|
-
class AnimatedShape extends AnimatedWithChildren {
|
|
37
|
+
export class AnimatedShape extends AnimatedWithChildren {
|
|
38
38
|
// equivalent of AnimatedStyle for shapes
|
|
39
39
|
// https://github.com/facebook/react-native/blob/master/Libraries/Animated/src/nodes/AnimatedStyle.js
|
|
40
40
|
|
|
@@ -89,5 +89,3 @@ class AnimatedShape extends AnimatedWithChildren {
|
|
|
89
89
|
super.__detach();
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
export default AnimatedShape;
|
package/src/utils/filterUtils.ts
CHANGED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// DO NOT MODIFY
|
|
3
|
+
// This file is auto-generated from scripts/templates/getStylePropertyType.ts.ejs
|
|
4
|
+
|
|
5
|
+
import { isAndroid } from "./index";
|
|
6
|
+
|
|
7
|
+
const StyleType = {
|
|
8
|
+
Constant: "constant",
|
|
9
|
+
Color: "color",
|
|
10
|
+
Transition: "transition",
|
|
11
|
+
Translation: "translation",
|
|
12
|
+
Function: "function",
|
|
13
|
+
Image: "image",
|
|
14
|
+
Enum: "enum",
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const STYLE_MAP = {
|
|
18
|
+
fillSortKey: StyleType.Constant,
|
|
19
|
+
fillAntialias: StyleType.Constant,
|
|
20
|
+
fillOpacity: StyleType.Constant,
|
|
21
|
+
fillOpacityTransition: StyleType.Transition,
|
|
22
|
+
fillColor: StyleType.Color,
|
|
23
|
+
fillColorTransition: StyleType.Transition,
|
|
24
|
+
fillOutlineColor: StyleType.Color,
|
|
25
|
+
fillOutlineColorTransition: StyleType.Transition,
|
|
26
|
+
fillTranslate: StyleType.Translation,
|
|
27
|
+
fillTranslateTransition: StyleType.Transition,
|
|
28
|
+
fillTranslateAnchor: StyleType.Enum,
|
|
29
|
+
fillPattern: StyleType.Image,
|
|
30
|
+
fillPatternTransition: StyleType.Transition,
|
|
31
|
+
|
|
32
|
+
lineCap: StyleType.Enum,
|
|
33
|
+
lineJoin: StyleType.Enum,
|
|
34
|
+
lineMiterLimit: StyleType.Constant,
|
|
35
|
+
lineRoundLimit: StyleType.Constant,
|
|
36
|
+
lineSortKey: StyleType.Constant,
|
|
37
|
+
lineOpacity: StyleType.Constant,
|
|
38
|
+
lineOpacityTransition: StyleType.Transition,
|
|
39
|
+
lineColor: StyleType.Color,
|
|
40
|
+
lineColorTransition: StyleType.Transition,
|
|
41
|
+
lineTranslate: StyleType.Translation,
|
|
42
|
+
lineTranslateTransition: StyleType.Transition,
|
|
43
|
+
lineTranslateAnchor: StyleType.Enum,
|
|
44
|
+
lineWidth: StyleType.Constant,
|
|
45
|
+
lineWidthTransition: StyleType.Transition,
|
|
46
|
+
lineGapWidth: StyleType.Constant,
|
|
47
|
+
lineGapWidthTransition: StyleType.Transition,
|
|
48
|
+
lineOffset: StyleType.Constant,
|
|
49
|
+
lineOffsetTransition: StyleType.Transition,
|
|
50
|
+
lineBlur: StyleType.Constant,
|
|
51
|
+
lineBlurTransition: StyleType.Transition,
|
|
52
|
+
lineDasharray: StyleType.Constant,
|
|
53
|
+
lineDasharrayTransition: StyleType.Transition,
|
|
54
|
+
linePattern: StyleType.Image,
|
|
55
|
+
linePatternTransition: StyleType.Transition,
|
|
56
|
+
lineGradient: StyleType.Color,
|
|
57
|
+
|
|
58
|
+
symbolPlacement: StyleType.Enum,
|
|
59
|
+
symbolSpacing: StyleType.Constant,
|
|
60
|
+
symbolAvoidEdges: StyleType.Constant,
|
|
61
|
+
symbolSortKey: StyleType.Constant,
|
|
62
|
+
symbolZOrder: StyleType.Enum,
|
|
63
|
+
iconAllowOverlap: StyleType.Constant,
|
|
64
|
+
iconIgnorePlacement: StyleType.Constant,
|
|
65
|
+
iconOptional: StyleType.Constant,
|
|
66
|
+
iconRotationAlignment: StyleType.Enum,
|
|
67
|
+
iconSize: StyleType.Constant,
|
|
68
|
+
iconTextFit: StyleType.Enum,
|
|
69
|
+
iconTextFitPadding: StyleType.Constant,
|
|
70
|
+
iconImage: StyleType.Image,
|
|
71
|
+
iconRotate: StyleType.Constant,
|
|
72
|
+
iconPadding: StyleType.Constant,
|
|
73
|
+
iconKeepUpright: StyleType.Constant,
|
|
74
|
+
iconOffset: StyleType.Constant,
|
|
75
|
+
iconAnchor: StyleType.Enum,
|
|
76
|
+
iconPitchAlignment: StyleType.Enum,
|
|
77
|
+
textPitchAlignment: StyleType.Enum,
|
|
78
|
+
textRotationAlignment: StyleType.Enum,
|
|
79
|
+
textField: StyleType.Constant,
|
|
80
|
+
textFont: StyleType.Constant,
|
|
81
|
+
textSize: StyleType.Constant,
|
|
82
|
+
textMaxWidth: StyleType.Constant,
|
|
83
|
+
textLineHeight: StyleType.Constant,
|
|
84
|
+
textLetterSpacing: StyleType.Constant,
|
|
85
|
+
textJustify: StyleType.Enum,
|
|
86
|
+
textRadialOffset: StyleType.Constant,
|
|
87
|
+
textVariableAnchor: StyleType.Constant,
|
|
88
|
+
textAnchor: StyleType.Enum,
|
|
89
|
+
textMaxAngle: StyleType.Constant,
|
|
90
|
+
textWritingMode: StyleType.Constant,
|
|
91
|
+
textRotate: StyleType.Constant,
|
|
92
|
+
textPadding: StyleType.Constant,
|
|
93
|
+
textKeepUpright: StyleType.Constant,
|
|
94
|
+
textTransform: StyleType.Enum,
|
|
95
|
+
textOffset: StyleType.Constant,
|
|
96
|
+
textAllowOverlap: StyleType.Constant,
|
|
97
|
+
textIgnorePlacement: StyleType.Constant,
|
|
98
|
+
textOptional: StyleType.Constant,
|
|
99
|
+
iconOpacity: StyleType.Constant,
|
|
100
|
+
iconOpacityTransition: StyleType.Transition,
|
|
101
|
+
iconColor: StyleType.Color,
|
|
102
|
+
iconColorTransition: StyleType.Transition,
|
|
103
|
+
iconHaloColor: StyleType.Color,
|
|
104
|
+
iconHaloColorTransition: StyleType.Transition,
|
|
105
|
+
iconHaloWidth: StyleType.Constant,
|
|
106
|
+
iconHaloWidthTransition: StyleType.Transition,
|
|
107
|
+
iconHaloBlur: StyleType.Constant,
|
|
108
|
+
iconHaloBlurTransition: StyleType.Transition,
|
|
109
|
+
iconTranslate: StyleType.Translation,
|
|
110
|
+
iconTranslateTransition: StyleType.Transition,
|
|
111
|
+
iconTranslateAnchor: StyleType.Enum,
|
|
112
|
+
textOpacity: StyleType.Constant,
|
|
113
|
+
textOpacityTransition: StyleType.Transition,
|
|
114
|
+
textColor: StyleType.Color,
|
|
115
|
+
textColorTransition: StyleType.Transition,
|
|
116
|
+
textHaloColor: StyleType.Color,
|
|
117
|
+
textHaloColorTransition: StyleType.Transition,
|
|
118
|
+
textHaloWidth: StyleType.Constant,
|
|
119
|
+
textHaloWidthTransition: StyleType.Transition,
|
|
120
|
+
textHaloBlur: StyleType.Constant,
|
|
121
|
+
textHaloBlurTransition: StyleType.Transition,
|
|
122
|
+
textTranslate: StyleType.Translation,
|
|
123
|
+
textTranslateTransition: StyleType.Transition,
|
|
124
|
+
textTranslateAnchor: StyleType.Enum,
|
|
125
|
+
|
|
126
|
+
circleSortKey: StyleType.Constant,
|
|
127
|
+
circleRadius: StyleType.Constant,
|
|
128
|
+
circleRadiusTransition: StyleType.Transition,
|
|
129
|
+
circleColor: StyleType.Color,
|
|
130
|
+
circleColorTransition: StyleType.Transition,
|
|
131
|
+
circleBlur: StyleType.Constant,
|
|
132
|
+
circleBlurTransition: StyleType.Transition,
|
|
133
|
+
circleOpacity: StyleType.Constant,
|
|
134
|
+
circleOpacityTransition: StyleType.Transition,
|
|
135
|
+
circleTranslate: StyleType.Translation,
|
|
136
|
+
circleTranslateTransition: StyleType.Transition,
|
|
137
|
+
circleTranslateAnchor: StyleType.Enum,
|
|
138
|
+
circlePitchScale: StyleType.Enum,
|
|
139
|
+
circlePitchAlignment: StyleType.Enum,
|
|
140
|
+
circleStrokeWidth: StyleType.Constant,
|
|
141
|
+
circleStrokeWidthTransition: StyleType.Transition,
|
|
142
|
+
circleStrokeColor: StyleType.Color,
|
|
143
|
+
circleStrokeColorTransition: StyleType.Transition,
|
|
144
|
+
circleStrokeOpacity: StyleType.Constant,
|
|
145
|
+
circleStrokeOpacityTransition: StyleType.Transition,
|
|
146
|
+
|
|
147
|
+
heatmapRadius: StyleType.Constant,
|
|
148
|
+
heatmapRadiusTransition: StyleType.Transition,
|
|
149
|
+
heatmapWeight: StyleType.Constant,
|
|
150
|
+
heatmapIntensity: StyleType.Constant,
|
|
151
|
+
heatmapIntensityTransition: StyleType.Transition,
|
|
152
|
+
heatmapColor: StyleType.Color,
|
|
153
|
+
heatmapOpacity: StyleType.Constant,
|
|
154
|
+
heatmapOpacityTransition: StyleType.Transition,
|
|
155
|
+
|
|
156
|
+
fillExtrusionOpacity: StyleType.Constant,
|
|
157
|
+
fillExtrusionOpacityTransition: StyleType.Transition,
|
|
158
|
+
fillExtrusionColor: StyleType.Color,
|
|
159
|
+
fillExtrusionColorTransition: StyleType.Transition,
|
|
160
|
+
fillExtrusionTranslate: StyleType.Translation,
|
|
161
|
+
fillExtrusionTranslateTransition: StyleType.Transition,
|
|
162
|
+
fillExtrusionTranslateAnchor: StyleType.Enum,
|
|
163
|
+
fillExtrusionPattern: StyleType.Image,
|
|
164
|
+
fillExtrusionPatternTransition: StyleType.Transition,
|
|
165
|
+
fillExtrusionHeight: StyleType.Constant,
|
|
166
|
+
fillExtrusionHeightTransition: StyleType.Transition,
|
|
167
|
+
fillExtrusionBase: StyleType.Constant,
|
|
168
|
+
fillExtrusionBaseTransition: StyleType.Transition,
|
|
169
|
+
fillExtrusionVerticalGradient: StyleType.Constant,
|
|
170
|
+
|
|
171
|
+
rasterOpacity: StyleType.Constant,
|
|
172
|
+
rasterOpacityTransition: StyleType.Transition,
|
|
173
|
+
rasterHueRotate: StyleType.Constant,
|
|
174
|
+
rasterHueRotateTransition: StyleType.Transition,
|
|
175
|
+
rasterBrightnessMin: StyleType.Constant,
|
|
176
|
+
rasterBrightnessMinTransition: StyleType.Transition,
|
|
177
|
+
rasterBrightnessMax: StyleType.Constant,
|
|
178
|
+
rasterBrightnessMaxTransition: StyleType.Transition,
|
|
179
|
+
rasterSaturation: StyleType.Constant,
|
|
180
|
+
rasterSaturationTransition: StyleType.Transition,
|
|
181
|
+
rasterContrast: StyleType.Constant,
|
|
182
|
+
rasterContrastTransition: StyleType.Transition,
|
|
183
|
+
rasterResampling: StyleType.Enum,
|
|
184
|
+
rasterFadeDuration: StyleType.Constant,
|
|
185
|
+
|
|
186
|
+
hillshadeIlluminationDirection: StyleType.Constant,
|
|
187
|
+
hillshadeIlluminationAnchor: StyleType.Enum,
|
|
188
|
+
hillshadeExaggeration: StyleType.Constant,
|
|
189
|
+
hillshadeExaggerationTransition: StyleType.Transition,
|
|
190
|
+
hillshadeShadowColor: StyleType.Color,
|
|
191
|
+
hillshadeShadowColorTransition: StyleType.Transition,
|
|
192
|
+
hillshadeHighlightColor: StyleType.Color,
|
|
193
|
+
hillshadeHighlightColorTransition: StyleType.Transition,
|
|
194
|
+
hillshadeAccentColor: StyleType.Color,
|
|
195
|
+
hillshadeAccentColorTransition: StyleType.Transition,
|
|
196
|
+
|
|
197
|
+
backgroundColor: StyleType.Color,
|
|
198
|
+
backgroundColorTransition: StyleType.Transition,
|
|
199
|
+
backgroundPattern: StyleType.Image,
|
|
200
|
+
backgroundPatternTransition: StyleType.Transition,
|
|
201
|
+
backgroundOpacity: StyleType.Constant,
|
|
202
|
+
backgroundOpacityTransition: StyleType.Transition,
|
|
203
|
+
|
|
204
|
+
anchor: StyleType.Enum,
|
|
205
|
+
position: StyleType.Constant,
|
|
206
|
+
positionTransition: StyleType.Transition,
|
|
207
|
+
color: StyleType.Color,
|
|
208
|
+
colorTransition: StyleType.Transition,
|
|
209
|
+
intensity: StyleType.Constant,
|
|
210
|
+
intensityTransition: StyleType.Transition,
|
|
211
|
+
|
|
212
|
+
visibility: StyleType.Constant,
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
const STYLE_OVERRIDES = {
|
|
216
|
+
// padding
|
|
217
|
+
iconTextFitPadding: {
|
|
218
|
+
iosType: "edgeinsets",
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
// offsets
|
|
222
|
+
iconOffset: {
|
|
223
|
+
iosType: "vector",
|
|
224
|
+
},
|
|
225
|
+
textOffset: {
|
|
226
|
+
iosType: "vector",
|
|
227
|
+
},
|
|
228
|
+
lineOffset: {
|
|
229
|
+
iosType: "vector",
|
|
230
|
+
},
|
|
231
|
+
|
|
232
|
+
// translates
|
|
233
|
+
fillTranslate: {
|
|
234
|
+
iosType: "vector",
|
|
235
|
+
},
|
|
236
|
+
lineTranslate: {
|
|
237
|
+
iosType: "vector",
|
|
238
|
+
},
|
|
239
|
+
iconTranslate: {
|
|
240
|
+
iosType: "vector",
|
|
241
|
+
},
|
|
242
|
+
textTranslate: {
|
|
243
|
+
iosType: "vector",
|
|
244
|
+
},
|
|
245
|
+
circleTranslate: {
|
|
246
|
+
iosType: "vector",
|
|
247
|
+
},
|
|
248
|
+
fillExtrusionTranslate: {
|
|
249
|
+
iosType: "vector",
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export function getStylePropertyType(
|
|
254
|
+
styleProperty: keyof typeof STYLE_OVERRIDES,
|
|
255
|
+
): string {
|
|
256
|
+
if (!isAndroid() && STYLE_OVERRIDES[styleProperty]) {
|
|
257
|
+
return STYLE_OVERRIDES[styleProperty].iosType;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
if (STYLE_MAP[styleProperty]) {
|
|
261
|
+
return STYLE_MAP[styleProperty];
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
throw new Error(`${styleProperty} is not a valid MapLibre layer style`);
|
|
265
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","MapLibreRN","NativeModules","MLRNModule","MLRNLocationModule","LocationModuleEventEmitter","exports","NativeEventEmitter","LocationManager","constructor","_listeners","_lastKnownLocation","_isListening","onUpdate","bind","subscription","getLastKnownLocation","lastKnownLocation","error","console","log","addListener","listener","start","includes","push","removeListener","filter","l","length","stop","removeAllListeners","displacement","LocationCallbackName","Update","remove","setMinDisplacement","minDisplacement","location","forEach","_default","default"],"sourceRoot":"../../../../src","sources":["modules/location/locationManager.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,MAAMC,UAAU,GAAGC,0BAAa,CAACC,UAAU;AAC3C,MAAMC,kBAAkB,GAAGF,0BAAa,CAACE,kBAAkB;AAEpD,MAAMC,0BAA0B,GAAAC,OAAA,CAAAD,0BAAA,GAAG,IAAIE,+BAAkB,CAC9DH,kBACF,CAAC;;AAED;AACA;AACA;;AAMA;AACA;AACA;;AA0CA,MAAMI,eAAe,CAAC;EAMpBC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,UAAU,GAAG,EAAE;IACpB,IAAI,CAACC,kBAAkB,GAAG,IAAI;IAC9B,IAAI,CAACC,YAAY,GAAG,KAAK;IACzB,IAAI,CAACC,QAAQ,GAAG,IAAI,CAACA,QAAQ,CAACC,IAAI,CAAC,IAAI,CAAC;IACxC,IAAI,CAACC,YAAY,GAAG,IAAI;EAC1B;EAEA,MAAMC,oBAAoBA,CAAA,EAA6B;IACrD,IAAI,CAAC,IAAI,CAACL,kBAAkB,EAAE;MAC5B,IAAIM,iBAAiB;;MAErB;MACA;MACA;MACA;MACA,IAAI;QACFA,iBAAiB,GAAG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AoB,CAACC,MAAM,EACtC,IAAI,CAACrB,QACP,CAAC;MAED,IAAI,CAACD,YAAY,GAAG,IAAI;IAC1B;EACF;EAEAkB,IAAIA,CAAA,EAAS;IACX1B,kBAAkB,CAAC0B,IAAI,CAAC,CAAC;IAEzB,IAAI,IAAI,CAAClB,YAAY,EAAE;MACrB,IAAI,CAACG,YAAY,EAAEoB,MAAM,CAAC,CAAC;IAC7B;IAEA,IAAI,CAACvB,YAAY,GAAG,KAAK;EAC3B;EAEAwB,kBAAkBA,CAACC,eAAuB,EAAQ;IAChDjC,kBAAkB,CAACgC,kBAAkB,CAACC,eAAe,CAAC;EACxD;EAEAxB,QAAQA,CAACyB,QAAkB,EAAQ;IACjC,IAAI,CAAC3B,kBAAkB,GAAG2B,QAAQ;IAElC,IAAI,CAAC5B,UAAU,CAAC6B,OAAO,CAAEX,CAAC,IAAKA,CAAC,CAACU,QAAQ,CAAC,CAAC;EAC7C;AACF;AAAC,IAAAE,QAAA,GAAAlC,OAAA,CAAAmC,OAAA,GAEc,IAAIjC,eAAe,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_OfflineCreatePackOptions","_interopRequireDefault","_OfflinePack","_index","e","__esModule","default","MapLibreRN","NativeModules","MLRNModule","MLRNOfflineModule","OfflineModuleEventEmitter","exports","NativeEventEmitter","OfflineManager","constructor","_hasInitialized","_offlinePacks","_progressListeners","_errorListeners","_onProgress","bind","_onError","subscriptionProgress","subscriptionError","createPack","options","progressListener","errorListener","_initialize","packOptions","OfflineCreatePackOptions","name","Error","subscribe","nativeOfflinePack","OfflinePack","invalidatePack","offlinePack","deletePack","invalidateAmbientCache","clearAmbientCache","setMaximumAmbientCacheSize","size","resetDatabase","getPacks","Object","keys","map","filter","pack","getPack","mergeOfflineRegions","path","setTileCountLimit","limit","setProgressEventThrottle","throttleValue","packName","totalProgressListeners","length","isFunction","addListener","OfflineCallbackName","Progress","totalErrorListeners","isAndroid","setPackObserver","console","log","unsubscribe","remove","nativeOfflinePacks","state","payload","_hasListeners","OfflinePackDownloadState","Complete","listenerMap","isUndefined","offlineManager","_default"],"sourceRoot":"../../../../src","sources":["modules/offline/offlineManager.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,yBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAiE,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEjE,MAAMG,UAAU,GAAGC,0BAAa,CAACC,UAAU;AAC3C,MAAMC,iBAAiB,GAAGF,0BAAa,CAACE,iBAAiB;AAClD,MAAMC,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,IAAIE,+BAAkB,CAC7DH,iBACF,CAAC;AAkBD;AACA;AACA;AACA;AACA;AACA,MAAMI,cAAc,CAAC;EAQnBC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,eAAe,GAAG,KAAK;IAC5B,IAAI,CAACC,aAAa,GAAG,CAAC,CAAC;IAEvB,IAAI,CAACC,kBAAkB,GAAG,CAAC,CAAC;IAC5B,IAAI,CAACC,eAAe,GAAG,CAAC,CAAC;IAEzB,IAAI,CAACC,WAAW,GAAG,IAAI,CAACA,WAAW,CAACC,IAAI,CAAC,IAAI,CAAC;IAC9C,IAAI,CAACC,QAAQ,GAAG,IAAI,CAACA,QAAQ,CAACD,IAAI,CAAC,IAAI,CAAC;IAExC,IAAI,CAACE,oBAAoB,GAAG,IAAI;IAChC,IAAI,CAACC,iBAAiB,GAAG,IAAI;EAC/B;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,UAAU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ACX3C,IAAY,EACZ8C,WAEiC,EACxB;IACT,OACE,CAAC,IAAAC,kBAAW,EAAC,IAAI,CAAC9D,aAAa,CAACe,IAAI,CAAC,CAAC,IAAI,IAAA6B,iBAAU,EAACiB,WAAW,CAAC9C,IAAI,CAAC,CAAC;EAE3E;AACF;AAEA,MAAMgD,cAAc,GAAG,IAAIlE,cAAc,CAAC,CAAC;AAAC,IAAAmE,QAAA,GAAArE,OAAA,CAAAN,OAAA,GAC7B0E,cAAc","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_SnapshotOptions","_interopRequireDefault","e","__esModule","default","MLRNSnapshotModule","NativeModules","SnapshotManager","takeSnap","options","snapshotOptions","SnapshotOptions","uri","snapshotManager","_default","exports"],"sourceRoot":"../../../../src","sources":["modules/snapshot/snapshotManager.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA+E,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/E,MAAMG,kBAAkB,GAAGC,0BAAa,CAACD,kBAAkB;;AAE3D;AACA;AACA;AACA;AACA;AACA,MAAME,eAAe,CAAC;EACpB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,QAAQA,CAACC,OAA6B,GAAG,CAAC,CAAC,EAAmB;IAClE,MAAMC,eAAe,GAAG,IAAIC,wBAAe,CAACF,OAAO,CAAC;IAEpD,MAAMG,GAAG,GAAG,MAAMP,kBAAkB,CAACG,QAAQ,CAACE,eAAe,CAAC;IAC9D,OAAOE,GAAG;EACZ;AACF;AAEA,MAAMC,eAAe,GAAG,IAAIN,eAAe,CAAC,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAX,OAAA,GAC/BS,eAAe","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StyleURL = void 0;
|
|
7
|
-
let StyleURL = exports.StyleURL = /*#__PURE__*/function (StyleURL) {
|
|
8
|
-
StyleURL["Default"] = "https://demotiles.maplibre.org/style.json";
|
|
9
|
-
return StyleURL;
|
|
10
|
-
}({});
|
|
11
|
-
//# sourceMappingURL=StyleURL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["StyleURL","exports"],"sourceRoot":"../../../src","sources":["types/StyleURL.ts"],"mappings":";;;;;;IAAYA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,0BAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA","ignoreList":[]}
|