@maplibre/maplibre-react-native 11.0.0-alpha.26 → 11.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/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +16 -1
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +20 -32
- package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNRasterSource.java +1 -1
- package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNSource.kt +228 -0
- package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNTileSource.java +0 -1
- package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNVectorSourceManager.java +2 -2
- package/android/src/main/java/org/maplibre/reactnative/components/sources/shapesource/ClusterPropertyEntry.kt +5 -0
- package/android/src/main/java/org/maplibre/reactnative/components/sources/shapesource/MLRNShapeSource.kt +232 -0
- package/android/src/main/java/org/maplibre/reactnative/components/sources/shapesource/MLRNShapeSourceManager.kt +183 -0
- package/android/src/main/java/org/maplibre/reactnative/components/sources/shapesource/MLRNShapeSourceModule.kt +65 -0
- package/android/src/main/java/org/maplibre/reactnative/events/MapPressEvent.kt +1 -1
- package/android/src/main/java/org/maplibre/reactnative/events/MapPressEventWithFeatures.kt +24 -0
- package/android/src/main/java/org/maplibre/reactnative/utils/ConvertUtils.kt +203 -0
- package/android/src/main/java/org/maplibre/reactnative/utils/ExpressionParser.kt +70 -0
- package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.kt +37 -20
- package/ios/components/camera/MLRNCameraModule.mm +10 -20
- package/ios/components/map-view/MLRNMapViewModule.mm +10 -20
- package/ios/components/sources/MLRNSource.h +3 -0
- package/ios/components/sources/{MLRNShapeSource.h → shape-source/MLRNShapeSource.h} +3 -5
- package/ios/components/sources/{MLRNShapeSource.m → shape-source/MLRNShapeSource.m} +4 -12
- package/ios/components/sources/shape-source/MLRNShapeSourceComponentView.h +11 -0
- package/ios/components/sources/shape-source/MLRNShapeSourceComponentView.mm +163 -0
- package/ios/components/sources/shape-source/MLRNShapeSourceModule.h +5 -0
- package/ios/components/sources/shape-source/MLRNShapeSourceModule.mm +136 -0
- package/ios/utils/MLRNViewModuleUtils.h +35 -0
- package/ios/utils/MLRNViewModuleUtils.m +39 -0
- package/lib/commonjs/components/Images.js +1 -1
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/annotations/Annotation.js +1 -1
- package/lib/commonjs/components/annotations/Annotation.js.map +1 -1
- package/lib/commonjs/components/layers/BackgroundLayer.js.map +1 -1
- package/lib/commonjs/components/layers/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/layers/FillExtrusionLayer.js.map +1 -1
- package/lib/commonjs/components/layers/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/layers/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/layers/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/map-view/MapView.js +16 -22
- package/lib/commonjs/components/map-view/MapView.js.map +1 -1
- package/lib/commonjs/components/sources/VectorSource.js +2 -2
- package/lib/commonjs/components/sources/VectorSource.js.map +1 -1
- package/lib/commonjs/components/sources/shape-source/NativeShapeSourceModule.js +9 -0
- package/lib/commonjs/components/sources/shape-source/NativeShapeSourceModule.js.map +1 -0
- package/lib/commonjs/components/sources/shape-source/ShapeSource.js +51 -0
- package/lib/commonjs/components/sources/shape-source/ShapeSource.js.map +1 -0
- package/lib/commonjs/components/sources/shape-source/ShapeSourceNativeComponent.ts +48 -0
- package/lib/commonjs/hooks/useAbstractLayer.js +2 -2
- package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
- package/lib/commonjs/hooks/useFrozenId.js +16 -0
- package/lib/commonjs/hooks/useFrozenId.js.map +1 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/commonjs/types/PressEventWithFeatures.js +6 -0
- package/lib/commonjs/types/PressEventWithFeatures.js.map +1 -0
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +0 -6
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/commonjs/utils/animated/Animated.js +4 -4
- package/lib/commonjs/utils/animated/Animated.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +0 -6
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedPoint.js +0 -2
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedShape.js +3 -16
- package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/commonjs/utils/findNodeHandle.js +16 -0
- package/lib/commonjs/utils/findNodeHandle.js.map +1 -0
- package/lib/commonjs/utils/{filterUtils.js → getFilter.js} +2 -2
- package/lib/commonjs/utils/getFilter.js.map +1 -0
- package/lib/commonjs/utils/index.js +3 -8
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/components/Images.js +1 -1
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/annotations/Annotation.js +1 -1
- package/lib/module/components/annotations/Annotation.js.map +1 -1
- package/lib/module/components/layers/BackgroundLayer.js.map +1 -1
- package/lib/module/components/layers/CircleLayer.js.map +1 -1
- package/lib/module/components/layers/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/layers/HeatmapLayer.js.map +1 -1
- package/lib/module/components/layers/RasterLayer.js.map +1 -1
- package/lib/module/components/layers/SymbolLayer.js.map +1 -1
- package/lib/module/components/map-view/MapView.js +3 -9
- package/lib/module/components/map-view/MapView.js.map +1 -1
- package/lib/module/components/sources/VectorSource.js +1 -1
- package/lib/module/components/sources/VectorSource.js.map +1 -1
- package/lib/module/components/sources/shape-source/NativeShapeSourceModule.js +5 -0
- package/lib/module/components/sources/shape-source/NativeShapeSourceModule.js.map +1 -0
- package/lib/module/components/sources/shape-source/ShapeSource.js +46 -0
- package/lib/module/components/sources/shape-source/ShapeSource.js.map +1 -0
- package/lib/module/components/sources/shape-source/ShapeSourceNativeComponent.ts +48 -0
- package/lib/module/hooks/useAbstractLayer.js +1 -1
- package/lib/module/hooks/useAbstractLayer.js.map +1 -1
- package/lib/module/hooks/useFrozenId.js +12 -0
- package/lib/module/hooks/useFrozenId.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/types/PressEventWithFeatures.js +4 -0
- package/lib/module/types/PressEventWithFeatures.js.map +1 -0
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +0 -7
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/module/utils/animated/Animated.js +4 -4
- package/lib/module/utils/animated/Animated.js.map +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +0 -6
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedPoint.js +0 -3
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/module/utils/animated/AnimatedShape.js +3 -16
- package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/module/utils/findNodeHandle.js +11 -0
- package/lib/module/utils/findNodeHandle.js.map +1 -0
- package/lib/module/utils/getFilter.js +9 -0
- package/lib/module/utils/getFilter.js.map +1 -0
- package/lib/module/utils/index.js +3 -8
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/commonjs/src/components/annotations/Annotation.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/annotations/Annotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/layers/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/layers/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/layers/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/layers/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/layers/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/layers/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/map-view/MapView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/sources/VectorSource.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/sources/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/sources/shape-source/NativeShapeSourceModule.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/sources/shape-source/NativeShapeSourceModule.d.ts.map +1 -0
- package/lib/typescript/{module/src/components/sources → commonjs/src/components/sources/shape-source}/ShapeSource.d.ts +60 -41
- package/lib/typescript/commonjs/src/components/sources/shape-source/ShapeSource.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/sources/shape-source/ShapeSourceNativeComponent.d.ts +35 -0
- package/lib/typescript/commonjs/src/components/sources/shape-source/ShapeSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useFrozenId.d.ts +2 -0
- package/lib/typescript/commonjs/src/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +4 -3
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/PressEvent.d.ts +0 -3
- package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/PressEventWithFeatures.d.ts +5 -0
- package/lib/typescript/commonjs/src/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +4 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +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.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/findNodeHandle.d.ts +3 -0
- package/lib/typescript/commonjs/src/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/{filterUtils.d.ts → getFilter.d.ts} +2 -2
- package/lib/typescript/commonjs/src/utils/getFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts +3 -3
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/annotations/Annotation.d.ts +1 -1
- package/lib/typescript/module/src/components/annotations/Annotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/layers/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/layers/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/layers/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/layers/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/layers/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/layers/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/map-view/MapView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/sources/VectorSource.d.ts +1 -1
- package/lib/typescript/module/src/components/sources/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/sources/shape-source/NativeShapeSourceModule.d.ts +10 -0
- package/lib/typescript/module/src/components/sources/shape-source/NativeShapeSourceModule.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src/components/sources → module/src/components/sources/shape-source}/ShapeSource.d.ts +60 -41
- package/lib/typescript/module/src/components/sources/shape-source/ShapeSource.d.ts.map +1 -0
- package/lib/typescript/module/src/components/sources/shape-source/ShapeSourceNativeComponent.d.ts +35 -0
- package/lib/typescript/module/src/components/sources/shape-source/ShapeSourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useFrozenId.d.ts +2 -0
- package/lib/typescript/module/src/hooks/useFrozenId.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +4 -3
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts +1 -1
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +1 -1
- package/lib/typescript/module/src/types/PressEvent.d.ts +0 -3
- package/lib/typescript/module/src/types/PressEvent.d.ts.map +1 -1
- package/lib/typescript/module/src/types/PressEventWithFeatures.d.ts +5 -0
- package/lib/typescript/module/src/types/PressEventWithFeatures.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts +4 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +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.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/findNodeHandle.d.ts +3 -0
- package/lib/typescript/module/src/utils/findNodeHandle.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/{filterUtils.d.ts → getFilter.d.ts} +2 -2
- package/lib/typescript/module/src/utils/getFilter.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/index.d.ts +3 -3
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/package.json +8 -7
- package/src/components/Images.tsx +2 -2
- package/src/components/annotations/Annotation.tsx +2 -2
- package/src/components/layers/BackgroundLayer.tsx +1 -2
- package/src/components/layers/CircleLayer.tsx +1 -2
- package/src/components/layers/FillExtrusionLayer.tsx +1 -2
- package/src/components/layers/HeatmapLayer.tsx +1 -2
- package/src/components/layers/RasterLayer.tsx +1 -2
- package/src/components/layers/SymbolLayer.tsx +1 -2
- package/src/components/map-view/MapView.tsx +2 -14
- package/src/components/sources/VectorSource.tsx +2 -2
- package/src/components/sources/shape-source/NativeShapeSourceModule.ts +31 -0
- package/src/components/sources/shape-source/ShapeSource.tsx +235 -0
- package/src/components/sources/shape-source/ShapeSourceNativeComponent.ts +48 -0
- package/src/hooks/useAbstractLayer.ts +1 -1
- package/src/hooks/useFrozenId.ts +13 -0
- package/src/index.ts +4 -3
- package/src/modules/snapshot/SnapshotOptions.ts +3 -2
- package/src/types/MapLibreRNStyles.ts +1 -1
- package/src/types/PressEvent.ts +0 -4
- package/src/types/PressEventWithFeatures.ts +5 -0
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +0 -9
- package/src/utils/animated/Animated.ts +12 -5
- package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +0 -9
- package/src/utils/animated/AnimatedPoint.ts +0 -2
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -3
- package/src/utils/animated/AnimatedShape.ts +7 -18
- package/src/utils/findNodeHandle.ts +14 -0
- package/src/utils/{filterUtils.ts → getFilter.ts} +2 -2
- package/src/utils/index.ts +12 -12
- package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNShapeSource.java +0 -248
- package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNShapeSourceManager.java +0 -216
- package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNSource.java +0 -240
- package/android/src/main/java/org/maplibre/reactnative/utils/ClusterPropertyEntry.java +0 -13
- package/android/src/main/java/org/maplibre/reactnative/utils/ConvertUtils.java +0 -246
- package/android/src/main/java/org/maplibre/reactnative/utils/ExpressionParser.java +0 -74
- package/ios/components/sources/MLRNShapeSourceManager.h +0 -6
- package/ios/components/sources/MLRNShapeSourceManager.m +0 -128
- package/lib/commonjs/components/sources/ShapeSource.js +0 -153
- package/lib/commonjs/components/sources/ShapeSource.js.map +0 -1
- package/lib/commonjs/utils/filterUtils.js.map +0 -1
- package/lib/module/components/sources/ShapeSource.js +0 -149
- package/lib/module/components/sources/ShapeSource.js.map +0 -1
- package/lib/module/utils/filterUtils.js +0 -9
- package/lib/module/utils/filterUtils.js.map +0 -1
- package/lib/typescript/commonjs/src/components/sources/ShapeSource.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +0 -1
- package/lib/typescript/module/src/components/sources/ShapeSource.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts.map +0 -1
- package/src/components/sources/ShapeSource.tsx +0 -366
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
#import "MLRNCamera.h"
|
|
5
5
|
#import "MLRNCameraComponentView.h"
|
|
6
6
|
#import "MLRNCameraManager.h"
|
|
7
|
+
#import "MLRNViewModuleUtils.h"
|
|
7
8
|
|
|
8
9
|
@implementation MLRNCameraModule
|
|
9
10
|
|
|
@@ -22,26 +23,15 @@
|
|
|
22
23
|
block:(void (^)(MLRNCamera *))block
|
|
23
24
|
reject:(RCTPromiseRejectBlock)reject
|
|
24
25
|
methodName:(NSString *)methodName {
|
|
25
|
-
[self.viewRegistry_DEPRECATED
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
block(camera);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
reject(methodName,
|
|
41
|
-
[NSString stringWithFormat:@"Invalid `reactTag` %@, could not find MLRNCamera",
|
|
42
|
-
[NSNumber numberWithInteger:reactTag]],
|
|
43
|
-
nil);
|
|
44
|
-
}];
|
|
26
|
+
[MLRNViewModuleUtils withView:self.viewRegistry_DEPRECATED
|
|
27
|
+
reactTag:reactTag
|
|
28
|
+
componentViewClass:[MLRNCameraComponentView class]
|
|
29
|
+
contentViewClass:[MLRNCamera class]
|
|
30
|
+
block:^(UIView *view) {
|
|
31
|
+
block((MLRNCamera *)view);
|
|
32
|
+
}
|
|
33
|
+
reject:reject
|
|
34
|
+
methodName:methodName];
|
|
45
35
|
}
|
|
46
36
|
|
|
47
37
|
- (void)setStop:(NSInteger)reactTag
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
#import "MLRNMapViewComponentView.h"
|
|
6
6
|
#import "MLRNMapViewManager.h"
|
|
7
7
|
#import "MLRNUtils.h"
|
|
8
|
+
#import "MLRNViewModuleUtils.h"
|
|
8
9
|
|
|
9
10
|
@implementation MLRNMapViewModule
|
|
10
11
|
|
|
@@ -23,26 +24,15 @@
|
|
|
23
24
|
block:(void (^)(MLRNMapView *))block
|
|
24
25
|
reject:(RCTPromiseRejectBlock)reject
|
|
25
26
|
methodName:(NSString *)methodName {
|
|
26
|
-
[self.viewRegistry_DEPRECATED
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
block(mapView);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
reject(methodName,
|
|
42
|
-
[NSString stringWithFormat:@"Invalid `reactTag` %@, could not find MLRNMapView",
|
|
43
|
-
[NSNumber numberWithInteger:reactTag]],
|
|
44
|
-
nil);
|
|
45
|
-
}];
|
|
27
|
+
[MLRNViewModuleUtils withView:self.viewRegistry_DEPRECATED
|
|
28
|
+
reactTag:reactTag
|
|
29
|
+
componentViewClass:[MLRNMapViewComponentView class]
|
|
30
|
+
contentViewClass:[MLRNMapView class]
|
|
31
|
+
block:^(UIView *view) {
|
|
32
|
+
block((MLRNMapView *)view);
|
|
33
|
+
}
|
|
34
|
+
reject:reject
|
|
35
|
+
methodName:methodName];
|
|
46
36
|
}
|
|
47
37
|
|
|
48
38
|
- (void)getCenter:(NSInteger)reactTag
|
|
@@ -24,6 +24,9 @@ extern NSString *_Nonnull const DEFAULT_SOURCE_ID;
|
|
|
24
24
|
- (nullable MLNSource *)makeSource;
|
|
25
25
|
- (nonnull NSArray<NSString *> *)getLayerIDs;
|
|
26
26
|
|
|
27
|
+
- (void)insertReactSubview:(id<RCTComponent>_Nullable)subview atIndex:(NSInteger)atIndex;
|
|
28
|
+
- (void)removeReactSubview:(id<RCTComponent>_Nullable)subview;
|
|
29
|
+
|
|
27
30
|
+ (BOOL)isDefaultSource:(nonnull NSString *)sourceID;
|
|
28
31
|
|
|
29
32
|
@end
|
|
@@ -22,15 +22,13 @@
|
|
|
22
22
|
@property (nonatomic, strong, nullable) NSNumber *tolerance;
|
|
23
23
|
@property (nonatomic, strong, nullable) NSNumber *lineMetrics;
|
|
24
24
|
|
|
25
|
-
@property (nonatomic, copy, nullable) RCTBubblingEventBlock onPress;
|
|
26
|
-
@property (nonatomic, assign) BOOL hasPressListener;
|
|
27
25
|
|
|
28
26
|
- (nonnull NSArray<id<MLNFeature>> *)featuresMatchingPredicate:(nullable NSPredicate *)predicate;
|
|
29
|
-
- (nonnull NSArray<id<MLNFeature>> *)getClusterLeaves:(nonnull
|
|
27
|
+
- (nonnull NSArray<id<MLNFeature>> *)getClusterLeaves:(nonnull MLNPointFeatureCluster *)cluster
|
|
30
28
|
number:(NSUInteger)number
|
|
31
29
|
offset:(NSUInteger)offset;
|
|
32
|
-
- (nonnull NSArray<id<MLNFeature>> *)getClusterChildren:(nonnull
|
|
30
|
+
- (nonnull NSArray<id<MLNFeature>> *)getClusterChildren:(nonnull MLNPointFeatureCluster *)cluster;
|
|
33
31
|
|
|
34
|
-
- (double)getClusterExpansionZoom:(nonnull
|
|
32
|
+
- (double)getClusterExpansionZoom:(nonnull MLNPointFeatureCluster *)cluster;
|
|
35
33
|
|
|
36
34
|
@end
|
|
@@ -113,31 +113,23 @@ static UIImage *_placeHolderImage;
|
|
|
113
113
|
return [shapeSource featuresMatchingPredicate:predicate];
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
- (double)getClusterExpansionZoom:(nonnull
|
|
116
|
+
- (double)getClusterExpansionZoom:(nonnull MLNPointFeatureCluster *)cluster {
|
|
117
117
|
MLNShapeSource *shapeSource = (MLNShapeSource *)self.source;
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return [shapeSource zoomLevelForExpandingCluster:(MLNPointFeatureCluster *)feature];
|
|
119
|
+
return [shapeSource zoomLevelForExpandingCluster:cluster];
|
|
122
120
|
}
|
|
123
121
|
|
|
124
|
-
- (nonnull NSArray<id<MLNFeature>> *)getClusterLeaves:(nonnull
|
|
122
|
+
- (nonnull NSArray<id<MLNFeature>> *)getClusterLeaves:(nonnull MLNPointFeatureCluster *)cluster
|
|
125
123
|
number:(NSUInteger)number
|
|
126
124
|
offset:(NSUInteger)offset {
|
|
127
125
|
MLNShapeSource *shapeSource = (MLNShapeSource *)self.source;
|
|
128
126
|
|
|
129
|
-
MLNPointFeature *feature = (MLNPointFeature *)[MLRNUtils shapeFromGeoJSON:featureJSON];
|
|
130
|
-
|
|
131
|
-
MLNPointFeatureCluster *cluster = (MLNPointFeatureCluster *)feature;
|
|
132
127
|
return [shapeSource leavesOfCluster:cluster offset:offset limit:number];
|
|
133
128
|
}
|
|
134
129
|
|
|
135
|
-
- (nonnull NSArray<id<MLNFeature>> *)getClusterChildren:(nonnull
|
|
130
|
+
- (nonnull NSArray<id<MLNFeature>> *)getClusterChildren:(nonnull MLNPointFeatureCluster *)cluster {
|
|
136
131
|
MLNShapeSource *shapeSource = (MLNShapeSource *)self.source;
|
|
137
132
|
|
|
138
|
-
MLNPointFeature *feature = (MLNPointFeature *)[MLRNUtils shapeFromGeoJSON:featureJSON];
|
|
139
|
-
|
|
140
|
-
MLNPointFeatureCluster *cluster = (MLNPointFeatureCluster *)feature;
|
|
141
133
|
return [shapeSource childrenOfCluster:cluster];
|
|
142
134
|
}
|
|
143
135
|
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
#import "MLRNShapeSourceComponentView.h"
|
|
2
|
+
|
|
3
|
+
#import <react/renderer/components/MapLibreReactNativeSpec/ComponentDescriptors.h>
|
|
4
|
+
#import <react/renderer/components/MapLibreReactNativeSpec/EventEmitters.h>
|
|
5
|
+
#import <react/renderer/components/MapLibreReactNativeSpec/Props.h>
|
|
6
|
+
#import <react/renderer/components/MapLibreReactNativeSpec/RCTComponentViewHelpers.h>
|
|
7
|
+
|
|
8
|
+
#import "RCTFabricComponentsPlugins.h"
|
|
9
|
+
|
|
10
|
+
#import <React/RCTConversions.h>
|
|
11
|
+
#import <react/utils/FollyConvert.h>
|
|
12
|
+
#import "MLRNShapeSource.h"
|
|
13
|
+
|
|
14
|
+
using namespace facebook::react;
|
|
15
|
+
|
|
16
|
+
// MARK: - MLRNShapeSourceComponentView
|
|
17
|
+
|
|
18
|
+
@interface MLRNShapeSourceComponentView () <RCTMLRNShapeSourceViewProtocol>
|
|
19
|
+
|
|
20
|
+
@end
|
|
21
|
+
|
|
22
|
+
@implementation MLRNShapeSourceComponentView {
|
|
23
|
+
MLRNShapeSource *_view;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
- (instancetype)initWithFrame:(CGRect)frame {
|
|
27
|
+
if (self = [super initWithFrame:frame]) {
|
|
28
|
+
static const auto defaultProps = std::make_shared<const MLRNShapeSourceProps>();
|
|
29
|
+
_props = defaultProps;
|
|
30
|
+
[self prepareView];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return self;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
- (void)prepareView {
|
|
37
|
+
_view = [[MLRNShapeSource alloc] init];
|
|
38
|
+
|
|
39
|
+
// Capture weak self reference to prevent retain cycle
|
|
40
|
+
__weak __typeof__(self) weakSelf = self;
|
|
41
|
+
|
|
42
|
+
[_view setOnPress:^(NSDictionary *event) {
|
|
43
|
+
__typeof__(self) strongSelf = weakSelf;
|
|
44
|
+
if (strongSelf != nullptr && strongSelf->_eventEmitter != nullptr) {
|
|
45
|
+
const auto eventEmitter =
|
|
46
|
+
std::static_pointer_cast<const MLRNShapeSourceEventEmitter>(strongSelf->_eventEmitter);
|
|
47
|
+
|
|
48
|
+
facebook::react::MLRNShapeSourceEventEmitter::OnPress data = {
|
|
49
|
+
.lngLat = convertIdToFollyDynamic(event[@"lngLat"]),
|
|
50
|
+
.point = convertIdToFollyDynamic(event[@"point"]),
|
|
51
|
+
.features = convertIdToFollyDynamic(event[@"features"]),
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
eventEmitter->onPress(data);
|
|
55
|
+
}
|
|
56
|
+
}];
|
|
57
|
+
|
|
58
|
+
self.contentView = _view;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
- (MLRNShapeSource *)shapeSource {
|
|
62
|
+
return _view;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#pragma mark - RCTComponentViewProtocol
|
|
66
|
+
|
|
67
|
+
+ (ComponentDescriptorProvider)componentDescriptorProvider {
|
|
68
|
+
return concreteComponentDescriptorProvider<MLRNShapeSourceComponentDescriptor>();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
- (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &)oldProps {
|
|
72
|
+
const auto &oldViewProps = *std::static_pointer_cast<const MLRNShapeSourceProps>(_props);
|
|
73
|
+
const auto &newViewProps = *std::static_pointer_cast<const MLRNShapeSourceProps>(props);
|
|
74
|
+
|
|
75
|
+
if (oldViewProps.id != newViewProps.id) {
|
|
76
|
+
_view.id = RCTNSStringFromString(newViewProps.id);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (oldViewProps.data != newViewProps.data) {
|
|
80
|
+
_view.shape = RCTNSStringFromString(newViewProps.data);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (oldViewProps.cluster != newViewProps.cluster) {
|
|
84
|
+
_view.cluster = @(newViewProps.cluster);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (oldViewProps.clusterRadius != newViewProps.clusterRadius) {
|
|
88
|
+
_view.clusterRadius = newViewProps.clusterRadius >= 0 ? @(newViewProps.clusterRadius) : nil;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (oldViewProps.clusterMinPoints != newViewProps.clusterMinPoints) {
|
|
92
|
+
_view.clusterMinPoints =
|
|
93
|
+
newViewProps.clusterMinPoints >= 0 ? @(newViewProps.clusterMinPoints) : nil;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (oldViewProps.clusterMaxZoom != newViewProps.clusterMaxZoom) {
|
|
97
|
+
_view.clusterMaxZoomLevel =
|
|
98
|
+
newViewProps.clusterMaxZoom >= 0 ? @(newViewProps.clusterMaxZoom) : nil;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (oldViewProps.clusterProperties != newViewProps.clusterProperties) {
|
|
102
|
+
_view.clusterProperties = convertFollyDynamicToId(newViewProps.clusterProperties);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (oldViewProps.maxzoom != newViewProps.maxzoom) {
|
|
106
|
+
_view.maxZoomLevel = newViewProps.maxzoom >= 0 ? @(newViewProps.maxzoom) : nil;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (oldViewProps.buffer != newViewProps.buffer) {
|
|
110
|
+
_view.buffer = newViewProps.buffer >= 0 ? @(newViewProps.buffer) : nil;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (oldViewProps.tolerance != newViewProps.tolerance) {
|
|
114
|
+
_view.tolerance = newViewProps.tolerance >= 0 ? @(newViewProps.tolerance) : nil;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (oldViewProps.lineMetrics != newViewProps.lineMetrics) {
|
|
118
|
+
_view.lineMetrics = @(newViewProps.lineMetrics);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (oldViewProps.hasOnPress != newViewProps.hasOnPress) {
|
|
122
|
+
_view.hasPressListener = newViewProps.hasOnPress;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (oldViewProps.hitbox.top != newViewProps.hitbox.top ||
|
|
126
|
+
oldViewProps.hitbox.right != newViewProps.hitbox.right ||
|
|
127
|
+
oldViewProps.hitbox.bottom != newViewProps.hitbox.bottom ||
|
|
128
|
+
oldViewProps.hitbox.left != newViewProps.hitbox.left) {
|
|
129
|
+
_view.hitbox = @{
|
|
130
|
+
@"top" : @(newViewProps.hitbox.top),
|
|
131
|
+
@"right" : @(newViewProps.hitbox.right),
|
|
132
|
+
@"bottom" : @(newViewProps.hitbox.bottom),
|
|
133
|
+
@"left" : @(newViewProps.hitbox.left),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[super updateProps:props oldProps:oldProps];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
- (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView
|
|
141
|
+
index:(NSInteger)index {
|
|
142
|
+
if ([childComponentView isKindOfClass:[RCTViewComponentView class]] &&
|
|
143
|
+
((RCTViewComponentView *)childComponentView).contentView) {
|
|
144
|
+
[_view insertReactSubview:(id<RCTComponent>)((RCTViewComponentView *)childComponentView).contentView
|
|
145
|
+
atIndex:index];
|
|
146
|
+
}
|
|
147
|
+
[super mountChildComponentView:childComponentView index:index];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
- (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView
|
|
151
|
+
index:(NSInteger)index {
|
|
152
|
+
if ([childComponentView isKindOfClass:[RCTViewComponentView class]] &&
|
|
153
|
+
((RCTViewComponentView *)childComponentView).contentView) {
|
|
154
|
+
[_view removeReactSubview:(id<RCTComponent>)((RCTViewComponentView *)childComponentView).contentView];
|
|
155
|
+
}
|
|
156
|
+
[super unmountChildComponentView:childComponentView index:index];
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
Class<RCTComponentViewProtocol> MLRNShapeSourceCls(void) {
|
|
160
|
+
return MLRNShapeSourceComponentView.class;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@end
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
#import "MLRNShapeSourceModule.h"
|
|
2
|
+
|
|
3
|
+
#import <React/RCTUIManager.h>
|
|
4
|
+
#import "FilterParser.h"
|
|
5
|
+
#import "MLRNShapeSource.h"
|
|
6
|
+
#import "MLRNShapeSourceComponentView.h"
|
|
7
|
+
#import "MLRNUtils.h"
|
|
8
|
+
#import "MLRNViewModuleUtils.h"
|
|
9
|
+
|
|
10
|
+
@implementation MLRNShapeSourceModule
|
|
11
|
+
|
|
12
|
+
@synthesize viewRegistry_DEPRECATED = _viewRegistry_DEPRECATED;
|
|
13
|
+
|
|
14
|
+
+ (NSString *)moduleName {
|
|
15
|
+
return @"MLRNShapeSourceModule";
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
19
|
+
(const facebook::react::ObjCTurboModule::InitParams &)params {
|
|
20
|
+
return std::make_shared<facebook::react::NativeShapeSourceModuleSpecJSI>(params);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
- (void)withShapeSource:(NSInteger)reactTag
|
|
24
|
+
block:(void (^)(MLRNShapeSource *))block
|
|
25
|
+
reject:(RCTPromiseRejectBlock)reject
|
|
26
|
+
methodName:(NSString *)methodName {
|
|
27
|
+
[MLRNViewModuleUtils withView:self.viewRegistry_DEPRECATED
|
|
28
|
+
reactTag:reactTag
|
|
29
|
+
componentViewClass:[MLRNShapeSourceComponentView class]
|
|
30
|
+
contentViewClass:[MLRNShapeSource class]
|
|
31
|
+
block:^(UIView *view) {
|
|
32
|
+
block((MLRNShapeSource *)view);
|
|
33
|
+
}
|
|
34
|
+
reject:reject
|
|
35
|
+
methodName:methodName];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
- (MLNPointFeatureCluster *)clusterFromClusterId:(NSInteger)clusterId {
|
|
39
|
+
NSString *featureJSON =
|
|
40
|
+
[NSString stringWithFormat:@"{\"type\":\"Feature\",\"properties\":{\"cluster_id\":%ld},"
|
|
41
|
+
@"\"geometry\":{\"type\":\"Point\",\"coordinates\":[0,0]}}",
|
|
42
|
+
(long)clusterId];
|
|
43
|
+
MLNPointFeature *feature = (MLNPointFeature *)[MLRNUtils shapeFromGeoJSON:featureJSON];
|
|
44
|
+
return (MLNPointFeatureCluster *)feature;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
- (void)getData:(NSInteger)reactTag
|
|
48
|
+
filter:(NSArray *)filter
|
|
49
|
+
resolve:(nonnull RCTPromiseResolveBlock)resolve
|
|
50
|
+
reject:(nonnull RCTPromiseRejectBlock)reject {
|
|
51
|
+
[self withShapeSource:reactTag
|
|
52
|
+
block:^(MLRNShapeSource *shapeSource) {
|
|
53
|
+
NSPredicate *predicate = [FilterParser parse:filter];
|
|
54
|
+
NSArray<id<MLNFeature>> *shapes =
|
|
55
|
+
[shapeSource featuresMatchingPredicate:predicate];
|
|
56
|
+
|
|
57
|
+
NSMutableArray<NSDictionary *> *features =
|
|
58
|
+
[[NSMutableArray alloc] initWithCapacity:shapes.count];
|
|
59
|
+
for (int i = 0; i < shapes.count; i++) {
|
|
60
|
+
[features addObject:shapes[i].geoJSONDictionary];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
resolve(@{@"type" : @"FeatureCollection", @"features" : features});
|
|
64
|
+
}
|
|
65
|
+
reject:reject
|
|
66
|
+
methodName:@"getData"];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
- (void)getClusterExpansionZoom:(NSInteger)reactTag
|
|
70
|
+
clusterId:(NSInteger)clusterId
|
|
71
|
+
resolve:(nonnull RCTPromiseResolveBlock)resolve
|
|
72
|
+
reject:(nonnull RCTPromiseRejectBlock)reject {
|
|
73
|
+
[self withShapeSource:reactTag
|
|
74
|
+
block:^(MLRNShapeSource *shapeSource) {
|
|
75
|
+
MLNPointFeatureCluster *cluster = [self clusterFromClusterId:clusterId];
|
|
76
|
+
double zoom = [shapeSource getClusterExpansionZoom:cluster];
|
|
77
|
+
if (zoom == -1) {
|
|
78
|
+
reject(@"zoom_error",
|
|
79
|
+
[NSString stringWithFormat:@"Could not get zoom for cluster %ld",
|
|
80
|
+
(long)clusterId],
|
|
81
|
+
nil);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
resolve(@(zoom));
|
|
85
|
+
}
|
|
86
|
+
reject:reject
|
|
87
|
+
methodName:@"getClusterExpansionZoom"];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
- (void)getClusterLeaves:(NSInteger)reactTag
|
|
91
|
+
clusterId:(NSInteger)clusterId
|
|
92
|
+
limit:(NSInteger)limit
|
|
93
|
+
offset:(NSInteger)offset
|
|
94
|
+
resolve:(nonnull RCTPromiseResolveBlock)resolve
|
|
95
|
+
reject:(nonnull RCTPromiseRejectBlock)reject {
|
|
96
|
+
[self withShapeSource:reactTag
|
|
97
|
+
block:^(MLRNShapeSource *shapeSource) {
|
|
98
|
+
MLNPointFeatureCluster *cluster = [self clusterFromClusterId:clusterId];
|
|
99
|
+
NSArray<id<MLNFeature>> *shapes = [shapeSource getClusterLeaves:cluster
|
|
100
|
+
number:limit
|
|
101
|
+
offset:offset];
|
|
102
|
+
|
|
103
|
+
NSMutableArray<NSDictionary *> *features =
|
|
104
|
+
[[NSMutableArray alloc] initWithCapacity:shapes.count];
|
|
105
|
+
for (int i = 0; i < shapes.count; i++) {
|
|
106
|
+
[features addObject:shapes[i].geoJSONDictionary];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
resolve(features);
|
|
110
|
+
}
|
|
111
|
+
reject:reject
|
|
112
|
+
methodName:@"getClusterLeaves"];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
- (void)getClusterChildren:(NSInteger)reactTag
|
|
116
|
+
clusterId:(NSInteger)clusterId
|
|
117
|
+
resolve:(nonnull RCTPromiseResolveBlock)resolve
|
|
118
|
+
reject:(nonnull RCTPromiseRejectBlock)reject {
|
|
119
|
+
[self withShapeSource:reactTag
|
|
120
|
+
block:^(MLRNShapeSource *shapeSource) {
|
|
121
|
+
MLNPointFeatureCluster *cluster = [self clusterFromClusterId:clusterId];
|
|
122
|
+
NSArray<id<MLNFeature>> *shapes = [shapeSource getClusterChildren:cluster];
|
|
123
|
+
|
|
124
|
+
NSMutableArray<NSDictionary *> *features =
|
|
125
|
+
[[NSMutableArray alloc] initWithCapacity:shapes.count];
|
|
126
|
+
for (int i = 0; i < shapes.count; i++) {
|
|
127
|
+
[features addObject:shapes[i].geoJSONDictionary];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
resolve(features);
|
|
131
|
+
}
|
|
132
|
+
reject:reject
|
|
133
|
+
methodName:@"getClusterChildren"];
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#import <React/RCTBridgeModule.h>
|
|
3
|
+
|
|
4
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Utility class for common view module operations across MapLibre React Native modules.
|
|
8
|
+
*/
|
|
9
|
+
@interface MLRNViewModuleUtils : NSObject
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a specific view type from the view registry and executes a block with it
|
|
13
|
+
*
|
|
14
|
+
* Currently based upon the interop layer:
|
|
15
|
+
* https://github.com/facebook/react-native/issues/50800#issuecomment-3046289718
|
|
16
|
+
*
|
|
17
|
+
* @param viewRegistry The RCT view registry (typically viewRegistry_DEPRECATED)
|
|
18
|
+
* @param reactTag The React tag identifying the view
|
|
19
|
+
* @param componentViewClass The expected component view class (e.g., MLRNMapViewComponentView)
|
|
20
|
+
* @param contentViewClass The expected content view class (e.g., MLRNMapView)
|
|
21
|
+
* @param block The block to execute with the typed content view
|
|
22
|
+
* @param reject The promise reject block to call if view lookup fails
|
|
23
|
+
* @param methodName The name of the calling method (used in error messages)
|
|
24
|
+
*/
|
|
25
|
+
+ (void)withView:(RCTViewRegistry *)viewRegistry
|
|
26
|
+
reactTag:(NSInteger)reactTag
|
|
27
|
+
componentViewClass:(Class)componentViewClass
|
|
28
|
+
contentViewClass:(Class)contentViewClass
|
|
29
|
+
block:(void (^)(UIView *))block
|
|
30
|
+
reject:(RCTPromiseRejectBlock)reject
|
|
31
|
+
methodName:(NSString *)methodName;
|
|
32
|
+
|
|
33
|
+
@end
|
|
34
|
+
|
|
35
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#import "MLRNViewModuleUtils.h"
|
|
2
|
+
|
|
3
|
+
@implementation MLRNViewModuleUtils
|
|
4
|
+
|
|
5
|
+
+ (void)withView:(RCTViewRegistry *)viewRegistry
|
|
6
|
+
reactTag:(NSInteger)reactTag
|
|
7
|
+
componentViewClass:(Class)componentViewClass
|
|
8
|
+
contentViewClass:(Class)contentViewClass
|
|
9
|
+
block:(void (^)(UIView *))block
|
|
10
|
+
reject:(RCTPromiseRejectBlock)reject
|
|
11
|
+
methodName:(NSString *)methodName {
|
|
12
|
+
__weak RCTViewRegistry *weakRegistry = viewRegistry;
|
|
13
|
+
[viewRegistry addUIBlock:^(RCTViewRegistry *registry) {
|
|
14
|
+
RCTViewRegistry *strongRegistry = weakRegistry;
|
|
15
|
+
if (!strongRegistry) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
UIView *view = [strongRegistry viewForReactTag:[NSNumber numberWithInteger:reactTag]];
|
|
20
|
+
|
|
21
|
+
if ([view isKindOfClass:componentViewClass]) {
|
|
22
|
+
UIView *componentView = view;
|
|
23
|
+
UIView *contentView = [componentView valueForKey:@"contentView"];
|
|
24
|
+
|
|
25
|
+
if ([contentView isKindOfClass:contentViewClass]) {
|
|
26
|
+
block(contentView);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
reject(methodName,
|
|
32
|
+
[NSString stringWithFormat:@"Invalid `reactTag` %@, could not find %@",
|
|
33
|
+
[NSNumber numberWithInteger:reactTag],
|
|
34
|
+
NSStringFromClass(contentViewClass)],
|
|
35
|
+
nil);
|
|
36
|
+
}];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_jsxRuntime","NATIVE_MODULE_NAME","exports","Images","images","nativeAssetImages","onImageMissing","id","children","props","useMemo","getImages","imagesResult","Object","entries","forEach","imageName","value","source","Image","resolveAssetSource","sdf","hasOnImageMissing","event","nativeEvent","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_jsxRuntime","NATIVE_MODULE_NAME","exports","Images","images","nativeAssetImages","onImageMissing","id","children","props","useMemo","getImages","imagesResult","Object","entries","forEach","imageName","value","source","Image","resolveAssetSource","sdf","hasOnImageMissing","event","nativeEvent","imageKey","nativeImages","jsx","MLRNImages","requireNativeComponent"],"sourceRoot":"../../../src","sources":["components/Images.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQsB,IAAAE,WAAA,GAAAF,OAAA;AAIf,MAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,YAAY;AAyC9C;AACA;AACA;AACO,MAAME,MAAM,GAAGA,CAAC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,EAAEF,MAAM,EAAEC,iBAAiB,CAAC,CAAC;EAEnD,oBAAO,IAAAL,WAAA,CAAA2B,GAAA,EAACC,UAAU;IAAA,GAAKnB,KAAK;IAAAD,QAAA,EAAGA;EAAQ,CAAa,CAAC;AACvD,CAAC;AAACN,OAAA,CAAAC,MAAA,GAAAA,MAAA;AAEF,MAAMyB,UAAU,GAAG,IAAAC,mCAAsB,EAAC5B,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_Animated","_AnimatedPoint","_SymbolLayer","_jsxRuntime","getShapeFromProps","props","lng","coordinates","lat","point","type","animated","AnimatedPoint","isShapeAnimated","shape","Annotation","exports","forwardRef","animationDuration","animationEasingFunction","Easing","linear","otherProps","ref","useImperativeHandle","symbolStyle","setShape","useState","coordinateDeps","join","useEffect","Array","isArray","stopAnimation","timing","easing","duration","start","newShape","children","icon","style","iconImage","undefined","push","jsx","SymbolLayer","id","Animated","ShapeSource","testID","onPress","displayName"],"sourceRoot":"../../../../src","sources":["components/annotations/Annotation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAgBpD,SAASM,iBAAiBA,CAACC,KAA+B,GAAG,CAAC,CAAC,EAAS;EACtE,MAAMC,GAAG,GAAGD,KAAK,CAACE,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;EACvC,MAAMC,GAAG,GAAGH,KAAK,CAACE,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;EACvC,MAAME,KAAoB,GAAG;IAAEC,IAAI,EAAE,OAAO;IAAEH,WAAW,EAAE,CAACD,GAAG,EAAEE,GAAG;EAAE,CAAC;EAEvE,IAAIH,KAAK,CA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Props","props","lng","coordinates","lat","point","type","animated","AnimatedPoint","isShapeAnimated","shape","Annotation","exports","forwardRef","animationDuration","animationEasingFunction","Easing","linear","otherProps","ref","useImperativeHandle","symbolStyle","setShape","useState","coordinateDeps","join","useEffect","Array","isArray","stopAnimation","timing","easing","duration","start","newShape","children","icon","style","iconImage","undefined","push","jsx","SymbolLayer","id","Animated","ShapeSource","testID","onPress","data","displayName"],"sourceRoot":"../../../../src","sources":["components/annotations/Annotation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAgBpD,SAASM,iBAAiBA,CAACC,KAA+B,GAAG,CAAC,CAAC,EAAS;EACtE,MAAMC,GAAG,GAAGD,KAAK,CAACE,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;EACvC,MAAMC,GAAG,GAAGH,KAAK,CAACE,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;EACvC,MAAME,KAAoB,GAAG;IAAEC,IAAI,EAAE,OAAO;IAAEH,WAAW,EAAE,CAACD,GAAG,EAAEE,GAAG;EAAE,CAAC;EAEvE,IAAIH,KAAK,CAACM,QAAQ,EAAE;IAClB,OAAO,IAAIC,4BAAa,CAACH,KAAK,CAAC;EACjC;EAEA,OAAOA,KAAK;AACd;AAEA,SAASI,eAAeA,CAACC,KAAY,EAA0B;EAC7D,OAAOA,KAAK,YAAYF,4BAAa;AACvC;AAMO,MAAMG,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBAAG,IAAAE,iBAAU,EAClC,CACE;EACEN,QAAQ,GAAG,KAAK;EAChBO,iBAAiB,GAAG,IAAI;EACxBC,uBAAuB,GAAGC,mBAAM,CAACC,MAAM;EACvC,GAAGC;AACY,CAAC,EAClBC,GAAG,KACA;E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Q,GAAGnC,KAAK,CAACmC,IAAI,GAAGG;EAC3D,CAAC,GACDA,SAAS;EAEb,IAAIlB,WAAW,EAAE;IACfc,QAAQ,CAACK,IAAI,cACX,IAAAzC,WAAA,CAAA0C,GAAA,EAAC3C,YAAA,CAAA4C,WAAW;MAACC,EAAE,EAAE,GAAG1C,KAAK,CAAC0C,EAAE,SAAU;MAACN,KAAK,EAAEhB;IAAY,CAAE,CAC9D,CAAC;EACH;EAEA,IAAIpB,KAAK,CAACkC,QAAQ,EAAE;IAClB,IAAIR,KAAK,CAACC,OAAO,CAAC3B,KAAK,CAACkC,QAAQ,CAAC,EAAE;MACjCA,QAAQ,CAACK,IAAI,CAAC,GAAGvC,KAAK,CAACkC,QAAQ,CAAC;IAClC,CAAC,MAAM;MACLA,QAAQ,CAACK,IAAI,CAACvC,KAAK,CAACkC,QAAQ,CAAC;IAC/B;EACF;EAEA,oBACE,IAAApC,WAAA,CAAA0C,GAAA,EAAC7C,SAAA,CAAAgD,QAAQ,CAACC,WAAW;IACnBF,EAAE,EAAE1C,KAAK,CAAC0C,EAAG;IACbG,MAAM,EAAE7C,KAAK,CAAC6C,MAAO;IACrBC,OAAO,EAAE9C,KAAK,CAAC8C,OAAQ;IACvBC,IAAI,EAAEtC,KAAsD;IAAAyB,QAAA,EAE3DA;EAAQ,CACW,CAAC;AAE3B,CACF,CAAC;AAEDxB,UAAU,CAACsC,WAAW,GAAG,YAAY","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNBackgroundLayer","requireNativeComponent","BackgroundLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","testID","ref"],"sourceRoot":"../../../../src","sources":["components/layers/BackgroundLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,qBAAqB;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNBackgroundLayer","requireNativeComponent","BackgroundLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","testID","ref"],"sourceRoot":"../../../../src","sources":["components/layers/BackgroundLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,qBAAqB;AAYvD,MAAME,mBAAmB,GACvB,IAAAC,mCAAsB,EAAuBH,kBAAkB,CAAC;AAE3D,MAAMI,eAAe,GAAGA,CAAC;EAC9BC,QAAQ,GAAGP,UAAU,CAACQ,WAAW,CAACC,eAAe;EACjD,GAAGC;AACiB,CAAC,KAAK;EAC1B,MAAM;IAAEC,SAAS;IAAEC;EAAe,CAAC,GAAG,IAAAC,kCAAgB,EAGpD;IACA,GAAGH,KAAK;IACRH;EACF,CAAC,CAAC;EAEF,oBACE,IAAAR,WAAA,CAAAe,GAAA,EAACV,mBAAmB;IAClBW,MAAM,EAAC,qBAAqB;IAC5BC,GAAG,EAAEJ,cAAe;IAAA,GAChBD;EAAS,CACd,CAAC;AAEN,CAAC;AAACR,OAAA,CAAAG,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNCircleLayer","requireNativeComponent","CircleLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","testID","ref"],"sourceRoot":"../../../../src","sources":["components/layers/CircleLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,iBAAiB;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNCircleLayer","requireNativeComponent","CircleLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","testID","ref"],"sourceRoot":"../../../../src","sources":["components/layers/CircleLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,iBAAiB;AAYnD,MAAME,eAAe,GAAG,IAAAC,mCAAsB,EAAcH,kBAAkB,CAAC;;AAE/E;AACA;AACA;AACO,MAAMI,WAAW,GAAGA,CAAC;EAC1BC,QAAQ,GAAGP,UAAU,CAACQ,WAAW,CAACC,eAAe;EACjD,GAAGC;AACa,CAAC,KAAK;EACtB,MAAM;IAAEC,SAAS;IAAEC;EAAe,CAAC,GAAG,IAAAC,kCAAgB,EAGpD;IACA,GAAGH,KAAK;IACRH;EACF,CAAC,CAAC;EAEF,oBACE,IAAAR,WAAA,CAAAe,GAAA,EAACV,eAAe;IACdW,MAAM,EAAC,iBAAiB;IACxBC,GAAG,EAAEJ,cAAe;IAAA,GAChBD;EAAS,CACd,CAAC;AAEN,CAAC;AAACR,OAAA,CAAAG,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNFillExtrusionLayer","requireNativeComponent","FillExtrusionLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","ref"],"sourceRoot":"../../../../src","sources":["components/layers/FillExtrusionLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,wBAAwB;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNFillExtrusionLayer","requireNativeComponent","FillExtrusionLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","ref"],"sourceRoot":"../../../../src","sources":["components/layers/FillExtrusionLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,wBAAwB;AAY1D,MAAME,sBAAsB,GAC1B,IAAAC,mCAAsB,EAAcH,kBAAkB,CAAC;;AAEzD;AACA;AACA;AACO,MAAMI,kBAAkB,GAAGA,CAAC;EACjCC,QAAQ,GAAGP,UAAU,CAACQ,WAAW,CAACC,eAAe;EACjD,GAAGC;AACoB,CAAC,KAAK;EAC7B,MAAM;IAAEC,SAAS;IAAEC;EAAe,CAAC,GAAG,IAAAC,kCAAgB,EAGpD;IACA,GAAGH,KAAK;IACRH;EACF,CAAC,CAAC;EAEF,oBAAO,IAAAR,WAAA,CAAAe,GAAA,EAACV,sBAAsB;IAACW,GAAG,EAAEH,cAAe;IAAA,GAAKD;EAAS,CAAG,CAAC;AACvE,CAAC;AAACR,OAAA,CAAAG,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNHeatmapLayer","requireNativeComponent","HeatmapLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","ref"],"sourceRoot":"../../../../src","sources":["components/layers/HeatmapLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,kBAAkB;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNHeatmapLayer","requireNativeComponent","HeatmapLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","ref"],"sourceRoot":"../../../../src","sources":["components/layers/HeatmapLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,kBAAkB;AAYpD,MAAME,gBAAgB,GACpB,IAAAC,mCAAsB,EAAcH,kBAAkB,CAAC;AACzD;AACA;AACA;AACO,MAAMI,YAAY,GAAGA,CAAC;EAC3BC,QAAQ,GAAGP,UAAU,CAACQ,WAAW,CAACC,eAAe;EACjD,GAAGC;AACc,CAAC,KAAK;EACvB,MAAM;IAAEC,SAAS;IAAEC;EAAe,CAAC,GAAG,IAAAC,kCAAgB,EAGpD;IACA,GAAGH,KAAK;IACRH;EACF,CAAC,CAAC;EAEF,oBAAO,IAAAR,WAAA,CAAAe,GAAA,EAACV,gBAAgB;IAACW,GAAG,EAAEH,cAAe;IAAA,GAAKD;EAAS,CAAG,CAAC;AACjE,CAAC;AAACR,OAAA,CAAAG,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNRasterLayer","requireNativeComponent","RasterLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","ref"],"sourceRoot":"../../../../src","sources":["components/layers/RasterLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,iBAAiB;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_useAbstractLayer","_jsxRuntime","MLRNModule","NativeModules","NATIVE_MODULE_NAME","exports","MLRNRasterLayer","requireNativeComponent","RasterLayer","sourceID","StyleSource","DefaultSourceID","props","baseProps","setNativeLayer","useAbstractLayer","jsx","ref"],"sourceRoot":"../../../../src","sources":["components/layers/RasterLayer.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AAIsC,IAAAE,WAAA,GAAAF,OAAA;AAItC,MAAMG,UAAU,GAAGC,0BAAa,CAACD,UAAU;AAEpC,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,iBAAiB;AAYnD,MAAME,eAAe,GAAG,IAAAC,mCAAsB,EAAcH,kBAAkB,CAAC;AAExE,MAAMI,WAAW,GAAGA,CAAC;EAC1BC,QAAQ,GAAGP,UAAU,CAACQ,WAAW,CAACC,eAAe;EACjD,GAAGC;AACa,CAAC,KAAK;EACtB,MAAM;IAAEC,SAAS;IAAEC;EAAe,CAAC,GAAG,IAAAC,kCAAgB,EAGpD;IACA,GAAGH,KAAK;IACRH;EACF,CAAC,CAAC;EAEF,oBAAO,IAAAR,WAAA,CAAAe,GAAA,EAACV,eAAe;IAACW,GAAG,EAAEH,cAAe;IAAA,GAAKD;EAAS,CAAG,CAAC;AAChE,CAAC;AAACR,OAAA,CAAAG,WAAA,GAAAA,WAAA","ignoreList":[]}
|