@rnmapbox/maps 10.1.0-beta.21 → 10.1.0-beta.22
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/com/rnmapbox/rnmbx/components/styles/layers/RNMBXCircleLayerManager.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillLayerManager.kt +12 -5
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHeatmapLayerManager.kt +7 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLayer.kt +25 -6
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLineLayerManager.kt +7 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayer.kt +4 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayerManager.kt +8 -2
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSymbolLayerManager.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/codeparts/LayerManagerCommonProps.codepart-kt.ejs +59 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/Layer.kt +7 -0
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Layer.kt +3 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCircleLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXCircleLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXFillLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXFillLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXHeatmapLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXHeatmapLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXLineLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXLineLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterLayerManagerInterface.java +3 -2
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXSymbolLayerManagerDelegate.java +9 -6
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXSymbolLayerManagerInterface.java +3 -2
- package/ios/RNMBX/CommonLayerProperties.H +2 -0
- package/ios/RNMBX/RNMBXLayer.swift +27 -0
- package/lib/commonjs/components/CircleLayer.js +7 -2
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +7 -2
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +7 -2
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/LineLayer.js +7 -2
- package/lib/commonjs/components/LineLayer.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +7 -2
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/SkyLayer.js +2 -2
- package/lib/commonjs/components/SkyLayer.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +7 -2
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js +2 -0
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +17 -0
- package/lib/module/components/CircleLayer.js +7 -2
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +7 -2
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +7 -2
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/LineLayer.js +7 -2
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/RasterLayer.js +7 -2
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/SkyLayer.js +2 -2
- package/lib/module/components/SkyLayer.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +7 -2
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js +2 -1
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +17 -0
- package/lib/typescript/src/components/CircleLayer.d.ts +11 -3
- package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/FillLayer.d.ts +10 -1
- package/lib/typescript/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/HeatmapLayer.d.ts +12 -4
- package/lib/typescript/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/LineLayer.d.ts +10 -1
- package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/MapView.d.ts +5 -1
- package/lib/typescript/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterLayer.d.ts +11 -2
- package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/SymbolLayer.d.ts +17 -5
- package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts +6 -3
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts +13 -10
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/CircleLayer.tsx +17 -5
- package/src/components/FillLayer.tsx +16 -3
- package/src/components/HeatmapLayer.tsx +18 -6
- package/src/components/LineLayer.tsx +16 -3
- package/src/components/RasterLayer.tsx +17 -4
- package/src/components/SkyLayer.tsx +2 -2
- package/src/components/SymbolLayer.tsx +26 -7
- package/src/components/codeparts/LayerPropsCommon.codepart-tsx +62 -0
- package/src/specs/RNMBXCircleLayerNativeComponent.ts +9 -3
- package/src/specs/RNMBXFillLayerNativeComponent.ts +17 -11
- package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +17 -11
- package/src/specs/RNMBXLineLayerNativeComponent.ts +17 -11
- package/src/specs/RNMBXRasterLayerNativeComponent.ts +17 -11
- package/src/specs/RNMBXSymbolLayerNativeComponent.ts +17 -11
- package/src/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +17 -0
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -4,23 +4,29 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
4
4
|
|
|
5
5
|
import type { UnsafeMixed } from './codegenUtils';
|
|
6
6
|
|
|
7
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
7
8
|
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
8
9
|
type OptionalProp<T> = UnsafeMixed<T>;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
existing?: OptionalProp<boolean>;
|
|
11
|
+
type CommonProps = {
|
|
12
|
+
sourceID: OptionalProp<string>;
|
|
13
|
+
existing: OptionalProp<boolean>;
|
|
14
14
|
filter: UnsafeMixed<any[]>;
|
|
15
15
|
|
|
16
|
-
aboveLayerID
|
|
17
|
-
belowLayerID
|
|
18
|
-
layerIndex
|
|
19
|
-
|
|
16
|
+
aboveLayerID: OptionalProp<string>;
|
|
17
|
+
belowLayerID: OptionalProp<string>;
|
|
18
|
+
layerIndex: OptionalProp<Int32>;
|
|
19
|
+
|
|
20
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
21
|
+
minZoomLevel: OptionalProp<Double>;
|
|
22
|
+
sourceLayerID: OptionalProp<string>;
|
|
23
|
+
slot: OptionalProp<string>;
|
|
24
|
+
};
|
|
25
|
+
// @{codepart-replace-end}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
28
|
+
id?: OptionalProp<string>;
|
|
29
|
+
reactStyle: UnsafeMixed<any>;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
2
|
+
type OptionalProp<T> = UnsafeMixed<T>;
|
|
3
|
+
|
|
4
|
+
type CommonProps = {
|
|
5
|
+
sourceID: OptionalProp<string>;
|
|
6
|
+
existing: OptionalProp<boolean>;
|
|
7
|
+
filter: UnsafeMixed<any[]>;
|
|
8
|
+
|
|
9
|
+
aboveLayerID: OptionalProp<string>;
|
|
10
|
+
belowLayerID: OptionalProp<string>;
|
|
11
|
+
layerIndex: OptionalProp<Int32>;
|
|
12
|
+
|
|
13
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
14
|
+
minZoomLevel: OptionalProp<Double>;
|
|
15
|
+
sourceLayerID: OptionalProp<string>;
|
|
16
|
+
slot: OptionalProp<string>;
|
|
17
|
+
};
|