@rnmapbox/maps 10.1.0-beta.23 → 10.1.0-beta.25
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/RNMBXPackage.kt +4 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt +69 -2
- package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt +27 -3
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocation.kt +51 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocationManager.kt +8 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/NativeMapViewModule.kt +1 -1
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +1184 -109
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayer.kt +33 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt +85 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModels.kt +33 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModelsManager.kt +59 -0
- package/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/ReadableMap.kt +37 -5
- package/android/src/main/mapbox-v11-compat/v10/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +395 -0
- package/android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/StyleFactory.kt +8 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelLayerManagerDelegate.java +65 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelLayerManagerInterface.java +28 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelsManagerDelegate.java +32 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXModelsManagerInterface.java +17 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXNativeUserLocationManagerDelegate.java +3 -0
- package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXNativeUserLocationManagerInterface.java +1 -0
- package/ios/RNMBX/RNMBXFabricPropConvert.h +11 -5
- package/ios/RNMBX/RNMBXFabricPropConvert.mm +5 -0
- package/ios/RNMBX/RNMBXInteractiveElement.swift +1 -1
- package/ios/RNMBX/RNMBXModelLayer.swift +59 -0
- package/ios/RNMBX/RNMBXModelLayerComponentView.h +15 -0
- package/ios/RNMBX/RNMBXModelLayerComponentView.mm +70 -0
- package/ios/RNMBX/RNMBXModelLayerViewManager.m +12 -0
- package/ios/RNMBX/RNMBXModelLayerViewManager.swift +13 -0
- package/ios/RNMBX/RNMBXModels.swift +63 -0
- package/ios/RNMBX/RNMBXModelsComponentView.h +17 -0
- package/ios/RNMBX/RNMBXModelsComponentView.mm +67 -0
- package/ios/RNMBX/RNMBXModelsManager.mm +9 -0
- package/ios/RNMBX/RNMBXModelsManager.swift +13 -0
- package/ios/RNMBX/RNMBXNativeUserLocation.swift +47 -16
- package/ios/RNMBX/RNMBXNativeUserLocationComponentView.mm +8 -7
- package/ios/RNMBX/RNMBXNativeUserLocationViewManager.m +1 -0
- package/ios/RNMBX/RNMBXStyle.swift +786 -1
- package/ios/RNMBX/RNMBXStyleValue.swift +34 -3
- package/ios/RNMBX/RNMBXViewport.swift +59 -3
- package/lib/commonjs/Mapbox.js +16 -0
- package/lib/commonjs/Mapbox.js.map +1 -1
- package/lib/commonjs/components/AbstractLayer.js +1 -1
- package/lib/commonjs/components/AbstractLayer.js.map +1 -1
- package/lib/commonjs/components/ModelLayer.js +37 -0
- package/lib/commonjs/components/ModelLayer.js.map +1 -0
- package/lib/commonjs/components/Models.js +43 -0
- package/lib/commonjs/components/Models.js.map +1 -0
- package/lib/commonjs/components/NativeUserLocation.js +25 -1
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/Viewport.js.map +1 -1
- package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.js +13 -0
- package/lib/commonjs/specs/RNMBXModelLayerNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/RNMBXModelsNativeComponent.js +10 -0
- package/lib/commonjs/specs/RNMBXModelsNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/RNMBXNativeUserLocationNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +11 -10
- package/lib/commonjs/utils/MapboxStyles.d.js +5 -0
- package/lib/commonjs/utils/MapboxStyles.d.js.map +1 -1
- package/lib/commonjs/utils/styleMap.js +67 -2
- package/lib/commonjs/utils/styleMap.js.map +1 -1
- package/lib/module/Mapbox.js +2 -0
- package/lib/module/Mapbox.js.map +1 -1
- package/lib/module/components/AbstractLayer.js +1 -1
- package/lib/module/components/AbstractLayer.js.map +1 -1
- package/lib/module/components/ModelLayer.js +30 -0
- package/lib/module/components/ModelLayer.js.map +1 -0
- package/lib/module/components/Models.js +36 -0
- package/lib/module/components/Models.js.map +1 -0
- package/lib/module/components/NativeUserLocation.js +25 -1
- package/lib/module/components/NativeUserLocation.js.map +1 -1
- package/lib/module/components/Viewport.js.map +1 -1
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXModelLayerNativeComponent.js +9 -0
- package/lib/module/specs/RNMBXModelLayerNativeComponent.js.map +1 -0
- package/lib/module/specs/RNMBXModelsNativeComponent.js +3 -0
- package/lib/module/specs/RNMBXModelsNativeComponent.js.map +1 -0
- package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
- package/lib/module/specs/RNMBXViewportNativeComponent.js +2 -0
- package/lib/module/specs/RNMBXViewportNativeComponent.js.map +1 -1
- package/lib/module/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +11 -10
- package/lib/module/utils/MapboxStyles.d.js +5 -0
- package/lib/module/utils/MapboxStyles.d.js.map +1 -1
- package/lib/module/utils/styleMap.js +67 -2
- package/lib/module/utils/styleMap.js.map +1 -1
- package/lib/typescript/src/Mapbox.d.ts +3 -1
- package/lib/typescript/src/Mapbox.d.ts.map +1 -1
- package/lib/typescript/src/components/AbstractLayer.d.ts +9 -4
- package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/MapView.d.ts +1 -5
- package/lib/typescript/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/components/ModelLayer.d.ts +77 -0
- package/lib/typescript/src/components/ModelLayer.d.ts.map +1 -0
- package/lib/typescript/src/components/Models.d.ts +15 -0
- package/lib/typescript/src/components/Models.d.ts.map +1 -0
- package/lib/typescript/src/components/NativeUserLocation.d.ts +20 -0
- package/lib/typescript/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/src/components/Viewport.d.ts +32 -1
- package/lib/typescript/src/components/Viewport.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts +28 -0
- package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts +15 -0
- package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts +9 -1
- package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts +12 -10
- package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Mapbox.ts +3 -0
- package/src/components/AbstractLayer.tsx +11 -5
- package/src/components/ModelLayer.tsx +107 -0
- package/src/components/Models.tsx +44 -0
- package/src/components/NativeUserLocation.tsx +46 -2
- package/src/components/Viewport.tsx +37 -0
- package/src/specs/RNMBXCircleLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXFillLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXLineLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXModelLayerNativeComponent.ts +38 -0
- package/src/specs/RNMBXModelsNativeComponent.ts +18 -0
- package/src/specs/RNMBXNativeUserLocationNativeComponent.ts +14 -1
- package/src/specs/RNMBXRasterLayerNativeComponent.ts +15 -12
- package/src/specs/RNMBXSymbolLayerNativeComponent.ts +15 -12
- package/src/specs/codeparts/CommonLayerNativeComponentsProps.codepart-ts +11 -10
- package/src/utils/MapboxStyles.d.ts +526 -63
- package/src/utils/styleMap.ts +69 -2
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { FilterExpression } from '../utils/MapboxStyles';
|
|
3
4
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
5
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
6
|
+
declare type Slot = 'bottom' | 'middle' | 'top';
|
|
5
7
|
declare type CommonProps = {
|
|
6
|
-
sourceID
|
|
7
|
-
existing
|
|
8
|
-
filter
|
|
9
|
-
aboveLayerID
|
|
10
|
-
belowLayerID
|
|
11
|
-
layerIndex
|
|
12
|
-
maxZoomLevel
|
|
13
|
-
minZoomLevel
|
|
14
|
-
sourceLayerID
|
|
15
|
-
slot
|
|
8
|
+
sourceID?: OptionalProp<string>;
|
|
9
|
+
existing?: OptionalProp<boolean>;
|
|
10
|
+
filter?: UnsafeMixed<FilterExpression>;
|
|
11
|
+
aboveLayerID?: OptionalProp<string>;
|
|
12
|
+
belowLayerID?: OptionalProp<string>;
|
|
13
|
+
layerIndex?: OptionalProp<Int32>;
|
|
14
|
+
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
+
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
+
sourceLayerID?: OptionalProp<string>;
|
|
17
|
+
slot?: OptionalProp<Slot>;
|
|
16
18
|
};
|
|
17
19
|
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
20
|
id?: OptionalProp<string>;
|
|
@@ -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;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,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,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AACtC,aAAK,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExC,aAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEvC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEjC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC3B,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"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { FilterExpression } from '../utils/MapboxStyles';
|
|
3
4
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
5
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
6
|
+
declare type Slot = 'bottom' | 'middle' | 'top';
|
|
5
7
|
declare type CommonProps = {
|
|
6
|
-
sourceID
|
|
7
|
-
existing
|
|
8
|
-
filter
|
|
9
|
-
aboveLayerID
|
|
10
|
-
belowLayerID
|
|
11
|
-
layerIndex
|
|
12
|
-
maxZoomLevel
|
|
13
|
-
minZoomLevel
|
|
14
|
-
sourceLayerID
|
|
15
|
-
slot
|
|
8
|
+
sourceID?: OptionalProp<string>;
|
|
9
|
+
existing?: OptionalProp<boolean>;
|
|
10
|
+
filter?: UnsafeMixed<FilterExpression>;
|
|
11
|
+
aboveLayerID?: OptionalProp<string>;
|
|
12
|
+
belowLayerID?: OptionalProp<string>;
|
|
13
|
+
layerIndex?: OptionalProp<Int32>;
|
|
14
|
+
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
+
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
+
sourceLayerID?: OptionalProp<string>;
|
|
17
|
+
slot?: OptionalProp<Slot>;
|
|
16
18
|
};
|
|
17
19
|
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
20
|
id?: OptionalProp<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNMBXHeatmapLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXHeatmapLayerNativeComponent.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;
|
|
1
|
+
{"version":3,"file":"RNMBXHeatmapLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXHeatmapLayerNativeComponent.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,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AACtC,aAAK,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExC,aAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEvC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEjC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC3B,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"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { FilterExpression } from '../utils/MapboxStyles';
|
|
3
4
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
5
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
6
|
+
declare type Slot = 'bottom' | 'middle' | 'top';
|
|
5
7
|
declare type CommonProps = {
|
|
6
|
-
sourceID
|
|
7
|
-
existing
|
|
8
|
-
filter
|
|
9
|
-
aboveLayerID
|
|
10
|
-
belowLayerID
|
|
11
|
-
layerIndex
|
|
12
|
-
maxZoomLevel
|
|
13
|
-
minZoomLevel
|
|
14
|
-
sourceLayerID
|
|
15
|
-
slot
|
|
8
|
+
sourceID?: OptionalProp<string>;
|
|
9
|
+
existing?: OptionalProp<boolean>;
|
|
10
|
+
filter?: UnsafeMixed<FilterExpression>;
|
|
11
|
+
aboveLayerID?: OptionalProp<string>;
|
|
12
|
+
belowLayerID?: OptionalProp<string>;
|
|
13
|
+
layerIndex?: OptionalProp<Int32>;
|
|
14
|
+
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
+
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
+
sourceLayerID?: OptionalProp<string>;
|
|
17
|
+
slot?: OptionalProp<Slot>;
|
|
16
18
|
};
|
|
17
19
|
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
20
|
id?: OptionalProp<string>;
|
|
@@ -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,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;
|
|
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,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AACtC,aAAK,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExC,aAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEvC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEjC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC3B,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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { FilterExpression } from '../utils/MapboxStyles';
|
|
4
|
+
import { StyleValue } from '../utils/StyleValue';
|
|
5
|
+
import { UnsafeMixed } from './codegenUtils';
|
|
6
|
+
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
7
|
+
declare type Slot = 'bottom' | 'middle' | 'top';
|
|
8
|
+
declare type CommonProps = {
|
|
9
|
+
sourceID?: OptionalProp<string>;
|
|
10
|
+
existing?: OptionalProp<boolean>;
|
|
11
|
+
filter?: UnsafeMixed<FilterExpression>;
|
|
12
|
+
aboveLayerID?: OptionalProp<string>;
|
|
13
|
+
belowLayerID?: OptionalProp<string>;
|
|
14
|
+
layerIndex?: OptionalProp<Int32>;
|
|
15
|
+
maxZoomLevel?: OptionalProp<Double>;
|
|
16
|
+
minZoomLevel?: OptionalProp<Double>;
|
|
17
|
+
sourceLayerID?: OptionalProp<string>;
|
|
18
|
+
slot?: OptionalProp<Slot>;
|
|
19
|
+
};
|
|
20
|
+
export interface NativeProps extends ViewProps, CommonProps {
|
|
21
|
+
id: OptionalProp<string>;
|
|
22
|
+
reactStyle?: UnsafeMixed<{
|
|
23
|
+
[key: string]: StyleValue;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: HostComponent<NativeProps>;
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=RNMBXModelLayerNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RNMBXModelLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXModelLayerNativeComponent.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,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AACtC,aAAK,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExC,aAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEvC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEjC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC3B,CAAC;AAGF,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,WAAW;IACzD,EAAE,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC,CAAC;CACzD;;AAED,wBAEgC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import { UnsafeMixed } from './codegenUtils';
|
|
3
|
+
declare type Asset = {
|
|
4
|
+
__packager_asset?: boolean;
|
|
5
|
+
uri?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
};
|
|
8
|
+
export interface NativeProps extends ViewProps {
|
|
9
|
+
models: UnsafeMixed<{
|
|
10
|
+
[key: string]: Asset;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: HostComponent<NativeProps>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=RNMBXModelsNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RNMBXModelsNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXModelsNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG7D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,aAAK,KAAK,GAAG;IACX,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,MAAM,EAAE,WAAW,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;KAAE,CAAC,CAAC;CAC/C;;AAED,wBAEgC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import type { HostComponent, ViewProps } from 'react-native';
|
|
1
|
+
import type { HostComponent, ProcessedColorValue, ViewProps } from 'react-native';
|
|
2
2
|
import type { Expression } from '../utils/MapboxStyles';
|
|
3
3
|
import { UnsafeMixed } from './codegenUtils';
|
|
4
4
|
declare type Value<T> = T | Expression;
|
|
5
5
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
6
|
+
declare type Pulsing = {
|
|
7
|
+
isEnabled?: boolean;
|
|
8
|
+
radius?: 'accuracy' | number;
|
|
9
|
+
color?: ProcessedColorValue | null | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'default';
|
|
12
|
+
};
|
|
6
13
|
export interface NativeProps extends ViewProps {
|
|
7
14
|
androidRenderMode?: OptionalProp<string>;
|
|
8
15
|
puckBearing?: OptionalProp<'heading' | 'course'>;
|
|
@@ -12,6 +19,7 @@ export interface NativeProps extends ViewProps {
|
|
|
12
19
|
topImage?: OptionalProp<string>;
|
|
13
20
|
scale?: UnsafeMixed<Value<number>>;
|
|
14
21
|
visible?: boolean;
|
|
22
|
+
pulsing?: UnsafeMixed<Pulsing>;
|
|
15
23
|
}
|
|
16
24
|
declare const _default: HostComponent<NativeProps>;
|
|
17
25
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNMBXNativeUserLocationNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXNativeUserLocationNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"RNMBXNativeUserLocationNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXNativeUserLocationNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,aAAK,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;AAG/B,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtC,aAAK,OAAO,GACR;IACE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;CAChD,GACD;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAExB,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,iBAAiB,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,YAAY,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAC;IACjD,kBAAkB,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC3C,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAChC;;AAED,wBAEgC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { FilterExpression } from '../utils/MapboxStyles';
|
|
3
4
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
5
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
6
|
+
declare type Slot = 'bottom' | 'middle' | 'top';
|
|
5
7
|
declare type CommonProps = {
|
|
6
|
-
sourceID
|
|
7
|
-
existing
|
|
8
|
-
filter
|
|
9
|
-
aboveLayerID
|
|
10
|
-
belowLayerID
|
|
11
|
-
layerIndex
|
|
12
|
-
maxZoomLevel
|
|
13
|
-
minZoomLevel
|
|
14
|
-
sourceLayerID
|
|
15
|
-
slot
|
|
8
|
+
sourceID?: OptionalProp<string>;
|
|
9
|
+
existing?: OptionalProp<boolean>;
|
|
10
|
+
filter?: UnsafeMixed<FilterExpression>;
|
|
11
|
+
aboveLayerID?: OptionalProp<string>;
|
|
12
|
+
belowLayerID?: OptionalProp<string>;
|
|
13
|
+
layerIndex?: OptionalProp<Int32>;
|
|
14
|
+
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
+
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
+
sourceLayerID?: OptionalProp<string>;
|
|
17
|
+
slot?: OptionalProp<Slot>;
|
|
16
18
|
};
|
|
17
19
|
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
20
|
id?: OptionalProp<string>;
|
|
@@ -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;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,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,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AACtC,aAAK,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExC,aAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEvC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEjC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC3B,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"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
2
|
import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { FilterExpression } from '../utils/MapboxStyles';
|
|
3
4
|
import type { UnsafeMixed } from './codegenUtils';
|
|
4
5
|
declare type OptionalProp<T> = UnsafeMixed<T>;
|
|
6
|
+
declare type Slot = 'bottom' | 'middle' | 'top';
|
|
5
7
|
declare type CommonProps = {
|
|
6
|
-
sourceID
|
|
7
|
-
existing
|
|
8
|
-
filter
|
|
9
|
-
aboveLayerID
|
|
10
|
-
belowLayerID
|
|
11
|
-
layerIndex
|
|
12
|
-
maxZoomLevel
|
|
13
|
-
minZoomLevel
|
|
14
|
-
sourceLayerID
|
|
15
|
-
slot
|
|
8
|
+
sourceID?: OptionalProp<string>;
|
|
9
|
+
existing?: OptionalProp<boolean>;
|
|
10
|
+
filter?: UnsafeMixed<FilterExpression>;
|
|
11
|
+
aboveLayerID?: OptionalProp<string>;
|
|
12
|
+
belowLayerID?: OptionalProp<string>;
|
|
13
|
+
layerIndex?: OptionalProp<Int32>;
|
|
14
|
+
maxZoomLevel?: OptionalProp<Double>;
|
|
15
|
+
minZoomLevel?: OptionalProp<Double>;
|
|
16
|
+
sourceLayerID?: OptionalProp<string>;
|
|
17
|
+
slot?: OptionalProp<Slot>;
|
|
16
18
|
};
|
|
17
19
|
export interface NativeProps extends ViewProps, CommonProps {
|
|
18
20
|
id?: OptionalProp<string>;
|
|
@@ -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;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,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,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AACtC,aAAK,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExC,aAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEvC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAEjC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC3B,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styleMap.d.ts","sourceRoot":"","sources":["../../../../src/utils/styleMap.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;CAQtB,CAAC;AAEF,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,OAAO,WAAW,UAU/D;
|
|
1
|
+
{"version":3,"file":"styleMap.d.ts","sourceRoot":"","sources":["../../../../src/utils/styleMap.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;CAQtB,CAAC;AAEF,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,OAAO,WAAW,UAU/D;AAiSD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCvB,CAAC"}
|
package/package.json
CHANGED
package/src/Mapbox.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { default as RasterSource } from './components/RasterSource';
|
|
|
26
26
|
export { default as RasterDemSource } from './components/RasterDemSource';
|
|
27
27
|
export { default as ImageSource } from './components/ImageSource';
|
|
28
28
|
export { Viewport } from './components/Viewport';
|
|
29
|
+
export { default as Models } from './components/Models';
|
|
29
30
|
export { default as Images, type ImageEntry } from './components/Images';
|
|
30
31
|
export { default as Image } from './components/Image';
|
|
31
32
|
export { default as FillLayer } from './components/FillLayer';
|
|
@@ -34,6 +35,7 @@ export { default as HeatmapLayer } from './components/HeatmapLayer';
|
|
|
34
35
|
export { default as LineLayer } from './components/LineLayer';
|
|
35
36
|
export { default as CircleLayer } from './components/CircleLayer';
|
|
36
37
|
export { default as SkyLayer } from './components/SkyLayer';
|
|
38
|
+
export { default as ModelLayer } from './components/ModelLayer';
|
|
37
39
|
export { SymbolLayer } from './components/SymbolLayer';
|
|
38
40
|
export { default as RasterLayer } from './components/RasterLayer';
|
|
39
41
|
export { default as BackgroundLayer } from './components/BackgroundLayer';
|
|
@@ -78,6 +80,7 @@ export type {
|
|
|
78
80
|
LightLayerStyleProps as LightLayerStyle,
|
|
79
81
|
AtmosphereLayerStyleProps as AtmosphereLayerStyle,
|
|
80
82
|
TerrainLayerStyleProps as TerrainLayerStyle,
|
|
83
|
+
ModelLayerStyleProps as ModelLayerStyle,
|
|
81
84
|
} from './utils/MapboxStyles';
|
|
82
85
|
|
|
83
86
|
import { deprecatedClass } from './utils/deprecation';
|
|
@@ -3,7 +3,7 @@ import { NativeMethods, processColor } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { getFilter } from '../utils/filterUtils';
|
|
5
5
|
import { AllLayerStyleProps, FilterExpression } from '../utils/MapboxStyles';
|
|
6
|
-
import { transformStyle } from '../utils/StyleValue';
|
|
6
|
+
import { StyleValue, transformStyle } from '../utils/StyleValue';
|
|
7
7
|
import type { BaseProps } from '../types/BaseProps';
|
|
8
8
|
|
|
9
9
|
type PropsBase = BaseProps & {
|
|
@@ -23,7 +23,9 @@ class AbstractLayer<
|
|
|
23
23
|
PropsType extends PropsBase,
|
|
24
24
|
NativePropsType,
|
|
25
25
|
> extends React.PureComponent<PropsType> {
|
|
26
|
-
get baseProps(): PropsType {
|
|
26
|
+
get baseProps(): Omit<PropsType, 'style'> & {
|
|
27
|
+
reactStyle?: { [key: string]: StyleValue };
|
|
28
|
+
} {
|
|
27
29
|
return {
|
|
28
30
|
...this.props,
|
|
29
31
|
id: this.props.id,
|
|
@@ -42,10 +44,12 @@ class AbstractLayer<
|
|
|
42
44
|
|
|
43
45
|
nativeLayer:
|
|
44
46
|
| (React.Component<NativePropsType> & Readonly<NativeMethods>)
|
|
45
|
-
|
|
|
47
|
+
| null = null;
|
|
46
48
|
|
|
47
49
|
setNativeLayer = (
|
|
48
|
-
instance:
|
|
50
|
+
instance:
|
|
51
|
+
| (React.Component<NativePropsType> & Readonly<NativeMethods>)
|
|
52
|
+
| null,
|
|
49
53
|
) => {
|
|
50
54
|
this.nativeLayer = instance;
|
|
51
55
|
};
|
|
@@ -57,7 +61,9 @@ class AbstractLayer<
|
|
|
57
61
|
return undefined;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
getStyle(
|
|
64
|
+
getStyle(
|
|
65
|
+
style: AllLayerStyleProps | undefined,
|
|
66
|
+
): { [key: string]: StyleValue } | undefined {
|
|
61
67
|
return transformStyle(style);
|
|
62
68
|
}
|
|
63
69
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { FilterExpression, ModelLayerStyleProps } from '../utils/MapboxStyles';
|
|
5
|
+
import { StyleValue } from '../utils/StyleValue';
|
|
6
|
+
import RNMBXModelLayerNativeComponent from '../specs/RNMBXModelLayerNativeComponent';
|
|
7
|
+
|
|
8
|
+
import AbstractLayer from './AbstractLayer';
|
|
9
|
+
|
|
10
|
+
const Mapbox = NativeModules.RNMBXModule;
|
|
11
|
+
|
|
12
|
+
// @{codepart-replace-start(LayerPropsCommon.codepart-tsx)}
|
|
13
|
+
type Slot = 'bottom' | 'middle' | 'top';
|
|
14
|
+
|
|
15
|
+
type LayerPropsCommon = {
|
|
16
|
+
/**
|
|
17
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The id refers to en existing layer in the style. Does not create a new layer.
|
|
23
|
+
*/
|
|
24
|
+
existing?: boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The source from which to obtain the data to style.
|
|
28
|
+
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
29
|
+
* Inferred from parent source only if the layer is a direct child to it.
|
|
30
|
+
*/
|
|
31
|
+
sourceID?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
35
|
+
*/
|
|
36
|
+
sourceLayerID?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Inserts a layer above aboveLayerID.
|
|
40
|
+
*/
|
|
41
|
+
aboveLayerID?: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Inserts a layer below belowLayerID
|
|
45
|
+
*/
|
|
46
|
+
belowLayerID?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Inserts a layer at a specified index
|
|
50
|
+
*/
|
|
51
|
+
layerIndex?: number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Filter only the features in the source layer that satisfy a condition that you define
|
|
55
|
+
*/
|
|
56
|
+
filter?: FilterExpression;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The minimum zoom level at which the layer gets parsed and appears.
|
|
60
|
+
*/
|
|
61
|
+
minZoomLevel?: number;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The maximum zoom level at which the layer gets parsed and appears.
|
|
65
|
+
*/
|
|
66
|
+
maxZoomLevel?: number;
|
|
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 & {
|
|
78
|
+
/**
|
|
79
|
+
* Customizable style attributes
|
|
80
|
+
*/
|
|
81
|
+
style?: ModelLayerStyleProps;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
type NativeTypeProps = Omit<Props, 'style'> & {
|
|
85
|
+
reactStyle?: { [key: string]: StyleValue };
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* ModelLayer is a style layer that renders one or more stroked polylines on the map.
|
|
90
|
+
*/
|
|
91
|
+
class ModelLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
92
|
+
static defaultProps = {
|
|
93
|
+
sourceID: Mapbox.StyleSource.DefaultSourceID,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
render() {
|
|
97
|
+
const props = {
|
|
98
|
+
...this.baseProps,
|
|
99
|
+
sourceLayerID: this.props.sourceLayerID,
|
|
100
|
+
};
|
|
101
|
+
return (
|
|
102
|
+
<RNMBXModelLayerNativeComponent ref={this.setNativeLayer} {...props} />
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export default ModelLayer;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import NativeModels from '../specs/RNMBXModelsNativeComponent';
|
|
5
|
+
|
|
6
|
+
type Props = {
|
|
7
|
+
/**
|
|
8
|
+
* pair odf model name to gltf and gbl file path/url, or asset id.
|
|
9
|
+
*/
|
|
10
|
+
models: { [key: string]: string | number };
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
type Asset = {
|
|
14
|
+
__packager_asset?: boolean;
|
|
15
|
+
uri?: string;
|
|
16
|
+
url?: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
function _resolveAssets(models: Props['models']): {
|
|
20
|
+
[key: string]: Asset;
|
|
21
|
+
} {
|
|
22
|
+
const resolvedModels: { [key: string]: Asset } = {};
|
|
23
|
+
Object.keys(models).forEach((key) => {
|
|
24
|
+
const model = models[key];
|
|
25
|
+
if (typeof model === 'string') {
|
|
26
|
+
resolvedModels[key] = { url: model };
|
|
27
|
+
} else {
|
|
28
|
+
const asset = Image.resolveAssetSource(model);
|
|
29
|
+
if (!asset) {
|
|
30
|
+
throw new Error(`Could not resolve model asset: ${model}`);
|
|
31
|
+
}
|
|
32
|
+
resolvedModels[key] = asset;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return resolvedModels;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Name of 3D model assets to be used in the map
|
|
40
|
+
*/
|
|
41
|
+
export default function Models(props: Props) {
|
|
42
|
+
const { models, ...restOfProps } = props;
|
|
43
|
+
return <NativeModels {...restOfProps} models={_resolveAssets(models)} />;
|
|
44
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
+
import { processColor, type ColorValue } from 'react-native';
|
|
2
3
|
|
|
3
4
|
import RNMBXNativeUserLocation, {
|
|
4
5
|
type NativeProps,
|
|
@@ -66,6 +67,30 @@ export type Props = {
|
|
|
66
67
|
*/
|
|
67
68
|
scale?: Value<number>;
|
|
68
69
|
|
|
70
|
+
/**
|
|
71
|
+
* The configration parameters for sonar-like pulsing circle animation shown around the 2D puck.
|
|
72
|
+
*/
|
|
73
|
+
pulsing?:
|
|
74
|
+
| {
|
|
75
|
+
/**
|
|
76
|
+
* Flag determining whether the pulsing circle animation.
|
|
77
|
+
*/
|
|
78
|
+
isEnabled?: boolean;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The color of the pulsing circle.
|
|
82
|
+
*/
|
|
83
|
+
color?: number | ColorValue;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Circle radius configuration for the pulsing circle animation.
|
|
87
|
+
* - accuracy: Pulsing circle animates with the `horizontalAccuracy` form the latest puck location.
|
|
88
|
+
* - number: Pulsing circle should animate with the constant radius.
|
|
89
|
+
*/
|
|
90
|
+
radius?: 'accuracy' | number;
|
|
91
|
+
}
|
|
92
|
+
| 'default';
|
|
93
|
+
|
|
69
94
|
/**
|
|
70
95
|
* Whether location icon is visible, defaults to true
|
|
71
96
|
*/
|
|
@@ -77,12 +102,14 @@ const defaultProps = {
|
|
|
77
102
|
} as const;
|
|
78
103
|
|
|
79
104
|
const NativeUserLocation = memo((props: Props) => {
|
|
80
|
-
const { iosShowsUserHeadingIndicator, ...rest } = props;
|
|
81
|
-
|
|
105
|
+
const { iosShowsUserHeadingIndicator, pulsing, ...rest } = props;
|
|
106
|
+
const nativePulsing = pulsing ? _pulsingToNative(pulsing) : undefined;
|
|
107
|
+
let baseProps: NativeProps = { ...defaultProps, pulsing: nativePulsing };
|
|
82
108
|
if (iosShowsUserHeadingIndicator) {
|
|
83
109
|
console.warn(
|
|
84
110
|
'NativeUserLocation: iosShowsUserHeadingIndicator is deprecated, use puckBearingEnabled={true} puckBearing="heading" instead',
|
|
85
111
|
);
|
|
112
|
+
|
|
86
113
|
baseProps = {
|
|
87
114
|
...baseProps,
|
|
88
115
|
puckBearingEnabled: true,
|
|
@@ -93,4 +120,21 @@ const NativeUserLocation = memo((props: Props) => {
|
|
|
93
120
|
return <RNMBXNativeUserLocation {...actualProps} />;
|
|
94
121
|
});
|
|
95
122
|
|
|
123
|
+
function _pulsingToNative(
|
|
124
|
+
pulsing: Props['pulsing'],
|
|
125
|
+
): NativeProps['pulsing'] | undefined {
|
|
126
|
+
if (pulsing === 'default') {
|
|
127
|
+
return { kind: 'default' };
|
|
128
|
+
}
|
|
129
|
+
if (pulsing == null) {
|
|
130
|
+
return undefined;
|
|
131
|
+
}
|
|
132
|
+
const { color, isEnabled, radius } = pulsing;
|
|
133
|
+
return {
|
|
134
|
+
color: processColor(color),
|
|
135
|
+
isEnabled,
|
|
136
|
+
radius,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
96
140
|
export default NativeUserLocation;
|