@rnmapbox/maps 10.1.0-beta.21 → 10.1.0-beta.23
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/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeMapViewModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXImageModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXMovePointShapeAnimatorModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXPointAnnotationModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXShapeSourceModuleSpec.java +2 -1
- package/android/src/main/old-arch/com/rnmapbox/rnmbx/NativeRNMBXViewportModuleSpec.java +2 -1
- 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/setup-jest.js +3 -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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type FilterExpression, type SymbolLayerStyleProps } from '../utils/MapboxStyles';
|
|
3
3
|
import { type StyleValue } from '../utils/StyleValue';
|
|
4
4
|
import AbstractLayer from './AbstractLayer';
|
|
5
5
|
export declare const NATIVE_MODULE_NAME = "RNMBXSymbolLayer";
|
|
6
|
-
|
|
6
|
+
declare type Slot = 'bottom' | 'middle' | 'top';
|
|
7
|
+
declare type LayerPropsCommon = {
|
|
7
8
|
/**
|
|
8
|
-
* A string that uniquely identifies the
|
|
9
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
9
10
|
*/
|
|
10
11
|
id: string;
|
|
11
12
|
/**
|
|
@@ -37,7 +38,7 @@ export declare type Props = {
|
|
|
37
38
|
/**
|
|
38
39
|
* Filter only the features in the source layer that satisfy a condition that you define
|
|
39
40
|
*/
|
|
40
|
-
filter?:
|
|
41
|
+
filter?: FilterExpression;
|
|
41
42
|
/**
|
|
42
43
|
* The minimum zoom level at which the layer gets parsed and appears.
|
|
43
44
|
*/
|
|
@@ -46,7 +47,18 @@ export declare type Props = {
|
|
|
46
47
|
* The maximum zoom level at which the layer gets parsed and appears.
|
|
47
48
|
*/
|
|
48
49
|
maxZoomLevel?: number;
|
|
49
|
-
|
|
50
|
+
/**
|
|
51
|
+
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
|
|
52
|
+
*
|
|
53
|
+
* v11 only
|
|
54
|
+
*/
|
|
55
|
+
slot?: Slot;
|
|
56
|
+
};
|
|
57
|
+
export declare type Props = LayerPropsCommon & {
|
|
58
|
+
/**
|
|
59
|
+
* Customizable style attributes
|
|
60
|
+
*/
|
|
61
|
+
style: SymbolLayerStyleProps;
|
|
50
62
|
/**
|
|
51
63
|
* @deprecated passed children used to create an image with id of symbol in style and also set the iconImageName property accordingly.
|
|
52
64
|
* This is now deprecated, use Image component instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../../src/components/S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OAAO,EAAE,CAAC;CACxC,CAAC;AAEF,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,qBAAa,WAAY,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IACpE,MAAM,CAAC,YAAY;;MAEjB;IACF,iBAAiB,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAuB;IAE/D,eAAe;IAsBf,MAAM;CAcP"}
|
|
@@ -2,18 +2,21 @@ import type { HostComponent, ViewProps } from 'react-native';
|
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
4
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
5
|
-
|
|
6
|
-
id: UnsafeMixed<string>;
|
|
5
|
+
declare type CommonProps = {
|
|
7
6
|
sourceID: OptionalProp<string>;
|
|
8
7
|
existing: OptionalProp<boolean>;
|
|
9
8
|
filter: UnsafeMixed<any[]>;
|
|
10
9
|
aboveLayerID: OptionalProp<string>;
|
|
11
10
|
belowLayerID: OptionalProp<string>;
|
|
12
11
|
layerIndex: OptionalProp<Int32>;
|
|
13
|
-
reactStyle: UnsafeMixed<any>;
|
|
14
12
|
maxZoomLevel: OptionalProp<Double>;
|
|
15
13
|
minZoomLevel: OptionalProp<Double>;
|
|
16
14
|
sourceLayerID: OptionalProp<string>;
|
|
15
|
+
slot: OptionalProp<string>;
|
|
16
|
+
};
|
|
17
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
|
+
id?: OptionalProp<string>;
|
|
19
|
+
reactStyle: UnsafeMixed<any>;
|
|
17
20
|
}
|
|
18
21
|
declare const _default: HostComponent<NativeProps>;
|
|
19
22
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNMBXCircleLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXCircleLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"RNMBXCircleLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXCircleLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtC,aAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAChC,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEhC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,aAAa,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAGF,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,WAAW;IACzD,EAAE,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;CAC9B;;AAED,wBAEgC"}
|
|
@@ -2,18 +2,21 @@ import type { HostComponent, ViewProps } from 'react-native';
|
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
4
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
existing?: OptionalProp<boolean>;
|
|
5
|
+
declare type CommonProps = {
|
|
6
|
+
sourceID: OptionalProp<string>;
|
|
7
|
+
existing: OptionalProp<boolean>;
|
|
9
8
|
filter: UnsafeMixed<any[]>;
|
|
10
|
-
aboveLayerID
|
|
11
|
-
belowLayerID
|
|
12
|
-
layerIndex
|
|
9
|
+
aboveLayerID: OptionalProp<string>;
|
|
10
|
+
belowLayerID: OptionalProp<string>;
|
|
11
|
+
layerIndex: OptionalProp<Int32>;
|
|
12
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
13
|
+
minZoomLevel: OptionalProp<Double>;
|
|
14
|
+
sourceLayerID: OptionalProp<string>;
|
|
15
|
+
slot: OptionalProp<string>;
|
|
16
|
+
};
|
|
17
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
|
+
id?: OptionalProp<string>;
|
|
13
19
|
reactStyle: UnsafeMixed<any>;
|
|
14
|
-
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
-
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
-
sourceLayerID?: OptionalProp<string>;
|
|
17
20
|
}
|
|
18
21
|
declare const _default: HostComponent<NativeProps>;
|
|
19
22
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNMBXFillLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXFillLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"RNMBXFillLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXFillLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtC,aAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAChC,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEhC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,aAAa,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAGF,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,WAAW;IACzD,EAAE,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;CAC9B;;AAED,wBAEgC"}
|
|
@@ -2,18 +2,21 @@ import type { HostComponent, ViewProps } from 'react-native';
|
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
4
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
existing?: OptionalProp<boolean>;
|
|
5
|
+
declare type CommonProps = {
|
|
6
|
+
sourceID: OptionalProp<string>;
|
|
7
|
+
existing: OptionalProp<boolean>;
|
|
9
8
|
filter: UnsafeMixed<any[]>;
|
|
10
|
-
aboveLayerID
|
|
11
|
-
belowLayerID
|
|
12
|
-
layerIndex
|
|
9
|
+
aboveLayerID: OptionalProp<string>;
|
|
10
|
+
belowLayerID: OptionalProp<string>;
|
|
11
|
+
layerIndex: OptionalProp<Int32>;
|
|
12
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
13
|
+
minZoomLevel: OptionalProp<Double>;
|
|
14
|
+
sourceLayerID: OptionalProp<string>;
|
|
15
|
+
slot: OptionalProp<string>;
|
|
16
|
+
};
|
|
17
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
|
+
id?: OptionalProp<string>;
|
|
13
19
|
reactStyle: UnsafeMixed<any>;
|
|
14
|
-
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
-
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
-
sourceLayerID?: OptionalProp<string>;
|
|
17
20
|
}
|
|
18
21
|
declare const _default: HostComponent<NativeProps>;
|
|
19
22
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNMBXHeatmapLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXHeatmapLayerNativeComponent.ts"],"names":[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AW,CAAC,GAAG,CAAC,CAAC;CAC9B;;AAED,wBAEgC"}
|
|
@@ -2,18 +2,21 @@ import type { HostComponent, ViewProps } from 'react-native';
|
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
4
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
existing?: OptionalProp<boolean>;
|
|
5
|
+
declare type CommonProps = {
|
|
6
|
+
sourceID: OptionalProp<string>;
|
|
7
|
+
existing: OptionalProp<boolean>;
|
|
9
8
|
filter: UnsafeMixed<any[]>;
|
|
10
|
-
aboveLayerID
|
|
11
|
-
belowLayerID
|
|
12
|
-
layerIndex
|
|
9
|
+
aboveLayerID: OptionalProp<string>;
|
|
10
|
+
belowLayerID: OptionalProp<string>;
|
|
11
|
+
layerIndex: OptionalProp<Int32>;
|
|
12
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
13
|
+
minZoomLevel: OptionalProp<Double>;
|
|
14
|
+
sourceLayerID: OptionalProp<string>;
|
|
15
|
+
slot: OptionalProp<string>;
|
|
16
|
+
};
|
|
17
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
|
+
id?: OptionalProp<string>;
|
|
13
19
|
reactStyle: UnsafeMixed<any>;
|
|
14
|
-
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
-
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
-
sourceLayerID?: OptionalProp<string>;
|
|
17
20
|
}
|
|
18
21
|
declare const _default: HostComponent<NativeProps>;
|
|
19
22
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNMBXLineLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXLineLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CA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{ HostComponent, ViewProps } from 'react-native';
|
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
4
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
existing?: OptionalProp<boolean>;
|
|
5
|
+
declare type CommonProps = {
|
|
6
|
+
sourceID: OptionalProp<string>;
|
|
7
|
+
existing: OptionalProp<boolean>;
|
|
9
8
|
filter: UnsafeMixed<any[]>;
|
|
10
|
-
aboveLayerID
|
|
11
|
-
belowLayerID
|
|
12
|
-
layerIndex
|
|
9
|
+
aboveLayerID: OptionalProp<string>;
|
|
10
|
+
belowLayerID: OptionalProp<string>;
|
|
11
|
+
layerIndex: OptionalProp<Int32>;
|
|
12
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
13
|
+
minZoomLevel: OptionalProp<Double>;
|
|
14
|
+
sourceLayerID: OptionalProp<string>;
|
|
15
|
+
slot: OptionalProp<string>;
|
|
16
|
+
};
|
|
17
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
|
+
id?: OptionalProp<string>;
|
|
13
19
|
reactStyle: UnsafeMixed<any>;
|
|
14
|
-
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
-
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
-
sourceLayerID?: OptionalProp<string>;
|
|
17
20
|
}
|
|
18
21
|
declare const _default: HostComponent<NativeProps>;
|
|
19
22
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNMBXRasterLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXRasterLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"RNMBXRasterLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXRasterLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtC,aAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAChC,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEhC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,aAAa,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAGF,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,WAAW;IACzD,EAAE,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;CAC9B;;AAED,wBAEgC"}
|
|
@@ -2,18 +2,21 @@ import type { HostComponent, ViewProps } from 'react-native';
|
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
4
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
existing?: OptionalProp<boolean>;
|
|
5
|
+
declare type CommonProps = {
|
|
6
|
+
sourceID: OptionalProp<string>;
|
|
7
|
+
existing: OptionalProp<boolean>;
|
|
9
8
|
filter: UnsafeMixed<any[]>;
|
|
10
|
-
aboveLayerID
|
|
11
|
-
belowLayerID
|
|
12
|
-
layerIndex
|
|
9
|
+
aboveLayerID: OptionalProp<string>;
|
|
10
|
+
belowLayerID: OptionalProp<string>;
|
|
11
|
+
layerIndex: OptionalProp<Int32>;
|
|
12
|
+
maxZoomLevel: OptionalProp<Double>;
|
|
13
|
+
minZoomLevel: OptionalProp<Double>;
|
|
14
|
+
sourceLayerID: OptionalProp<string>;
|
|
15
|
+
slot: OptionalProp<string>;
|
|
16
|
+
};
|
|
17
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
|
+
id?: OptionalProp<string>;
|
|
13
19
|
reactStyle: UnsafeMixed<any>;
|
|
14
|
-
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
-
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
-
sourceLayerID?: OptionalProp<string>;
|
|
17
20
|
}
|
|
18
21
|
declare const _default: HostComponent<NativeProps>;
|
|
19
22
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNMBXSymbolLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXSymbolLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"RNMBXSymbolLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXSymbolLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtC,aAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAChC,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEhC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,aAAa,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAGF,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,WAAW;IACzD,EAAE,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;CAC9B;;AAED,wBAEgC"}
|
package/package.json
CHANGED
package/setup-jest.js
CHANGED
|
@@ -174,7 +174,9 @@ NativeModules.RNMBXMovePointShapeAnimatorModule = {
|
|
|
174
174
|
start: jest.fn(),
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
NativeModules.RNMBXLogging = nativeModule({
|
|
177
|
+
NativeModules.RNMBXLogging = nativeModule({
|
|
178
|
+
setLogLevel: jest.fn(),
|
|
179
|
+
});
|
|
178
180
|
|
|
179
181
|
// Mock for global AbortController
|
|
180
182
|
global.AbortController = class {
|
|
@@ -7,9 +7,12 @@ import RNMBXCircleLayerNativeComponent from '../specs/RNMBXCircleLayerNativeComp
|
|
|
7
7
|
|
|
8
8
|
import AbstractLayer from './AbstractLayer';
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// @{codepart-replace-start(LayerPropsCommon.codepart-tsx)}
|
|
13
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
14
|
+
|
|
15
|
+
type LayerPropsCommon = {
|
|
13
16
|
/**
|
|
14
17
|
* A string that uniquely identifies the source in the style to which it is added.
|
|
15
18
|
*/
|
|
@@ -28,8 +31,7 @@ export type Props = {
|
|
|
28
31
|
sourceID?: string;
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
|
-
* Identifier of the layer within the source identified by the sourceID property
|
|
32
|
-
* from which the receiver obtains the data to style.
|
|
34
|
+
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
33
35
|
*/
|
|
34
36
|
sourceLayerID?: string;
|
|
35
37
|
|
|
@@ -63,6 +65,16 @@ export type Props = {
|
|
|
63
65
|
*/
|
|
64
66
|
maxZoomLevel?: number;
|
|
65
67
|
|
|
68
|
+
/**
|
|
69
|
+
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
|
|
70
|
+
*
|
|
71
|
+
* v11 only
|
|
72
|
+
*/
|
|
73
|
+
slot?: Slot;
|
|
74
|
+
};
|
|
75
|
+
// @{codepart-replace-end}
|
|
76
|
+
|
|
77
|
+
export type Props = LayerPropsCommon & {
|
|
66
78
|
/**
|
|
67
79
|
* Customizable style attributes
|
|
68
80
|
*/
|
|
@@ -78,7 +90,7 @@ type NativeTypeProps = Omit<Props, 'style'> & {
|
|
|
78
90
|
*/
|
|
79
91
|
class CircleLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
80
92
|
static defaultProps = {
|
|
81
|
-
sourceID:
|
|
93
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
82
94
|
};
|
|
83
95
|
|
|
84
96
|
render() {
|
|
@@ -7,9 +7,12 @@ import RNMBXFillLayerNativeComponent from '../specs/RNMBXFillLayerNativeComponen
|
|
|
7
7
|
|
|
8
8
|
import AbstractLayer from './AbstractLayer';
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// @{codepart-replace-start(LayerPropsCommon.codepart-tsx)}
|
|
13
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
14
|
+
|
|
15
|
+
type LayerPropsCommon = {
|
|
13
16
|
/**
|
|
14
17
|
* A string that uniquely identifies the source in the style to which it is added.
|
|
15
18
|
*/
|
|
@@ -62,6 +65,16 @@ export type Props = {
|
|
|
62
65
|
*/
|
|
63
66
|
maxZoomLevel?: number;
|
|
64
67
|
|
|
68
|
+
/**
|
|
69
|
+
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
|
|
70
|
+
*
|
|
71
|
+
* v11 only
|
|
72
|
+
*/
|
|
73
|
+
slot?: Slot;
|
|
74
|
+
};
|
|
75
|
+
// @{codepart-replace-end}
|
|
76
|
+
|
|
77
|
+
export type Props = LayerPropsCommon & {
|
|
65
78
|
/**
|
|
66
79
|
* Customizable style attributes
|
|
67
80
|
*/
|
|
@@ -77,7 +90,7 @@ type NativeTypeProps = Omit<Props, 'style'> & {
|
|
|
77
90
|
*/
|
|
78
91
|
class FillLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
79
92
|
static defaultProps = {
|
|
80
|
-
sourceID:
|
|
93
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
81
94
|
};
|
|
82
95
|
|
|
83
96
|
render() {
|
|
@@ -10,11 +10,14 @@ import RNMBXHeatmapLayerNativeComponent from '../specs/RNMBXHeatmapLayerNativeCo
|
|
|
10
10
|
|
|
11
11
|
import AbstractLayer from './AbstractLayer';
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// @{codepart-replace-start(LayerPropsCommon.codepart-tsx)}
|
|
16
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
17
|
+
|
|
18
|
+
type LayerPropsCommon = {
|
|
16
19
|
/**
|
|
17
|
-
* A string that uniquely identifies the
|
|
20
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
18
21
|
*/
|
|
19
22
|
id: string;
|
|
20
23
|
|
|
@@ -31,8 +34,7 @@ export type Props = {
|
|
|
31
34
|
sourceID?: string;
|
|
32
35
|
|
|
33
36
|
/**
|
|
34
|
-
* Identifier of the layer within the source identified by the sourceID property
|
|
35
|
-
* from which the receiver obtains the data to style.
|
|
37
|
+
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
36
38
|
*/
|
|
37
39
|
sourceLayerID?: string;
|
|
38
40
|
|
|
@@ -66,6 +68,16 @@ export type Props = {
|
|
|
66
68
|
*/
|
|
67
69
|
maxZoomLevel?: number;
|
|
68
70
|
|
|
71
|
+
/**
|
|
72
|
+
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
|
|
73
|
+
*
|
|
74
|
+
* v11 only
|
|
75
|
+
*/
|
|
76
|
+
slot?: Slot;
|
|
77
|
+
};
|
|
78
|
+
// @{codepart-replace-end}
|
|
79
|
+
|
|
80
|
+
export type Props = LayerPropsCommon & {
|
|
69
81
|
/**
|
|
70
82
|
* Customizable style attributes
|
|
71
83
|
*/
|
|
@@ -81,7 +93,7 @@ type NativeTypeProps = Omit<Props, 'style'> & {
|
|
|
81
93
|
*/
|
|
82
94
|
class HeatmapLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
83
95
|
static defaultProps = {
|
|
84
|
-
sourceID:
|
|
96
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
85
97
|
};
|
|
86
98
|
|
|
87
99
|
render() {
|
|
@@ -7,9 +7,12 @@ import RNMBXLineLayerNativeComponent from '../specs/RNMBXLineLayerNativeComponen
|
|
|
7
7
|
|
|
8
8
|
import AbstractLayer from './AbstractLayer';
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// @{codepart-replace-start(LayerPropsCommon.codepart-tsx)}
|
|
13
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
14
|
+
|
|
15
|
+
type LayerPropsCommon = {
|
|
13
16
|
/**
|
|
14
17
|
* A string that uniquely identifies the source in the style to which it is added.
|
|
15
18
|
*/
|
|
@@ -62,6 +65,16 @@ export type Props = {
|
|
|
62
65
|
*/
|
|
63
66
|
maxZoomLevel?: number;
|
|
64
67
|
|
|
68
|
+
/**
|
|
69
|
+
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
|
|
70
|
+
*
|
|
71
|
+
* v11 only
|
|
72
|
+
*/
|
|
73
|
+
slot?: Slot;
|
|
74
|
+
};
|
|
75
|
+
// @{codepart-replace-end}
|
|
76
|
+
|
|
77
|
+
export type Props = LayerPropsCommon & {
|
|
65
78
|
/**
|
|
66
79
|
* Customizable style attributes
|
|
67
80
|
*/
|
|
@@ -77,7 +90,7 @@ type NativeTypeProps = Omit<Props, 'style'> & {
|
|
|
77
90
|
*/
|
|
78
91
|
class LineLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
79
92
|
static defaultProps = {
|
|
80
|
-
sourceID:
|
|
93
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
81
94
|
};
|
|
82
95
|
|
|
83
96
|
render() {
|
|
@@ -7,11 +7,14 @@ import RNMBXRasterLayerNativeComponent from '../specs/RNMBXRasterLayerNativeComp
|
|
|
7
7
|
|
|
8
8
|
import AbstractLayer from './AbstractLayer';
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// @{codepart-replace-start(LayerPropsCommon.codepart-tsx)}
|
|
13
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
14
|
+
|
|
15
|
+
type LayerPropsCommon = {
|
|
13
16
|
/**
|
|
14
|
-
* A string that uniquely identifies the
|
|
17
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
15
18
|
*/
|
|
16
19
|
id: string;
|
|
17
20
|
|
|
@@ -62,6 +65,16 @@ export type Props = {
|
|
|
62
65
|
*/
|
|
63
66
|
maxZoomLevel?: number;
|
|
64
67
|
|
|
68
|
+
/**
|
|
69
|
+
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
|
|
70
|
+
*
|
|
71
|
+
* v11 only
|
|
72
|
+
*/
|
|
73
|
+
slot?: Slot;
|
|
74
|
+
};
|
|
75
|
+
// @{codepart-replace-end}
|
|
76
|
+
|
|
77
|
+
export type Props = LayerPropsCommon & {
|
|
65
78
|
/**
|
|
66
79
|
* Customizable style attributes
|
|
67
80
|
*/
|
|
@@ -74,7 +87,7 @@ type NativeTypeProps = Omit<Props, 'style'> & {
|
|
|
74
87
|
|
|
75
88
|
class RasterLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
76
89
|
static defaultProps = {
|
|
77
|
-
sourceID:
|
|
90
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
78
91
|
};
|
|
79
92
|
|
|
80
93
|
render() {
|
|
@@ -7,7 +7,7 @@ import RNMBXSkyLayerNativeComponent from '../specs/RNMBXSkyLayerNativeComponent'
|
|
|
7
7
|
|
|
8
8
|
import AbstractLayer from './AbstractLayer';
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
11
11
|
|
|
12
12
|
export type Props = {
|
|
13
13
|
/**
|
|
@@ -60,7 +60,7 @@ type NativeTypeProps = Omit<Props, 'style'> & {
|
|
|
60
60
|
*/
|
|
61
61
|
class SkyLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
62
62
|
static defaultProps = {
|
|
63
|
-
sourceID:
|
|
63
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
render() {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, NativeModules } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
type FilterExpression,
|
|
6
|
+
type SymbolLayerStyleProps,
|
|
7
|
+
} from '../utils/MapboxStyles';
|
|
5
8
|
import { type StyleValue } from '../utils/StyleValue';
|
|
6
9
|
import RNMBXSymbolLayerNativeComponent from '../specs/RNMBXSymbolLayerNativeComponent';
|
|
7
10
|
|
|
@@ -9,11 +12,14 @@ import AbstractLayer from './AbstractLayer';
|
|
|
9
12
|
|
|
10
13
|
export const NATIVE_MODULE_NAME = 'RNMBXSymbolLayer';
|
|
11
14
|
|
|
12
|
-
const
|
|
15
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
13
16
|
|
|
14
|
-
|
|
17
|
+
// @{codepart-replace-start(LayerPropsCommon.codepart-tsx)}
|
|
18
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
19
|
+
|
|
20
|
+
type LayerPropsCommon = {
|
|
15
21
|
/**
|
|
16
|
-
* A string that uniquely identifies the
|
|
22
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
17
23
|
*/
|
|
18
24
|
id: string;
|
|
19
25
|
|
|
@@ -52,7 +58,7 @@ export type Props = {
|
|
|
52
58
|
/**
|
|
53
59
|
* Filter only the features in the source layer that satisfy a condition that you define
|
|
54
60
|
*/
|
|
55
|
-
filter?:
|
|
61
|
+
filter?: FilterExpression;
|
|
56
62
|
|
|
57
63
|
/**
|
|
58
64
|
* The minimum zoom level at which the layer gets parsed and appears.
|
|
@@ -64,7 +70,20 @@ export type Props = {
|
|
|
64
70
|
*/
|
|
65
71
|
maxZoomLevel?: number;
|
|
66
72
|
|
|
67
|
-
|
|
73
|
+
/**
|
|
74
|
+
* The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
|
|
75
|
+
*
|
|
76
|
+
* v11 only
|
|
77
|
+
*/
|
|
78
|
+
slot?: Slot;
|
|
79
|
+
};
|
|
80
|
+
// @{codepart-replace-end}
|
|
81
|
+
|
|
82
|
+
export type Props = LayerPropsCommon & {
|
|
83
|
+
/**
|
|
84
|
+
* Customizable style attributes
|
|
85
|
+
*/
|
|
86
|
+
style: SymbolLayerStyleProps;
|
|
68
87
|
|
|
69
88
|
/**
|
|
70
89
|
* @deprecated passed children used to create an image with id of symbol in style and also set the iconImageName property accordingly.
|
|
@@ -83,7 +102,7 @@ type NativeTypeProps = Omit<Props, 'style'> & {
|
|
|
83
102
|
*/
|
|
84
103
|
export class SymbolLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
85
104
|
static defaultProps = {
|
|
86
|
-
sourceID:
|
|
105
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
87
106
|
};
|
|
88
107
|
deprecationLogged: { snapshot: boolean } = { snapshot: false };
|
|
89
108
|
|