@rnmapbox/maps 10.2.6 → 10.2.8
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/build.gradle +9 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/RNMBXPackage.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapView.kt +7 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +180 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleValue.kt +4 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/modules/CustomHttpHeaders.kt +31 -9
- package/android/src/main/java/com/rnmapbox/rnmbx/modules/RNMBXModule.kt +15 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/modules/RNMBXOfflineModuleLegacy.kt +10 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/maps/extension/style/layers/generated/RasterParticleLayer.kt +58 -0
- package/android/src/main/mapbox-v11-compat/v10/com/mapbox/maps/extension/style/sources/generated/RasterArraySource.kt +20 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterParticleLayer.kt +22 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterParticleLayerManager.kt +59 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterArraySource.kt +16 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterArraySourceManager.kt +59 -0
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +45 -0
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterParticleLayer.kt +38 -0
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterParticleLayerManager.kt +85 -0
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterArraySource.kt +41 -0
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterArraySourceManager.kt +76 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterArraySourceManagerDelegate.java +54 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterArraySourceManagerInterface.java +23 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterParticleLayerManagerDelegate.java +66 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXRasterParticleLayerManagerInterface.java +27 -0
- package/ios/RNMBX/CustomHttpHeaders.swift +36 -7
- package/ios/RNMBX/Offline/RNMBXOfflineModuleLegacy.m +2 -0
- package/ios/RNMBX/Offline/RNMBXOfflineModuleLegacy.swift +5 -0
- package/ios/RNMBX/RNMBXCamera.swift +88 -17
- package/ios/RNMBX/RNMBXCameraModule.h +3 -2
- package/ios/RNMBX/RNMBXCameraModule.mm +8 -16
- package/ios/RNMBX/RNMBXCustomLocationProvider.swift +18 -24
- package/ios/RNMBX/RNMBXImageModule.h +3 -2
- package/ios/RNMBX/RNMBXImageModule.mm +8 -16
- package/ios/RNMBX/RNMBXImages.swift +1 -4
- package/ios/RNMBX/RNMBXInteractiveElement.swift +22 -15
- package/ios/RNMBX/RNMBXMapView.swift +68 -6
- package/ios/RNMBX/RNMBXModule.m +1 -0
- package/ios/RNMBX/RNMBXModule.swift +16 -2
- package/ios/RNMBX/RNMBXNativeUserLocation.swift +6 -6
- package/ios/RNMBX/RNMBXPointAnnotation.swift +6 -8
- package/ios/RNMBX/RNMBXPointAnnotationModule.h +3 -2
- package/ios/RNMBX/RNMBXPointAnnotationModule.mm +8 -16
- package/ios/RNMBX/RNMBXRasterArraySource.swift +47 -0
- package/ios/RNMBX/RNMBXRasterArraySourceComponentView.h +15 -0
- package/ios/RNMBX/RNMBXRasterArraySourceComponentView.mm +168 -0
- package/ios/RNMBX/RNMBXRasterArraySourceViewManager.swift +16 -0
- package/ios/RNMBX/RNMBXRasterParticleLayer.swift +100 -0
- package/ios/RNMBX/RNMBXRasterParticleLayerComponentView.h +15 -0
- package/ios/RNMBX/RNMBXRasterParticleLayerComponentView.mm +121 -0
- package/ios/RNMBX/RNMBXRasterParticleLayerViewManager.swift +17 -0
- package/ios/RNMBX/RNMBXShapeSource.swift +5 -4
- package/ios/RNMBX/RNMBXShapeSourceModule.h +3 -2
- package/ios/RNMBX/RNMBXShapeSourceModule.mm +8 -16
- package/ios/RNMBX/RNMBXSource.swift +51 -21
- package/ios/RNMBX/RNMBXStyle.swift +152 -27
- package/ios/RNMBX/RNMBXStyleValue.swift +27 -0
- package/ios/RNMBX/RNMBXViewport.swift +13 -13
- package/ios/RNMBX/RNMBXViewportModule.h +3 -2
- package/ios/RNMBX/RNMBXViewportModule.mm +8 -16
- package/ios/RNMBX/Utils/RNMBXViewResolver.mm +15 -2
- package/lib/commonjs/plugin/build/withMapbox.js +8 -8
- package/lib/commonjs/plugin/src/withMapbox.ts +18 -8
- package/lib/module/Mapbox.native.js +2 -0
- package/lib/module/Mapbox.native.js.map +1 -1
- package/lib/module/RNMBXModule.js +15 -1
- package/lib/module/RNMBXModule.js.map +1 -1
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterArraySource.js +67 -0
- package/lib/module/components/RasterArraySource.js.map +1 -0
- package/lib/module/components/RasterParticleLayer.js +40 -0
- package/lib/module/components/RasterParticleLayer.js.map +1 -0
- package/lib/module/modules/offline/offlineManagerLegacy.js +14 -0
- package/lib/module/modules/offline/offlineManagerLegacy.js.map +1 -1
- package/lib/module/specs/RNMBXRasterArraySourceNativeComponent.ts +22 -0
- package/lib/module/specs/RNMBXRasterParticleLayerNativeComponent.ts +39 -0
- package/lib/module/utils/MapboxStyles.js.map +1 -1
- package/lib/module/utils/styleMap.js +9 -0
- package/lib/module/utils/styleMap.js.map +1 -1
- package/lib/typescript/plugin/build/withMapbox.d.ts +1 -6
- package/lib/typescript/plugin/build/withMapbox.d.ts.map +1 -1
- package/lib/typescript/plugin/src/withMapbox.d.ts.map +1 -1
- package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts.map +1 -1
- package/lib/typescript/scripts/autogenHelpers/globals.d.mts +1 -1
- package/lib/typescript/scripts/autogenHelpers/globals.d.mts.map +1 -1
- package/lib/typescript/src/Mapbox.native.d.ts +3 -1
- package/lib/typescript/src/Mapbox.native.d.ts.map +1 -1
- package/lib/typescript/src/RNMBXModule.d.ts +11 -1
- package/lib/typescript/src/RNMBXModule.d.ts.map +1 -1
- package/lib/typescript/src/components/PointAnnotation.d.ts +1 -1
- package/lib/typescript/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/src/components/RasterArraySource.d.ts +72 -0
- package/lib/typescript/src/components/RasterArraySource.d.ts.map +1 -0
- package/lib/typescript/src/components/RasterParticleLayer.d.ts +80 -0
- package/lib/typescript/src/components/RasterParticleLayer.d.ts.map +1 -0
- package/lib/typescript/src/modules/offline/offlineManagerLegacy.d.ts +11 -0
- package/lib/typescript/src/modules/offline/offlineManagerLegacy.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterArraySourceNativeComponent.d.ts +16 -0
- package/lib/typescript/src/specs/RNMBXRasterArraySourceNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXRasterParticleLayerNativeComponent.d.ts +25 -0
- package/lib/typescript/src/specs/RNMBXRasterParticleLayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/utils/MapboxStyles.d.ts +44 -2
- package/lib/typescript/src/utils/MapboxStyles.d.ts.map +1 -1
- package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
- package/package.json +13 -1
- package/plugin/build/withMapbox.js +8 -8
- package/plugin/src/withMapbox.ts +18 -8
- package/rnmapbox-maps.podspec +1 -1
- package/src/Mapbox.native.ts +3 -0
- package/src/RNMBXModule.ts +25 -2
- package/src/components/PointAnnotation.tsx +2 -2
- package/src/components/RasterArraySource.tsx +134 -0
- package/src/components/RasterParticleLayer.tsx +117 -0
- package/src/modules/offline/offlineManagerLegacy.ts +14 -0
- package/src/specs/RNMBXRasterArraySourceNativeComponent.ts +22 -0
- package/src/specs/RNMBXRasterParticleLayerNativeComponent.ts +39 -0
- package/src/utils/MapboxStyles.ts +47 -1
- package/src/utils/styleMap.ts +10 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import type {
|
|
5
|
+
FilterExpression,
|
|
6
|
+
RasterParticleLayerStyleProps,
|
|
7
|
+
} from '../utils/MapboxStyles';
|
|
8
|
+
import { StyleValue } from '../utils/StyleValue';
|
|
9
|
+
import RNMBXRasterParticleLayerNativeComponent from '../specs/RNMBXRasterParticleLayerNativeComponent';
|
|
10
|
+
|
|
11
|
+
import AbstractLayer from './AbstractLayer';
|
|
12
|
+
|
|
13
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
14
|
+
|
|
15
|
+
// @{codepart-replace-start(LayerPropsCommon.codepart-tsx)}
|
|
16
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
17
|
+
|
|
18
|
+
type LayerPropsCommon = {
|
|
19
|
+
/**
|
|
20
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The id refers to an existing layer in the style. Does not create a new layer.
|
|
26
|
+
*/
|
|
27
|
+
existing?: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The source from which to obtain the data to style.
|
|
31
|
+
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
32
|
+
* Inferred from parent source only if the layer is a direct child to it.
|
|
33
|
+
*/
|
|
34
|
+
sourceID?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
38
|
+
*/
|
|
39
|
+
sourceLayerID?: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Inserts a layer above aboveLayerID.
|
|
43
|
+
*/
|
|
44
|
+
aboveLayerID?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Inserts a layer below belowLayerID
|
|
48
|
+
*/
|
|
49
|
+
belowLayerID?: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Inserts a layer at a specified index
|
|
53
|
+
*/
|
|
54
|
+
layerIndex?: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Filter only the features in the source layer that satisfy a condition that you define
|
|
58
|
+
*/
|
|
59
|
+
filter?: FilterExpression;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The minimum zoom level at which the layer gets parsed and appears.
|
|
63
|
+
*/
|
|
64
|
+
minZoomLevel?: number;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The maximum zoom level at which the layer gets parsed and appears.
|
|
68
|
+
*/
|
|
69
|
+
maxZoomLevel?: number;
|
|
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 & {
|
|
81
|
+
/**
|
|
82
|
+
* Customizable style attributes
|
|
83
|
+
*/
|
|
84
|
+
style: RasterParticleLayerStyleProps;
|
|
85
|
+
} & React.ComponentProps<typeof AbstractLayer>;
|
|
86
|
+
|
|
87
|
+
type NativeTypeProps = Omit<Props, 'style'> & {
|
|
88
|
+
reactStyle?: { [key: string]: StyleValue };
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* RasterParticleLayer renders a particle animation driven by velocity data from a raster array source.
|
|
93
|
+
* This is typically used to visualize wind patterns, ocean currents, or other directional flow data.
|
|
94
|
+
*
|
|
95
|
+
* @experimental This component requires Mapbox Maps SDK v11.4.0 or later
|
|
96
|
+
*/
|
|
97
|
+
class RasterParticleLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
98
|
+
static defaultProps = {
|
|
99
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
render() {
|
|
103
|
+
const props = {
|
|
104
|
+
...this.baseProps,
|
|
105
|
+
sourceLayerID: this.props.sourceLayerID,
|
|
106
|
+
};
|
|
107
|
+
return (
|
|
108
|
+
// @ts-expect-error just codegen stuff
|
|
109
|
+
<RNMBXRasterParticleLayerNativeComponent
|
|
110
|
+
ref={this.setNativeLayer}
|
|
111
|
+
{...props}
|
|
112
|
+
/>
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export default RasterParticleLayer;
|
|
@@ -159,6 +159,20 @@ class OfflineManagerLegacy {
|
|
|
159
159
|
return this._offlinePacks[name];
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Sets the maximum number of Mapbox-hosted tiles that may be downloaded and stored on the current device.
|
|
164
|
+
* The Mapbox Terms of Service prohibit changing or bypassing this limit without permission from Mapbox.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* Mapbox.offlineManagerLegacy.setTileCountLimit(1000);
|
|
168
|
+
*
|
|
169
|
+
* @param {Number} limit Map tile limit count.
|
|
170
|
+
* @return {void}
|
|
171
|
+
*/
|
|
172
|
+
setTileCountLimit(limit: number): void {
|
|
173
|
+
MapboxOfflineManager.setTileCountLimit(limit);
|
|
174
|
+
}
|
|
175
|
+
|
|
162
176
|
async _initialize(forceInit?: boolean): Promise<boolean> {
|
|
163
177
|
if (this._hasInitialized && !forceInit) {
|
|
164
178
|
return true;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
// @ts-ignore - CI environment type resolution issue for CodegenTypes
|
|
4
|
+
import { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
|
+
|
|
6
|
+
import { UnsafeMixed } from './codegenUtils';
|
|
7
|
+
|
|
8
|
+
export interface NativeProps extends ViewProps {
|
|
9
|
+
id: UnsafeMixed<string>;
|
|
10
|
+
existing: UnsafeMixed<boolean>;
|
|
11
|
+
url: UnsafeMixed<string>;
|
|
12
|
+
tileUrlTemplates: UnsafeMixed<Array<string>>;
|
|
13
|
+
minZoomLevel: UnsafeMixed<Double>;
|
|
14
|
+
maxZoomLevel: UnsafeMixed<Double>;
|
|
15
|
+
tileSize: UnsafeMixed<Double>;
|
|
16
|
+
sourceBounds: UnsafeMixed<Array<number>>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// @ts-ignore-error - Codegen requires single cast but TypeScript prefers double cast
|
|
20
|
+
export default codegenNativeComponent<NativeProps>(
|
|
21
|
+
'RNMBXRasterArraySource',
|
|
22
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
// @ts-ignore - CI environment type resolution issue for CodegenTypes
|
|
4
|
+
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
|
+
|
|
6
|
+
import type { FilterExpression } from '../utils/MapboxStyles';
|
|
7
|
+
|
|
8
|
+
import type { UnsafeMixed } from './codegenUtils';
|
|
9
|
+
|
|
10
|
+
// @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
|
|
11
|
+
// see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
|
|
12
|
+
type OptionalProp<T> = UnsafeMixed<T>;
|
|
13
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
14
|
+
|
|
15
|
+
type CommonProps = {
|
|
16
|
+
sourceID?: OptionalProp<string>;
|
|
17
|
+
existing?: OptionalProp<boolean>;
|
|
18
|
+
filter?: UnsafeMixed<FilterExpression>;
|
|
19
|
+
|
|
20
|
+
aboveLayerID?: OptionalProp<string>;
|
|
21
|
+
belowLayerID?: OptionalProp<string>;
|
|
22
|
+
layerIndex?: OptionalProp<Int32>;
|
|
23
|
+
|
|
24
|
+
maxZoomLevel?: OptionalProp<Double>;
|
|
25
|
+
minZoomLevel?: OptionalProp<Double>;
|
|
26
|
+
sourceLayerID?: OptionalProp<string>;
|
|
27
|
+
slot?: OptionalProp<Slot>;
|
|
28
|
+
};
|
|
29
|
+
// @{codepart-replace-end}
|
|
30
|
+
|
|
31
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
32
|
+
id?: OptionalProp<string>;
|
|
33
|
+
reactStyle: UnsafeMixed<any>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// @ts-ignore-error - Codegen requires single cast but TypeScript prefers double cast
|
|
37
|
+
export default codegenNativeComponent<NativeProps>(
|
|
38
|
+
'RNMBXRasterParticleLayer',
|
|
39
|
+
) as HostComponent<NativeProps>;
|
|
@@ -125,7 +125,8 @@ type ExpressionParameters =
|
|
|
125
125
|
| 'line-progress'
|
|
126
126
|
| 'heatmap-density'
|
|
127
127
|
| 'measure-light'
|
|
128
|
-
| 'raster-value'
|
|
128
|
+
| 'raster-value'
|
|
129
|
+
| 'raster-particle-speed';
|
|
129
130
|
|
|
130
131
|
type ResolvedImageType = ImageSourcePropType | string;
|
|
131
132
|
|
|
@@ -1913,6 +1914,50 @@ export interface RasterLayerStyleProps {
|
|
|
1913
1914
|
*/
|
|
1914
1915
|
rasterElevationTransition?: Transition;
|
|
1915
1916
|
}
|
|
1917
|
+
export interface RasterParticleLayerStyleProps {
|
|
1918
|
+
/**
|
|
1919
|
+
* Whether this layer is displayed.
|
|
1920
|
+
*/
|
|
1921
|
+
visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
|
|
1922
|
+
/**
|
|
1923
|
+
* Displayed band of raster array source layer
|
|
1924
|
+
*/
|
|
1925
|
+
rasterParticleArrayBand?: string;
|
|
1926
|
+
/**
|
|
1927
|
+
* Defines the amount of particles per tile.
|
|
1928
|
+
*/
|
|
1929
|
+
rasterParticleCount?: number;
|
|
1930
|
+
/**
|
|
1931
|
+
* Defines a color map by which to colorize a raster particle layer, parameterized by the `["rasterParticleSpeed"]` expression and evaluated at 256 uniformly spaced steps over the range specified by `rasterParticleMaxSpeed`.
|
|
1932
|
+
*/
|
|
1933
|
+
rasterParticleColor?: Value<string, ['raster-particle-speed']>;
|
|
1934
|
+
/**
|
|
1935
|
+
* Defines the maximum speed for particles. Velocities with magnitudes equal to or exceeding this value are clamped to the max value.
|
|
1936
|
+
*/
|
|
1937
|
+
rasterParticleMaxSpeed?: number;
|
|
1938
|
+
/**
|
|
1939
|
+
* Defines a coefficient for the speed of particles’ motion.
|
|
1940
|
+
*/
|
|
1941
|
+
rasterParticleSpeedFactor?: Value<number, ['zoom']>;
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* The transition affecting any changes to this layer’s rasterParticleSpeedFactor property.
|
|
1945
|
+
*/
|
|
1946
|
+
rasterParticleSpeedFactorTransition?: Transition;
|
|
1947
|
+
/**
|
|
1948
|
+
* Defines defines the opacity coefficient applied to the faded particles in each frame. In practice, this property controls the length of the particle tail.
|
|
1949
|
+
*/
|
|
1950
|
+
rasterParticleFadeOpacityFactor?: Value<number, ['zoom']>;
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* The transition affecting any changes to this layer’s rasterParticleFadeOpacityFactor property.
|
|
1954
|
+
*/
|
|
1955
|
+
rasterParticleFadeOpacityFactorTransition?: Transition;
|
|
1956
|
+
/**
|
|
1957
|
+
* Defines a coefficient for a time period at which particles will restart at a random position, to avoid degeneration (empty areas without particles).
|
|
1958
|
+
*/
|
|
1959
|
+
rasterParticleResetRateFactor?: number;
|
|
1960
|
+
}
|
|
1916
1961
|
export interface HillshadeLayerStyleProps {
|
|
1917
1962
|
/**
|
|
1918
1963
|
* Whether this layer is displayed.
|
|
@@ -2307,6 +2352,7 @@ export type AllLayerStyleProps =
|
|
|
2307
2352
|
| HeatmapLayerStyleProps
|
|
2308
2353
|
| FillExtrusionLayerStyleProps
|
|
2309
2354
|
| RasterLayerStyleProps
|
|
2355
|
+
| RasterParticleLayerStyleProps
|
|
2310
2356
|
| HillshadeLayerStyleProps
|
|
2311
2357
|
| ModelLayerStyleProps
|
|
2312
2358
|
| BackgroundLayerStyleProps
|
package/src/utils/styleMap.ts
CHANGED
|
@@ -265,6 +265,16 @@ const styleMap = {
|
|
|
265
265
|
rasterElevation: StyleTypes.Constant,
|
|
266
266
|
rasterElevationTransition: StyleTypes.Transition,
|
|
267
267
|
|
|
268
|
+
rasterParticleArrayBand: StyleTypes.Constant,
|
|
269
|
+
rasterParticleCount: StyleTypes.Constant,
|
|
270
|
+
rasterParticleColor: StyleTypes.Color,
|
|
271
|
+
rasterParticleMaxSpeed: StyleTypes.Constant,
|
|
272
|
+
rasterParticleSpeedFactor: StyleTypes.Constant,
|
|
273
|
+
rasterParticleSpeedFactorTransition: StyleTypes.Transition,
|
|
274
|
+
rasterParticleFadeOpacityFactor: StyleTypes.Constant,
|
|
275
|
+
rasterParticleFadeOpacityFactorTransition: StyleTypes.Transition,
|
|
276
|
+
rasterParticleResetRateFactor: StyleTypes.Constant,
|
|
277
|
+
|
|
268
278
|
hillshadeIlluminationDirection: StyleTypes.Constant,
|
|
269
279
|
hillshadeIlluminationAnchor: StyleTypes.Enum,
|
|
270
280
|
hillshadeExaggeration: StyleTypes.Constant,
|