@maplibre/maplibre-react-native 10.0.0-alpha.27 → 10.0.0-alpha.28
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/CHANGELOG.md +4 -0
- package/README.md +2 -2
- package/lib/commonjs/MLNModule.js +27 -0
- package/lib/commonjs/MLNModule.js.map +1 -0
- package/lib/commonjs/MapLibreRN.js +281 -0
- package/lib/commonjs/MapLibreRN.js.map +1 -0
- package/lib/commonjs/assets/png.d.js +2 -0
- package/lib/commonjs/assets/png.d.js.map +1 -0
- package/lib/commonjs/components/Annotation.js +109 -0
- package/lib/commonjs/components/Annotation.js.map +1 -0
- package/lib/commonjs/components/BackgroundLayer.js +33 -0
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -0
- package/lib/commonjs/components/Callout.js +101 -0
- package/lib/commonjs/components/Callout.js.map +1 -0
- package/lib/commonjs/components/Camera.js +285 -0
- package/lib/commonjs/components/Camera.js.map +1 -0
- package/lib/commonjs/components/CircleLayer.js +37 -0
- package/lib/commonjs/components/CircleLayer.js.map +1 -0
- package/lib/commonjs/components/FillExtrusionLayer.js +36 -0
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -0
- package/lib/commonjs/components/FillLayer.js +36 -0
- package/lib/commonjs/components/FillLayer.js.map +1 -0
- package/lib/commonjs/components/HeadingIndicator.js +28 -0
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -0
- package/lib/commonjs/components/HeatmapLayer.js +35 -0
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -0
- package/lib/commonjs/components/ImageSource.js +42 -0
- package/lib/commonjs/components/ImageSource.js.map +1 -0
- package/lib/commonjs/components/Images.js +80 -0
- package/lib/commonjs/components/Images.js.map +1 -0
- package/lib/commonjs/components/Light.js +32 -0
- package/lib/commonjs/components/Light.js.map +1 -0
- package/lib/commonjs/components/LineLayer.js +36 -0
- package/lib/commonjs/components/LineLayer.js.map +1 -0
- package/lib/commonjs/components/MapView.js +463 -0
- package/lib/commonjs/components/MapView.js.map +1 -0
- package/lib/commonjs/components/MarkerView.js +61 -0
- package/lib/commonjs/components/MarkerView.js.map +1 -0
- package/lib/commonjs/components/NativeUserLocation.js +17 -0
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -0
- package/lib/commonjs/components/PointAnnotation.js +121 -0
- package/lib/commonjs/components/PointAnnotation.js.map +1 -0
- package/lib/commonjs/components/RasterLayer.js +32 -0
- package/lib/commonjs/components/RasterLayer.js.map +1 -0
- package/lib/commonjs/components/RasterSource.js +67 -0
- package/lib/commonjs/components/RasterSource.js.map +1 -0
- package/lib/commonjs/components/ShapeSource.js +203 -0
- package/lib/commonjs/components/ShapeSource.js.map +1 -0
- package/lib/commonjs/components/Style.js +266 -0
- package/lib/commonjs/components/Style.js.map +1 -0
- package/lib/commonjs/components/SymbolLayer.js +53 -0
- package/lib/commonjs/components/SymbolLayer.js.map +1 -0
- package/lib/commonjs/components/UserLocation.js +188 -0
- package/lib/commonjs/components/UserLocation.js.map +1 -0
- package/lib/commonjs/components/VectorSource.js +129 -0
- package/lib/commonjs/components/VectorSource.js.map +1 -0
- package/lib/commonjs/hooks/useAbstractLayer.js +53 -0
- package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -0
- package/lib/commonjs/hooks/useAbstractSource.js +24 -0
- package/lib/commonjs/hooks/useAbstractSource.js.map +1 -0
- package/lib/commonjs/hooks/useNativeBridge.js +84 -0
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -0
- package/lib/commonjs/hooks/useNativeRef.js +14 -0
- package/lib/commonjs/hooks/useNativeRef.js.map +1 -0
- package/lib/commonjs/hooks/useOnce.js +16 -0
- package/lib/commonjs/hooks/useOnce.js.map +1 -0
- package/lib/commonjs/index.js +23 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/modules/location/locationManager.js +91 -0
- package/lib/commonjs/modules/location/locationManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +37 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +40 -0
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
- package/lib/commonjs/modules/offline/offlineManager.js +346 -0
- package/lib/commonjs/modules/offline/offlineManager.js.map +1 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +58 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -0
- package/lib/commonjs/modules/snapshot/snapshotManager.js +66 -0
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -0
- package/lib/commonjs/requestAndroidLocationPermissions.js +25 -0
- package/lib/commonjs/requestAndroidLocationPermissions.js.map +1 -0
- package/lib/commonjs/types/BaseProps.js +2 -0
- package/lib/commonjs/types/BaseProps.js.map +1 -0
- package/lib/commonjs/types/CameraMode.js +14 -0
- package/lib/commonjs/types/CameraMode.js.map +1 -0
- package/lib/commonjs/types/MapLibreRNEvent.js +6 -0
- package/lib/commonjs/types/MapLibreRNEvent.js.map +1 -0
- package/lib/commonjs/types/OnPressEvent.js +2 -0
- package/lib/commonjs/types/OnPressEvent.js.map +1 -0
- package/lib/commonjs/types/StyleURL.js +11 -0
- package/lib/commonjs/types/StyleURL.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +59 -0
- package/lib/commonjs/utils/BridgeValue.js.map +1 -0
- package/lib/commonjs/utils/Logger.js +118 -0
- package/lib/commonjs/utils/Logger.js.map +1 -0
- package/lib/commonjs/utils/MapLibreRNStyles.d.js +181 -0
- package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +1 -0
- package/lib/commonjs/utils/StyleValue.js +39 -0
- package/lib/commonjs/utils/StyleValue.js.map +1 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +95 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
- package/lib/commonjs/utils/animated/Animated.js +47 -0
- package/lib/commonjs/utils/animated/Animated.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +92 -0
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +40 -0
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedPoint.js +111 -0
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +137 -0
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/commonjs/utils/animated/AnimatedShape.js +75 -0
- package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -0
- package/lib/commonjs/utils/deprecation.js +31 -0
- package/lib/commonjs/utils/deprecation.js.map +1 -0
- package/lib/commonjs/utils/filterUtils.js +13 -0
- package/lib/commonjs/utils/filterUtils.js.map +1 -0
- package/lib/commonjs/utils/index.js +97 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/makeNativeBounds.js +11 -0
- package/lib/commonjs/utils/makeNativeBounds.js.map +1 -0
- package/lib/commonjs/utils/styleMap.js +255 -0
- package/lib/commonjs/utils/styleMap.js.map +1 -0
- package/lib/module/MLNModule.js +15 -0
- package/lib/module/MLNModule.js.map +1 -0
- package/lib/module/MapLibreRN.js +37 -0
- package/lib/module/MapLibreRN.js.map +1 -0
- package/lib/module/assets/heading.png +0 -0
- package/lib/module/assets/heading@2x.png +0 -0
- package/lib/module/assets/heading@3x.png +0 -0
- package/lib/module/assets/png.d.js +2 -0
- package/lib/module/assets/png.d.js.map +1 -0
- package/lib/module/components/Annotation.js +104 -0
- package/lib/module/components/Annotation.js.map +1 -0
- package/lib/module/components/BackgroundLayer.js +28 -0
- package/lib/module/components/BackgroundLayer.js.map +1 -0
- package/lib/module/components/Callout.js +97 -0
- package/lib/module/components/Callout.js.map +1 -0
- package/lib/module/components/Camera.js +280 -0
- package/lib/module/components/Camera.js.map +1 -0
- package/lib/module/components/CircleLayer.js +32 -0
- package/lib/module/components/CircleLayer.js.map +1 -0
- package/lib/module/components/FillExtrusionLayer.js +31 -0
- package/lib/module/components/FillExtrusionLayer.js.map +1 -0
- package/lib/module/components/FillLayer.js +31 -0
- package/lib/module/components/FillLayer.js.map +1 -0
- package/lib/module/components/HeadingIndicator.js +23 -0
- package/lib/module/components/HeadingIndicator.js.map +1 -0
- package/lib/module/components/HeatmapLayer.js +30 -0
- package/lib/module/components/HeatmapLayer.js.map +1 -0
- package/lib/module/components/ImageSource.js +37 -0
- package/lib/module/components/ImageSource.js.map +1 -0
- package/lib/module/components/Images.js +76 -0
- package/lib/module/components/Images.js.map +1 -0
- package/lib/module/components/Light.js +27 -0
- package/lib/module/components/Light.js.map +1 -0
- package/lib/module/components/LineLayer.js +31 -0
- package/lib/module/components/LineLayer.js.map +1 -0
- package/lib/module/components/MapView.js +458 -0
- package/lib/module/components/MapView.js.map +1 -0
- package/lib/module/components/MarkerView.js +56 -0
- package/lib/module/components/MarkerView.js.map +1 -0
- package/lib/module/components/NativeUserLocation.js +13 -0
- package/lib/module/components/NativeUserLocation.js.map +1 -0
- package/lib/module/components/PointAnnotation.js +116 -0
- package/lib/module/components/PointAnnotation.js.map +1 -0
- package/lib/module/components/RasterLayer.js +27 -0
- package/lib/module/components/RasterLayer.js.map +1 -0
- package/lib/module/components/RasterSource.js +62 -0
- package/lib/module/components/RasterSource.js.map +1 -0
- package/lib/module/components/ShapeSource.js +198 -0
- package/lib/module/components/ShapeSource.js.map +1 -0
- package/lib/module/components/Style.js +261 -0
- package/lib/module/components/Style.js.map +1 -0
- package/lib/module/components/SymbolLayer.js +48 -0
- package/lib/module/components/SymbolLayer.js.map +1 -0
- package/lib/module/components/UserLocation.js +182 -0
- package/lib/module/components/UserLocation.js.map +1 -0
- package/lib/module/components/VectorSource.js +124 -0
- package/lib/module/components/VectorSource.js.map +1 -0
- package/lib/module/hooks/useAbstractLayer.js +49 -0
- package/lib/module/hooks/useAbstractLayer.js.map +1 -0
- package/lib/module/hooks/useAbstractSource.js +20 -0
- package/lib/module/hooks/useAbstractSource.js.map +1 -0
- package/lib/module/hooks/useNativeBridge.js +80 -0
- package/lib/module/hooks/useNativeBridge.js.map +1 -0
- package/lib/module/hooks/useNativeRef.js +10 -0
- package/lib/module/hooks/useNativeRef.js.map +1 -0
- package/lib/module/hooks/useOnce.js +12 -0
- package/lib/module/hooks/useOnce.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/modules/location/locationManager.js +87 -0
- package/lib/module/modules/location/locationManager.js.map +1 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +33 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +36 -0
- package/lib/module/modules/offline/OfflinePack.js.map +1 -0
- package/lib/module/modules/offline/offlineManager.js +341 -0
- package/lib/module/modules/offline/offlineManager.js.map +1 -0
- package/lib/module/modules/snapshot/SnapshotOptions.js +53 -0
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -0
- package/lib/module/modules/snapshot/snapshotManager.js +61 -0
- package/lib/module/modules/snapshot/snapshotManager.js.map +1 -0
- package/lib/module/requestAndroidLocationPermissions.js +21 -0
- package/lib/module/requestAndroidLocationPermissions.js.map +1 -0
- package/lib/module/types/BaseProps.js +2 -0
- package/lib/module/types/BaseProps.js.map +1 -0
- package/lib/module/types/CameraMode.js +10 -0
- package/lib/module/types/CameraMode.js.map +1 -0
- package/lib/module/types/MapLibreRNEvent.js +4 -0
- package/lib/module/types/MapLibreRNEvent.js.map +1 -0
- package/lib/module/types/OnPressEvent.js +2 -0
- package/lib/module/types/OnPressEvent.js.map +1 -0
- package/lib/module/types/StyleURL.js +7 -0
- package/lib/module/types/StyleURL.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +54 -0
- package/lib/module/utils/BridgeValue.js.map +1 -0
- package/lib/module/utils/Logger.js +114 -0
- package/lib/module/utils/Logger.js.map +1 -0
- package/lib/module/utils/MapLibreRNStyles.d.js +180 -0
- package/lib/module/utils/MapLibreRNStyles.d.js.map +1 -0
- package/lib/module/utils/StyleValue.js +34 -0
- package/lib/module/utils/StyleValue.js.map +1 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +92 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
- package/lib/module/utils/animated/Animated.js +42 -0
- package/lib/module/utils/animated/Animated.js.map +1 -0
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +87 -0
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +36 -0
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedPoint.js +107 -0
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -0
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +131 -0
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
- package/lib/module/utils/animated/AnimatedShape.js +71 -0
- package/lib/module/utils/animated/AnimatedShape.js.map +1 -0
- package/lib/module/utils/deprecation.js +27 -0
- package/lib/module/utils/deprecation.js.map +1 -0
- package/lib/module/utils/filterUtils.js +9 -0
- package/lib/module/utils/filterUtils.js.map +1 -0
- package/lib/module/utils/index.js +81 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/makeNativeBounds.js +7 -0
- package/lib/module/utils/makeNativeBounds.js.map +1 -0
- package/lib/module/utils/styleMap.js +249 -0
- package/lib/module/utils/styleMap.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/MLNModule.d.ts +21 -0
- package/lib/typescript/commonjs/src/MLNModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +42 -0
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Annotation.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Callout.d.ts +35 -0
- package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Camera.d.ts +134 -0
- package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts +31 -0
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Images.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Light.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/MapView.d.ts +235 -0
- package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts +44 -0
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +91 -0
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts +53 -0
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +124 -0
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Style.d.ts +81 -0
- package/lib/typescript/commonjs/src/components/Style.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts +70 -0
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts +70 -0
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +62 -0
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +7 -0
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +21 -0
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +8 -0
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +3 -0
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +64 -0
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +24 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts +210 -0
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +42 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts +52 -0
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts +2 -0
- package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/BaseProps.d.ts +4 -0
- package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/CameraMode.d.ts +7 -0
- package/lib/typescript/commonjs/src/types/CameraMode.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts +6 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts +12 -0
- package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts +4 -0
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +29 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/Logger.d.ts +52 -0
- package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +36 -0
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +33 -0
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +11 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +31 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +54 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +27 -0
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts +6 -0
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +3 -0
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/makeNativeBounds.d.ts +2 -0
- package/lib/typescript/commonjs/src/utils/makeNativeBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts +231 -0
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/MLNModule.d.ts +21 -0
- package/lib/typescript/module/src/MLNModule.d.ts.map +1 -0
- package/lib/typescript/module/src/MapLibreRN.d.ts +42 -0
- package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Annotation.d.ts +21 -0
- package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -0
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts +14 -0
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Callout.d.ts +35 -0
- package/lib/typescript/module/src/components/Callout.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Camera.d.ts +134 -0
- package/lib/typescript/module/src/components/Camera.d.ts.map +1 -0
- package/lib/typescript/module/src/components/CircleLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/FillLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts +8 -0
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -0
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ImageSource.d.ts +31 -0
- package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Images.d.ts +33 -0
- package/lib/typescript/module/src/components/Images.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Light.d.ts +17 -0
- package/lib/typescript/module/src/components/Light.d.ts.map +1 -0
- package/lib/typescript/module/src/components/LineLayer.d.ts +17 -0
- package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/MapView.d.ts +235 -0
- package/lib/typescript/module/src/components/MapView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/MarkerView.d.ts +44 -0
- package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts +26 -0
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/module/src/components/PointAnnotation.d.ts +91 -0
- package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -0
- package/lib/typescript/module/src/components/RasterLayer.d.ts +14 -0
- package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/RasterSource.d.ts +53 -0
- package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ShapeSource.d.ts +124 -0
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Style.d.ts +81 -0
- package/lib/typescript/module/src/components/Style.d.ts.map +1 -0
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +22 -0
- package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/UserLocation.d.ts +70 -0
- package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VectorSource.d.ts +70 -0
- package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +62 -0
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +7 -0
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +21 -0
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts +8 -0
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useOnce.d.ts +3 -0
- package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +4 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/location/locationManager.d.ts +64 -0
- package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +21 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +24 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts +210 -0
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +42 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts +52 -0
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
- package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts +2 -0
- package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts.map +1 -0
- package/lib/typescript/module/src/types/BaseProps.d.ts +4 -0
- package/lib/typescript/module/src/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/module/src/types/CameraMode.d.ts +7 -0
- package/lib/typescript/module/src/types/CameraMode.d.ts.map +1 -0
- package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts +6 -0
- package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts.map +1 -0
- package/lib/typescript/module/src/types/OnPressEvent.d.ts +12 -0
- package/lib/typescript/module/src/types/OnPressEvent.d.ts.map +1 -0
- package/lib/typescript/module/src/types/StyleURL.d.ts +4 -0
- package/lib/typescript/module/src/types/StyleURL.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts +29 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/Logger.d.ts +52 -0
- package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/StyleValue.d.ts +10 -0
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +36 -0
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/Animated.d.ts +33 -0
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +11 -0
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +31 -0
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +54 -0
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +27 -0
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/deprecation.d.ts +6 -0
- package/lib/typescript/module/src/utils/deprecation.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/filterUtils.d.ts +3 -0
- package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/index.d.ts +21 -0
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/makeNativeBounds.d.ts +2 -0
- package/lib/typescript/module/src/utils/makeNativeBounds.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/styleMap.d.ts +231 -0
- package/lib/typescript/module/src/utils/styleMap.d.ts.map +1 -0
- package/package.json +83 -6
- package/plugin/build/withMapLibre.d.ts +1 -1
- package/{javascript/Maplibre.ts → src/MapLibreRN.ts} +1 -1
- package/src/assets/heading.png +0 -0
- package/src/assets/heading@2x.png +0 -0
- package/src/assets/heading@3x.png +0 -0
- package/src/assets/png.d.ts +4 -0
- package/{javascript → src}/components/Annotation.tsx +8 -8
- package/{javascript → src}/components/BackgroundLayer.tsx +4 -4
- package/{javascript → src}/components/Callout.tsx +5 -5
- package/{javascript → src}/components/Camera.tsx +5 -5
- package/{javascript → src}/components/CircleLayer.tsx +4 -4
- package/{javascript → src}/components/FillExtrusionLayer.tsx +4 -4
- package/{javascript → src}/components/FillLayer.tsx +4 -4
- package/{javascript → src}/components/HeadingIndicator.tsx +3 -4
- package/{javascript → src}/components/HeatmapLayer.tsx +4 -4
- package/{javascript → src}/components/ImageSource.tsx +2 -2
- package/{javascript → src}/components/Images.tsx +7 -7
- package/{javascript → src}/components/Light.tsx +6 -4
- package/{javascript → src}/components/LineLayer.tsx +4 -4
- package/{javascript → src}/components/MapView.tsx +12 -11
- package/{javascript → src}/components/MarkerView.tsx +2 -2
- package/{javascript → src}/components/NativeUserLocation.tsx +1 -1
- package/{javascript → src}/components/PointAnnotation.tsx +5 -5
- package/{javascript → src}/components/RasterLayer.tsx +4 -4
- package/{javascript → src}/components/RasterSource.tsx +1 -1
- package/{javascript → src}/components/ShapeSource.tsx +13 -9
- package/{javascript → src}/components/Style.tsx +32 -29
- package/{javascript → src}/components/SymbolLayer.tsx +7 -7
- package/{javascript → src}/components/UserLocation.tsx +18 -8
- package/{javascript → src}/components/VectorSource.tsx +6 -6
- package/{javascript → src}/hooks/useAbstractLayer.ts +9 -9
- package/{javascript → src}/hooks/useAbstractSource.ts +2 -2
- package/{javascript → src}/hooks/useNativeBridge.ts +2 -2
- package/{javascript → src}/hooks/useNativeRef.ts +2 -2
- package/src/index.ts +4 -0
- package/{javascript → src}/modules/location/locationManager.ts +1 -1
- package/{javascript → src}/modules/offline/offlineManager.ts +18 -13
- package/{javascript → src}/modules/snapshot/snapshotManager.ts +1 -1
- package/{javascript → src}/requestAndroidLocationPermissions.ts +3 -3
- package/src/types/BaseProps.ts +3 -0
- package/src/types/MapLibreRNEvent.ts +7 -0
- package/{javascript → src}/types/OnPressEvent.ts +1 -3
- package/src/types/StyleURL.ts +3 -0
- package/{javascript → src}/utils/BridgeValue.ts +8 -8
- package/{javascript → src}/utils/Logger.ts +1 -1
- package/{javascript/utils/MaplibreStyles.d.ts → src/utils/MapLibreRNStyles.d.ts} +1 -1
- package/{javascript → src}/utils/StyleValue.ts +2 -2
- package/{javascript → src}/utils/animated/Animated.ts +2 -2
- package/{javascript → src}/utils/animated/AnimatedCoordinatesArray.ts +24 -19
- package/{javascript → src}/utils/animated/AnimatedPoint.ts +4 -4
- package/{javascript → src}/utils/animated/AnimatedRouteCoordinatesArray.ts +14 -9
- package/{javascript → src}/utils/filterUtils.ts +1 -1
- package/{javascript → src}/utils/index.ts +5 -5
- package/.eslintrc.js +0 -5
- package/.git-blame-ignore-revs +0 -3
- package/.gitattributes +0 -1
- package/.nvmrc +0 -1
- package/.sonarcloud.properties +0 -15
- package/CODE_OF_CONDUCT.md +0 -2
- package/CONTRIBUTING.md +0 -61
- package/RELEASE.md +0 -30
- package/assets/indoor_building_map_android.png +0 -0
- package/assets/indoor_building_map_ios.png +0 -0
- package/babel.config.js +0 -12
- package/docs/Annotation.md +0 -29
- package/docs/Annotations.md +0 -12
- package/docs/BackgroundLayer.md +0 -166
- package/docs/Callout.md +0 -16
- package/docs/Camera.md +0 -132
- package/docs/CircleLayer.md +0 -487
- package/docs/CustomHttpHeaders.md +0 -87
- package/docs/FillExtrusionLayer.md +0 -349
- package/docs/FillLayer.md +0 -317
- package/docs/GettingStarted.md +0 -113
- package/docs/HeadingIndicator.md +0 -11
- package/docs/HeatmapLayer.md +0 -214
- package/docs/ImageSource.md +0 -14
- package/docs/Images.md +0 -15
- package/docs/Light.md +0 -167
- package/docs/LineLayer.md +0 -603
- package/docs/Logger.md +0 -23
- package/docs/MapLibreGL.md +0 -65
- package/docs/MapView.md +0 -178
- package/docs/MarkerView.md +0 -17
- package/docs/NativeUserLocation.md +0 -13
- package/docs/PointAnnotation.md +0 -28
- package/docs/RasterLayer.md +0 -357
- package/docs/RasterSource.md +0 -19
- package/docs/ShapeSource.md +0 -104
- package/docs/Style.md +0 -11
- package/docs/StyleSheet.md +0 -451
- package/docs/SymbolLayer.md +0 -1752
- package/docs/UserLocation.md +0 -43
- package/docs/VectorSource.md +0 -50
- package/docs/coordinates.md +0 -7
- package/docs/docs.json +0 -5390
- package/docs/location.md +0 -7
- package/docs/offlineManager.md +0 -231
- package/docs/snapshotManager.md +0 -54
- package/javascript/index.ts +0 -4
- package/javascript/types/BaseProps.ts +0 -5
- package/javascript/types/index.ts +0 -11
- package/jest-setup.ts +0 -113
- package/jest.config.js +0 -8
- package/plugin/install.md +0 -25
- package/scripts/.eslintrc.js +0 -3
- package/scripts/codegen.ts +0 -344
- package/scripts/templates/MaplibreStyles.ts.ejs +0 -102
- package/scripts/templates/RCTMLNStyle.h.ejs +0 -34
- package/scripts/templates/RCTMLNStyle.m.ejs +0 -98
- package/scripts/templates/RCTMLNStyleFactory.java.ejs +0 -108
- package/scripts/templates/component.md.ejs +0 -125
- package/scripts/templates/styleMap.ts.ejs +0 -86
- package/scripts/utils/DocJSONBuilder.ts +0 -463
- package/scripts/utils/JSDocNodeTree.ts +0 -135
- package/scripts/utils/MarkdownBuilder.ts +0 -44
- package/scripts/utils/TemplateHelpers.ts +0 -505
- package/scripts/utils/getNativeVersion.ts +0 -53
- package/tsconfig.json +0 -22
- /package/{assets → lib/commonjs/assets}/heading.png +0 -0
- /package/{assets → lib/commonjs/assets}/heading@2x.png +0 -0
- /package/{assets → lib/commonjs/assets}/heading@3x.png +0 -0
- /package/{javascript → src}/MLNModule.ts +0 -0
- /package/{javascript → src}/hooks/useOnce.ts +0 -0
- /package/{javascript → src}/modules/offline/OfflineCreatePackOptions.ts +0 -0
- /package/{javascript → src}/modules/offline/OfflinePack.ts +0 -0
- /package/{javascript → src}/modules/snapshot/SnapshotOptions.ts +0 -0
- /package/{javascript → src}/types/CameraMode.ts +0 -0
- /package/{javascript → src}/utils/animated/AbstractAnimatedCoordinates.ts +0 -0
- /package/{javascript → src}/utils/animated/AnimatedExtractCoordinateFromArray.ts +0 -0
- /package/{javascript → src}/utils/animated/AnimatedShape.ts +0 -0
- /package/{javascript → src}/utils/deprecation.ts +0 -0
- /package/{javascript → src}/utils/makeNativeBounds.ts +0 -0
- /package/{javascript → src}/utils/styleMap.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RasterSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/RasterSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAKpD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAMvD,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;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACtD;AAOD;;;;GAIG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyC7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Component, type ReactElement } from "react";
|
|
2
|
+
import { type NativeMethods, type NativeSyntheticEvent } from "react-native";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type OnPressEvent } from "../types/OnPressEvent";
|
|
5
|
+
import { type ExpressionField, type FilterExpression } from "../utils/MapLibreRNStyles";
|
|
6
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNShapeSource";
|
|
7
|
+
export declare const SHAPE_SOURCE_NATIVE_ASSETS_KEY = "assets";
|
|
8
|
+
interface NativeProps {
|
|
9
|
+
shape?: string;
|
|
10
|
+
}
|
|
11
|
+
type RCTMLNShapeSourceRefType = Component<NativeProps> & Readonly<NativeMethods>;
|
|
12
|
+
export interface ShapeSourceProps extends BaseProps {
|
|
13
|
+
/**
|
|
14
|
+
* A string that uniquely identifies the source.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* An HTTP(S) URL, absolute file URL, or local file URL relative to the current application’s resource bundle.
|
|
19
|
+
*/
|
|
20
|
+
url?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The contents of the source. A shape can represent a GeoJSON geometry, a feature, or a feature colllection.
|
|
23
|
+
*/
|
|
24
|
+
shape?: GeoJSON.GeometryCollection | GeoJSON.Feature | GeoJSON.FeatureCollection | GeoJSON.Geometry;
|
|
25
|
+
/**
|
|
26
|
+
* Enables clustering on the source for point shapes.
|
|
27
|
+
*/
|
|
28
|
+
cluster?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the radius of each cluster if clustering is enabled.
|
|
31
|
+
* A value of 512 produces a radius equal to the width of a tile.
|
|
32
|
+
* The default value is 50.
|
|
33
|
+
*/
|
|
34
|
+
clusterRadius?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the maximum zoom level at which to cluster points if clustering is enabled.
|
|
37
|
+
* Defaults to one zoom level less than the value of maxZoomLevel so that, at the maximum zoom level,
|
|
38
|
+
* the shapes are not clustered.
|
|
39
|
+
*/
|
|
40
|
+
clusterMaxZoomLevel?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies custom properties on the generated clusters if clustering
|
|
43
|
+
* is enabled, aggregating values from clustered points.
|
|
44
|
+
*
|
|
45
|
+
* Has the form `{ "property_name": [operator, map_expression]}`, where
|
|
46
|
+
* `operator` is a custom reduce expression that references a special `["accumulated"]` value -
|
|
47
|
+
* it accumulates the property value from clusters/points the cluster contains
|
|
48
|
+
* `map_expression` produces the value of a single point
|
|
49
|
+
*
|
|
50
|
+
* Example: `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }`
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
clusterProperties?: {
|
|
54
|
+
[propertyName: string]: ExpressionField;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Specifies the maximum zoom level at which to create vector tiles.
|
|
58
|
+
* A greater value produces greater detail at high zoom levels.
|
|
59
|
+
* The default value is 18.
|
|
60
|
+
*/
|
|
61
|
+
maxZoomLevel?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the size of the tile buffer on each side.
|
|
64
|
+
* A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself.
|
|
65
|
+
* Larger values produce fewer rendering artifacts near tile edges and slower performance.
|
|
66
|
+
* The default value is 128.
|
|
67
|
+
*/
|
|
68
|
+
buffer?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Specifies the Douglas-Peucker simplification tolerance.
|
|
71
|
+
* A greater value produces simpler geometries and improves performance.
|
|
72
|
+
* The default value is 0.375.
|
|
73
|
+
*/
|
|
74
|
+
tolerance?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Whether to calculate line distance metrics.
|
|
77
|
+
* This is required for line layers that specify lineGradient values.
|
|
78
|
+
* The default value is false.
|
|
79
|
+
*/
|
|
80
|
+
lineMetrics?: boolean;
|
|
81
|
+
/**
|
|
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
|
|
90
|
+
*/
|
|
91
|
+
onPress?: (event: OnPressEvent) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Overrides the default touch hitbox(44x44 pixels) for the source layers
|
|
94
|
+
*/
|
|
95
|
+
hitbox?: {
|
|
96
|
+
/**
|
|
97
|
+
* `width` of hitbox
|
|
98
|
+
*/
|
|
99
|
+
width: number;
|
|
100
|
+
/**
|
|
101
|
+
* `height` of hitbox
|
|
102
|
+
*/
|
|
103
|
+
height: number;
|
|
104
|
+
};
|
|
105
|
+
children?: ReactElement | ReactElement[];
|
|
106
|
+
}
|
|
107
|
+
export interface ShapeSourceRef {
|
|
108
|
+
features(filter?: FilterExpression): Promise<GeoJSON.FeatureCollection>;
|
|
109
|
+
getClusterExpansionZoom(feature: GeoJSON.Feature): Promise<number>;
|
|
110
|
+
getClusterLeaves(feature: GeoJSON.Feature, limit: number, offset: number): Promise<GeoJSON.FeatureCollection>;
|
|
111
|
+
getClusterChildren(feature: GeoJSON.Feature): Promise<GeoJSON.FeatureCollection>;
|
|
112
|
+
setNativeProps: (props: NativeProps) => void;
|
|
113
|
+
onPress: (event: NativeSyntheticEvent<{
|
|
114
|
+
payload: OnPressEvent;
|
|
115
|
+
}>) => void;
|
|
116
|
+
_nativeRef: RCTMLNShapeSourceRefType | undefined;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* ShapeSource is a map content source that supplies vector shapes to be shown on the map.
|
|
120
|
+
* The shape may be a url or a GeoJSON object
|
|
121
|
+
*/
|
|
122
|
+
declare const ShapeSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ShapeSourceProps & import("react").RefAttributes<ShapeSourceRef>>>;
|
|
123
|
+
export default ShapeSource;
|
|
124
|
+
//# sourceMappingURL=ShapeSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShapeSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/ShapeSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,YAAY,EAKlB,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,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAO1D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AAKnC,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,8BAA8B,WAAW,CAAC;AAEvD,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,wBAAwB,GAAG,SAAS,CAAC,WAAW,CAAC,GACpD,QAAQ,CAAC,aAAa,CAAC,CAAC;AAE1B,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,CAAC,QAAQ,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,CAAA;KAAE,CAAC;IAChE;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;OASG;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,YAAY,GAAG,YAAY,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxE,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACnE,gBAAgB,CACd,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACtC,kBAAkB,CAChB,OAAO,EAAE,OAAO,CAAC,OAAO,GACvB,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACtC,cAAc,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC;QAAE,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC,KAAK,IAAI,CAAC;IAG1E,UAAU,EAAE,wBAAwB,GAAG,SAAS,CAAC;CAClD;AAED;;;GAGG;AACH,QAAA,MAAM,WAAW,kJA6QhB,CAAC;AAKF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type ExpressionField, type FilterExpression } from "../utils/MapLibreRNStyles";
|
|
3
|
+
interface MapLibreJSONLayer {
|
|
4
|
+
type: string;
|
|
5
|
+
paint: {
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
layout: {
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
source?: string;
|
|
12
|
+
"source-layer"?: string;
|
|
13
|
+
minzoom?: number;
|
|
14
|
+
maxzoom?: number;
|
|
15
|
+
filter?: FilterExpression;
|
|
16
|
+
id: string;
|
|
17
|
+
}
|
|
18
|
+
interface MapLibreJSONSource {
|
|
19
|
+
type: string;
|
|
20
|
+
url?: string;
|
|
21
|
+
tiles?: string[];
|
|
22
|
+
minzoom?: number;
|
|
23
|
+
maxzoom?: number;
|
|
24
|
+
attribution?: string;
|
|
25
|
+
scheme?: "xyz" | "tms";
|
|
26
|
+
bounds?: number[];
|
|
27
|
+
buffer?: number;
|
|
28
|
+
tileSize?: number;
|
|
29
|
+
coordinates?: [
|
|
30
|
+
[
|
|
31
|
+
number,
|
|
32
|
+
number
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
number,
|
|
36
|
+
number
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
number,
|
|
40
|
+
number
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
number,
|
|
44
|
+
number
|
|
45
|
+
]
|
|
46
|
+
];
|
|
47
|
+
cluster?: boolean;
|
|
48
|
+
clusterMaxZoom?: number;
|
|
49
|
+
clusterMinPoints?: number;
|
|
50
|
+
clusterRadius?: number;
|
|
51
|
+
clusterProperties?: {
|
|
52
|
+
[propertyName: string]: ExpressionField;
|
|
53
|
+
};
|
|
54
|
+
data?: string | object;
|
|
55
|
+
filter?: FilterExpression;
|
|
56
|
+
generateId?: boolean;
|
|
57
|
+
lineMetrics?: boolean;
|
|
58
|
+
tolerance?: number;
|
|
59
|
+
}
|
|
60
|
+
interface MapLibreJSON {
|
|
61
|
+
layers?: MapLibreJSONLayer[];
|
|
62
|
+
sources?: {
|
|
63
|
+
[key: string]: MapLibreJSONSource;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
interface StyleProps {
|
|
67
|
+
/**
|
|
68
|
+
* A JSON object conforming to the schema described in the MapLibre Style Specification, or a URL to such JSON.
|
|
69
|
+
*/
|
|
70
|
+
json?: MapLibreJSON | URL;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Style is a component that automatically adds sources / layers to the map using MapLibre Style Spec.
|
|
74
|
+
* Only [`sources`](https://maplibre.org/maplibre-gl-js-docs/style-spec/sources/) & [`layers`](https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/) are supported.
|
|
75
|
+
* Other fields such as `sprites`, `glyphs` etc. will be ignored. Not all layer / source attributes from the style spec are supported, in general the supported attributes will be mentioned under https://github.com/maplibre/maplibre-react-native/tree/main/docs.
|
|
76
|
+
*
|
|
77
|
+
* TODO: Maintainer forking this project does not understand the above comment regarding what is supported.
|
|
78
|
+
*/
|
|
79
|
+
declare const Style: (props: StyleProps) => ReactElement;
|
|
80
|
+
export default Style;
|
|
81
|
+
//# sourceMappingURL=Style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["../../../../../src/components/Style.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAgBf,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AAmEnC,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAChC,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAwCD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE;QACZ;YAAC,MAAM;YAAE,MAAM;SAAC;QAChB;YAAC,MAAM;YAAE,MAAM;SAAC;QAChB;YAAC,MAAM;YAAE,MAAM;SAAC;QAChB;YAAC,MAAM;YAAE,MAAM;SAAC;KACjB,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,CAAA;KAAE,CAAC;IAChE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0HD,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAC;CACjD;AAED,UAAU,UAAU;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,GAAG,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,QAAA,MAAM,KAAK,UAAW,UAAU,KAAG,YA0DlC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type SymbolLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNSymbolLayer";
|
|
6
|
+
export interface SymbolLayerProps extends BaseProps, BaseLayerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Customizable style attributes
|
|
9
|
+
*/
|
|
10
|
+
style?: SymbolLayerStyleProps;
|
|
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[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* SymbolLayer is a style layer that renders icon and text labels at points or along lines on the map.
|
|
19
|
+
*/
|
|
20
|
+
declare const SymbolLayer: React.FC<SymbolLayerProps>;
|
|
21
|
+
export default SymbolLayer;
|
|
22
|
+
//# sourceMappingURL=SymbolLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SymbolLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAGpD,OAAyB,EACvB,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAIvE,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAEtD,MAAM,WAAW,gBAAiB,SAAQ,SAAS,EAAE,cAAc;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;CAC1C;AASD;;GAEG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsC3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type Location } from "../modules/location/locationManager";
|
|
3
|
+
export declare const normalIcon: (showsUserHeadingIndicator?: boolean, heading?: number) => ReactElement[];
|
|
4
|
+
interface UserLocationProps {
|
|
5
|
+
/**
|
|
6
|
+
* Whether location icon is animated between updates
|
|
7
|
+
*/
|
|
8
|
+
animated?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Which render mode to use.
|
|
11
|
+
* Can either be `normal` or `native`
|
|
12
|
+
*/
|
|
13
|
+
renderMode?: "normal" | "native";
|
|
14
|
+
/**
|
|
15
|
+
* native/android only render mode
|
|
16
|
+
*
|
|
17
|
+
* - normal: just a circle
|
|
18
|
+
* - compass: triangle with heading
|
|
19
|
+
* - gps: large arrow
|
|
20
|
+
*
|
|
21
|
+
* @platform android
|
|
22
|
+
*/
|
|
23
|
+
androidRenderMode?: "normal" | "compass" | "gps";
|
|
24
|
+
/**
|
|
25
|
+
* Whether location icon is visible
|
|
26
|
+
*/
|
|
27
|
+
visible?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Callback that is triggered on location icon press
|
|
30
|
+
*/
|
|
31
|
+
onPress?(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Callback that is triggered on location update
|
|
34
|
+
*/
|
|
35
|
+
onUpdate?(location: Location): void;
|
|
36
|
+
/**
|
|
37
|
+
* Show or hide small arrow which indicates direction the device is pointing relative to north.
|
|
38
|
+
*/
|
|
39
|
+
showsUserHeadingIndicator?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Minimum amount of movement before GPS location is updated in meters
|
|
42
|
+
*/
|
|
43
|
+
minDisplacement?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Android only. Set max FPS at which location animators can output updates. Use this setting to limit animation rate of the location puck on higher zoom levels to decrease the stress on the device's CPU which can directly improve battery life, without sacrificing UX.
|
|
46
|
+
*
|
|
47
|
+
* @platform android
|
|
48
|
+
*/
|
|
49
|
+
androidPreferredFramesPerSecond?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Custom location icon of type mapbox-gl-native components
|
|
52
|
+
*
|
|
53
|
+
* NOTE: Forking maintainer does not understand the above comment.
|
|
54
|
+
*/
|
|
55
|
+
children?: ReactElement | ReactElement[];
|
|
56
|
+
}
|
|
57
|
+
export declare enum UserLocationRenderMode {
|
|
58
|
+
Native = "native",
|
|
59
|
+
Normal = "normal"
|
|
60
|
+
}
|
|
61
|
+
export interface UserLocationRef {
|
|
62
|
+
setLocationManager: (props: {
|
|
63
|
+
running: boolean;
|
|
64
|
+
}) => Promise<void>;
|
|
65
|
+
needsLocationManagerRunning: () => boolean;
|
|
66
|
+
_onLocationUpdate: (location: Location | null) => void;
|
|
67
|
+
}
|
|
68
|
+
declare const UserLocation: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<UserLocationProps & import("react").RefAttributes<UserLocationRef>>>;
|
|
69
|
+
export default UserLocation;
|
|
70
|
+
//# sourceMappingURL=UserLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAKlB,MAAM,OAAO,CAAC;AAMf,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,qCAAqC,CAAC;AAwB7C,eAAO,MAAM,UAAU,+BACO,OAAO,YACzB,MAAM,KACf,YAAY,EAoBd,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,YAAY,GAAG,YAAY,EAAE,CAAC;CAC1C;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,QAAA,MAAM,YAAY,oJAwKjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
2
|
+
import { type OnPressEvent } from "../types/OnPressEvent";
|
|
3
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNVectorSource";
|
|
4
|
+
interface VectorSourceProps extends BaseProps {
|
|
5
|
+
/**
|
|
6
|
+
* A string that uniquely identifies the source.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* A URL to a TileJSON configuration file describing the source’s contents and other metadata.
|
|
11
|
+
*/
|
|
12
|
+
url?: string;
|
|
13
|
+
/**
|
|
14
|
+
* An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.
|
|
15
|
+
* Example: https://example.com/vector-tiles/{z}/{x}/{y}.pbf
|
|
16
|
+
*/
|
|
17
|
+
tileUrlTemplates?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* An unsigned integer that specifies the minimum zoom level at which to display tiles from the source.
|
|
20
|
+
* The value should be between 0 and 22, inclusive, and less than
|
|
21
|
+
* maxZoomLevel, if specified. The default value for this option is 0.
|
|
22
|
+
*/
|
|
23
|
+
minZoomLevel?: number;
|
|
24
|
+
/**
|
|
25
|
+
* An unsigned integer that specifies the maximum zoom level at which to display tiles from the source.
|
|
26
|
+
* The value should be between 0 and 22, inclusive, and less than
|
|
27
|
+
* minZoomLevel, if specified. The default value for this option is 22.
|
|
28
|
+
*/
|
|
29
|
+
maxZoomLevel?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Influences the y direction of the tile coordinates. (tms inverts y axis)
|
|
32
|
+
*/
|
|
33
|
+
tms?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* An HTML or literal text string defining the buttons to be displayed in an action sheet when the
|
|
36
|
+
* source is part of a map view’s style and the map view’s attribution button is pressed.
|
|
37
|
+
*/
|
|
38
|
+
attribution?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Source press listener, gets called when a user presses one of the children layers only
|
|
41
|
+
* 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
|
+
*/
|
|
48
|
+
onPress?: (event: OnPressEvent) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Overrides the default touch hitbox(44x44 pixels) for the source layers
|
|
51
|
+
*/
|
|
52
|
+
hitbox?: {
|
|
53
|
+
/**
|
|
54
|
+
* `width` of hitbox
|
|
55
|
+
*/
|
|
56
|
+
width: number;
|
|
57
|
+
/**
|
|
58
|
+
* `height` of hitbox
|
|
59
|
+
*/
|
|
60
|
+
height: number;
|
|
61
|
+
};
|
|
62
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* VectorSource is a map content source that supplies tiled vector data in Mapbox Vector Tile format to be shown on the map.
|
|
66
|
+
* 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
|
+
*/
|
|
68
|
+
declare const VectorSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<VectorSourceProps & import("react").RefAttributes<unknown>>>;
|
|
69
|
+
export default VectorSource;
|
|
70
|
+
//# sourceMappingURL=VectorSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/VectorSource.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAQ1D,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,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;;;;;;;;OAQG;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,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACtD;AAOD;;;GAGG;AACH,QAAA,MAAM,YAAY,4IA2HjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { processColor, type NativeMethods } from "react-native";
|
|
2
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
3
|
+
import { type AllLayerStyleProps, type FilterExpression } from "../utils/MapLibreRNStyles";
|
|
4
|
+
import { type StyleValue } from "../utils/StyleValue";
|
|
5
|
+
export interface BaseLayerProps {
|
|
6
|
+
/**
|
|
7
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The source from which to obtain the data to style.
|
|
12
|
+
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
13
|
+
* Inferred from parent source only if the layer is a direct child to it.
|
|
14
|
+
*/
|
|
15
|
+
sourceID?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
18
|
+
*/
|
|
19
|
+
sourceLayerID?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Inserts a layer above aboveLayerID.
|
|
22
|
+
*/
|
|
23
|
+
aboveLayerID?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Inserts a layer below belowLayerID
|
|
26
|
+
*/
|
|
27
|
+
belowLayerID?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Inserts a layer at a specified index
|
|
30
|
+
*/
|
|
31
|
+
layerIndex?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Filter only the features in the source layer that satisfy a condition that you define
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* The minimum zoom level at which the layer gets parsed and appears.
|
|
37
|
+
*/
|
|
38
|
+
minZoomLevel?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The maximum zoom level at which the layer gets parsed and appears.
|
|
41
|
+
*/
|
|
42
|
+
maxZoomLevel?: number;
|
|
43
|
+
filter?: FilterExpression;
|
|
44
|
+
/**
|
|
45
|
+
* Customizable style attributes
|
|
46
|
+
*/
|
|
47
|
+
style?: AllLayerStyleProps;
|
|
48
|
+
}
|
|
49
|
+
export interface NativeBaseProps {
|
|
50
|
+
reactStyle?: {
|
|
51
|
+
[key: string]: StyleValue;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export default function useAbstractLayer<Props extends BaseProps, NativeProps extends NativeBaseProps>(props: Props & BaseLayerProps): {
|
|
55
|
+
baseProps: Props & BaseLayerProps;
|
|
56
|
+
setNativeLayer: (instance: (React.Component<NativeProps> & Readonly<NativeMethods>) | null) => void;
|
|
57
|
+
getStyleTypeFormatter: (styleType: string) => typeof processColor | undefined;
|
|
58
|
+
setNativeProps: (nativeProps: {
|
|
59
|
+
[key: string]: unknown;
|
|
60
|
+
}) => void;
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=useAbstractLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAbstractLayer.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractLayer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACL,KAAK,kBAAkB,EAGvB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,qBAAqB,CAAC;AAGtE,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,KAAK,SAAS,SAAS,EACvB,WAAW,SAAS,eAAe,EAEnC,KAAK,EAAE,KAAK,GAAG,cAAc,GAC5B;IACD,SAAS,EAAE,KAAK,GAAG,cAAc,CAAC;IAClC,cAAc,EAAE,CACd,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,IAAI,KACtE,IAAI,CAAC;IACV,qBAAqB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,YAAY,GAAG,SAAS,CAAC;IAC9E,cAAc,EAAE,CAAC,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CACnE,CAoDA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type NativeMethods } from "react-native";
|
|
2
|
+
export default function useAbstractSource<NativePropsType extends object>(): {
|
|
3
|
+
_nativeRef: (React.Component<NativePropsType> & Readonly<NativeMethods>) | undefined;
|
|
4
|
+
setNativeRef: (instance: React.Component<NativePropsType> & Readonly<NativeMethods>) => void;
|
|
5
|
+
setNativeProps: (nativeProps: NativePropsType) => void;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useAbstractSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAbstractSource.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,eAAe,SAAS,MAAM,KAAK;IAC3E,UAAU,EACN,CAAC,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,GAC5D,SAAS,CAAC;IACd,YAAY,EAAE,CACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,KACjE,IAAI,CAAC;IACV,cAAc,EAAE,CAAC,WAAW,EAAE,eAAe,KAAK,IAAI,CAAC;CACxD,CAsBA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, type SyntheticEvent } from "react";
|
|
2
|
+
import { type NativeArg } from "../utils";
|
|
3
|
+
export type RNMLEvent<PayloadType = {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}> = {
|
|
6
|
+
payload: PayloadType;
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
type UseNativeBridge = {
|
|
10
|
+
_nativeModuleName: string;
|
|
11
|
+
_onAndroidCallback: (e: SyntheticEvent<Element, RNMLEvent>) => void;
|
|
12
|
+
_callbackMap: React.MutableRefObject<Map<string, any>>;
|
|
13
|
+
_preRefMapMethodQueue: React.MutableRefObject<any[]>;
|
|
14
|
+
_addAddAndroidCallback: <ReturnType>(id: string, resolve: (value: ReturnType) => void, reject: (error: Error) => void) => void;
|
|
15
|
+
_removeAndroidCallback: (id: string) => void;
|
|
16
|
+
_runPendingNativeCommands: <RefType extends Component>(nativeRef: RefType | null | undefined) => Promise<void>;
|
|
17
|
+
_runNativeCommand: <RefType extends Component, ReturnType = NativeArg>(methodName: string, nativeRef: RefType | undefined | null, args?: NativeArg[]) => Promise<ReturnType>;
|
|
18
|
+
};
|
|
19
|
+
declare const useNativeBridge: (moduleName: string) => UseNativeBridge;
|
|
20
|
+
export default useNativeBridge;
|
|
21
|
+
//# sourceMappingURL=useNativeBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNativeBridge.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAU,MAAM,OAAO,CAAC;AAE/D,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAEvE,MAAM,MAAM,SAAS,CAAC,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,IAAI;IAC/D,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAIF,KAAK,eAAe,GAAG;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,CAAC,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,KAAK,IAAI,CAAC;IACpE,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IACvD,qBAAqB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;IACrD,sBAAsB,EAAE,CAAC,UAAU,EACjC,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,EACpC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,KAC3B,IAAI,CAAC;IACV,sBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,yBAAyB,EAAE,CAAC,OAAO,SAAS,SAAS,EACnD,SAAS,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,KAClC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,iBAAiB,EAAE,CAAC,OAAO,SAAS,SAAS,EAAE,UAAU,GAAG,SAAS,EACnE,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,EACrC,IAAI,CAAC,EAAE,SAAS,EAAE,KACf,OAAO,CAAC,UAAU,CAAC,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,eA0F9C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import { type NativeMethods } from "react-native";
|
|
3
|
+
export type NativeRef<NativeProps> = Component<NativeProps> & Readonly<NativeMethods>;
|
|
4
|
+
/**
|
|
5
|
+
* Separate module which allows to be mocked in tests.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useNativeRef<NativeProps = object>(): React.RefObject<NativeRef<NativeProps>>;
|
|
8
|
+
//# sourceMappingURL=useNativeRef.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNativeRef.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAC1C,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,KAAK,CAAC,SAAS,CACnE,SAAS,CAAC,WAAW,CAAC,CACvB,CAEA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnce.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useOnce.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,IAOxC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { NativeEventEmitter, type EmitterSubscription } from "react-native";
|
|
2
|
+
export declare const LocationModuleEventEmitter: NativeEventEmitter;
|
|
3
|
+
/**
|
|
4
|
+
* Location sent by locationManager
|
|
5
|
+
*/
|
|
6
|
+
export interface Location {
|
|
7
|
+
coords: Coordinates;
|
|
8
|
+
timestamp?: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Coorinates sent by locationManager
|
|
12
|
+
*/
|
|
13
|
+
interface Coordinates {
|
|
14
|
+
/**
|
|
15
|
+
* The heading (measured in degrees) relative to true north.
|
|
16
|
+
* Heading is used to describe the direction the device is pointing to (the value of the compass).
|
|
17
|
+
* Note that on Android this is incorrectly reporting the course value as mentioned in issue https://github.com/rnmapbox/maps/issues/1213
|
|
18
|
+
* and will be corrected in a future update.
|
|
19
|
+
*/
|
|
20
|
+
heading?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The direction in which the device is traveling, measured in degrees and relative to due north.
|
|
23
|
+
* The course refers to the direction the device is actually moving (not the same as heading).
|
|
24
|
+
*/
|
|
25
|
+
course?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The instantaneous speed of the device, measured in meters per second.
|
|
28
|
+
*/
|
|
29
|
+
speed?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The latitude in degrees.
|
|
32
|
+
*/
|
|
33
|
+
latitude: number;
|
|
34
|
+
/**
|
|
35
|
+
* The longitude in degrees.
|
|
36
|
+
*/
|
|
37
|
+
longitude: number;
|
|
38
|
+
/**
|
|
39
|
+
* The radius of uncertainty for the location, measured in meters.
|
|
40
|
+
*/
|
|
41
|
+
accuracy?: number;
|
|
42
|
+
/**
|
|
43
|
+
* The altitude, measured in meters.
|
|
44
|
+
*/
|
|
45
|
+
altitude?: number;
|
|
46
|
+
}
|
|
47
|
+
declare class LocationManager {
|
|
48
|
+
_listeners: ((location: Location) => void)[];
|
|
49
|
+
_lastKnownLocation: Location | null;
|
|
50
|
+
_isListening: boolean;
|
|
51
|
+
subscription: EmitterSubscription | null;
|
|
52
|
+
constructor();
|
|
53
|
+
getLastKnownLocation(): Promise<Location | null>;
|
|
54
|
+
addListener(listener: (location: Location) => void): void;
|
|
55
|
+
removeListener(listener: (location: Location) => void): void;
|
|
56
|
+
removeAllListeners(): void;
|
|
57
|
+
start(displacement?: number): void;
|
|
58
|
+
stop(): void;
|
|
59
|
+
setMinDisplacement(minDisplacement: number): void;
|
|
60
|
+
onUpdate(location: Location): void;
|
|
61
|
+
}
|
|
62
|
+
declare const _default: LocationManager;
|
|
63
|
+
export default _default;
|
|
64
|
+
//# 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;AAEF;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,UAAU,WAAW;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,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;IAuBtD,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,wBAAqC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface OfflineCreatePackInputOptions {
|
|
2
|
+
name: string;
|
|
3
|
+
styleURL: string;
|
|
4
|
+
bounds: [GeoJSON.Position, GeoJSON.Position];
|
|
5
|
+
minZoom?: number;
|
|
6
|
+
maxZoom?: number;
|
|
7
|
+
metadata?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
declare class OfflineCreatePackOptions {
|
|
10
|
+
name: string;
|
|
11
|
+
styleURL: string;
|
|
12
|
+
bounds: string;
|
|
13
|
+
minZoom?: number;
|
|
14
|
+
maxZoom?: number;
|
|
15
|
+
metadata: string;
|
|
16
|
+
constructor(options: OfflineCreatePackInputOptions);
|
|
17
|
+
_assert(options: OfflineCreatePackInputOptions): void;
|
|
18
|
+
_makeMetadata(metadata?: Record<string, any>): string;
|
|
19
|
+
}
|
|
20
|
+
export default OfflineCreatePackOptions;
|
|
21
|
+
//# sourceMappingURL=OfflineCreatePackOptions.d.ts.map
|
|
@@ -0,0 +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,cAAM,wBAAwB;IAC5B,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;AAED,eAAe,wBAAwB,CAAC"}
|