@maplibre/maplibre-react-native 10.0.0-beta.2 → 10.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -56
- package/android/build.gradle +120 -50
- package/android/gradle.properties +15 -0
- package/android/src/main/AndroidManifest.xml +4 -2
- package/android/src/main/AndroidManifestNew.xml +5 -0
- package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.java +0 -5
- package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +37 -48
- package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +16 -9
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.java +11 -13
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.java +4 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyle.java +1 -4
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleFactory.java +10 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSource.java +0 -66
- package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSourceManager.java +0 -28
- package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.java +7 -11
- package/android/src/main/java/org/maplibre/reactnative/location/engine/DefaultLocationEngineProvider.java +18 -0
- package/android/src/main/java/org/maplibre/reactnative/location/engine/LocationEngineProvidable.java +9 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNModule.java +27 -148
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.java +1 -3
- package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.java +123 -18
- package/android/src/main/location-engine-default/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineImpl.java +151 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineProvider.java +24 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/app.plugin.js +1 -1
- package/ios/MLRN/MLRNBackgroundLayer.h +0 -1
- package/ios/MLRN/MLRNCamera.m +6 -7
- package/ios/MLRN/MLRNFillExtrusionLayer.h +0 -1
- package/ios/MLRN/MLRNFillLayer.h +0 -1
- package/ios/MLRN/MLRNFillLayer.m +1 -0
- package/ios/MLRN/MLRNLineLayer.h +0 -1
- package/ios/MLRN/MLRNMapView.h +1 -1
- package/ios/MLRN/MLRNMapView.m +7 -7
- package/ios/MLRN/MLRNMapViewManager.m +1 -1
- package/ios/MLRN/MLRNModule.m +8 -139
- package/ios/MLRN/MLRNRasterLayer.h +0 -1
- package/ios/MLRN/MLRNShapeSource.h +0 -11
- package/ios/MLRN/MLRNShapeSource.m +0 -38
- package/ios/MLRN/MLRNShapeSourceManager.m +0 -68
- package/ios/MLRN/MLRNStyle.m +0 -40
- package/ios/MLRN/MLRNSymbolLayer.h +1 -7
- package/ios/MLRN/MLRNSymbolLayer.m +1 -89
- package/ios/MLRN/MLRNSymbolLayerManager.m +0 -1
- package/lib/commonjs/MLRNModule.js +7 -5
- package/lib/commonjs/MLRNModule.js.map +1 -1
- package/lib/commonjs/MapLibreRN.js +74 -68
- package/lib/commonjs/MapLibreRN.js.map +1 -1
- package/lib/commonjs/components/Annotation.js +7 -9
- package/lib/commonjs/components/Annotation.js.map +1 -1
- package/lib/commonjs/components/BackgroundLayer.js +6 -8
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
- package/lib/commonjs/components/Callout.js +2 -2
- package/lib/commonjs/components/Callout.js.map +1 -1
- package/lib/commonjs/components/Camera.js +111 -63
- package/lib/commonjs/components/Camera.js.map +1 -1
- package/lib/commonjs/components/CircleLayer.js +6 -8
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillExtrusionLayer.js +6 -8
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +6 -8
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeadingIndicator.js +4 -4
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +6 -8
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/ImageSource.js +4 -5
- package/lib/commonjs/components/ImageSource.js.map +1 -1
- package/lib/commonjs/components/Images.js +3 -7
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/Light.js +4 -6
- package/lib/commonjs/components/Light.js.map +1 -1
- package/lib/commonjs/components/LineLayer.js +6 -8
- package/lib/commonjs/components/LineLayer.js.map +1 -1
- package/lib/commonjs/components/MapView.js +69 -83
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/commonjs/components/MarkerView.js +4 -5
- package/lib/commonjs/components/MarkerView.js.map +1 -1
- package/lib/commonjs/components/NativeUserLocation.js +2 -2
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/PointAnnotation.js +7 -10
- package/lib/commonjs/components/PointAnnotation.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +6 -8
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/RasterSource.js +8 -10
- package/lib/commonjs/components/RasterSource.js.map +1 -1
- package/lib/commonjs/components/ShapeSource.js +11 -45
- package/lib/commonjs/components/ShapeSource.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +8 -24
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/UserLocation.js +21 -23
- package/lib/commonjs/components/UserLocation.js.map +1 -1
- package/lib/commonjs/components/VectorSource.js +9 -21
- package/lib/commonjs/components/VectorSource.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js.map +1 -1
- package/lib/commonjs/hooks/useNativeBridge.js +2 -2
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -1
- package/lib/commonjs/hooks/useOnce.js +2 -2
- package/lib/commonjs/hooks/useOnce.js.map +1 -1
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/location/{locationManager.js → LocationManager.js} +10 -10
- package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -2
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/commonjs/modules/offline/{offlineManager.js → OfflineManager.js} +34 -36
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +2 -2
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
- package/lib/commonjs/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +12 -14
- package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +3 -4
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/commonjs/plugin/MapLibrePluginProps.js +2 -0
- package/lib/commonjs/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/commonjs/plugin/android.js +41 -0
- package/lib/commonjs/plugin/android.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +131 -0
- package/lib/commonjs/plugin/ios.js.map +1 -0
- package/lib/commonjs/plugin/withMapLibre.js +31 -0
- package/lib/commonjs/plugin/withMapLibre.js.map +1 -0
- package/lib/commonjs/types/MapLibreRNStyles.js +6 -0
- package/lib/commonjs/types/MapLibreRNStyles.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +2 -2
- package/lib/commonjs/utils/BridgeValue.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +2 -2
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/StyleValue.js +4 -5
- package/lib/commonjs/utils/StyleValue.js.map +1 -1
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/commonjs/utils/animated/Animated.js +29 -31
- package/lib/commonjs/utils/animated/Animated.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +4 -5
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedPoint.js +1 -2
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +4 -4
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedShape.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/commonjs/utils/getStylePropertyType.js +252 -0
- package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
- package/lib/module/MLRNModule.js +3 -2
- package/lib/module/MLRNModule.js.map +1 -1
- package/lib/module/MapLibreRN.js +40 -32
- package/lib/module/MapLibreRN.js.map +1 -1
- package/lib/module/components/Annotation.js +5 -6
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/BackgroundLayer.js +4 -6
- package/lib/module/components/BackgroundLayer.js.map +1 -1
- package/lib/module/components/Callout.js +2 -3
- package/lib/module/components/Callout.js.map +1 -1
- package/lib/module/components/Camera.js +112 -64
- package/lib/module/components/Camera.js.map +1 -1
- package/lib/module/components/CircleLayer.js +4 -6
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillExtrusionLayer.js +4 -6
- package/lib/module/components/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +4 -6
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeadingIndicator.js +2 -3
- package/lib/module/components/HeadingIndicator.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +4 -6
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/ImageSource.js +2 -3
- package/lib/module/components/ImageSource.js.map +1 -1
- package/lib/module/components/Images.js +3 -8
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/Light.js +2 -4
- package/lib/module/components/Light.js.map +1 -1
- package/lib/module/components/LineLayer.js +4 -6
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/MapView.js +65 -79
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +2 -3
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/NativeUserLocation.js +1 -2
- package/lib/module/components/NativeUserLocation.js.map +1 -1
- package/lib/module/components/PointAnnotation.js +5 -7
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterLayer.js +4 -6
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/RasterSource.js +5 -7
- package/lib/module/components/RasterSource.js.map +1 -1
- package/lib/module/components/ShapeSource.js +9 -42
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +7 -23
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/UserLocation.js +14 -15
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js +6 -17
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/hooks/useAbstractLayer.js +1 -1
- package/lib/module/hooks/useAbstractLayer.js.map +1 -1
- package/lib/module/hooks/useAbstractSource.js +1 -1
- package/lib/module/hooks/useAbstractSource.js.map +1 -1
- package/lib/module/hooks/useNativeBridge.js +1 -2
- package/lib/module/hooks/useNativeBridge.js.map +1 -1
- package/lib/module/hooks/useNativeRef.js.map +1 -1
- package/lib/module/hooks/useOnce.js +1 -2
- package/lib/module/hooks/useOnce.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/location/{locationManager.js → LocationManager.js} +10 -9
- package/lib/module/modules/location/LocationManager.js.map +1 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +1 -2
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/module/modules/offline/{offlineManager.js → OfflineManager.js} +30 -30
- package/lib/module/modules/offline/OfflineManager.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +1 -2
- package/lib/module/modules/offline/OfflinePack.js.map +1 -1
- package/lib/module/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +10 -10
- package/lib/module/modules/snapshot/{snapshotManager.js.map → SnapshotManager.js.map} +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js +2 -3
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/plugin/MapLibrePluginProps.js +2 -0
- package/lib/module/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/module/plugin/android.js +34 -0
- package/lib/module/plugin/android.js.map +1 -0
- package/lib/module/plugin/ios.js +123 -0
- package/lib/module/plugin/ios.js.map +1 -0
- package/lib/module/plugin/withMapLibre.js +27 -0
- package/lib/module/plugin/withMapLibre.js.map +1 -0
- package/lib/module/types/MapLibreRNStyles.js +4 -0
- package/lib/module/types/MapLibreRNStyles.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +1 -1
- package/lib/module/utils/BridgeValue.js.map +1 -1
- package/lib/module/utils/Logger.js +1 -2
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/StyleValue.js +3 -3
- package/lib/module/utils/StyleValue.js.map +1 -1
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +1 -2
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/module/utils/animated/Animated.js +14 -15
- package/lib/module/utils/animated/Animated.js.map +1 -1
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +2 -3
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedPoint.js +0 -1
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +2 -2
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedShape.js +1 -2
- package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/module/utils/getStylePropertyType.js +248 -0
- package/lib/module/utils/getStylePropertyType.js.map +1 -0
- package/lib/typescript/commonjs/src/MLRNModule.d.ts +3 -7
- package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +44 -34
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Callout.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Camera.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Images.d.ts +5 -5
- package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Light.d.ts +4 -5
- package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MapView.d.ts +12 -16
- package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +7 -8
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +8 -16
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +3 -10
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts +4 -8
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +5 -4
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/{module/src/modules/offline/offlineManager.d.ts → commonjs/src/modules/offline/OfflineManager.d.ts} +27 -37
- package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +3 -4
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{module/src/modules/snapshot/snapshotManager.d.ts → commonjs/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts +16 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/src/MLRNModule.d.ts +3 -7
- package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/module/src/MapLibreRN.d.ts +44 -34
- package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Callout.d.ts +3 -4
- package/lib/typescript/module/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Camera.d.ts +4 -4
- package/lib/typescript/module/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/module/src/components/CircleLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Images.d.ts +5 -5
- package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Light.d.ts +4 -5
- package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/module/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MapView.d.ts +12 -16
- package/lib/typescript/module/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/PointAnnotation.d.ts +7 -8
- package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ShapeSource.d.ts +8 -16
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +3 -10
- package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/VectorSource.d.ts +4 -8
- package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +5 -4
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/modules/offline/offlineManager.d.ts → module/src/modules/offline/OfflineManager.d.ts} +27 -37
- package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +3 -4
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/modules/snapshot/snapshotManager.d.ts → module/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/module/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/android.d.ts +16 -0
- package/lib/typescript/module/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/module/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/StyleValue.d.ts +2 -2
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/maplibre-react-native.podspec +15 -14
- package/package.json +17 -14
- package/src/MLRNModule.ts +24 -10
- package/src/MapLibreRN.ts +66 -49
- package/src/components/Annotation.tsx +12 -14
- package/src/components/BackgroundLayer.tsx +7 -9
- package/src/components/Callout.tsx +8 -10
- package/src/components/Camera.tsx +154 -78
- package/src/components/CircleLayer.tsx +7 -9
- package/src/components/FillExtrusionLayer.tsx +7 -9
- package/src/components/FillLayer.tsx +7 -9
- package/src/components/HeadingIndicator.tsx +2 -6
- package/src/components/HeatmapLayer.tsx +7 -9
- package/src/components/ImageSource.tsx +4 -6
- package/src/components/Images.tsx +8 -19
- package/src/components/Light.tsx +5 -7
- package/src/components/LineLayer.tsx +7 -9
- package/src/components/MapView.tsx +85 -105
- package/src/components/MarkerView.tsx +4 -6
- package/src/components/NativeUserLocation.tsx +1 -4
- package/src/components/PointAnnotation.tsx +10 -11
- package/src/components/RasterLayer.tsx +7 -9
- package/src/components/RasterSource.tsx +7 -9
- package/src/components/ShapeSource.tsx +22 -95
- package/src/components/SymbolLayer.tsx +12 -41
- package/src/components/UserLocation.tsx +21 -22
- package/src/components/VectorSource.tsx +12 -35
- package/src/hooks/useAbstractLayer.ts +8 -8
- package/src/hooks/useAbstractSource.ts +6 -6
- package/src/hooks/useNativeBridge.ts +9 -6
- package/src/hooks/useNativeRef.ts +2 -2
- package/src/hooks/useOnce.ts +3 -3
- package/src/index.ts +3 -0
- package/src/modules/location/{locationManager.ts → LocationManager.ts} +16 -15
- package/src/modules/offline/OfflineCreatePackOptions.ts +1 -3
- package/src/modules/offline/{offlineManager.ts → OfflineManager.ts} +32 -45
- package/src/modules/offline/OfflinePack.ts +3 -5
- package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
- package/src/modules/snapshot/SnapshotOptions.ts +2 -4
- package/src/plugin/MapLibrePluginProps.ts +83 -0
- package/src/plugin/android.ts +64 -0
- package/src/plugin/ios.ts +166 -0
- package/src/plugin/withMapLibre.ts +30 -0
- package/src/{utils/MapLibreRNStyles.d.ts → types/MapLibreRNStyles.ts} +86 -406
- package/src/utils/BridgeValue.ts +1 -1
- package/src/utils/Logger.ts +1 -3
- package/src/utils/StyleValue.ts +6 -5
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +3 -3
- package/src/utils/animated/Animated.ts +23 -21
- package/src/utils/animated/AnimatedCoordinatesArray.ts +3 -4
- package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +1 -1
- package/src/utils/animated/AnimatedPoint.ts +0 -2
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -2
- package/src/utils/animated/AnimatedShape.ts +4 -6
- package/src/utils/filterUtils.ts +1 -1
- package/src/utils/getStylePropertyType.ts +265 -0
- package/android/src/main/res/values/strings.xml +0 -3
- package/lib/commonjs/components/Style.js +0 -266
- package/lib/commonjs/components/Style.js.map +0 -1
- package/lib/commonjs/modules/location/locationManager.js.map +0 -1
- package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
- package/lib/commonjs/types/StyleURL.js +0 -11
- package/lib/commonjs/types/StyleURL.js.map +0 -1
- package/lib/commonjs/utils/MapLibreRNStyles.d.js +0 -181
- package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/commonjs/utils/deprecation.js +0 -31
- package/lib/commonjs/utils/deprecation.js.map +0 -1
- package/lib/commonjs/utils/styleMap.js +0 -255
- package/lib/commonjs/utils/styleMap.js.map +0 -1
- package/lib/module/components/Style.js +0 -261
- package/lib/module/components/Style.js.map +0 -1
- package/lib/module/modules/location/locationManager.js.map +0 -1
- package/lib/module/modules/offline/offlineManager.js.map +0 -1
- package/lib/module/types/StyleURL.js +0 -7
- package/lib/module/types/StyleURL.js.map +0 -1
- package/lib/module/utils/MapLibreRNStyles.d.js +0 -180
- package/lib/module/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/module/utils/deprecation.js +0 -27
- package/lib/module/utils/deprecation.js.map +0 -1
- package/lib/module/utils/styleMap.js +0 -249
- package/lib/module/utils/styleMap.js.map +0 -1
- package/lib/typescript/commonjs/jest.config.d.ts +0 -2
- package/lib/typescript/commonjs/jest.config.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/Style.d.ts +0 -81
- package/lib/typescript/commonjs/src/components/Style.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts +0 -6
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +0 -1
- package/lib/typescript/module/jest.config.d.ts +0 -2
- package/lib/typescript/module/jest.config.d.ts.map +0 -1
- package/lib/typescript/module/src/components/Style.d.ts +0 -81
- package/lib/typescript/module/src/components/Style.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/module/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/module/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/deprecation.d.ts +0 -6
- package/lib/typescript/module/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/module/src/utils/styleMap.d.ts.map +0 -1
- package/plugin/build/withMapLibre.d.ts +0 -12
- package/plugin/build/withMapLibre.js +0 -148
- package/src/components/Style.tsx +0 -371
- package/src/types/StyleURL.ts +0 -3
- package/src/utils/deprecation.ts +0 -31
- package/src/utils/styleMap.ts +0 -265
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.StyleTypes = void 0;
|
|
7
|
-
exports.getStyleType = getStyleType;
|
|
8
|
-
exports.styleExtras = void 0;
|
|
9
|
-
var _index = require("./index.js");
|
|
10
|
-
/* eslint-disable */
|
|
11
|
-
// DO NOT MODIFY
|
|
12
|
-
// This file is auto-generated from scripts/templates/styleMap.ts.ejs
|
|
13
|
-
|
|
14
|
-
const StyleTypes = exports.StyleTypes = {
|
|
15
|
-
Constant: "constant",
|
|
16
|
-
Color: "color",
|
|
17
|
-
Transition: "transition",
|
|
18
|
-
Translation: "translation",
|
|
19
|
-
Function: "function",
|
|
20
|
-
Image: "image",
|
|
21
|
-
Enum: "enum"
|
|
22
|
-
};
|
|
23
|
-
function getStyleType(styleProp) {
|
|
24
|
-
if (!(0, _index.isAndroid)() && styleExtras[styleProp]) {
|
|
25
|
-
return styleExtras[styleProp].iosType;
|
|
26
|
-
}
|
|
27
|
-
if (styleMap[styleProp]) {
|
|
28
|
-
return styleMap[styleProp];
|
|
29
|
-
}
|
|
30
|
-
throw new Error(`${styleProp} is not a valid MapLibre layer style`);
|
|
31
|
-
}
|
|
32
|
-
const styleMap = {
|
|
33
|
-
fillSortKey: StyleTypes.Constant,
|
|
34
|
-
fillAntialias: StyleTypes.Constant,
|
|
35
|
-
fillOpacity: StyleTypes.Constant,
|
|
36
|
-
fillOpacityTransition: StyleTypes.Transition,
|
|
37
|
-
fillColor: StyleTypes.Color,
|
|
38
|
-
fillColorTransition: StyleTypes.Transition,
|
|
39
|
-
fillOutlineColor: StyleTypes.Color,
|
|
40
|
-
fillOutlineColorTransition: StyleTypes.Transition,
|
|
41
|
-
fillTranslate: StyleTypes.Translation,
|
|
42
|
-
fillTranslateTransition: StyleTypes.Transition,
|
|
43
|
-
fillTranslateAnchor: StyleTypes.Enum,
|
|
44
|
-
fillPattern: StyleTypes.Image,
|
|
45
|
-
fillPatternTransition: StyleTypes.Transition,
|
|
46
|
-
lineCap: StyleTypes.Enum,
|
|
47
|
-
lineJoin: StyleTypes.Enum,
|
|
48
|
-
lineMiterLimit: StyleTypes.Constant,
|
|
49
|
-
lineRoundLimit: StyleTypes.Constant,
|
|
50
|
-
lineSortKey: StyleTypes.Constant,
|
|
51
|
-
lineOpacity: StyleTypes.Constant,
|
|
52
|
-
lineOpacityTransition: StyleTypes.Transition,
|
|
53
|
-
lineColor: StyleTypes.Color,
|
|
54
|
-
lineColorTransition: StyleTypes.Transition,
|
|
55
|
-
lineTranslate: StyleTypes.Translation,
|
|
56
|
-
lineTranslateTransition: StyleTypes.Transition,
|
|
57
|
-
lineTranslateAnchor: StyleTypes.Enum,
|
|
58
|
-
lineWidth: StyleTypes.Constant,
|
|
59
|
-
lineWidthTransition: StyleTypes.Transition,
|
|
60
|
-
lineGapWidth: StyleTypes.Constant,
|
|
61
|
-
lineGapWidthTransition: StyleTypes.Transition,
|
|
62
|
-
lineOffset: StyleTypes.Constant,
|
|
63
|
-
lineOffsetTransition: StyleTypes.Transition,
|
|
64
|
-
lineBlur: StyleTypes.Constant,
|
|
65
|
-
lineBlurTransition: StyleTypes.Transition,
|
|
66
|
-
lineDasharray: StyleTypes.Constant,
|
|
67
|
-
lineDasharrayTransition: StyleTypes.Transition,
|
|
68
|
-
linePattern: StyleTypes.Image,
|
|
69
|
-
linePatternTransition: StyleTypes.Transition,
|
|
70
|
-
lineGradient: StyleTypes.Color,
|
|
71
|
-
symbolPlacement: StyleTypes.Enum,
|
|
72
|
-
symbolSpacing: StyleTypes.Constant,
|
|
73
|
-
symbolAvoidEdges: StyleTypes.Constant,
|
|
74
|
-
symbolSortKey: StyleTypes.Constant,
|
|
75
|
-
symbolZOrder: StyleTypes.Enum,
|
|
76
|
-
iconAllowOverlap: StyleTypes.Constant,
|
|
77
|
-
iconIgnorePlacement: StyleTypes.Constant,
|
|
78
|
-
iconOptional: StyleTypes.Constant,
|
|
79
|
-
iconRotationAlignment: StyleTypes.Enum,
|
|
80
|
-
iconSize: StyleTypes.Constant,
|
|
81
|
-
iconTextFit: StyleTypes.Enum,
|
|
82
|
-
iconTextFitPadding: StyleTypes.Constant,
|
|
83
|
-
iconImage: StyleTypes.Image,
|
|
84
|
-
iconRotate: StyleTypes.Constant,
|
|
85
|
-
iconPadding: StyleTypes.Constant,
|
|
86
|
-
iconKeepUpright: StyleTypes.Constant,
|
|
87
|
-
iconOffset: StyleTypes.Constant,
|
|
88
|
-
iconAnchor: StyleTypes.Enum,
|
|
89
|
-
iconPitchAlignment: StyleTypes.Enum,
|
|
90
|
-
textPitchAlignment: StyleTypes.Enum,
|
|
91
|
-
textRotationAlignment: StyleTypes.Enum,
|
|
92
|
-
textField: StyleTypes.Constant,
|
|
93
|
-
textFont: StyleTypes.Constant,
|
|
94
|
-
textSize: StyleTypes.Constant,
|
|
95
|
-
textMaxWidth: StyleTypes.Constant,
|
|
96
|
-
textLineHeight: StyleTypes.Constant,
|
|
97
|
-
textLetterSpacing: StyleTypes.Constant,
|
|
98
|
-
textJustify: StyleTypes.Enum,
|
|
99
|
-
textRadialOffset: StyleTypes.Constant,
|
|
100
|
-
textVariableAnchor: StyleTypes.Constant,
|
|
101
|
-
textAnchor: StyleTypes.Enum,
|
|
102
|
-
textMaxAngle: StyleTypes.Constant,
|
|
103
|
-
textWritingMode: StyleTypes.Constant,
|
|
104
|
-
textRotate: StyleTypes.Constant,
|
|
105
|
-
textPadding: StyleTypes.Constant,
|
|
106
|
-
textKeepUpright: StyleTypes.Constant,
|
|
107
|
-
textTransform: StyleTypes.Enum,
|
|
108
|
-
textOffset: StyleTypes.Constant,
|
|
109
|
-
textAllowOverlap: StyleTypes.Constant,
|
|
110
|
-
textIgnorePlacement: StyleTypes.Constant,
|
|
111
|
-
textOptional: StyleTypes.Constant,
|
|
112
|
-
iconOpacity: StyleTypes.Constant,
|
|
113
|
-
iconOpacityTransition: StyleTypes.Transition,
|
|
114
|
-
iconColor: StyleTypes.Color,
|
|
115
|
-
iconColorTransition: StyleTypes.Transition,
|
|
116
|
-
iconHaloColor: StyleTypes.Color,
|
|
117
|
-
iconHaloColorTransition: StyleTypes.Transition,
|
|
118
|
-
iconHaloWidth: StyleTypes.Constant,
|
|
119
|
-
iconHaloWidthTransition: StyleTypes.Transition,
|
|
120
|
-
iconHaloBlur: StyleTypes.Constant,
|
|
121
|
-
iconHaloBlurTransition: StyleTypes.Transition,
|
|
122
|
-
iconTranslate: StyleTypes.Translation,
|
|
123
|
-
iconTranslateTransition: StyleTypes.Transition,
|
|
124
|
-
iconTranslateAnchor: StyleTypes.Enum,
|
|
125
|
-
textOpacity: StyleTypes.Constant,
|
|
126
|
-
textOpacityTransition: StyleTypes.Transition,
|
|
127
|
-
textColor: StyleTypes.Color,
|
|
128
|
-
textColorTransition: StyleTypes.Transition,
|
|
129
|
-
textHaloColor: StyleTypes.Color,
|
|
130
|
-
textHaloColorTransition: StyleTypes.Transition,
|
|
131
|
-
textHaloWidth: StyleTypes.Constant,
|
|
132
|
-
textHaloWidthTransition: StyleTypes.Transition,
|
|
133
|
-
textHaloBlur: StyleTypes.Constant,
|
|
134
|
-
textHaloBlurTransition: StyleTypes.Transition,
|
|
135
|
-
textTranslate: StyleTypes.Translation,
|
|
136
|
-
textTranslateTransition: StyleTypes.Transition,
|
|
137
|
-
textTranslateAnchor: StyleTypes.Enum,
|
|
138
|
-
circleSortKey: StyleTypes.Constant,
|
|
139
|
-
circleRadius: StyleTypes.Constant,
|
|
140
|
-
circleRadiusTransition: StyleTypes.Transition,
|
|
141
|
-
circleColor: StyleTypes.Color,
|
|
142
|
-
circleColorTransition: StyleTypes.Transition,
|
|
143
|
-
circleBlur: StyleTypes.Constant,
|
|
144
|
-
circleBlurTransition: StyleTypes.Transition,
|
|
145
|
-
circleOpacity: StyleTypes.Constant,
|
|
146
|
-
circleOpacityTransition: StyleTypes.Transition,
|
|
147
|
-
circleTranslate: StyleTypes.Translation,
|
|
148
|
-
circleTranslateTransition: StyleTypes.Transition,
|
|
149
|
-
circleTranslateAnchor: StyleTypes.Enum,
|
|
150
|
-
circlePitchScale: StyleTypes.Enum,
|
|
151
|
-
circlePitchAlignment: StyleTypes.Enum,
|
|
152
|
-
circleStrokeWidth: StyleTypes.Constant,
|
|
153
|
-
circleStrokeWidthTransition: StyleTypes.Transition,
|
|
154
|
-
circleStrokeColor: StyleTypes.Color,
|
|
155
|
-
circleStrokeColorTransition: StyleTypes.Transition,
|
|
156
|
-
circleStrokeOpacity: StyleTypes.Constant,
|
|
157
|
-
circleStrokeOpacityTransition: StyleTypes.Transition,
|
|
158
|
-
heatmapRadius: StyleTypes.Constant,
|
|
159
|
-
heatmapRadiusTransition: StyleTypes.Transition,
|
|
160
|
-
heatmapWeight: StyleTypes.Constant,
|
|
161
|
-
heatmapIntensity: StyleTypes.Constant,
|
|
162
|
-
heatmapIntensityTransition: StyleTypes.Transition,
|
|
163
|
-
heatmapColor: StyleTypes.Color,
|
|
164
|
-
heatmapOpacity: StyleTypes.Constant,
|
|
165
|
-
heatmapOpacityTransition: StyleTypes.Transition,
|
|
166
|
-
fillExtrusionOpacity: StyleTypes.Constant,
|
|
167
|
-
fillExtrusionOpacityTransition: StyleTypes.Transition,
|
|
168
|
-
fillExtrusionColor: StyleTypes.Color,
|
|
169
|
-
fillExtrusionColorTransition: StyleTypes.Transition,
|
|
170
|
-
fillExtrusionTranslate: StyleTypes.Translation,
|
|
171
|
-
fillExtrusionTranslateTransition: StyleTypes.Transition,
|
|
172
|
-
fillExtrusionTranslateAnchor: StyleTypes.Enum,
|
|
173
|
-
fillExtrusionPattern: StyleTypes.Image,
|
|
174
|
-
fillExtrusionPatternTransition: StyleTypes.Transition,
|
|
175
|
-
fillExtrusionHeight: StyleTypes.Constant,
|
|
176
|
-
fillExtrusionHeightTransition: StyleTypes.Transition,
|
|
177
|
-
fillExtrusionBase: StyleTypes.Constant,
|
|
178
|
-
fillExtrusionBaseTransition: StyleTypes.Transition,
|
|
179
|
-
fillExtrusionVerticalGradient: StyleTypes.Constant,
|
|
180
|
-
rasterOpacity: StyleTypes.Constant,
|
|
181
|
-
rasterOpacityTransition: StyleTypes.Transition,
|
|
182
|
-
rasterHueRotate: StyleTypes.Constant,
|
|
183
|
-
rasterHueRotateTransition: StyleTypes.Transition,
|
|
184
|
-
rasterBrightnessMin: StyleTypes.Constant,
|
|
185
|
-
rasterBrightnessMinTransition: StyleTypes.Transition,
|
|
186
|
-
rasterBrightnessMax: StyleTypes.Constant,
|
|
187
|
-
rasterBrightnessMaxTransition: StyleTypes.Transition,
|
|
188
|
-
rasterSaturation: StyleTypes.Constant,
|
|
189
|
-
rasterSaturationTransition: StyleTypes.Transition,
|
|
190
|
-
rasterContrast: StyleTypes.Constant,
|
|
191
|
-
rasterContrastTransition: StyleTypes.Transition,
|
|
192
|
-
rasterResampling: StyleTypes.Enum,
|
|
193
|
-
rasterFadeDuration: StyleTypes.Constant,
|
|
194
|
-
hillshadeIlluminationDirection: StyleTypes.Constant,
|
|
195
|
-
hillshadeIlluminationAnchor: StyleTypes.Enum,
|
|
196
|
-
hillshadeExaggeration: StyleTypes.Constant,
|
|
197
|
-
hillshadeExaggerationTransition: StyleTypes.Transition,
|
|
198
|
-
hillshadeShadowColor: StyleTypes.Color,
|
|
199
|
-
hillshadeShadowColorTransition: StyleTypes.Transition,
|
|
200
|
-
hillshadeHighlightColor: StyleTypes.Color,
|
|
201
|
-
hillshadeHighlightColorTransition: StyleTypes.Transition,
|
|
202
|
-
hillshadeAccentColor: StyleTypes.Color,
|
|
203
|
-
hillshadeAccentColorTransition: StyleTypes.Transition,
|
|
204
|
-
backgroundColor: StyleTypes.Color,
|
|
205
|
-
backgroundColorTransition: StyleTypes.Transition,
|
|
206
|
-
backgroundPattern: StyleTypes.Image,
|
|
207
|
-
backgroundPatternTransition: StyleTypes.Transition,
|
|
208
|
-
backgroundOpacity: StyleTypes.Constant,
|
|
209
|
-
backgroundOpacityTransition: StyleTypes.Transition,
|
|
210
|
-
anchor: StyleTypes.Enum,
|
|
211
|
-
position: StyleTypes.Constant,
|
|
212
|
-
positionTransition: StyleTypes.Transition,
|
|
213
|
-
color: StyleTypes.Color,
|
|
214
|
-
colorTransition: StyleTypes.Transition,
|
|
215
|
-
intensity: StyleTypes.Constant,
|
|
216
|
-
intensityTransition: StyleTypes.Transition,
|
|
217
|
-
visibility: StyleTypes.Constant
|
|
218
|
-
};
|
|
219
|
-
const styleExtras = exports.styleExtras = {
|
|
220
|
-
// padding
|
|
221
|
-
iconTextFitPadding: {
|
|
222
|
-
iosType: "edgeinsets"
|
|
223
|
-
},
|
|
224
|
-
// offsets
|
|
225
|
-
iconOffset: {
|
|
226
|
-
iosType: "vector"
|
|
227
|
-
},
|
|
228
|
-
textOffset: {
|
|
229
|
-
iosType: "vector"
|
|
230
|
-
},
|
|
231
|
-
lineOffset: {
|
|
232
|
-
iosType: "vector"
|
|
233
|
-
},
|
|
234
|
-
// translates
|
|
235
|
-
fillTranslate: {
|
|
236
|
-
iosType: "vector"
|
|
237
|
-
},
|
|
238
|
-
lineTranslate: {
|
|
239
|
-
iosType: "vector"
|
|
240
|
-
},
|
|
241
|
-
iconTranslate: {
|
|
242
|
-
iosType: "vector"
|
|
243
|
-
},
|
|
244
|
-
textTranslate: {
|
|
245
|
-
iosType: "vector"
|
|
246
|
-
},
|
|
247
|
-
circleTranslate: {
|
|
248
|
-
iosType: "vector"
|
|
249
|
-
},
|
|
250
|
-
fillExtrusionTranslate: {
|
|
251
|
-
iosType: "vector"
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
var _default = exports.default = styleMap;
|
|
255
|
-
//# sourceMappingURL=styleMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","StyleTypes","exports","Constant","Color","Transition","Translation","Function","Image","Enum","getStyleType","styleProp","isAndroid","styleExtras","iosType","styleMap","Error","fillSortKey","fillAntialias","fillOpacity","fillOpacityTransition","fillColor","fillColorTransition","fillOutlineColor","fillOutlineColorTransition","fillTranslate","fillTranslateTransition","fillTranslateAnchor","fillPattern","fillPatternTransition","lineCap","lineJoin","lineMiterLimit","lineRoundLimit","lineSortKey","lineOpacity","lineOpacityTransition","lineColor","lineColorTransition","lineTranslate","lineTranslateTransition","lineTranslateAnchor","lineWidth","lineWidthTransition","lineGapWidth","lineGapWidthTransition","lineOffset","lineOffsetTransition","lineBlur","lineBlurTransition","lineDasharray","lineDasharrayTransition","linePattern","linePatternTransition","lineGradient","symbolPlacement","symbolSpacing","symbolAvoidEdges","symbolSortKey","symbolZOrder","iconAllowOverlap","iconIgnorePlacement","iconOptional","iconRotationAlignment","iconSize","iconTextFit","iconTextFitPadding","iconImage","iconRotate","iconPadding","iconKeepUpright","iconOffset","iconAnchor","iconPitchAlignment","textPitchAlignment","textRotationAlignment","textField","textFont","textSize","textMaxWidth","textLineHeight","textLetterSpacing","textJustify","textRadialOffset","textVariableAnchor","textAnchor","textMaxAngle","textWritingMode","textRotate","textPadding","textKeepUpright","textTransform","textOffset","textAllowOverlap","textIgnorePlacement","textOptional","iconOpacity","iconOpacityTransition","iconColor","iconColorTransition","iconHaloColor","iconHaloColorTransition","iconHaloWidth","iconHaloWidthTransition","iconHaloBlur","iconHaloBlurTransition","iconTranslate","iconTranslateTransition","iconTranslateAnchor","textOpacity","textOpacityTransition","textColor","textColorTransition","textHaloColor","textHaloColorTransition","textHaloWidth","textHaloWidthTransition","textHaloBlur","textHaloBlurTransition","textTranslate","textTranslateTransition","textTranslateAnchor","circleSortKey","circleRadius","circleRadiusTransition","circleColor","circleColorTransition","circleBlur","circleBlurTransition","circleOpacity","circleOpacityTransition","circleTranslate","circleTranslateTransition","circleTranslateAnchor","circlePitchScale","circlePitchAlignment","circleStrokeWidth","circleStrokeWidthTransition","circleStrokeColor","circleStrokeColorTransition","circleStrokeOpacity","circleStrokeOpacityTransition","heatmapRadius","heatmapRadiusTransition","heatmapWeight","heatmapIntensity","heatmapIntensityTransition","heatmapColor","heatmapOpacity","heatmapOpacityTransition","fillExtrusionOpacity","fillExtrusionOpacityTransition","fillExtrusionColor","fillExtrusionColorTransition","fillExtrusionTranslate","fillExtrusionTranslateTransition","fillExtrusionTranslateAnchor","fillExtrusionPattern","fillExtrusionPatternTransition","fillExtrusionHeight","fillExtrusionHeightTransition","fillExtrusionBase","fillExtrusionBaseTransition","fillExtrusionVerticalGradient","rasterOpacity","rasterOpacityTransition","rasterHueRotate","rasterHueRotateTransition","rasterBrightnessMin","rasterBrightnessMinTransition","rasterBrightnessMax","rasterBrightnessMaxTransition","rasterSaturation","rasterSaturationTransition","rasterContrast","rasterContrastTransition","rasterResampling","rasterFadeDuration","hillshadeIlluminationDirection","hillshadeIlluminationAnchor","hillshadeExaggeration","hillshadeExaggerationTransition","hillshadeShadowColor","hillshadeShadowColorTransition","hillshadeHighlightColor","hillshadeHighlightColorTransition","hillshadeAccentColor","hillshadeAccentColorTransition","backgroundColor","backgroundColorTransition","backgroundPattern","backgroundPatternTransition","backgroundOpacity","backgroundOpacityTransition","anchor","position","positionTransition","color","colorTransition","intensity","intensityTransition","visibility","_default","default"],"sourceRoot":"../../../src","sources":["utils/styleMap.ts"],"mappings":";;;;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIO,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE,YAAY;EACxBC,WAAW,EAAE,aAAa;EAC1BC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE;AACR,CAAC;AAEM,SAASC,YAAYA,CAACC,SAAmC,EAAU;EACxE,IAAI,CAAC,IAAAC,gBAAS,EAAC,CAAC,IAAIC,WAAW,CAACF,SAAS,CAAC,EAAE;IAC1C,OAAOE,WAAW,CAACF,SAAS,CAAC,CAACG,OAAO;EACvC;EAEA,IAAIC,QAAQ,CAACJ,SAAS,CAAC,EAAE;IACvB,OAAOI,QAAQ,CAACJ,SAAS,CAAC;EAC5B;EAEA,MAAM,IAAIK,KAAK,CAAC,GAAGL,SAAS,sCAAsC,CAAC;AACrE;AAEA,MAAMI,QAAQ,GAAG;EACfE,WAAW,EAAEhB,UAAU,CAACE,QAAQ;EAChCe,aAAa,EAAEjB,UAAU,CAACE,QAAQ;EAClCgB,WAAW,EAAElB,UAAU,CAACE,QAAQ;EAChCiB,qBAAqB,EAAEnB,UAAU,CAACI,UAAU;EAC5CgB,SAAS,EAAEpB,UAAU,CAACG,KAAK;EAC3BkB,mBAAmB,EAAErB,UAAU,CAACI,UAAU;EAC1CkB,gBAAgB,EAAEtB,UAAU,CAACG,KAAK;EAClCoB,0BAA0B,EAAEvB,UAAU,CAACI,UAAU;EACjDoB,aAAa,EAAExB,UAAU,CAACK,WAAW;EACrCoB,uBAAuB,E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AACI,UAAU;EACzCgM,KAAK,EAAEpM,UAAU,CAACG,KAAK;EACvBkM,eAAe,EAAErM,UAAU,CAACI,UAAU;EACtCkM,SAAS,EAAEtM,UAAU,CAACE,QAAQ;EAC9BqM,mBAAmB,EAAEvM,UAAU,CAACI,UAAU;EAE1CoM,UAAU,EAAExM,UAAU,CAACE;AACzB,CAAC;AAEM,MAAMU,WAAW,GAAAX,OAAA,CAAAW,WAAA,GAAG;EACzB;EACAqD,kBAAkB,EAAE;IAClBpD,OAAO,EAAE;EACX,CAAC;EAED;EACAyD,UAAU,EAAE;IACVzD,OAAO,EAAE;EACX,CAAC;EACD8E,UAAU,EAAE;IACV9E,OAAO,EAAE;EACX,CAAC;EACDgC,UAAU,EAAE;IACVhC,OAAO,EAAE;EACX,CAAC;EAED;EACAW,aAAa,EAAE;IACbX,OAAO,EAAE;EACX,CAAC;EACDyB,aAAa,EAAE;IACbzB,OAAO,EAAE;EACX,CAAC;EACD4F,aAAa,EAAE;IACb5F,OAAO,EAAE;EACX,CAAC;EACDyG,aAAa,EAAE;IACbzG,OAAO,EAAE;EACX,CAAC;EACDqH,eAAe,EAAE;IACfrH,OAAO,EAAE;EACX,CAAC;EACD4I,sBAAsB,EAAE;IACtB5I,OAAO,EAAE;EACX;AACF,CAAC;AAAC,IAAA4L,QAAA,GAAAxM,OAAA,CAAAyM,OAAA,GAEa5L,QAAQ","ignoreList":[]}
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useMemo, useState, useEffect } from "react";
|
|
4
|
-
import BackgroundLayer from "./BackgroundLayer.js";
|
|
5
|
-
import CircleLayer from "./CircleLayer.js";
|
|
6
|
-
import FillExtrusionLayer from "./FillExtrusionLayer.js";
|
|
7
|
-
import FillLayer from "./FillLayer.js";
|
|
8
|
-
import HeatmapLayer from "./HeatmapLayer.js";
|
|
9
|
-
import ImageSource from "./ImageSource.js";
|
|
10
|
-
import LineLayer from "./LineLayer.js";
|
|
11
|
-
import RasterLayer from "./RasterLayer.js";
|
|
12
|
-
import RasterSource from "./RasterSource.js";
|
|
13
|
-
import ShapeSource from "./ShapeSource.js";
|
|
14
|
-
import SymbolLayer from "./SymbolLayer.js";
|
|
15
|
-
import VectorSource from "./VectorSource.js";
|
|
16
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
function toCamelCase(s) {
|
|
18
|
-
return s.replace(/([-_][a-z])/gi, $1 => {
|
|
19
|
-
return $1.toUpperCase().replace("-", "").replace("_", "");
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Patches the Mapbox Style Specification keys into the style props attributes:
|
|
24
|
-
// icon-allow-overlap -> iconAllowOverlap
|
|
25
|
-
function toCamelCaseKeys(oldObj) {
|
|
26
|
-
if (!oldObj) {
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
const newObj = {};
|
|
30
|
-
Object.keys(oldObj).forEach(key => {
|
|
31
|
-
const value = oldObj[key];
|
|
32
|
-
if (key.includes("-")) {
|
|
33
|
-
newObj[toCamelCase(key)] = value;
|
|
34
|
-
} else {
|
|
35
|
-
newObj[key] = value;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
return newObj;
|
|
39
|
-
}
|
|
40
|
-
function getLayerComponentType(layer) {
|
|
41
|
-
const {
|
|
42
|
-
type
|
|
43
|
-
} = layer;
|
|
44
|
-
switch (type) {
|
|
45
|
-
case "circle":
|
|
46
|
-
return CircleLayer;
|
|
47
|
-
case "symbol":
|
|
48
|
-
return SymbolLayer;
|
|
49
|
-
case "raster":
|
|
50
|
-
return RasterLayer;
|
|
51
|
-
case "line":
|
|
52
|
-
return LineLayer;
|
|
53
|
-
case "fill":
|
|
54
|
-
return FillLayer;
|
|
55
|
-
case "fill-extrusion":
|
|
56
|
-
return FillExtrusionLayer;
|
|
57
|
-
case "background":
|
|
58
|
-
return BackgroundLayer;
|
|
59
|
-
case "heatmap":
|
|
60
|
-
return HeatmapLayer;
|
|
61
|
-
}
|
|
62
|
-
console.warn(`Mapbox layer type '${type}' is not supported/`);
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
function asLayerComponent(layer) {
|
|
66
|
-
const LayerComponent = getLayerComponentType(layer);
|
|
67
|
-
if (!LayerComponent) {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
const style = {
|
|
71
|
-
...toCamelCaseKeys(layer.paint),
|
|
72
|
-
...toCamelCaseKeys(layer.layout)
|
|
73
|
-
};
|
|
74
|
-
const layerProps = {};
|
|
75
|
-
if (layer.source) {
|
|
76
|
-
layerProps.sourceID = layer.source;
|
|
77
|
-
}
|
|
78
|
-
if (layer["source-layer"]) {
|
|
79
|
-
layerProps.sourceLayerID = layer["source-layer"];
|
|
80
|
-
}
|
|
81
|
-
if (layer.minzoom) {
|
|
82
|
-
layerProps.minZoomLevel = layer.minzoom;
|
|
83
|
-
}
|
|
84
|
-
if (layer.maxzoom) {
|
|
85
|
-
layerProps.maxZoomLevel = layer.maxzoom;
|
|
86
|
-
}
|
|
87
|
-
if (layer.filter) {
|
|
88
|
-
layerProps.filter = layer.filter;
|
|
89
|
-
}
|
|
90
|
-
if (Object.keys(style).length) {
|
|
91
|
-
layerProps.style = style;
|
|
92
|
-
}
|
|
93
|
-
return /*#__PURE__*/_jsx(LayerComponent, {
|
|
94
|
-
id: layer.id,
|
|
95
|
-
...layerProps
|
|
96
|
-
}, layer.id);
|
|
97
|
-
}
|
|
98
|
-
function getTileSourceProps(source) {
|
|
99
|
-
const sourceProps = {};
|
|
100
|
-
if (source.url) {
|
|
101
|
-
sourceProps.url = source.url;
|
|
102
|
-
}
|
|
103
|
-
if (source.tiles) {
|
|
104
|
-
sourceProps.tileUrlTemplates = source.tiles;
|
|
105
|
-
}
|
|
106
|
-
if (source.minzoom !== undefined) {
|
|
107
|
-
sourceProps.minZoomLevel = source.minzoom;
|
|
108
|
-
}
|
|
109
|
-
if (source.maxzoom !== undefined) {
|
|
110
|
-
sourceProps.maxZoomLevel = source.maxzoom;
|
|
111
|
-
}
|
|
112
|
-
if (source.attribution) {
|
|
113
|
-
sourceProps.attribution = source.attribution;
|
|
114
|
-
}
|
|
115
|
-
if (source.scheme && source.scheme === "tms") {
|
|
116
|
-
sourceProps.tms = true;
|
|
117
|
-
}
|
|
118
|
-
return sourceProps;
|
|
119
|
-
}
|
|
120
|
-
function getVectorSource(id, source) {
|
|
121
|
-
const sourceProps = {
|
|
122
|
-
...getTileSourceProps(source)
|
|
123
|
-
};
|
|
124
|
-
return /*#__PURE__*/_jsx(VectorSource, {
|
|
125
|
-
id: id,
|
|
126
|
-
...sourceProps
|
|
127
|
-
}, id);
|
|
128
|
-
}
|
|
129
|
-
function getRasterSource(id, source) {
|
|
130
|
-
const sourceProps = {
|
|
131
|
-
...getTileSourceProps(source)
|
|
132
|
-
};
|
|
133
|
-
if (source.tileSize) {
|
|
134
|
-
sourceProps.tileSize = source.tileSize;
|
|
135
|
-
}
|
|
136
|
-
return /*#__PURE__*/_jsx(RasterSource, {
|
|
137
|
-
id: id,
|
|
138
|
-
...sourceProps
|
|
139
|
-
}, id);
|
|
140
|
-
}
|
|
141
|
-
function getImageSource(id, source) {
|
|
142
|
-
const sourceProps = {
|
|
143
|
-
url: source.url,
|
|
144
|
-
coordinates: source.coordinates
|
|
145
|
-
};
|
|
146
|
-
return /*#__PURE__*/_jsx(ImageSource, {
|
|
147
|
-
id: id,
|
|
148
|
-
...sourceProps
|
|
149
|
-
}, id);
|
|
150
|
-
}
|
|
151
|
-
function getShapeSource(id, source) {
|
|
152
|
-
const sourceProps = {};
|
|
153
|
-
if (source.data && typeof source.data === "string") {
|
|
154
|
-
sourceProps.url = source.data;
|
|
155
|
-
} else if (source.data && typeof source.data === "object") {
|
|
156
|
-
sourceProps.shape = source.data;
|
|
157
|
-
}
|
|
158
|
-
if (source.cluster !== undefined) {
|
|
159
|
-
sourceProps.cluster = source.cluster;
|
|
160
|
-
}
|
|
161
|
-
if (source.clusterRadius !== undefined) {
|
|
162
|
-
sourceProps.clusterRadius = source.clusterRadius;
|
|
163
|
-
}
|
|
164
|
-
if (source.maxzoom !== undefined) {
|
|
165
|
-
sourceProps.maxZoomLevel = source.maxzoom;
|
|
166
|
-
}
|
|
167
|
-
if (source.clusterMaxZoom !== undefined) {
|
|
168
|
-
sourceProps.clusterMaxZoomLevel = source.clusterMaxZoom;
|
|
169
|
-
}
|
|
170
|
-
if (source.clusterProperties !== undefined) {
|
|
171
|
-
sourceProps.clusterProperties = source.clusterProperties;
|
|
172
|
-
}
|
|
173
|
-
if (source.buffer !== undefined) {
|
|
174
|
-
sourceProps.buffer = source.buffer;
|
|
175
|
-
}
|
|
176
|
-
if (source.tolerance !== undefined) {
|
|
177
|
-
sourceProps.tolerance = source.tolerance;
|
|
178
|
-
}
|
|
179
|
-
if (source.lineMetrics !== undefined) {
|
|
180
|
-
sourceProps.lineMetrics = source.lineMetrics;
|
|
181
|
-
}
|
|
182
|
-
return /*#__PURE__*/_jsx(ShapeSource, {
|
|
183
|
-
id: id,
|
|
184
|
-
...sourceProps
|
|
185
|
-
}, id);
|
|
186
|
-
}
|
|
187
|
-
function asSourceComponent(id, source) {
|
|
188
|
-
switch (source.type) {
|
|
189
|
-
case "vector":
|
|
190
|
-
return getVectorSource(id, source);
|
|
191
|
-
case "raster":
|
|
192
|
-
return getRasterSource(id, source);
|
|
193
|
-
case "image":
|
|
194
|
-
return getImageSource(id, source);
|
|
195
|
-
case "geojson":
|
|
196
|
-
return getShapeSource(id, source);
|
|
197
|
-
}
|
|
198
|
-
console.warn(`MapLibre source type '${source.type}' is not supported`);
|
|
199
|
-
return null;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Style is a component that automatically adds sources / layers to the map using MapLibre Style Spec.
|
|
203
|
-
* Only [`sources`](https://maplibre.org/maplibre-gl-js-docs/style-spec/sources/) & [`layers`](https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/) are supported.
|
|
204
|
-
* Other fields such as `sprites`, `glyphs` etc. will be ignored. Not all layer / source attributes from the style spec are supported, in general the supported attributes will be mentioned under https://github.com/maplibre/maplibre-react-native/tree/main/docs.
|
|
205
|
-
*
|
|
206
|
-
* TODO: Maintainer forking this project does not understand the above comment regarding what is supported.
|
|
207
|
-
*/
|
|
208
|
-
const Style = props => {
|
|
209
|
-
const [fetchedJson, setFetchedJson] = useState({});
|
|
210
|
-
const json = typeof props.json === "object" ? props.json : fetchedJson;
|
|
211
|
-
|
|
212
|
-
// Fetch style when props.json is a URL
|
|
213
|
-
useEffect(() => {
|
|
214
|
-
const abortController = new AbortController();
|
|
215
|
-
const fetchStyleJson = async url => {
|
|
216
|
-
try {
|
|
217
|
-
const response = await fetch(url, {
|
|
218
|
-
signal: abortController.signal
|
|
219
|
-
});
|
|
220
|
-
const responseJson = await response.json();
|
|
221
|
-
setFetchedJson(responseJson);
|
|
222
|
-
} catch (error) {
|
|
223
|
-
const e = error;
|
|
224
|
-
if (e.name === "AbortError") {
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
throw e;
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
if (typeof props.json === "string") {
|
|
231
|
-
fetchStyleJson(props.json);
|
|
232
|
-
}
|
|
233
|
-
return function cleanup() {
|
|
234
|
-
abortController.abort();
|
|
235
|
-
};
|
|
236
|
-
}, [props.json]);
|
|
237
|
-
|
|
238
|
-
// Extract layer components from json
|
|
239
|
-
const layerComponents = useMemo(() => {
|
|
240
|
-
if (!json.layers) {
|
|
241
|
-
return [];
|
|
242
|
-
}
|
|
243
|
-
return json.layers.map(asLayerComponent).filter(x => !!x);
|
|
244
|
-
}, [json.layers]);
|
|
245
|
-
|
|
246
|
-
// Extract source components from json
|
|
247
|
-
const sourceComponents = useMemo(() => {
|
|
248
|
-
const {
|
|
249
|
-
sources
|
|
250
|
-
} = json;
|
|
251
|
-
if (!sources || !Object.keys(sources)) {
|
|
252
|
-
return [];
|
|
253
|
-
}
|
|
254
|
-
return Object.entries(sources).map(([id, source]) => asSourceComponent(id, source)).filter(x => !!x);
|
|
255
|
-
}, [json]);
|
|
256
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
257
|
-
children: [sourceComponents, layerComponents]
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
|
-
export default Style;
|
|
261
|
-
//# sourceMappingURL=Style.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","useState","useEffect","BackgroundLayer","CircleLayer","FillExtrusionLayer","FillLayer","HeatmapLayer","ImageSource","LineLayer","RasterLayer","RasterSource","ShapeSource","SymbolLayer","VectorSource","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","toCamelCase","s","replace","$1","toUpperCase","toCamelCaseKeys","oldObj","newObj","Object","keys","forEach","key","value","includes","getLayerComponentType","layer","type","console","warn","asLayerComponent","LayerComponent","style","paint","layout","layerProps","source","sourceID","sourceLayerID","minzoom","minZoomLevel","maxzoom","maxZoomLevel","filter","length","id","getTileSourceProps","sourceProps","url","tiles","tileUrlTemplates","undefined","attribution","scheme","tms","getVectorSource","getRasterSource","tileSize","getImageSource","coordinates","getShapeSource","data","shape","cluster","clusterRadius","clusterMaxZoom","clusterMaxZoomLevel","clusterProperties","buffer","tolerance","lineMetrics","asSourceComponent","Style","props","fetchedJson","setFetchedJson","json","abortController","AbortController","fetchStyleJson","response","fetch","signal","responseJson","error","e","name","cleanup","abort","layerComponents","layers","map","x","sourceComponents","sources","entries","children"],"sourceRoot":"../../../src","sources":["components/Style.tsx"],"mappings":";;AAAA,SACEA,OAAO,EACPC,QAAQ,EACRC,SAAS,QAGJ,OAAO;AAEd,OAAOC,eAAe,MAAqC,sBAAmB;AAC9E,OAAOC,WAAW,MAAiC,kBAAe;AAClE,OAAOC,kBAAkB,MAElB,yBAAsB;AAC7B,OAAOC,SAAS,MAA+B,gBAAa;AAC5D,OAAOC,YAAY,MAAkC,mBAAgB;AACr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AAChB,IAAI,CAACc,MAAM,CAAC,CAAC;;EAEjB;EACA,MAAMG,gBAAgB,GAAGvG,OAAO,CAAC,MAAM;IACrC,MAAM;MAAEwG;IAAQ,CAAC,GAAGlB,IAAI;IACxB,IAAI,CAACkB,OAAO,IAAI,CAAC3E,MAAM,CAACC,IAAI,CAAC0E,OAAO,CAAC,EAAE;MACrC,OAAO,EAAE;IACX;IACA,OAAO3E,MAAM,CAAC4E,OAAO,CAACD,OAAO,CAAC,CAC3BH,GAAG,CAAC,CAAC,CAAC9C,EAAE,EAAET,MAAM,CAAC,KAAKmC,iBAAiB,CAAC1B,EAAE,EAAET,MAAM,CAAC,CAAC,CACpDO,MAAM,CAAEiD,CAAC,IAAK,CAAC,CAACA,CAAC,CAAC;EACvB,CAAC,EAAE,CAAChB,IAAI,CAAC,CAAC;EAEV,oBACElE,KAAA,CAAAF,SAAA;IAAAwF,QAAA,GACGH,gBAAgB,EAChBJ,eAAe;EAAA,CAChB,CAAC;AAEP,CAAC;AAED,eAAejB,KAAK","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","NativeEventEmitter","MapLibreRN","MLRNModule","MLRNLocationModule","LocationModuleEventEmitter","LocationManager","constructor","_listeners","_lastKnownLocation","_isListening","onUpdate","bind","subscription","getLastKnownLocation","lastKnownLocation","error","console","log","addListener","listener","start","includes","push","removeListener","filter","l","length","stop","removeAllListeners","displacement","LocationCallbackName","Update","remove","setMinDisplacement","minDisplacement","location","forEach"],"sourceRoot":"../../../../src","sources":["modules/location/locationManager.ts"],"mappings":";;AAAA,SACEA,aAAa,EACbC,kBAAkB,QAEb,cAAc;AAErB,MAAMC,UAAU,GAAGF,aAAa,CAACG,UAAU;AAC3C,MAAMC,kBAAkB,GAAGJ,aAAa,CAACI,kBAAkB;AAE3D,OAAO,MAAMC,0BAA0B,GAAG,IAAIJ,kBAAkB,CAC9DG,kBACF,CAAC;;AAED;AACA;AACA;;AAMA;AACA;AACA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AQ,CAAC;IAC/D,IAAI,IAAI,CAACZ,UAAU,CAACmB,MAAM,KAAK,CAAC,EAAE;MAChC,IAAI,CAACC,IAAI,CAAC,CAAC;IACb;EACF;EAEAC,kBAAkBA,CAAA,EAAS;IACzB,IAAI,CAACrB,UAAU,GAAG,EAAE;IACpB,IAAI,CAACoB,IAAI,CAAC,CAAC;EACb;EAEAP,KAAKA,CAACS,YAAY,GAAG,CAAC,EAAQ;IAC5B,IAAI,CAAC,IAAI,CAACpB,YAAY,EAAE;MACtBN,kBAAkB,CAACiB,KAAK,CAACS,YAAY,CAAC;MAEtC,IAAI,CAACjB,YAAY,GAAGR,0BAA0B,CAACc,WAAW,CACxDjB,UAAU,CAAC6B,oBAAoB,CAACC,MAAM,EACtC,IAAI,CAACrB,QACP,CAAC;MAED,IAAI,CAACD,YAAY,GAAG,IAAI;IAC1B;EACF;EAEAkB,IAAIA,CAAA,EAAS;IACXxB,kBAAkB,CAACwB,IAAI,CAAC,CAAC;IAEzB,IAAI,IAAI,CAAClB,YAAY,EAAE;MACrB,IAAI,CAACG,YAAY,EAAEoB,MAAM,CAAC,CAAC;IAC7B;IAEA,IAAI,CAACvB,YAAY,GAAG,KAAK;EAC3B;EAEAwB,kBAAkBA,CAACC,eAAuB,EAAQ;IAChD/B,kBAAkB,CAAC8B,kBAAkB,CAACC,eAAe,CAAC;EACxD;EAEAxB,QAAQA,CAACyB,QAAkB,EAAQ;IACjC,IAAI,CAAC3B,kBAAkB,GAAG2B,QAAQ;IAElC,IAAI,CAAC5B,UAAU,CAAC6B,OAAO,CAAEX,CAAC,IAAKA,CAAC,CAACU,QAAQ,CAAC,CAAC;EAC7C;AACF;AAEA,eAAe,IAAI9B,eAAe,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","NativeEventEmitter","OfflineCreatePackOptions","OfflinePack","isUndefined","isFunction","isAndroid","MapLibreRN","MLRNModule","MLRNOfflineModule","OfflineModuleEventEmitter","OfflineManager","constructor","_hasInitialized","_offlinePacks","_progressListeners","_errorListeners","_onProgress","bind","_onError","subscriptionProgress","subscriptionError","createPack","options","progressListener","errorListener","_initialize","packOptions","name","Error","subscribe","nativeOfflinePack","invalidatePack","offlinePack","deletePack","invalidateAmbientCache","clearAmbientCache","setMaximumAmbientCacheSize","size","resetDatabase","getPacks","Object","keys","map","filter","pack","getPack","mergeOfflineRegions","path","setTileCountLimit","limit","setProgressEventThrottle","throttleValue","packName","totalProgressListeners","length","addListener","OfflineCallbackName","Progress","totalErrorListeners","setPackObserver","e","console","log","unsubscribe","remove","nativeOfflinePacks","state","payload","_hasListeners","OfflinePackDownloadState","Complete","listenerMap","offlineManager"],"sourceRoot":"../../../../src","sources":["modules/offline/offlineManager.ts"],"mappings":";;AAAA,SACEA,aAAa,EACbC,kBAAkB,QAEb,cAAc;AAErB,OAAOC,wBAAwB,MAExB,+BAA4B;AACnC,OAAOC,WAAW,MAAM,kBAAe;AACvC,SAASC,WAAW,EAAEC,UAAU,EAAEC,SAAS,QAAQ,sBAAa;AAEhE,MAAMC,UAAU,GAAGP,aAAa,CAACQ,UAAU;AAC3C,MAAMC,iBAAiB,GAAGT,aAAa,CAACS,iBAAiB;AACzD,OAAO,MAAMC,yBAAyB,GAAG,IAAIT,kBAAkB,CAC7DQ,iBACF,CAAC;AAgCD;AACA;AACA;AACA;AACA;AACA,MAAME,cAAc,CAAC;EAQnBC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,eAAe,GAAG,KAAK;IAC5B,IAAI,CAACC,aAAa,GAAG,CAAC,CAAC;IAEvB,IAAI,CAACC,kBAAkB,GAAG,CAAC,CAAC;IAC5B,IAAI,CAACC,eAAe,GAAG,CAAC,CAAC;IAEzB,IAAI,CAACC,WAAW,GAAG,IAAI,CAACA,WAAW,CAACC,IAAI,CAAC,IAAI,CAAC;IAC9C,IAAI,CAACC,QAAQ,GAAG,IAAI,CAACA,QAAQ,CAACD,IAAI,CAAC,IAA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,GAAG,IAAI,CAAC/B,aAAa,CAACc,IAAI,CAAC;IACrC,IAAIiB,IAAI,EAAE;MACR,IAAI,CAAC7B,eAAe,CAACY,IAAI,CAAC,GAAGiB,IAAI,EAAEgB,CAAC,CAACO,OAAO,CAAC;IAC/C;EACF;EAEAC,aAAaA,CACXzC,IAAY,EACZ4C,WAEiC,EACxB;IACT,OACE,CAACpE,WAAW,CAAC,IAAI,CAACU,aAAa,CAACc,IAAI,CAAC,CAAC,IAAIvB,UAAU,CAACmE,WAAW,CAAC5C,IAAI,CAAC,CAAC;EAE3E;AACF;AAEA,MAAM6C,cAAc,GAAG,IAAI9D,cAAc,CAAC,CAAC;AAC3C,eAAe8D,cAAc","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["StyleURL"],"sourceRoot":"../../../src","sources":["types/StyleURL.ts"],"mappings":";;AAAA,WAAYA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA","ignoreList":[]}
|