@rnmapbox/maps 10.0.0-beta.65 → 10.0.0-beta.67

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.
Files changed (74) hide show
  1. package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/camera/RCTMGLCamera.kt +1 -1
  2. package/index.d.ts +36 -166
  3. package/ios/RCTMGL-v10/RCTMGLLogging.swift +13 -0
  4. package/ios/RCTMGL-v10/RCTMGLMarkerView.swift +86 -55
  5. package/ios/RCTMGL-v10/RCTMGLOfflineModule.swift +138 -55
  6. package/javascript/components/BackgroundLayer.tsx +91 -0
  7. package/javascript/components/CircleLayer.tsx +97 -0
  8. package/javascript/components/FillExtrusionLayer.tsx +95 -0
  9. package/javascript/components/FillLayer.tsx +91 -0
  10. package/javascript/components/HeatmapLayer.tsx +96 -0
  11. package/javascript/components/NativeUserLocation.tsx +33 -0
  12. package/javascript/components/RasterLayer.tsx +88 -0
  13. package/javascript/components/SkyLayer.tsx +70 -0
  14. package/javascript/modules/location/locationManager.js +3 -1
  15. package/lib/commonjs/components/BackgroundLayer.js +6 -55
  16. package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
  17. package/lib/commonjs/components/CircleLayer.js +8 -58
  18. package/lib/commonjs/components/CircleLayer.js.map +1 -1
  19. package/lib/commonjs/components/FillExtrusionLayer.js +3 -55
  20. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
  21. package/lib/commonjs/components/FillLayer.js +2 -55
  22. package/lib/commonjs/components/FillLayer.js.map +1 -1
  23. package/lib/commonjs/components/HeatmapLayer.js +3 -56
  24. package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
  25. package/lib/commonjs/components/NativeUserLocation.js +6 -31
  26. package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
  27. package/lib/commonjs/components/RasterLayer.js +1 -53
  28. package/lib/commonjs/components/RasterLayer.js.map +1 -1
  29. package/lib/commonjs/components/SkyLayer.js +2 -43
  30. package/lib/commonjs/components/SkyLayer.js.map +1 -1
  31. package/lib/commonjs/modules/location/locationManager.js +3 -1
  32. package/lib/commonjs/modules/location/locationManager.js.map +1 -1
  33. package/lib/module/components/BackgroundLayer.js +6 -55
  34. package/lib/module/components/BackgroundLayer.js.map +1 -1
  35. package/lib/module/components/CircleLayer.js +7 -57
  36. package/lib/module/components/CircleLayer.js.map +1 -1
  37. package/lib/module/components/FillExtrusionLayer.js +2 -54
  38. package/lib/module/components/FillExtrusionLayer.js.map +1 -1
  39. package/lib/module/components/FillLayer.js +1 -54
  40. package/lib/module/components/FillLayer.js.map +1 -1
  41. package/lib/module/components/HeatmapLayer.js +2 -55
  42. package/lib/module/components/HeatmapLayer.js.map +1 -1
  43. package/lib/module/components/NativeUserLocation.js +4 -30
  44. package/lib/module/components/NativeUserLocation.js.map +1 -1
  45. package/lib/module/components/RasterLayer.js +1 -53
  46. package/lib/module/components/RasterLayer.js.map +1 -1
  47. package/lib/module/components/SkyLayer.js +1 -42
  48. package/lib/module/components/SkyLayer.js.map +1 -1
  49. package/lib/module/modules/location/locationManager.js +3 -1
  50. package/lib/module/modules/location/locationManager.js.map +1 -1
  51. package/lib/typescript/components/BackgroundLayer.d.ts +62 -0
  52. package/lib/typescript/components/BackgroundLayer.d.ts.map +1 -0
  53. package/lib/typescript/components/CircleLayer.d.ts +66 -0
  54. package/lib/typescript/components/CircleLayer.d.ts.map +1 -0
  55. package/lib/typescript/components/FillExtrusionLayer.d.ts +65 -0
  56. package/lib/typescript/components/FillExtrusionLayer.d.ts.map +1 -0
  57. package/{javascript/components/FillLayer.js → lib/typescript/components/FillLayer.d.ts} +28 -57
  58. package/lib/typescript/components/FillLayer.d.ts.map +1 -0
  59. package/lib/typescript/components/HeatmapLayer.d.ts +66 -0
  60. package/lib/typescript/components/HeatmapLayer.d.ts.map +1 -0
  61. package/lib/typescript/components/NativeUserLocation.d.ts +22 -0
  62. package/lib/typescript/components/NativeUserLocation.d.ts.map +1 -0
  63. package/lib/typescript/components/RasterLayer.d.ts +62 -0
  64. package/lib/typescript/components/RasterLayer.d.ts.map +1 -0
  65. package/lib/typescript/components/SkyLayer.d.ts +52 -0
  66. package/lib/typescript/components/SkyLayer.d.ts.map +1 -0
  67. package/package.json +1 -1
  68. package/javascript/components/BackgroundLayer.js +0 -97
  69. package/javascript/components/CircleLayer.js +0 -101
  70. package/javascript/components/FillExtrusionLayer.js +0 -98
  71. package/javascript/components/HeatmapLayer.js +0 -99
  72. package/javascript/components/NativeUserLocation.js +0 -41
  73. package/javascript/components/RasterLayer.js +0 -95
  74. package/javascript/components/SkyLayer.js +0 -80
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CircleLayer.d.ts","sourceRoot":"","sources":["../../../javascript/components/CircleLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC/B,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAEtD,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,cAAM,WAAY,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IAC7D,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAQP;AAKD,eAAe,WAAW,CAAC"}
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ import { FilterExpression, FillExtrusionLayerStyleProps } from '../utils/MapboxStyles';
3
+ import { StyleValue } from '../utils/StyleValue';
4
+ import AbstractLayer from './AbstractLayer';
5
+ export declare const NATIVE_MODULE_NAME = "RCTMGLFillExtrusionLayer";
6
+ export declare type Props = {
7
+ /**
8
+ * A string that uniquely identifies the source in the style to which it is added.
9
+ */
10
+ id: string;
11
+ /**
12
+ * The source from which to obtain the data to style.
13
+ * If the source has not yet been added to the current style, the behavior is undefined.
14
+ * Inferred from parent source only if the layer is a direct child to it.
15
+ */
16
+ sourceID?: string;
17
+ /**
18
+ * Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
19
+ */
20
+ sourceLayerID?: string;
21
+ /**
22
+ * Inserts a layer above aboveLayerID.
23
+ */
24
+ aboveLayerID?: string;
25
+ /**
26
+ * Inserts a layer below belowLayerID
27
+ */
28
+ belowLayerID?: string;
29
+ /**
30
+ * Inserts a layer at a specified index
31
+ */
32
+ layerIndex?: number;
33
+ /**
34
+ * Filter only the features in the source layer that satisfy a condition that you define
35
+ */
36
+ filter?: FilterExpression;
37
+ /**
38
+ * The minimum zoom level at which the layer gets parsed and appears.
39
+ */
40
+ minZoomLevel: number;
41
+ /**
42
+ * The maximum zoom level at which the layer gets parsed and appears.
43
+ */
44
+ maxZoomLevel: number;
45
+ /**
46
+ * Customizable style attributes
47
+ */
48
+ style?: FillExtrusionLayerStyleProps;
49
+ } & React.ComponentProps<typeof AbstractLayer>;
50
+ declare type NativeTypeProps = Omit<Props, 'style'> & {
51
+ reactStyle?: {
52
+ [key: string]: StyleValue;
53
+ };
54
+ };
55
+ /**
56
+ * FillExtrusionLayer is a style layer that renders one or more 3D extruded polygons on the map.
57
+ */
58
+ declare class FillExtrusionLayer extends AbstractLayer<Props, NativeTypeProps> {
59
+ static defaultProps: {
60
+ sourceID: any;
61
+ };
62
+ render(): JSX.Element;
63
+ }
64
+ export default FillExtrusionLayer;
65
+ //# sourceMappingURL=FillExtrusionLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FillExtrusionLayer.d.ts","sourceRoot":"","sources":["../../../javascript/components/FillExtrusionLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,kBAAkB,6BAA6B,CAAC;AAE7D,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,4BAA4B,CAAC;CACtC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/C,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,cAAM,kBAAmB,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IACpE,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAQP;AAKD,eAAe,kBAAkB,CAAC"}
@@ -1,94 +1,65 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { NativeModules, requireNativeComponent } from 'react-native';
4
-
5
- import { viewPropTypes } from '../utils';
6
- import { FillLayerStyleProp } from '../utils/styleMap';
7
-
2
+ import { FilterExpression, FillLayerStyleProps } from '../utils/MapboxStyles';
3
+ import { StyleValue } from '../utils/StyleValue';
8
4
  import AbstractLayer from './AbstractLayer';
9
-
10
- const MapboxGL = NativeModules.MGLModule;
11
-
12
- export const NATIVE_MODULE_NAME = 'RCTMGLFillLayer';
13
-
14
- /**
15
- * FillLayer is a style layer that renders one or more filled (and optionally stroked) polygons on the map.
16
- */
17
- class FillLayer extends AbstractLayer {
18
- static propTypes = {
19
- ...viewPropTypes,
20
-
5
+ export declare const NATIVE_MODULE_NAME = "RCTMGLFillLayer";
6
+ export declare type Props = {
21
7
  /**
22
8
  * A string that uniquely identifies the source in the style to which it is added.
23
9
  */
24
- id: PropTypes.string.isRequired,
25
-
10
+ id: string;
26
11
  /**
27
12
  * The source from which to obtain the data to style.
28
13
  * If the source has not yet been added to the current style, the behavior is undefined.
29
14
  * Inferred from parent source only if the layer is a direct child to it.
30
15
  */
31
- sourceID: PropTypes.string,
32
-
16
+ sourceID?: string;
33
17
  /**
34
18
  * Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
35
19
  */
36
- sourceLayerID: PropTypes.string,
37
-
20
+ sourceLayerID?: string;
38
21
  /**
39
22
  * Inserts a layer above aboveLayerID.
40
23
  */
41
- aboveLayerID: PropTypes.string,
42
-
24
+ aboveLayerID?: string;
43
25
  /**
44
26
  * Inserts a layer below belowLayerID
45
27
  */
46
- belowLayerID: PropTypes.string,
47
-
28
+ belowLayerID?: string;
48
29
  /**
49
30
  * Inserts a layer at a specified index
50
31
  */
51
- layerIndex: PropTypes.number,
52
-
32
+ layerIndex?: number;
53
33
  /**
54
34
  * Filter only the features in the source layer that satisfy a condition that you define
55
35
  */
56
- filter: PropTypes.array,
57
-
36
+ filter?: FilterExpression;
58
37
  /**
59
38
  * The minimum zoom level at which the layer gets parsed and appears.
60
39
  */
61
- minZoomLevel: PropTypes.number,
62
-
40
+ minZoomLevel?: number;
63
41
  /**
64
42
  * The maximum zoom level at which the layer gets parsed and appears.
65
43
  */
66
- maxZoomLevel: PropTypes.number,
67
-
44
+ maxZoomLevel?: number;
68
45
  /**
69
46
  * Customizable style attributes
70
47
  */
71
- style: PropTypes.oneOfType([
72
- FillLayerStyleProp,
73
- PropTypes.arrayOf(FillLayerStyleProp),
74
- ]),
75
- };
76
-
77
- static defaultProps = {
78
- sourceID: MapboxGL.StyleSource.DefaultSourceID,
79
- };
80
-
81
- render() {
82
- const props = {
83
- ...this.baseProps,
84
- sourceLayerID: this.props.sourceLayerID,
48
+ style?: FillLayerStyleProps;
49
+ } & React.ComponentProps<typeof AbstractLayer>;
50
+ declare type NativeTypeProps = Omit<Props, 'style'> & {
51
+ reactStyle?: {
52
+ [key: string]: StyleValue;
53
+ };
54
+ };
55
+ /**
56
+ * FillLayer is a style layer that renders one or more filled (and optionally stroked) polygons on the map.
57
+ */
58
+ declare class FillLayer extends AbstractLayer<Props, NativeTypeProps> {
59
+ static defaultProps: {
60
+ sourceID: any;
85
61
  };
86
- return <RCTMGLFillLayer ref={this.setNativeLayer} {...props} />;
87
- }
62
+ render(): JSX.Element;
88
63
  }
89
-
90
- const RCTMGLFillLayer = requireNativeComponent(NATIVE_MODULE_NAME, FillLayer, {
91
- nativeOnly: { reactStyle: true },
92
- });
93
-
94
64
  export default FillLayer;
65
+ //# sourceMappingURL=FillLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FillLayer.d.ts","sourceRoot":"","sources":["../../../javascript/components/FillLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/C,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,cAAM,SAAU,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IAC3D,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAOP;AAKD,eAAe,SAAS,CAAC"}
@@ -0,0 +1,66 @@
1
+ import React from 'react';
2
+ import { FilterExpression, HeatmapLayerStyleProps } from '../utils/MapboxStyles';
3
+ import { StyleValue } from '../utils/StyleValue';
4
+ import AbstractLayer from './AbstractLayer';
5
+ export declare const NATIVE_MODULE_NAME = "RCTMGLHeatmapLayer";
6
+ export declare type Props = {
7
+ /**
8
+ * A string that uniquely identifies the source in the style to which it is added.
9
+ */
10
+ id: string;
11
+ /**
12
+ * The source from which to obtain the data to style.
13
+ * If the source has not yet been added to the current style, the behavior is undefined.
14
+ * Inferred from parent source only if the layer is a direct child to it.
15
+ */
16
+ sourceID?: string;
17
+ /**
18
+ * Identifier of the layer within the source identified by the sourceID property
19
+ * from which the receiver obtains the data to style.
20
+ */
21
+ sourceLayerID?: string;
22
+ /**
23
+ * Inserts a layer above aboveLayerID.
24
+ */
25
+ aboveLayerID?: string;
26
+ /**
27
+ * Inserts a layer below belowLayerID
28
+ */
29
+ belowLayerID?: string;
30
+ /**
31
+ * Inserts a layer at a specified index
32
+ */
33
+ layerIndex?: number;
34
+ /**
35
+ * Filter only the features in the source layer that satisfy a condition that you define
36
+ */
37
+ filter?: FilterExpression;
38
+ /**
39
+ * The minimum zoom level at which the layer gets parsed and appears.
40
+ */
41
+ minZoomLevel?: number;
42
+ /**
43
+ * The maximum zoom level at which the layer gets parsed and appears.
44
+ */
45
+ maxZoomLevel?: number;
46
+ /**
47
+ * Customizable style attributes
48
+ */
49
+ style?: HeatmapLayerStyleProps;
50
+ } & React.ComponentProps<typeof AbstractLayer>;
51
+ declare type NativeTypeProps = Omit<Props, 'style'> & {
52
+ reactStyle?: {
53
+ [key: string]: StyleValue;
54
+ };
55
+ };
56
+ /**
57
+ * HeatmapLayer is a style layer that renders one or more filled circles on the map.
58
+ */
59
+ declare class HeatmapLayer extends AbstractLayer<Props, NativeTypeProps> {
60
+ static defaultProps: {
61
+ sourceID: any;
62
+ };
63
+ render(): JSX.Element;
64
+ }
65
+ export default HeatmapLayer;
66
+ //# sourceMappingURL=HeatmapLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeatmapLayer.d.ts","sourceRoot":"","sources":["../../../javascript/components/HeatmapLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/C,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,cAAM,YAAa,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IAC9D,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAQP;AAKD,eAAe,YAAY,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ export declare type Props = {
3
+ /**
4
+ * Android render mode.
5
+ *
6
+ * - normal: just a circle
7
+ * - compass: triangle with heading
8
+ * - gps: large arrow
9
+ *
10
+ * @platform android
11
+ */
12
+ androidRenderMode?: 'normal' | 'compass' | 'gps';
13
+ /**
14
+ * iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.
15
+ *
16
+ * @platform ios
17
+ */
18
+ iosShowsUserHeadingIndicator?: boolean;
19
+ };
20
+ declare const NativeUserLocation: React.MemoExoticComponent<(props: Props) => JSX.Element>;
21
+ export default NativeUserLocation;
22
+ //# sourceMappingURL=NativeUserLocation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../javascript/components/NativeUserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAKpC,oBAAY,KAAK,GAAG;IAClB;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IAEjD;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAKF,QAAA,MAAM,kBAAkB,oCAAgB,KAAK,iBAE3C,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import { FilterExpression, RasterLayerStyleProps } from '../utils/MapboxStyles';
3
+ import { StyleValue } from '../utils/StyleValue';
4
+ import AbstractLayer from './AbstractLayer';
5
+ export declare const NATIVE_MODULE_NAME = "RCTMGLRasterLayer";
6
+ export declare type Props = {
7
+ /**
8
+ * A string that uniquely identifies the source in the style to which it is added.
9
+ */
10
+ id: string;
11
+ /**
12
+ * The source from which to obtain the data to style.
13
+ * If the source has not yet been added to the current style, the behavior is undefined.
14
+ * Inferred from parent source only if the layer is a direct child to it.
15
+ */
16
+ sourceID?: string;
17
+ /**
18
+ * Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
19
+ */
20
+ sourceLayerID?: string;
21
+ /**
22
+ * Inserts a layer above aboveLayerID.
23
+ */
24
+ aboveLayerID?: string;
25
+ /**
26
+ * Inserts a layer below belowLayerID
27
+ */
28
+ belowLayerID?: string;
29
+ /**
30
+ * Inserts a layer at a specified index
31
+ */
32
+ layerIndex?: number;
33
+ /**
34
+ * Filter only the features in the source layer that satisfy a condition that you define
35
+ */
36
+ filter?: FilterExpression;
37
+ /**
38
+ * The minimum zoom level at which the layer gets parsed and appears.
39
+ */
40
+ minZoomLevel?: number;
41
+ /**
42
+ * The maximum zoom level at which the layer gets parsed and appears.
43
+ */
44
+ maxZoomLevel?: number;
45
+ /**
46
+ * Customizable style attributes
47
+ */
48
+ style: RasterLayerStyleProps;
49
+ } & React.ComponentProps<typeof AbstractLayer>;
50
+ declare type NativeTypeProps = Omit<Props, 'style'> & {
51
+ reactStyle?: {
52
+ [key: string]: StyleValue;
53
+ };
54
+ };
55
+ declare class RasterLayer extends AbstractLayer<Props, NativeTypeProps> {
56
+ static defaultProps: {
57
+ sourceID: any;
58
+ };
59
+ render(): JSX.Element;
60
+ }
61
+ export default RasterLayer;
62
+ //# sourceMappingURL=RasterLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RasterLayer.d.ts","sourceRoot":"","sources":["../../../javascript/components/RasterLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAEtD,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,qBAAqB,CAAC;CAC9B,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/C,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF,cAAM,WAAY,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IAC7D,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAOP;AAKD,eAAe,WAAW,CAAC"}
@@ -0,0 +1,52 @@
1
+ import React from 'react';
2
+ import { FilterExpression, SkyLayerStyleProps } from '../utils/MapboxStyles';
3
+ import { StyleValue } from '../utils/StyleValue';
4
+ import AbstractLayer from './AbstractLayer';
5
+ export declare const NATIVE_MODULE_NAME = "RCTMGLSkyLayer";
6
+ export declare type Props = {
7
+ /**
8
+ * A string that uniquely identifies the source in the style to which it is added.
9
+ */
10
+ id: string;
11
+ /**
12
+ * The source from which to obtain the data to style.
13
+ * If the source has not yet been added to the current style, the behavior is undefined.
14
+ */
15
+ sourceID?: string;
16
+ /**
17
+ * Inserts a layer above aboveLayerID.
18
+ */
19
+ aboveLayerID?: string;
20
+ /**
21
+ * Inserts a layer below belowLayerID
22
+ */
23
+ belowLayerID?: string;
24
+ /**
25
+ * Inserts a layer at a specified index
26
+ */
27
+ layerIndex?: number;
28
+ /**
29
+ * Filter only the features in the source layer that satisfy a condition that you define
30
+ */
31
+ filter?: FilterExpression;
32
+ /**
33
+ * Customizable style attributes
34
+ */
35
+ style?: SkyLayerStyleProps;
36
+ } & React.ComponentProps<typeof AbstractLayer>;
37
+ declare type NativeTypeProps = Omit<Props, 'style'> & {
38
+ reactStyle?: {
39
+ [key: string]: StyleValue;
40
+ };
41
+ };
42
+ /**
43
+ * SkyLayer is a spherical dome around the map that is always rendered behind all other layers
44
+ */
45
+ declare class SkyLayer extends AbstractLayer<Props, NativeTypeProps> {
46
+ static defaultProps: {
47
+ sourceID: any;
48
+ };
49
+ render(): JSX.Element;
50
+ }
51
+ export default SkyLayer;
52
+ //# sourceMappingURL=SkyLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkyLayer.d.ts","sourceRoot":"","sources":["../../../javascript/components/SkyLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AAEnD,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/C,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AACF;;GAEG;AACH,cAAM,QAAS,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IAC1D,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAGP;AAKD,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rnmapbox/maps",
3
3
  "description": "A Mapbox react native module for creating custom maps",
4
- "version": "10.0.0-beta.65",
4
+ "version": "10.0.0-beta.67",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -1,97 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { NativeModules, requireNativeComponent } from 'react-native';
4
-
5
- import { viewPropTypes } from '../utils';
6
- import { BackgroundLayerStyleProp } from '../utils/styleMap';
7
-
8
- import AbstractLayer from './AbstractLayer';
9
-
10
- const MapboxGL = NativeModules.MGLModule;
11
-
12
- export const NATIVE_MODULE_NAME = 'RCTMGLBackgroundLayer';
13
-
14
- class BackgroundLayer extends AbstractLayer {
15
- static propTypes = {
16
- ...viewPropTypes,
17
-
18
- /**
19
- * A string that uniquely identifies the source in the style to which it is added.
20
- */
21
- id: PropTypes.string.isRequired,
22
-
23
- /**
24
- * The source from which to obtain the data to style.
25
- * If the source has not yet been added to the current style, the behavior is undefined.
26
- * Inferred from parent source only if the layer is a direct child to it.
27
- */
28
- sourceID: PropTypes.string,
29
-
30
- /**
31
- * Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
32
- */
33
- sourceLayerID: PropTypes.string,
34
-
35
- /**
36
- * Inserts a layer above aboveLayerID.
37
- */
38
- aboveLayerID: PropTypes.string,
39
-
40
- /**
41
- * Inserts a layer below belowLayerID
42
- */
43
- belowLayerID: PropTypes.string,
44
-
45
- /**
46
- * Inserts a layer at a specified index
47
- */
48
- layerIndex: PropTypes.number,
49
-
50
- /**
51
- * Filter only the features in the source layer that satisfy a condition that you define
52
- */
53
- filter: PropTypes.array,
54
-
55
- /**
56
- * The minimum zoom level at which the layer gets parsed and appears.
57
- */
58
- minZoomLevel: PropTypes.number,
59
-
60
- /**
61
- * The maximum zoom level at which the layer gets parsed and appears.
62
- */
63
- maxZoomLevel: PropTypes.number,
64
-
65
- /**
66
- * Customizable style attributes
67
- */
68
- style: PropTypes.oneOfType([
69
- BackgroundLayerStyleProp,
70
- PropTypes.arrayOf(BackgroundLayerStyleProp),
71
- ]),
72
- };
73
-
74
- static defaultProps = {
75
- sourceID: MapboxGL.StyleSource.DefaultSourceID,
76
- };
77
-
78
- render() {
79
- return (
80
- <RCTMGLBackgroundLayer
81
- testID="rctmglBackgroundLayer"
82
- ref={this.setNativeLayer}
83
- {...this.baseProps}
84
- />
85
- );
86
- }
87
- }
88
-
89
- const RCTMGLBackgroundLayer = requireNativeComponent(
90
- NATIVE_MODULE_NAME,
91
- BackgroundLayer,
92
- {
93
- nativeOnly: { reactStyle: true },
94
- },
95
- );
96
-
97
- export default BackgroundLayer;
@@ -1,101 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { NativeModules, requireNativeComponent } from 'react-native';
4
-
5
- import { viewPropTypes } from '../utils';
6
- import { CircleLayerStyleProp } from '../utils/styleMap';
7
-
8
- import AbstractLayer from './AbstractLayer';
9
-
10
- const MapboxGL = NativeModules.MGLModule;
11
-
12
- export const NATIVE_MODULE_NAME = 'RCTMGLCircleLayer';
13
-
14
- /**
15
- * CircleLayer is a style layer that renders one or more filled circles on the map.
16
- */
17
- class CircleLayer extends AbstractLayer {
18
- static propTypes = {
19
- ...viewPropTypes,
20
-
21
- /**
22
- * A string that uniquely identifies the source in the style to which it is added.
23
- */
24
- id: PropTypes.string.isRequired,
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: PropTypes.string,
32
-
33
- /**
34
- * Identifier of the layer within the source identified by the sourceID property
35
- * from which the receiver obtains the data to style.
36
- */
37
- sourceLayerID: PropTypes.string,
38
-
39
- /**
40
- * Inserts a layer above aboveLayerID.
41
- */
42
- aboveLayerID: PropTypes.string,
43
-
44
- /**
45
- * Inserts a layer below belowLayerID
46
- */
47
- belowLayerID: PropTypes.string,
48
-
49
- /**
50
- * Inserts a layer at a specified index
51
- */
52
- layerIndex: PropTypes.number,
53
-
54
- /**
55
- * Filter only the features in the source layer that satisfy a condition that you define
56
- */
57
- filter: PropTypes.array,
58
-
59
- /**
60
- * The minimum zoom level at which the layer gets parsed and appears.
61
- */
62
- minZoomLevel: PropTypes.number,
63
-
64
- /**
65
- * The maximum zoom level at which the layer gets parsed and appears.
66
- */
67
- maxZoomLevel: PropTypes.number,
68
-
69
- /**
70
- * Customizable style attributes
71
- */
72
- style: PropTypes.oneOfType([
73
- CircleLayerStyleProp,
74
- PropTypes.arrayOf(CircleLayerStyleProp),
75
- ]),
76
- };
77
-
78
- static defaultProps = {
79
- sourceID: MapboxGL.StyleSource.DefaultSourceID,
80
- };
81
-
82
- render() {
83
- return (
84
- <RCTMGLCircleLayer
85
- testID="rctmglCircleLayer"
86
- ref={this.setNativeLayer}
87
- {...this.baseProps}
88
- />
89
- );
90
- }
91
- }
92
-
93
- const RCTMGLCircleLayer = requireNativeComponent(
94
- NATIVE_MODULE_NAME,
95
- CircleLayer,
96
- {
97
- nativeOnly: { reactStyle: true },
98
- },
99
- );
100
-
101
- export default CircleLayer;