@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,134 @@
|
|
|
1
|
+
import { type ViewProps } from "react-native";
|
|
2
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
3
|
+
import { CameraMode } from "../types/CameraMode";
|
|
4
|
+
import type { MapLibreRNEvent } from "../types/MapLibreRNEvent";
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNCamera";
|
|
6
|
+
export declare enum UserTrackingMode {
|
|
7
|
+
Follow = "normal",
|
|
8
|
+
FollowWithHeading = "compass",
|
|
9
|
+
FollowWithCourse = "course"
|
|
10
|
+
}
|
|
11
|
+
export type UserTrackingModeChangeCallback = (event: MapLibreRNEvent<"usertrackingmodechange", {
|
|
12
|
+
followUserLocation: boolean;
|
|
13
|
+
followUserMode: UserTrackingMode | null;
|
|
14
|
+
}>) => void;
|
|
15
|
+
export declare function getNativeCameraMode(mode?: CameraAnimationMode): CameraMode;
|
|
16
|
+
export interface CameraRef {
|
|
17
|
+
setCamera: (config: CameraStop | CameraStops) => void;
|
|
18
|
+
fitBounds: (ne: GeoJSON.Position, sw: GeoJSON.Position, paddingConfig?: number | number[], animationDuration?: number) => void;
|
|
19
|
+
flyTo: (coordinates: GeoJSON.Position, animationDuration?: number) => void;
|
|
20
|
+
moveTo: (coordinates: GeoJSON.Position, animationDuration?: number) => void;
|
|
21
|
+
zoomTo: (zoomLevel: number, animationDuration?: number) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface CameraPadding {
|
|
24
|
+
/**
|
|
25
|
+
* Left padding in points
|
|
26
|
+
*/
|
|
27
|
+
paddingLeft?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Right padding in points
|
|
30
|
+
*/
|
|
31
|
+
paddingRight?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Top padding in points
|
|
34
|
+
*/
|
|
35
|
+
paddingTop?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Bottom padding in points
|
|
38
|
+
*/
|
|
39
|
+
paddingBottom?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface CameraBounds {
|
|
42
|
+
/**
|
|
43
|
+
* North east coordinate of bound
|
|
44
|
+
*/
|
|
45
|
+
ne: number[];
|
|
46
|
+
/**
|
|
47
|
+
* South west coordinate of bound
|
|
48
|
+
*/
|
|
49
|
+
sw: number[];
|
|
50
|
+
}
|
|
51
|
+
interface CameraBoundsWithPadding extends CameraBounds, Partial<CameraPadding> {
|
|
52
|
+
}
|
|
53
|
+
export type CameraAnimationMode = "flyTo" | "easeTo" | "linearTo" | "moveTo";
|
|
54
|
+
export interface NativeCameraStop extends CameraPadding {
|
|
55
|
+
duration?: number;
|
|
56
|
+
mode?: CameraMode;
|
|
57
|
+
pitch?: number;
|
|
58
|
+
heading?: number;
|
|
59
|
+
zoom?: number;
|
|
60
|
+
centerCoordinate?: string;
|
|
61
|
+
bounds?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface CameraStop {
|
|
64
|
+
/** The location on which the map should center. */
|
|
65
|
+
centerCoordinate?: GeoJSON.Position;
|
|
66
|
+
/** The corners of a box around which the map should bound. Contains padding props for backwards
|
|
67
|
+
* compatibility; the root `padding` prop should be used instead. */
|
|
68
|
+
bounds?: CameraBoundsWithPadding;
|
|
69
|
+
/** The heading (orientation) of the map. */
|
|
70
|
+
heading?: number;
|
|
71
|
+
/** The pitch of the map. */
|
|
72
|
+
pitch?: number;
|
|
73
|
+
/** The zoom level of the map. */
|
|
74
|
+
zoomLevel?: number;
|
|
75
|
+
/** The viewport padding in points. */
|
|
76
|
+
padding?: CameraPadding;
|
|
77
|
+
/** The duration the map takes to animate to a new configuration. */
|
|
78
|
+
animationDuration?: number;
|
|
79
|
+
/** The easing or path the camera uses to animate to a new configuration. */
|
|
80
|
+
animationMode?: CameraAnimationMode;
|
|
81
|
+
}
|
|
82
|
+
export type CameraStops = {
|
|
83
|
+
stops: CameraStop[];
|
|
84
|
+
};
|
|
85
|
+
export interface CameraProps extends BaseProps, CameraStop {
|
|
86
|
+
/**
|
|
87
|
+
* Default view settings applied on camera
|
|
88
|
+
*/
|
|
89
|
+
defaultSettings?: CameraStop;
|
|
90
|
+
/**
|
|
91
|
+
* Minimum zoom level of the map
|
|
92
|
+
*/
|
|
93
|
+
minZoomLevel?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Maximum zoom level of the map
|
|
96
|
+
*/
|
|
97
|
+
maxZoomLevel?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Restrict map panning so that the center is within these bounds
|
|
100
|
+
*/
|
|
101
|
+
maxBounds?: CameraBounds;
|
|
102
|
+
/**
|
|
103
|
+
* Should the map orientation follow the user's.
|
|
104
|
+
*/
|
|
105
|
+
followUserLocation?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* The mode used to track the user location on the map. One of; "normal", "compass", "course". Each mode string is also available as a member on the `MapLibreGL.UserTrackingModes` object. `Follow` (normal), `FollowWithHeading` (compass), `FollowWithCourse` (course). NOTE: `followUserLocation` must be set to `true` for any of the modes to take effect. [Example](/packages/examples/src/examples/Camera/SetUserTrackingModes.js)
|
|
108
|
+
*/
|
|
109
|
+
followUserMode?: UserTrackingMode;
|
|
110
|
+
/**
|
|
111
|
+
* The zoomLevel on map while followUserLocation is set to `true`
|
|
112
|
+
*/
|
|
113
|
+
followZoomLevel?: number;
|
|
114
|
+
/**
|
|
115
|
+
* The pitch on map while followUserLocation is set to `true`
|
|
116
|
+
*/
|
|
117
|
+
followPitch?: number;
|
|
118
|
+
/**
|
|
119
|
+
* The heading on map while followUserLocation is set to `true`
|
|
120
|
+
*/
|
|
121
|
+
followHeading?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Triggered when `followUserLocation` or `followUserMode` changes
|
|
124
|
+
*/
|
|
125
|
+
onUserTrackingModeChange?: UserTrackingModeChangeCallback;
|
|
126
|
+
}
|
|
127
|
+
export interface NativeCameraProps extends Omit<CameraProps, "maxBounds">, ViewProps {
|
|
128
|
+
maxBounds?: string;
|
|
129
|
+
stop?: NativeCameraStop;
|
|
130
|
+
defaultStop?: NativeCameraStop;
|
|
131
|
+
}
|
|
132
|
+
declare const Camera: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<CameraProps & import("react").RefAttributes<CameraRef>>>;
|
|
133
|
+
export default Camera;
|
|
134
|
+
//# sourceMappingURL=Camera.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Camera.d.ts","sourceRoot":"","sources":["../../../../../src/components/Camera.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAItE,OAAO,EAAE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B,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,UAAU;IACxD;;OAEG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;IAE7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAElC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,wBAAwB,CAAC,EAAE,8BAA8B,CAAC;CAC3D;AAED,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,EACpC,SAAS;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAED,QAAA,MAAM,MAAM,wIAgPX,CAAC;AAKF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type CircleLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNCircleLayer";
|
|
6
|
+
export interface CircleLayerProps extends BaseProps, BaseLayerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Customizable style attributes
|
|
9
|
+
*/
|
|
10
|
+
style?: CircleLayerStyleProps;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* CircleLayer is a style layer that renders one or more filled circles on the map.
|
|
14
|
+
*/
|
|
15
|
+
declare const CircleLayer: React.FC<CircleLayerProps>;
|
|
16
|
+
export default CircleLayer;
|
|
17
|
+
//# sourceMappingURL=CircleLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircleLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/CircleLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,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;CAC/B;AASD;;GAEG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type FillExtrusionLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNFillExtrusionLayer";
|
|
6
|
+
export interface FillExtrusionLayerProps extends BaseProps, BaseLayerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Customizable style attributes
|
|
9
|
+
*/
|
|
10
|
+
style?: FillExtrusionLayerStyleProps;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* FillExtrusionLayer is a style layer that renders one or more 3D extruded polygons on the map.
|
|
14
|
+
*/
|
|
15
|
+
declare const FillExtrusionLayer: React.FC<FillExtrusionLayerProps>;
|
|
16
|
+
export default FillExtrusionLayer;
|
|
17
|
+
//# sourceMappingURL=FillExtrusionLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FillExtrusionLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/FillExtrusionLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAyB,EACvB,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAI9E,eAAO,MAAM,kBAAkB,6BAA6B,CAAC;AAE7D,MAAM,WAAW,uBAAwB,SAAQ,SAAS,EAAE,cAAc;IACxE;;OAEG;IACH,KAAK,CAAC,EAAE,4BAA4B,CAAC;CACtC;AASD;;GAEG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAazD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type FillLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNFillLayer";
|
|
6
|
+
export interface FillLayerProps extends BaseProps, BaseLayerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Customizable style attributes
|
|
9
|
+
*/
|
|
10
|
+
style?: FillLayerStyleProps;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* FillLayer is a style layer that renders one or more filled (and optionally stroked) polygons on the map.
|
|
14
|
+
*/
|
|
15
|
+
declare const FillLayer: React.FC<FillLayerProps>;
|
|
16
|
+
export default FillLayer;
|
|
17
|
+
//# sourceMappingURL=FillLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FillLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/FillLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAyB,EACvB,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,MAAM,WAAW,cAAe,SAAQ,SAAS,EAAE,cAAc;IAC/D;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAMD;;GAEG;AACH,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAavC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
3
|
+
interface HeadingIndicatorProps extends BaseProps {
|
|
4
|
+
heading?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const HeadingIndicator: ({ heading }: HeadingIndicatorProps) => ReactElement;
|
|
7
|
+
export default HeadingIndicator;
|
|
8
|
+
//# sourceMappingURL=HeadingIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadingIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/HeadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AASpD,UAAU,qBAAsB,SAAQ,SAAS;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,gBAAgB,gBAAiB,qBAAqB,KAAG,YAU9D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type HeatmapLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNHeatmapLayer";
|
|
6
|
+
export interface HeatmapLayerProps extends BaseProps, BaseLayerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Customizable style attributes
|
|
9
|
+
*/
|
|
10
|
+
style?: HeatmapLayerStyleProps;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* HeatmapLayer is a style layer that renders one or more filled circles on the map.
|
|
14
|
+
*/
|
|
15
|
+
declare const HeatmapLayer: React.FC<HeatmapLayerProps>;
|
|
16
|
+
export default HeatmapLayer;
|
|
17
|
+
//# sourceMappingURL=HeatmapLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeatmapLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/HeatmapLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAyB,EACvB,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAIxE,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,cAAc;IAClE;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC;AAQD;;GAEG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAa7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
3
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNImageSource";
|
|
4
|
+
export interface ImageSourceProps extends BaseProps {
|
|
5
|
+
/**
|
|
6
|
+
* A string that uniquely identifies the source.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* An HTTP(S) URL, absolute file URL, or local file URL to the source image.
|
|
11
|
+
* Gifs are currently not supported.
|
|
12
|
+
*/
|
|
13
|
+
url?: number | string;
|
|
14
|
+
/**
|
|
15
|
+
* The top left, top right, bottom right, and bottom left coordinates for the image.
|
|
16
|
+
*/
|
|
17
|
+
coordinates?: [
|
|
18
|
+
GeoJSON.Position,
|
|
19
|
+
GeoJSON.Position,
|
|
20
|
+
GeoJSON.Position,
|
|
21
|
+
GeoJSON.Position
|
|
22
|
+
];
|
|
23
|
+
children?: ReactElement | ReactElement[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* ImageSource is a content source that is used for a georeferenced raster image to be shown on the map.
|
|
27
|
+
* The georeferenced image scales and rotates as the user zooms and rotates the map
|
|
28
|
+
*/
|
|
29
|
+
declare const ImageSource: React.FC<ImageSourceProps>;
|
|
30
|
+
export default ImageSource;
|
|
31
|
+
//# sourceMappingURL=ImageSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAOpD,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAEtD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,OAAO,CAAC,QAAQ;QAChB,OAAO,CAAC,QAAQ;QAChB,OAAO,CAAC,QAAQ;QAChB,OAAO,CAAC,QAAQ;KACjB,CAAC;IAEF,QAAQ,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;CAC1C;AAOD;;;GAGG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type ImageSourcePropType } from "react-native";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNImages";
|
|
5
|
+
export type ImageEntry = string | ImageSourcePropType;
|
|
6
|
+
interface ImagesProps extends BaseProps {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies the external images in key-value pairs required for the shape source.
|
|
9
|
+
* Keys are names - see iconImage expressions, values can be either urls-s objects
|
|
10
|
+
* with format {uri: 'http://...'}` or `require('image.png')` or `import 'image.png'`
|
|
11
|
+
*/
|
|
12
|
+
images?: {
|
|
13
|
+
[key: string]: ImageEntry;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* If you have an asset under Image.xcassets on iOS and the drawables directory on android
|
|
17
|
+
* you can specify an array of string names with assets as the key `['pin']`.
|
|
18
|
+
*/
|
|
19
|
+
nativeAssetImages?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Gets called when a Layer is trying to render an image whose key is not present in
|
|
22
|
+
* any of the `Images` component of the Map.
|
|
23
|
+
*/
|
|
24
|
+
onImageMissing?(imageKey: string): void;
|
|
25
|
+
id?: string;
|
|
26
|
+
children: ReactElement;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Images defines the images used in Symbol etc layers
|
|
30
|
+
*/
|
|
31
|
+
declare const Images: ({ images, nativeAssetImages, onImageMissing, id, children, }: ImagesProps) => ReactElement;
|
|
32
|
+
export default Images;
|
|
33
|
+
//# sourceMappingURL=Images.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Images.d.ts","sourceRoot":"","sources":["../../../../../src/components/Images.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAIL,KAAK,mBAAmB,EAEzB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,mBAAmB,CAAC;AAwBtD,UAAU,WAAY,SAAQ,SAAS;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;IACvC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B;;;OAGG;IACH,cAAc,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED;;GAEG;AACH,QAAA,MAAM,MAAM,iEAMT,WAAW,KAAG,YA6DhB,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type LightLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNLight";
|
|
6
|
+
interface LightProps extends BaseProps, BaseLayerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Customizable style attributes
|
|
9
|
+
*/
|
|
10
|
+
style?: LightLayerStyleProps;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Light represents the light source for extruded geometries
|
|
14
|
+
*/
|
|
15
|
+
declare const Light: React.FC<LightProps>;
|
|
16
|
+
export default Light;
|
|
17
|
+
//# sourceMappingURL=Light.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Light.d.ts","sourceRoot":"","sources":["../../../../../src/components/Light.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAyB,EACvB,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGtE,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAEhD,UAAU,UAAW,SAAQ,SAAS,EAAE,cAAc;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B;AAQD;;GAEG;AACH,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAW/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type LineLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNLineLayer";
|
|
6
|
+
export interface LineLayerProps extends BaseProps, BaseLayerProps {
|
|
7
|
+
/**
|
|
8
|
+
* Customizable style attributes
|
|
9
|
+
*/
|
|
10
|
+
style?: LineLayerStyleProps;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* LineLayer is a style layer that renders one or more stroked polylines on the map.
|
|
14
|
+
*/
|
|
15
|
+
declare const LineLayer: React.FC<LineLayerProps>;
|
|
16
|
+
export default LineLayer;
|
|
17
|
+
//# sourceMappingURL=LineLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/LineLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAyB,EACvB,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,MAAM,WAAW,cAAe,SAAQ,SAAS,EAAE,cAAc;IAC/D;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B;AAOD;;GAEG;AACH,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAavC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ViewProps, type NativeSyntheticEvent } from "react-native";
|
|
3
|
+
import { type Location } from "../modules/location/locationManager";
|
|
4
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
5
|
+
import { type FilterExpression } from "../utils/MapLibreRNStyles";
|
|
6
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNMapView";
|
|
7
|
+
export declare const ANDROID_TEXTURE_NATIVE_MODULE_NAME = "RCTMLNAndroidTextureMapView";
|
|
8
|
+
export interface RegionPayload {
|
|
9
|
+
zoomLevel: number;
|
|
10
|
+
heading: number;
|
|
11
|
+
animated: boolean;
|
|
12
|
+
isUserInteraction: boolean;
|
|
13
|
+
visibleBounds: VisibleBounds;
|
|
14
|
+
pitch: number;
|
|
15
|
+
}
|
|
16
|
+
type VisibleBounds = [northEast: GeoJSON.Position, southWest: GeoJSON.Position];
|
|
17
|
+
interface MapViewProps extends BaseProps {
|
|
18
|
+
/**
|
|
19
|
+
* The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport.
|
|
20
|
+
*/
|
|
21
|
+
contentInset?: number[] | number;
|
|
22
|
+
/**
|
|
23
|
+
* Style for wrapping React Native View
|
|
24
|
+
*/
|
|
25
|
+
style?: ViewProps["style"];
|
|
26
|
+
/**
|
|
27
|
+
* Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.Default`
|
|
28
|
+
*/
|
|
29
|
+
styleURL?: string;
|
|
30
|
+
/**
|
|
31
|
+
* StyleJSON for map - according to TileJSON specs: https://github.com/mapbox/tilejson-spec
|
|
32
|
+
*/
|
|
33
|
+
styleJSON?: string;
|
|
34
|
+
/**
|
|
35
|
+
* iOS: The preferred frame rate at which the map view is rendered.
|
|
36
|
+
* The default value for this property is MLNMapViewPreferredFramesPerSecondDefault,
|
|
37
|
+
* which will adaptively set the preferred frame rate based on the capability of
|
|
38
|
+
* the user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.
|
|
39
|
+
*
|
|
40
|
+
* Android: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.
|
|
41
|
+
* This property can be set to arbitrary integer values.
|
|
42
|
+
*/
|
|
43
|
+
preferredFramesPerSecond?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Automatically change the language of the map labels to the system’s preferred language,
|
|
46
|
+
* this is not something that can be toggled on/off
|
|
47
|
+
*/
|
|
48
|
+
localizeLabels?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Enable/Disable zoom on the map
|
|
51
|
+
*/
|
|
52
|
+
zoomEnabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Enable/Disable scroll on the map
|
|
55
|
+
*/
|
|
56
|
+
scrollEnabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Enable/Disable pitch on map
|
|
59
|
+
*/
|
|
60
|
+
pitchEnabled?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Enable/Disable rotation on map
|
|
63
|
+
*/
|
|
64
|
+
rotateEnabled?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Enable/Disable attribution on map.
|
|
67
|
+
*
|
|
68
|
+
* This must be enabled for Mapbox-hosted tiles and styles. Please refer to the Mapbox Terms of Service.
|
|
69
|
+
* Other providers do not require this.
|
|
70
|
+
*/
|
|
71
|
+
attributionEnabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Adds attribution offset, e.g. `{top: 8, left: 8}` will put attribution button in top-left corner of the map
|
|
74
|
+
*/
|
|
75
|
+
attributionPosition?: {
|
|
76
|
+
top?: number;
|
|
77
|
+
left?: number;
|
|
78
|
+
} | {
|
|
79
|
+
top?: number;
|
|
80
|
+
right?: number;
|
|
81
|
+
} | {
|
|
82
|
+
bottom?: number;
|
|
83
|
+
left?: number;
|
|
84
|
+
} | {
|
|
85
|
+
bottom?: number;
|
|
86
|
+
right?: number;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* MapView's tintColor
|
|
90
|
+
*/
|
|
91
|
+
tintColor?: string | unknown[];
|
|
92
|
+
/**
|
|
93
|
+
* Enable/Disable the logo on the map.
|
|
94
|
+
*/
|
|
95
|
+
logoEnabled?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Adds logo offset, e.g. `{top: 8, left: 8}` will put the logo in top-left corner of the map
|
|
98
|
+
*/
|
|
99
|
+
logoPosition?: {
|
|
100
|
+
top?: number;
|
|
101
|
+
left?: number;
|
|
102
|
+
} | {
|
|
103
|
+
top?: number;
|
|
104
|
+
right?: number;
|
|
105
|
+
} | {
|
|
106
|
+
bottom?: number;
|
|
107
|
+
left?: number;
|
|
108
|
+
} | {
|
|
109
|
+
bottom?: number;
|
|
110
|
+
right?: number;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Enable/Disable the compass from appearing on the map
|
|
114
|
+
*/
|
|
115
|
+
compassEnabled?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Change corner of map the compass starts at. 0: TopLeft, 1: TopRight, 2: BottomLeft, 3: BottomRight
|
|
118
|
+
*/
|
|
119
|
+
compassViewPosition?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Add margins to the compass with x and y values
|
|
122
|
+
*/
|
|
123
|
+
compassViewMargins?: object;
|
|
124
|
+
/**
|
|
125
|
+
* [Android only] Enable/Disable use of GLSurfaceView insted of TextureView.
|
|
126
|
+
*/
|
|
127
|
+
surfaceView?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Map press listener, gets called when a user presses the map
|
|
130
|
+
*/
|
|
131
|
+
onPress?(feature: GeoJSON.Feature): void;
|
|
132
|
+
/**
|
|
133
|
+
* Map long press listener, gets called when a user long presses the map
|
|
134
|
+
*/
|
|
135
|
+
onLongPress?(feature: GeoJSON.Feature): void;
|
|
136
|
+
/**
|
|
137
|
+
* This event is triggered whenever the currently displayed map region is about to change.
|
|
138
|
+
*
|
|
139
|
+
* @param {PointFeature} feature - The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds
|
|
140
|
+
*/
|
|
141
|
+
onRegionWillChange?(feature: GeoJSON.Feature<GeoJSON.Point, RegionPayload>): void;
|
|
142
|
+
/**
|
|
143
|
+
* This event is triggered whenever the currently displayed map region is changing.
|
|
144
|
+
*
|
|
145
|
+
* @param {PointFeature} feature - The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds
|
|
146
|
+
*/
|
|
147
|
+
onRegionIsChanging?(feature: GeoJSON.Feature<GeoJSON.Point, RegionPayload>): void;
|
|
148
|
+
/**
|
|
149
|
+
* This event is triggered whenever the currently displayed map region finished changing
|
|
150
|
+
*
|
|
151
|
+
* @param {PointFeature} feature - The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds
|
|
152
|
+
*/
|
|
153
|
+
onRegionDidChange?(feature: GeoJSON.Feature<GeoJSON.Point, RegionPayload>): void;
|
|
154
|
+
/**
|
|
155
|
+
* This event is triggered when the map is about to start loading a new map style.
|
|
156
|
+
*/
|
|
157
|
+
onWillStartLoadingMap?(): void;
|
|
158
|
+
/**
|
|
159
|
+
* This is triggered when the map has successfully loaded a new map style.
|
|
160
|
+
*/
|
|
161
|
+
onDidFinishLoadingMap?(): void;
|
|
162
|
+
/**
|
|
163
|
+
* This event is triggered when the map has failed to load a new map style.
|
|
164
|
+
*/
|
|
165
|
+
onDidFailLoadingMap?(): void;
|
|
166
|
+
/**
|
|
167
|
+
* This event is triggered when the map will start rendering a frame.
|
|
168
|
+
*/
|
|
169
|
+
onWillStartRenderingFrame?(): void;
|
|
170
|
+
/**
|
|
171
|
+
* This event is triggered when the map finished rendering a frame.
|
|
172
|
+
*/
|
|
173
|
+
onDidFinishRenderingFrame?(): void;
|
|
174
|
+
/**
|
|
175
|
+
* This event is triggered when the map fully finished rendering a frame.
|
|
176
|
+
*/
|
|
177
|
+
onDidFinishRenderingFrameFully?(): void;
|
|
178
|
+
/**
|
|
179
|
+
* This event is triggered when the map will start rendering the map.
|
|
180
|
+
*/
|
|
181
|
+
onWillStartRenderingMap?(): void;
|
|
182
|
+
/**
|
|
183
|
+
* This event is triggered when the map finished rendering the map.
|
|
184
|
+
*/
|
|
185
|
+
onDidFinishRenderingMap?(): void;
|
|
186
|
+
/**
|
|
187
|
+
* This event is triggered when the map fully finished rendering the map.
|
|
188
|
+
*/
|
|
189
|
+
onDidFinishRenderingMapFully?(): void;
|
|
190
|
+
/**
|
|
191
|
+
* This event is triggered when the user location is updated.
|
|
192
|
+
*/
|
|
193
|
+
onUserLocationUpdate?: (location: Location) => void;
|
|
194
|
+
/**
|
|
195
|
+
* This event is triggered when a style has finished loading.
|
|
196
|
+
*/
|
|
197
|
+
onDidFinishLoadingStyle?(): void;
|
|
198
|
+
/**
|
|
199
|
+
* The emitted frequency of regionwillchange events
|
|
200
|
+
*/
|
|
201
|
+
regionWillChangeDebounceTime?: number;
|
|
202
|
+
/**
|
|
203
|
+
* The emitted frequency of regiondidchange events
|
|
204
|
+
*/
|
|
205
|
+
regionDidChangeDebounceTime?: number;
|
|
206
|
+
children: ReactNode;
|
|
207
|
+
}
|
|
208
|
+
interface NativeProps extends Omit<MapViewProps, "onPress" | "onLongPress"> {
|
|
209
|
+
onPress(event: NativeSyntheticEvent<{
|
|
210
|
+
payload: GeoJSON.Feature;
|
|
211
|
+
}>): void;
|
|
212
|
+
onLongPress(event: NativeSyntheticEvent<{
|
|
213
|
+
payload: GeoJSON.Feature;
|
|
214
|
+
}>): void;
|
|
215
|
+
}
|
|
216
|
+
export interface MapViewRef {
|
|
217
|
+
getPointInView: (coordinate: GeoJSON.Position) => Promise<GeoJSON.Point>;
|
|
218
|
+
getCoordinateFromView: (point: number[]) => Promise<GeoJSON.Position>;
|
|
219
|
+
getVisibleBounds: () => Promise<VisibleBounds>;
|
|
220
|
+
queryRenderedFeaturesAtPoint: (point: [screenPointX: number, screenPointY: number], filter: FilterExpression | undefined, layerIDs: string[]) => Promise<GeoJSON.FeatureCollection>;
|
|
221
|
+
queryRenderedFeaturesInRect: (bbox: GeoJSON.BBox, filter: FilterExpression | undefined, layerIDs: string[]) => Promise<GeoJSON.FeatureCollection>;
|
|
222
|
+
setCamera: () => void;
|
|
223
|
+
takeSnap: (writeToDisk?: boolean) => Promise<string>;
|
|
224
|
+
getZoom: () => Promise<number>;
|
|
225
|
+
getCenter: () => Promise<GeoJSON.Position>;
|
|
226
|
+
setSourceVisibility: (visible: boolean, sourceId: string, sourceLayerId?: string | null) => void;
|
|
227
|
+
showAttribution: () => Promise<void>;
|
|
228
|
+
setNativeProps: (props: NativeProps) => void;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* MapView backed by MapLibre Native
|
|
232
|
+
*/
|
|
233
|
+
declare const MapView: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<MapViewProps & import("react").RefAttributes<MapViewRef>>>;
|
|
234
|
+
export default MapView;
|
|
235
|
+
//# sourceMappingURL=MapView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../../src/components/MapView.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,KAAK,SAAS,EAEd,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAUlE,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,eAAO,MAAM,kCAAkC,gCAAgC,CAAC;AAQhF,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,KAAK,aAAa,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEhF,UAAU,YAAa,SAAQ,SAAS;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAA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CAAC,iBAAiB,CAAC,CAAC;IACxC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3C,mBAAmB,EAAE,CACnB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,KAC1B,IAAI,CAAC;IACV,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9C;AAED;;GAEG;AACH,QAAA,MAAM,OAAO,0IAqkBZ,CAAC;AAWF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type ViewProps } from "react-native";
|
|
3
|
+
export declare const NATIVE_MODULE_NAME = "RCTMLNMarkerView";
|
|
4
|
+
interface MarkerViewProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* The center point (specified as a map coordinate) of the marker.
|
|
7
|
+
* See also #anchor.
|
|
8
|
+
*/
|
|
9
|
+
coordinate: number[];
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the anchor being set on a particular point of the annotation.
|
|
12
|
+
* The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],
|
|
13
|
+
* where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.
|
|
14
|
+
* Note this is only for custom annotations not the default pin view.
|
|
15
|
+
* Defaults to the center of the view.
|
|
16
|
+
*/
|
|
17
|
+
anchor?: {
|
|
18
|
+
/**
|
|
19
|
+
* `x` of anchor
|
|
20
|
+
*/
|
|
21
|
+
x: number;
|
|
22
|
+
/**
|
|
23
|
+
* `y` of anchor
|
|
24
|
+
*/
|
|
25
|
+
y: number;
|
|
26
|
+
};
|
|
27
|
+
allowOverlap?: boolean;
|
|
28
|
+
isSelected?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Expects one child - can be container with multiple elements
|
|
31
|
+
*/
|
|
32
|
+
children: React.ReactElement;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* MarkerView allows you to place a interactive react native marker to the map.
|
|
36
|
+
*
|
|
37
|
+
* If you have static view consider using PointAnnotation or SymbolLayer they'll offer much better performance
|
|
38
|
+
* .
|
|
39
|
+
* This is based on [MakerView plugin](https://docs.mapbox.com/android/plugins/overview/markerview/) on Android
|
|
40
|
+
* and PointAnnotation on iOS.
|
|
41
|
+
*/
|
|
42
|
+
declare const MarkerView: ({ anchor, allowOverlap, isSelected, ...rest }: MarkerViewProps) => ReactElement;
|
|
43
|
+
export default MarkerView;
|
|
44
|
+
//# sourceMappingURL=MarkerView.d.ts.map
|