@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,231 @@
|
|
|
1
|
+
export declare const StyleTypes: {
|
|
2
|
+
Constant: string;
|
|
3
|
+
Color: string;
|
|
4
|
+
Transition: string;
|
|
5
|
+
Translation: string;
|
|
6
|
+
Function: string;
|
|
7
|
+
Image: string;
|
|
8
|
+
Enum: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function getStyleType(styleProp: keyof typeof styleExtras): string;
|
|
11
|
+
declare const styleMap: {
|
|
12
|
+
fillSortKey: string;
|
|
13
|
+
fillAntialias: string;
|
|
14
|
+
fillOpacity: string;
|
|
15
|
+
fillOpacityTransition: string;
|
|
16
|
+
fillColor: string;
|
|
17
|
+
fillColorTransition: string;
|
|
18
|
+
fillOutlineColor: string;
|
|
19
|
+
fillOutlineColorTransition: string;
|
|
20
|
+
fillTranslate: string;
|
|
21
|
+
fillTranslateTransition: string;
|
|
22
|
+
fillTranslateAnchor: string;
|
|
23
|
+
fillPattern: string;
|
|
24
|
+
fillPatternTransition: string;
|
|
25
|
+
lineCap: string;
|
|
26
|
+
lineJoin: string;
|
|
27
|
+
lineMiterLimit: string;
|
|
28
|
+
lineRoundLimit: string;
|
|
29
|
+
lineSortKey: string;
|
|
30
|
+
lineOpacity: string;
|
|
31
|
+
lineOpacityTransition: string;
|
|
32
|
+
lineColor: string;
|
|
33
|
+
lineColorTransition: string;
|
|
34
|
+
lineTranslate: string;
|
|
35
|
+
lineTranslateTransition: string;
|
|
36
|
+
lineTranslateAnchor: string;
|
|
37
|
+
lineWidth: string;
|
|
38
|
+
lineWidthTransition: string;
|
|
39
|
+
lineGapWidth: string;
|
|
40
|
+
lineGapWidthTransition: string;
|
|
41
|
+
lineOffset: string;
|
|
42
|
+
lineOffsetTransition: string;
|
|
43
|
+
lineBlur: string;
|
|
44
|
+
lineBlurTransition: string;
|
|
45
|
+
lineDasharray: string;
|
|
46
|
+
lineDasharrayTransition: string;
|
|
47
|
+
linePattern: string;
|
|
48
|
+
linePatternTransition: string;
|
|
49
|
+
lineGradient: string;
|
|
50
|
+
symbolPlacement: string;
|
|
51
|
+
symbolSpacing: string;
|
|
52
|
+
symbolAvoidEdges: string;
|
|
53
|
+
symbolSortKey: string;
|
|
54
|
+
symbolZOrder: string;
|
|
55
|
+
iconAllowOverlap: string;
|
|
56
|
+
iconIgnorePlacement: string;
|
|
57
|
+
iconOptional: string;
|
|
58
|
+
iconRotationAlignment: string;
|
|
59
|
+
iconSize: string;
|
|
60
|
+
iconTextFit: string;
|
|
61
|
+
iconTextFitPadding: string;
|
|
62
|
+
iconImage: string;
|
|
63
|
+
iconRotate: string;
|
|
64
|
+
iconPadding: string;
|
|
65
|
+
iconKeepUpright: string;
|
|
66
|
+
iconOffset: string;
|
|
67
|
+
iconAnchor: string;
|
|
68
|
+
iconPitchAlignment: string;
|
|
69
|
+
textPitchAlignment: string;
|
|
70
|
+
textRotationAlignment: string;
|
|
71
|
+
textField: string;
|
|
72
|
+
textFont: string;
|
|
73
|
+
textSize: string;
|
|
74
|
+
textMaxWidth: string;
|
|
75
|
+
textLineHeight: string;
|
|
76
|
+
textLetterSpacing: string;
|
|
77
|
+
textJustify: string;
|
|
78
|
+
textRadialOffset: string;
|
|
79
|
+
textVariableAnchor: string;
|
|
80
|
+
textAnchor: string;
|
|
81
|
+
textMaxAngle: string;
|
|
82
|
+
textWritingMode: string;
|
|
83
|
+
textRotate: string;
|
|
84
|
+
textPadding: string;
|
|
85
|
+
textKeepUpright: string;
|
|
86
|
+
textTransform: string;
|
|
87
|
+
textOffset: string;
|
|
88
|
+
textAllowOverlap: string;
|
|
89
|
+
textIgnorePlacement: string;
|
|
90
|
+
textOptional: string;
|
|
91
|
+
iconOpacity: string;
|
|
92
|
+
iconOpacityTransition: string;
|
|
93
|
+
iconColor: string;
|
|
94
|
+
iconColorTransition: string;
|
|
95
|
+
iconHaloColor: string;
|
|
96
|
+
iconHaloColorTransition: string;
|
|
97
|
+
iconHaloWidth: string;
|
|
98
|
+
iconHaloWidthTransition: string;
|
|
99
|
+
iconHaloBlur: string;
|
|
100
|
+
iconHaloBlurTransition: string;
|
|
101
|
+
iconTranslate: string;
|
|
102
|
+
iconTranslateTransition: string;
|
|
103
|
+
iconTranslateAnchor: string;
|
|
104
|
+
textOpacity: string;
|
|
105
|
+
textOpacityTransition: string;
|
|
106
|
+
textColor: string;
|
|
107
|
+
textColorTransition: string;
|
|
108
|
+
textHaloColor: string;
|
|
109
|
+
textHaloColorTransition: string;
|
|
110
|
+
textHaloWidth: string;
|
|
111
|
+
textHaloWidthTransition: string;
|
|
112
|
+
textHaloBlur: string;
|
|
113
|
+
textHaloBlurTransition: string;
|
|
114
|
+
textTranslate: string;
|
|
115
|
+
textTranslateTransition: string;
|
|
116
|
+
textTranslateAnchor: string;
|
|
117
|
+
circleSortKey: string;
|
|
118
|
+
circleRadius: string;
|
|
119
|
+
circleRadiusTransition: string;
|
|
120
|
+
circleColor: string;
|
|
121
|
+
circleColorTransition: string;
|
|
122
|
+
circleBlur: string;
|
|
123
|
+
circleBlurTransition: string;
|
|
124
|
+
circleOpacity: string;
|
|
125
|
+
circleOpacityTransition: string;
|
|
126
|
+
circleTranslate: string;
|
|
127
|
+
circleTranslateTransition: string;
|
|
128
|
+
circleTranslateAnchor: string;
|
|
129
|
+
circlePitchScale: string;
|
|
130
|
+
circlePitchAlignment: string;
|
|
131
|
+
circleStrokeWidth: string;
|
|
132
|
+
circleStrokeWidthTransition: string;
|
|
133
|
+
circleStrokeColor: string;
|
|
134
|
+
circleStrokeColorTransition: string;
|
|
135
|
+
circleStrokeOpacity: string;
|
|
136
|
+
circleStrokeOpacityTransition: string;
|
|
137
|
+
heatmapRadius: string;
|
|
138
|
+
heatmapRadiusTransition: string;
|
|
139
|
+
heatmapWeight: string;
|
|
140
|
+
heatmapIntensity: string;
|
|
141
|
+
heatmapIntensityTransition: string;
|
|
142
|
+
heatmapColor: string;
|
|
143
|
+
heatmapOpacity: string;
|
|
144
|
+
heatmapOpacityTransition: string;
|
|
145
|
+
fillExtrusionOpacity: string;
|
|
146
|
+
fillExtrusionOpacityTransition: string;
|
|
147
|
+
fillExtrusionColor: string;
|
|
148
|
+
fillExtrusionColorTransition: string;
|
|
149
|
+
fillExtrusionTranslate: string;
|
|
150
|
+
fillExtrusionTranslateTransition: string;
|
|
151
|
+
fillExtrusionTranslateAnchor: string;
|
|
152
|
+
fillExtrusionPattern: string;
|
|
153
|
+
fillExtrusionPatternTransition: string;
|
|
154
|
+
fillExtrusionHeight: string;
|
|
155
|
+
fillExtrusionHeightTransition: string;
|
|
156
|
+
fillExtrusionBase: string;
|
|
157
|
+
fillExtrusionBaseTransition: string;
|
|
158
|
+
fillExtrusionVerticalGradient: string;
|
|
159
|
+
rasterOpacity: string;
|
|
160
|
+
rasterOpacityTransition: string;
|
|
161
|
+
rasterHueRotate: string;
|
|
162
|
+
rasterHueRotateTransition: string;
|
|
163
|
+
rasterBrightnessMin: string;
|
|
164
|
+
rasterBrightnessMinTransition: string;
|
|
165
|
+
rasterBrightnessMax: string;
|
|
166
|
+
rasterBrightnessMaxTransition: string;
|
|
167
|
+
rasterSaturation: string;
|
|
168
|
+
rasterSaturationTransition: string;
|
|
169
|
+
rasterContrast: string;
|
|
170
|
+
rasterContrastTransition: string;
|
|
171
|
+
rasterResampling: string;
|
|
172
|
+
rasterFadeDuration: string;
|
|
173
|
+
hillshadeIlluminationDirection: string;
|
|
174
|
+
hillshadeIlluminationAnchor: string;
|
|
175
|
+
hillshadeExaggeration: string;
|
|
176
|
+
hillshadeExaggerationTransition: string;
|
|
177
|
+
hillshadeShadowColor: string;
|
|
178
|
+
hillshadeShadowColorTransition: string;
|
|
179
|
+
hillshadeHighlightColor: string;
|
|
180
|
+
hillshadeHighlightColorTransition: string;
|
|
181
|
+
hillshadeAccentColor: string;
|
|
182
|
+
hillshadeAccentColorTransition: string;
|
|
183
|
+
backgroundColor: string;
|
|
184
|
+
backgroundColorTransition: string;
|
|
185
|
+
backgroundPattern: string;
|
|
186
|
+
backgroundPatternTransition: string;
|
|
187
|
+
backgroundOpacity: string;
|
|
188
|
+
backgroundOpacityTransition: string;
|
|
189
|
+
anchor: string;
|
|
190
|
+
position: string;
|
|
191
|
+
positionTransition: string;
|
|
192
|
+
color: string;
|
|
193
|
+
colorTransition: string;
|
|
194
|
+
intensity: string;
|
|
195
|
+
intensityTransition: string;
|
|
196
|
+
visibility: string;
|
|
197
|
+
};
|
|
198
|
+
export declare const styleExtras: {
|
|
199
|
+
iconTextFitPadding: {
|
|
200
|
+
iosType: string;
|
|
201
|
+
};
|
|
202
|
+
iconOffset: {
|
|
203
|
+
iosType: string;
|
|
204
|
+
};
|
|
205
|
+
textOffset: {
|
|
206
|
+
iosType: string;
|
|
207
|
+
};
|
|
208
|
+
lineOffset: {
|
|
209
|
+
iosType: string;
|
|
210
|
+
};
|
|
211
|
+
fillTranslate: {
|
|
212
|
+
iosType: string;
|
|
213
|
+
};
|
|
214
|
+
lineTranslate: {
|
|
215
|
+
iosType: string;
|
|
216
|
+
};
|
|
217
|
+
iconTranslate: {
|
|
218
|
+
iosType: string;
|
|
219
|
+
};
|
|
220
|
+
textTranslate: {
|
|
221
|
+
iosType: string;
|
|
222
|
+
};
|
|
223
|
+
circleTranslate: {
|
|
224
|
+
iosType: string;
|
|
225
|
+
};
|
|
226
|
+
fillExtrusionTranslate: {
|
|
227
|
+
iosType: string;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
export default styleMap;
|
|
231
|
+
//# sourceMappingURL=styleMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleMap.d.ts","sourceRoot":"","sources":["../../../../../src/utils/styleMap.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;CAQtB,CAAC;AAEF,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,OAAO,WAAW,GAAG,MAAM,CAUxE;AAED,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoMb,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCvB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplibre/maplibre-react-native",
|
|
3
3
|
"description": "React Native library for creating maps with MapLibre Native for Android & iOS",
|
|
4
|
-
"version": "10.0.0-alpha.
|
|
4
|
+
"version": "10.0.0-alpha.28",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"author": "MapLibre",
|
|
9
|
-
"main": "./javascript/index.ts",
|
|
10
9
|
"keywords": [
|
|
11
10
|
"maps",
|
|
12
11
|
"ios",
|
|
@@ -16,27 +15,104 @@
|
|
|
16
15
|
"mapbox"
|
|
17
16
|
],
|
|
18
17
|
"license": "MIT",
|
|
18
|
+
"homepage": "https://github.com/maplibre/maplibre-react-native#readme",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/maplibre/maplibre-react-native"
|
|
21
|
+
"url": "git+https://github.com/maplibre/maplibre-react-native.git"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/maplibre/maplibre-react-native/issues"
|
|
22
25
|
},
|
|
23
26
|
"scripts": {
|
|
24
27
|
"codegen": "tsx scripts/codegen.ts",
|
|
25
28
|
"test": "jest",
|
|
26
|
-
"lint": "yarn lint:
|
|
29
|
+
"lint": "yarn lint:tsc && yarn lint:eslint",
|
|
27
30
|
"lint:eslint": "eslint .",
|
|
28
31
|
"lint:eslint:fix": "eslint . --fix",
|
|
29
|
-
"lint:tsc": "tsc --project .
|
|
32
|
+
"lint:tsc": "tsc --project . && tsc --project ./packages/examples",
|
|
30
33
|
"plugin:build": "tsc --build plugin",
|
|
31
34
|
"plugin:lint": "eslint plugin/src/*",
|
|
32
35
|
"plugin:test": "jest plugin",
|
|
33
|
-
"prepack": "yarn plugin:build"
|
|
36
|
+
"prepack": "bob build && yarn plugin:build"
|
|
34
37
|
},
|
|
35
38
|
"workspaces": [
|
|
36
39
|
"apps/*",
|
|
37
40
|
"packages/*"
|
|
38
41
|
],
|
|
39
42
|
"packageManager": "yarn@4.1.0",
|
|
43
|
+
"main": "./lib/commonjs/index.js",
|
|
44
|
+
"source": "./src/index.ts",
|
|
45
|
+
"module": "./lib/module/index.js",
|
|
46
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"import": {
|
|
50
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
|
51
|
+
"default": "./lib/module/index.js"
|
|
52
|
+
},
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
55
|
+
"default": "./lib/commonjs/index.js"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"./app.plugin.js": {
|
|
59
|
+
"require": {
|
|
60
|
+
"default": "./app.plugin.js"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"./plugin": {
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./plugin/build/witMapLibre.d.ts",
|
|
66
|
+
"default": "./plugin/build/withMapLibre.js"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"files": [
|
|
71
|
+
"src",
|
|
72
|
+
"lib",
|
|
73
|
+
"android",
|
|
74
|
+
"ios",
|
|
75
|
+
"cpp",
|
|
76
|
+
"*.podspec",
|
|
77
|
+
"react-native.config.json",
|
|
78
|
+
"app.plugin.js",
|
|
79
|
+
"plugin/build/**",
|
|
80
|
+
"!ios/build",
|
|
81
|
+
"!android/build",
|
|
82
|
+
"!android/gradle",
|
|
83
|
+
"!android/gradlew",
|
|
84
|
+
"!android/gradlew.bat",
|
|
85
|
+
"!android/local.properties",
|
|
86
|
+
"!**/__tests__",
|
|
87
|
+
"!**/__fixtures__",
|
|
88
|
+
"!**/__mocks__",
|
|
89
|
+
"!**/.*"
|
|
90
|
+
],
|
|
91
|
+
"react-native-builder-bob": {
|
|
92
|
+
"source": "src",
|
|
93
|
+
"output": "lib",
|
|
94
|
+
"targets": [
|
|
95
|
+
[
|
|
96
|
+
"commonjs",
|
|
97
|
+
{
|
|
98
|
+
"esm": true
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
"module",
|
|
103
|
+
{
|
|
104
|
+
"esm": true
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
[
|
|
108
|
+
"typescript",
|
|
109
|
+
{
|
|
110
|
+
"esm": true,
|
|
111
|
+
"project": "tsconfig.build.json"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
]
|
|
115
|
+
},
|
|
40
116
|
"peerDependenciesMeta": {
|
|
41
117
|
"@expo/config-plugins": {
|
|
42
118
|
"optional": true
|
|
@@ -87,6 +163,7 @@
|
|
|
87
163
|
"react": "18.2.0",
|
|
88
164
|
"react-docgen": "^7.1.0",
|
|
89
165
|
"react-native": "^0.74.6",
|
|
166
|
+
"react-native-builder-bob": "^0.32.0",
|
|
90
167
|
"react-test-renderer": "18.2.0",
|
|
91
168
|
"tsx": "^4.19.2",
|
|
92
169
|
"typescript": "^5.3.3"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigPlugin, XcodeProject } from "@expo/config-plugins";
|
|
1
|
+
import { type ConfigPlugin, type XcodeProject } from "@expo/config-plugins";
|
|
2
2
|
type InstallerBlockName = "pre" | "post";
|
|
3
3
|
export declare function applyCocoaPodsModifications(contents: string): string;
|
|
4
4
|
export declare function addInstallerBlock(src: string, blockName: InstallerBlockName): string;
|
|
@@ -64,7 +64,7 @@ export type {
|
|
|
64
64
|
HillshadeLayerStyleProps as HillshadeLayerStyle,
|
|
65
65
|
BackgroundLayerStyleProps as BackgroundLayerStyle,
|
|
66
66
|
LightLayerStyleProps as LightLayerStyle,
|
|
67
|
-
} from "./utils/
|
|
67
|
+
} from "./utils/MapLibreRNStyles";
|
|
68
68
|
|
|
69
69
|
/** @deprecated UserTrackingModes is deprecated use UserTrackingMode */
|
|
70
70
|
export const UserTrackingModes = UserTrackingMode;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
type ReactElement,
|
|
3
4
|
useCallback,
|
|
4
5
|
useEffect,
|
|
5
6
|
useImperativeHandle,
|
|
7
|
+
useState,
|
|
6
8
|
} from "react";
|
|
7
9
|
import { Animated as RNAnimated, Easing } from "react-native";
|
|
8
10
|
|
|
9
11
|
import SymbolLayer from "./SymbolLayer";
|
|
10
|
-
import OnPressEvent from "../types/OnPressEvent";
|
|
11
|
-
import { SymbolLayerStyleProps } from "../utils/
|
|
12
|
+
import { type OnPressEvent } from "../types/OnPressEvent";
|
|
13
|
+
import { type SymbolLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
12
14
|
import { AnimatedShapeSource } from "../utils/animated/Animated";
|
|
13
15
|
import AnimatedMapPoint from "../utils/animated/AnimatedPoint";
|
|
14
16
|
|
|
@@ -47,7 +49,7 @@ interface AnnotationRef {
|
|
|
47
49
|
symbolStyle: SymbolLayerStyleProps | undefined;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
const Annotation =
|
|
52
|
+
const Annotation = forwardRef<AnnotationRef, AnnotationProps>(
|
|
51
53
|
(
|
|
52
54
|
{
|
|
53
55
|
animated = false,
|
|
@@ -72,9 +74,7 @@ const Annotation = React.forwardRef<AnnotationRef, AnnotationProps>(
|
|
|
72
74
|
}),
|
|
73
75
|
);
|
|
74
76
|
|
|
75
|
-
const [shape, setShape] =
|
|
76
|
-
getShapeFromProps(props),
|
|
77
|
-
);
|
|
77
|
+
const [shape, setShape] = useState<Shape | null>(getShapeFromProps(props));
|
|
78
78
|
|
|
79
79
|
// this will run useEffect only when actual coordinates values change
|
|
80
80
|
const coordinateDeps = props.coordinates?.join(",");
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { NativeModules, requireNativeComponent } from "react-native";
|
|
3
3
|
|
|
4
4
|
import useAbstractLayer, {
|
|
5
|
-
BaseLayerProps,
|
|
6
|
-
NativeBaseProps,
|
|
5
|
+
type BaseLayerProps,
|
|
6
|
+
type NativeBaseProps,
|
|
7
7
|
} from "../hooks/useAbstractLayer";
|
|
8
|
-
import BaseProps from "../types/BaseProps";
|
|
9
|
-
import { BackgroundLayerStyleProps } from "../utils/
|
|
8
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
9
|
+
import { type BackgroundLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
10
10
|
|
|
11
11
|
const MapLibreGL = NativeModules.MLNModule;
|
|
12
12
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Children, type ReactElement } from "react";
|
|
2
2
|
import {
|
|
3
3
|
View,
|
|
4
4
|
Text,
|
|
5
5
|
Animated,
|
|
6
6
|
requireNativeComponent,
|
|
7
7
|
StyleSheet,
|
|
8
|
-
ViewStyle,
|
|
9
|
-
ViewProps,
|
|
10
|
-
StyleProp,
|
|
8
|
+
type ViewStyle,
|
|
9
|
+
type ViewProps,
|
|
10
|
+
type StyleProp,
|
|
11
11
|
} from "react-native";
|
|
12
12
|
|
|
13
13
|
export const NATIVE_MODULE_NAME = "RCTMLNCallout";
|
|
@@ -102,7 +102,7 @@ const Callout = (props: CalloutProps): ReactElement => {
|
|
|
102
102
|
} as ViewStyle,
|
|
103
103
|
];
|
|
104
104
|
|
|
105
|
-
const _hasChildren =
|
|
105
|
+
const _hasChildren = Children.count(children) > 0;
|
|
106
106
|
|
|
107
107
|
const _renderDefaultCallout = (): ReactElement => {
|
|
108
108
|
return (
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { point } from "@turf/helpers";
|
|
2
|
-
import
|
|
3
|
-
import { requireNativeComponent, ViewProps } from "react-native";
|
|
2
|
+
import { forwardRef, memo, useImperativeHandle, useMemo } from "react";
|
|
3
|
+
import { requireNativeComponent, type ViewProps } from "react-native";
|
|
4
4
|
|
|
5
5
|
import { CameraModes } from "../MLNModule";
|
|
6
6
|
import { useNativeRef } from "../hooks/useNativeRef";
|
|
7
|
-
import {
|
|
8
|
-
import BaseProps from "../types/BaseProps";
|
|
7
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
9
8
|
import { CameraMode } from "../types/CameraMode";
|
|
9
|
+
import type { MapLibreRNEvent } from "../types/MapLibreRNEvent";
|
|
10
10
|
import { makeNativeBounds } from "../utils/makeNativeBounds";
|
|
11
11
|
|
|
12
12
|
export const NATIVE_MODULE_NAME = "RCTMLNCamera";
|
|
@@ -18,7 +18,7 @@ export enum UserTrackingMode {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type UserTrackingModeChangeCallback = (
|
|
21
|
-
event:
|
|
21
|
+
event: MapLibreRNEvent<
|
|
22
22
|
"usertrackingmodechange",
|
|
23
23
|
{
|
|
24
24
|
followUserLocation: boolean;
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { NativeModules, requireNativeComponent } from "react-native";
|
|
3
3
|
|
|
4
4
|
import useAbstractLayer, {
|
|
5
|
-
BaseLayerProps,
|
|
6
|
-
NativeBaseProps,
|
|
5
|
+
type BaseLayerProps,
|
|
6
|
+
type NativeBaseProps,
|
|
7
7
|
} from "../hooks/useAbstractLayer";
|
|
8
|
-
import BaseProps from "../types/BaseProps";
|
|
9
|
-
import { CircleLayerStyleProps } from "../utils/
|
|
8
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
9
|
+
import { type CircleLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
10
10
|
|
|
11
11
|
const MapLibreGL = NativeModules.MLNModule;
|
|
12
12
|
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { NativeModules, requireNativeComponent } from "react-native";
|
|
3
3
|
|
|
4
4
|
import useAbstractLayer, {
|
|
5
|
-
BaseLayerProps,
|
|
6
|
-
NativeBaseProps,
|
|
5
|
+
type BaseLayerProps,
|
|
6
|
+
type NativeBaseProps,
|
|
7
7
|
} from "../hooks/useAbstractLayer";
|
|
8
|
-
import BaseProps from "../types/BaseProps";
|
|
9
|
-
import { FillExtrusionLayerStyleProps } from "../utils/
|
|
8
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
9
|
+
import { type FillExtrusionLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
10
10
|
|
|
11
11
|
const MapLibreGL = NativeModules.MLNModule;
|
|
12
12
|
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { NativeModules, requireNativeComponent } from "react-native";
|
|
3
3
|
|
|
4
4
|
import useAbstractLayer, {
|
|
5
|
-
BaseLayerProps,
|
|
6
|
-
NativeBaseProps,
|
|
5
|
+
type BaseLayerProps,
|
|
6
|
+
type NativeBaseProps,
|
|
7
7
|
} from "../hooks/useAbstractLayer";
|
|
8
|
-
import BaseProps from "../types/BaseProps";
|
|
9
|
-
import { FillLayerStyleProps } from "../utils/
|
|
8
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
9
|
+
import { type FillLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
10
10
|
|
|
11
11
|
const MapLibreGL = NativeModules.MLNModule;
|
|
12
12
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
2
|
|
|
3
3
|
import SymbolLayer from "./SymbolLayer";
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import BaseProps from "../types/BaseProps";
|
|
4
|
+
import headingIcon from "../assets/heading.png";
|
|
5
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
7
6
|
|
|
8
7
|
const style = {
|
|
9
8
|
iconImage: headingIcon,
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { NativeModules, requireNativeComponent } from "react-native";
|
|
3
3
|
|
|
4
4
|
import useAbstractLayer, {
|
|
5
|
-
BaseLayerProps,
|
|
6
|
-
NativeBaseProps,
|
|
5
|
+
type BaseLayerProps,
|
|
6
|
+
type NativeBaseProps,
|
|
7
7
|
} from "../hooks/useAbstractLayer";
|
|
8
|
-
import BaseProps from "../types/BaseProps";
|
|
9
|
-
import { HeatmapLayerStyleProps } from "../utils/
|
|
8
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
9
|
+
import { type HeatmapLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
10
10
|
|
|
11
11
|
const MapLibreGL = NativeModules.MLNModule;
|
|
12
12
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
2
|
import { requireNativeComponent } from "react-native";
|
|
3
3
|
|
|
4
4
|
import useAbstractSource from "../hooks/useAbstractSource";
|
|
5
|
-
import BaseProps from "../types/BaseProps";
|
|
5
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
6
6
|
import {
|
|
7
7
|
cloneReactChildrenWithProps,
|
|
8
8
|
isNumber,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
2
|
import {
|
|
3
3
|
requireNativeComponent,
|
|
4
4
|
Image,
|
|
5
|
-
NativeSyntheticEvent,
|
|
6
|
-
ImageSourcePropType,
|
|
7
|
-
ImageURISource,
|
|
5
|
+
type NativeSyntheticEvent,
|
|
6
|
+
type ImageSourcePropType,
|
|
7
|
+
type ImageURISource,
|
|
8
8
|
} from "react-native";
|
|
9
9
|
|
|
10
10
|
import { SHAPE_SOURCE_NATIVE_ASSETS_KEY } from "./ShapeSource";
|
|
11
|
-
import BaseProps from "../types/BaseProps";
|
|
11
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
12
12
|
|
|
13
13
|
export const NATIVE_MODULE_NAME = "RCTMLNImages";
|
|
14
14
|
|
|
@@ -90,9 +90,9 @@ const Images = ({
|
|
|
90
90
|
`Use of ${SHAPE_SOURCE_NATIVE_ASSETS_KEY} in Images#images is deprecated please use Images#nativeAssetImages`,
|
|
91
91
|
);
|
|
92
92
|
nativeImages = value;
|
|
93
|
-
} else if (_isUrlOrPath(value)) {
|
|
93
|
+
} else if (value && _isUrlOrPath(value)) {
|
|
94
94
|
imagesResult[imageName] = value;
|
|
95
|
-
} else if (_isImageSourcePropType(value)) {
|
|
95
|
+
} else if (value && _isImageSourcePropType(value)) {
|
|
96
96
|
const res = Image.resolveAssetSource(value);
|
|
97
97
|
if (res && res.uri) {
|
|
98
98
|
imagesResult[imageName] = res;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { requireNativeComponent } from "react-native";
|
|
3
3
|
|
|
4
|
-
import useAbstractLayer, {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import {
|
|
4
|
+
import useAbstractLayer, {
|
|
5
|
+
type BaseLayerProps,
|
|
6
|
+
} from "../hooks/useAbstractLayer";
|
|
7
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
8
|
+
import { type LightLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
9
|
+
import { type StyleValue } from "../utils/StyleValue";
|
|
8
10
|
|
|
9
11
|
export const NATIVE_MODULE_NAME = "RCTMLNLight";
|
|
10
12
|
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { NativeModules, requireNativeComponent } from "react-native";
|
|
3
3
|
|
|
4
4
|
import useAbstractLayer, {
|
|
5
|
-
BaseLayerProps,
|
|
6
|
-
NativeBaseProps,
|
|
5
|
+
type BaseLayerProps,
|
|
6
|
+
type NativeBaseProps,
|
|
7
7
|
} from "../hooks/useAbstractLayer";
|
|
8
|
-
import BaseProps from "../types/BaseProps";
|
|
9
|
-
import { LineLayerStyleProps } from "../utils/
|
|
8
|
+
import { type BaseProps } from "../types/BaseProps";
|
|
9
|
+
import { type LineLayerStyleProps } from "../utils/MapLibreRNStyles";
|
|
10
10
|
|
|
11
11
|
const MapLibreGL = NativeModules.MLNModule;
|
|
12
12
|
|