@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.
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/camera/RCTMGLCamera.kt +1 -1
- package/index.d.ts +36 -166
- package/ios/RCTMGL-v10/RCTMGLLogging.swift +13 -0
- package/ios/RCTMGL-v10/RCTMGLMarkerView.swift +86 -55
- package/ios/RCTMGL-v10/RCTMGLOfflineModule.swift +138 -55
- package/javascript/components/BackgroundLayer.tsx +91 -0
- package/javascript/components/CircleLayer.tsx +97 -0
- package/javascript/components/FillExtrusionLayer.tsx +95 -0
- package/javascript/components/FillLayer.tsx +91 -0
- package/javascript/components/HeatmapLayer.tsx +96 -0
- package/javascript/components/NativeUserLocation.tsx +33 -0
- package/javascript/components/RasterLayer.tsx +88 -0
- package/javascript/components/SkyLayer.tsx +70 -0
- package/javascript/modules/location/locationManager.js +3 -1
- package/lib/commonjs/components/BackgroundLayer.js +6 -55
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
- package/lib/commonjs/components/CircleLayer.js +8 -58
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillExtrusionLayer.js +3 -55
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +2 -55
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +3 -56
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/NativeUserLocation.js +6 -31
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +1 -53
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/SkyLayer.js +2 -43
- package/lib/commonjs/components/SkyLayer.js.map +1 -1
- package/lib/commonjs/modules/location/locationManager.js +3 -1
- package/lib/commonjs/modules/location/locationManager.js.map +1 -1
- package/lib/module/components/BackgroundLayer.js +6 -55
- package/lib/module/components/BackgroundLayer.js.map +1 -1
- package/lib/module/components/CircleLayer.js +7 -57
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillExtrusionLayer.js +2 -54
- package/lib/module/components/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +1 -54
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +2 -55
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/NativeUserLocation.js +4 -30
- package/lib/module/components/NativeUserLocation.js.map +1 -1
- package/lib/module/components/RasterLayer.js +1 -53
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/SkyLayer.js +1 -42
- package/lib/module/components/SkyLayer.js.map +1 -1
- package/lib/module/modules/location/locationManager.js +3 -1
- package/lib/module/modules/location/locationManager.js.map +1 -1
- package/lib/typescript/components/BackgroundLayer.d.ts +62 -0
- package/lib/typescript/components/BackgroundLayer.d.ts.map +1 -0
- package/lib/typescript/components/CircleLayer.d.ts +66 -0
- package/lib/typescript/components/CircleLayer.d.ts.map +1 -0
- package/lib/typescript/components/FillExtrusionLayer.d.ts +65 -0
- package/lib/typescript/components/FillExtrusionLayer.d.ts.map +1 -0
- package/{javascript/components/FillLayer.js → lib/typescript/components/FillLayer.d.ts} +28 -57
- package/lib/typescript/components/FillLayer.d.ts.map +1 -0
- package/lib/typescript/components/HeatmapLayer.d.ts +66 -0
- package/lib/typescript/components/HeatmapLayer.d.ts.map +1 -0
- package/lib/typescript/components/NativeUserLocation.d.ts +22 -0
- package/lib/typescript/components/NativeUserLocation.d.ts.map +1 -0
- package/lib/typescript/components/RasterLayer.d.ts +62 -0
- package/lib/typescript/components/RasterLayer.d.ts.map +1 -0
- package/lib/typescript/components/SkyLayer.d.ts +52 -0
- package/lib/typescript/components/SkyLayer.d.ts.map +1 -0
- package/package.json +1 -1
- package/javascript/components/BackgroundLayer.js +0 -97
- package/javascript/components/CircleLayer.js +0 -101
- package/javascript/components/FillExtrusionLayer.js +0 -98
- package/javascript/components/HeatmapLayer.js +0 -99
- package/javascript/components/NativeUserLocation.js +0 -41
- package/javascript/components/RasterLayer.js +0 -95
- package/javascript/components/SkyLayer.js +0 -80
|
@@ -3,20 +3,17 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
4
4
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
6
|
import { NativeModules, requireNativeComponent } from 'react-native';
|
|
8
|
-
import { viewPropTypes } from '../utils';
|
|
9
|
-
import { FillExtrusionLayerStyleProp } from '../utils/styleMap';
|
|
10
7
|
import AbstractLayer from './AbstractLayer';
|
|
11
8
|
const MapboxGL = NativeModules.MGLModule;
|
|
12
9
|
export const NATIVE_MODULE_NAME = 'RCTMGLFillExtrusionLayer';
|
|
13
|
-
|
|
14
10
|
/**
|
|
15
11
|
* FillExtrusionLayer is a style layer that renders one or more 3D extruded polygons on the map.
|
|
16
12
|
*/
|
|
17
13
|
class FillExtrusionLayer extends AbstractLayer {
|
|
18
14
|
render() {
|
|
19
15
|
const props = {
|
|
16
|
+
...this.props,
|
|
20
17
|
...this.baseProps,
|
|
21
18
|
sourceLayerID: this.props.sourceLayerID
|
|
22
19
|
};
|
|
@@ -25,58 +22,9 @@ class FillExtrusionLayer extends AbstractLayer {
|
|
|
25
22
|
}, props));
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
|
-
_defineProperty(FillExtrusionLayer, "propTypes", {
|
|
29
|
-
...viewPropTypes,
|
|
30
|
-
/**
|
|
31
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
32
|
-
*/
|
|
33
|
-
id: PropTypes.string.isRequired,
|
|
34
|
-
/**
|
|
35
|
-
* The source from which to obtain the data to style.
|
|
36
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
37
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
38
|
-
*/
|
|
39
|
-
sourceID: PropTypes.string,
|
|
40
|
-
/**
|
|
41
|
-
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
42
|
-
*/
|
|
43
|
-
sourceLayerID: PropTypes.string,
|
|
44
|
-
/**
|
|
45
|
-
* Inserts a layer above aboveLayerID.
|
|
46
|
-
*/
|
|
47
|
-
aboveLayerID: PropTypes.string,
|
|
48
|
-
/**
|
|
49
|
-
* Inserts a layer below belowLayerID
|
|
50
|
-
*/
|
|
51
|
-
belowLayerID: PropTypes.string,
|
|
52
|
-
/**
|
|
53
|
-
* Inserts a layer at a specified index
|
|
54
|
-
*/
|
|
55
|
-
layerIndex: PropTypes.number,
|
|
56
|
-
/**
|
|
57
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
58
|
-
*/
|
|
59
|
-
filter: PropTypes.array,
|
|
60
|
-
/**
|
|
61
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
62
|
-
*/
|
|
63
|
-
minZoomLevel: PropTypes.number,
|
|
64
|
-
/**
|
|
65
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
66
|
-
*/
|
|
67
|
-
maxZoomLevel: PropTypes.number,
|
|
68
|
-
/**
|
|
69
|
-
* Customizable style attributes
|
|
70
|
-
*/
|
|
71
|
-
style: PropTypes.oneOfType([FillExtrusionLayerStyleProp, PropTypes.arrayOf(FillExtrusionLayerStyleProp)])
|
|
72
|
-
});
|
|
73
25
|
_defineProperty(FillExtrusionLayer, "defaultProps", {
|
|
74
26
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
75
27
|
});
|
|
76
|
-
const RCTMGLFillExtrusionLayer = requireNativeComponent(NATIVE_MODULE_NAME
|
|
77
|
-
nativeOnly: {
|
|
78
|
-
reactStyle: true
|
|
79
|
-
}
|
|
80
|
-
});
|
|
28
|
+
const RCTMGLFillExtrusionLayer = requireNativeComponent(NATIVE_MODULE_NAME);
|
|
81
29
|
export default FillExtrusionLayer;
|
|
82
30
|
//# sourceMappingURL=FillExtrusionLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","NativeModules","requireNativeComponent","AbstractLayer","MapboxGL","MGLModule","NATIVE_MODULE_NAME","FillExtrusionLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLFillExtrusionLayer"],"sourceRoot":"../../javascript","sources":["FillExtrusionLayer.tsx"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,sBAAsB,QAAQ,cAAc;AAQpE,OAAOC,aAAa,MAAM,iBAAiB;AAE3C,MAAMC,QAAQ,GAAGH,aAAa,CAACI,SAAS;AAExC,OAAO,MAAMC,kBAAkB,GAAG,0BAA0B;AA4D5D;AACA;AACA;AACA,MAAMC,kBAAkB,SAASJ,aAAa,CAAyB;EAKrEK,MAAM,GAAG;IACP,MAAMC,KAAK,GAAG;MACZ,GAAG,IAAI,CAACA,KAAK;MACb,GAAG,IAAI,CAACC,SAAS;MACjBC,aAAa,EAAE,IAAI,CAACF,KAAK,CAACE;IAC5B,CAAC;IACD,oBAAO,oBAAC,wBAAwB;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EAC1E;AACF;AAAC,gBAbKF,kBAAkB,kBACA;EACpBM,QAAQ,EAAET,QAAQ,CAACU,WAAW,CAACC;AACjC,CAAC;AAYH,MAAMC,wBAAwB,GAC5Bd,sBAAsB,CAAkBI,kBAAkB,CAAC;AAE7D,eAAeC,kBAAkB"}
|
|
@@ -3,14 +3,10 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
4
4
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
6
|
import { NativeModules, requireNativeComponent } from 'react-native';
|
|
8
|
-
import { viewPropTypes } from '../utils';
|
|
9
|
-
import { FillLayerStyleProp } from '../utils/styleMap';
|
|
10
7
|
import AbstractLayer from './AbstractLayer';
|
|
11
8
|
const MapboxGL = NativeModules.MGLModule;
|
|
12
9
|
export const NATIVE_MODULE_NAME = 'RCTMGLFillLayer';
|
|
13
|
-
|
|
14
10
|
/**
|
|
15
11
|
* FillLayer is a style layer that renders one or more filled (and optionally stroked) polygons on the map.
|
|
16
12
|
*/
|
|
@@ -25,58 +21,9 @@ class FillLayer extends AbstractLayer {
|
|
|
25
21
|
}, props));
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
|
-
_defineProperty(FillLayer, "propTypes", {
|
|
29
|
-
...viewPropTypes,
|
|
30
|
-
/**
|
|
31
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
32
|
-
*/
|
|
33
|
-
id: PropTypes.string.isRequired,
|
|
34
|
-
/**
|
|
35
|
-
* The source from which to obtain the data to style.
|
|
36
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
37
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
38
|
-
*/
|
|
39
|
-
sourceID: PropTypes.string,
|
|
40
|
-
/**
|
|
41
|
-
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
42
|
-
*/
|
|
43
|
-
sourceLayerID: PropTypes.string,
|
|
44
|
-
/**
|
|
45
|
-
* Inserts a layer above aboveLayerID.
|
|
46
|
-
*/
|
|
47
|
-
aboveLayerID: PropTypes.string,
|
|
48
|
-
/**
|
|
49
|
-
* Inserts a layer below belowLayerID
|
|
50
|
-
*/
|
|
51
|
-
belowLayerID: PropTypes.string,
|
|
52
|
-
/**
|
|
53
|
-
* Inserts a layer at a specified index
|
|
54
|
-
*/
|
|
55
|
-
layerIndex: PropTypes.number,
|
|
56
|
-
/**
|
|
57
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
58
|
-
*/
|
|
59
|
-
filter: PropTypes.array,
|
|
60
|
-
/**
|
|
61
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
62
|
-
*/
|
|
63
|
-
minZoomLevel: PropTypes.number,
|
|
64
|
-
/**
|
|
65
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
66
|
-
*/
|
|
67
|
-
maxZoomLevel: PropTypes.number,
|
|
68
|
-
/**
|
|
69
|
-
* Customizable style attributes
|
|
70
|
-
*/
|
|
71
|
-
style: PropTypes.oneOfType([FillLayerStyleProp, PropTypes.arrayOf(FillLayerStyleProp)])
|
|
72
|
-
});
|
|
73
24
|
_defineProperty(FillLayer, "defaultProps", {
|
|
74
25
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
75
26
|
});
|
|
76
|
-
const RCTMGLFillLayer = requireNativeComponent(NATIVE_MODULE_NAME
|
|
77
|
-
nativeOnly: {
|
|
78
|
-
reactStyle: true
|
|
79
|
-
}
|
|
80
|
-
});
|
|
27
|
+
const RCTMGLFillLayer = requireNativeComponent(NATIVE_MODULE_NAME);
|
|
81
28
|
export default FillLayer;
|
|
82
29
|
//# sourceMappingURL=FillLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","NativeModules","requireNativeComponent","AbstractLayer","MapboxGL","MGLModule","NATIVE_MODULE_NAME","FillLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLFillLayer"],"sourceRoot":"../../javascript","sources":["FillLayer.tsx"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,sBAAsB,QAAQ,cAAc;AAKpE,OAAOC,aAAa,MAAM,iBAAiB;AAE3C,MAAMC,QAAQ,GAAGH,aAAa,CAACI,SAAS;AAExC,OAAO,MAAMC,kBAAkB,GAAG,iBAAiB;AA4DnD;AACA;AACA;AACA,MAAMC,SAAS,SAASJ,aAAa,CAAyB;EAK5DK,MAAM,GAAG;IACP,MAAMC,KAAK,GAAG;MACZ,GAAG,IAAI,CAACC,SAAS;MACjBC,aAAa,EAAE,IAAI,CAACF,KAAK,CAACE;IAC5B,CAAC;IACD,oBAAO,oBAAC,eAAe;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EACjE;AACF;AAAC,gBAZKF,SAAS,kBACS;EACpBM,QAAQ,EAAET,QAAQ,CAACU,WAAW,CAACC;AACjC,CAAC;AAWH,MAAMC,eAAe,GACnBd,sBAAsB,CAAkBI,kBAAkB,CAAC;AAE7D,eAAeC,SAAS"}
|
|
@@ -3,20 +3,17 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
4
4
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
6
|
import { NativeModules, requireNativeComponent } from 'react-native';
|
|
8
|
-
import { viewPropTypes } from '../utils';
|
|
9
|
-
import { HeatmapLayerStyleProp } from '../utils/styleMap';
|
|
10
7
|
import AbstractLayer from './AbstractLayer';
|
|
11
8
|
const MapboxGL = NativeModules.MGLModule;
|
|
12
9
|
export const NATIVE_MODULE_NAME = 'RCTMGLHeatmapLayer';
|
|
13
|
-
|
|
14
10
|
/**
|
|
15
11
|
* HeatmapLayer is a style layer that renders one or more filled circles on the map.
|
|
16
12
|
*/
|
|
17
13
|
class HeatmapLayer extends AbstractLayer {
|
|
18
14
|
render() {
|
|
19
15
|
const props = {
|
|
16
|
+
...this.props,
|
|
20
17
|
...this.baseProps,
|
|
21
18
|
sourceLayerID: this.props.sourceLayerID
|
|
22
19
|
};
|
|
@@ -25,59 +22,9 @@ class HeatmapLayer extends AbstractLayer {
|
|
|
25
22
|
}, props));
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
|
-
_defineProperty(HeatmapLayer, "propTypes", {
|
|
29
|
-
...viewPropTypes,
|
|
30
|
-
/**
|
|
31
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
32
|
-
*/
|
|
33
|
-
id: PropTypes.string.isRequired,
|
|
34
|
-
/**
|
|
35
|
-
* The source from which to obtain the data to style.
|
|
36
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
37
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
38
|
-
*/
|
|
39
|
-
sourceID: PropTypes.string,
|
|
40
|
-
/**
|
|
41
|
-
* Identifier of the layer within the source identified by the sourceID property
|
|
42
|
-
* from which the receiver obtains the data to style.
|
|
43
|
-
*/
|
|
44
|
-
sourceLayerID: PropTypes.string,
|
|
45
|
-
/**
|
|
46
|
-
* Inserts a layer above aboveLayerID.
|
|
47
|
-
*/
|
|
48
|
-
aboveLayerID: PropTypes.string,
|
|
49
|
-
/**
|
|
50
|
-
* Inserts a layer below belowLayerID
|
|
51
|
-
*/
|
|
52
|
-
belowLayerID: PropTypes.string,
|
|
53
|
-
/**
|
|
54
|
-
* Inserts a layer at a specified index
|
|
55
|
-
*/
|
|
56
|
-
layerIndex: PropTypes.number,
|
|
57
|
-
/**
|
|
58
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
59
|
-
*/
|
|
60
|
-
filter: PropTypes.array,
|
|
61
|
-
/**
|
|
62
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
63
|
-
*/
|
|
64
|
-
minZoomLevel: PropTypes.number,
|
|
65
|
-
/**
|
|
66
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
67
|
-
*/
|
|
68
|
-
maxZoomLevel: PropTypes.number,
|
|
69
|
-
/**
|
|
70
|
-
* Customizable style attributes
|
|
71
|
-
*/
|
|
72
|
-
style: PropTypes.oneOfType([HeatmapLayerStyleProp, PropTypes.arrayOf(HeatmapLayerStyleProp)])
|
|
73
|
-
});
|
|
74
25
|
_defineProperty(HeatmapLayer, "defaultProps", {
|
|
75
26
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
76
27
|
});
|
|
77
|
-
const RCTMGLHeatmapLayer = requireNativeComponent(NATIVE_MODULE_NAME
|
|
78
|
-
nativeOnly: {
|
|
79
|
-
reactStyle: true
|
|
80
|
-
}
|
|
81
|
-
});
|
|
28
|
+
const RCTMGLHeatmapLayer = requireNativeComponent(NATIVE_MODULE_NAME);
|
|
82
29
|
export default HeatmapLayer;
|
|
83
30
|
//# sourceMappingURL=HeatmapLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","NativeModules","requireNativeComponent","AbstractLayer","MapboxGL","MGLModule","NATIVE_MODULE_NAME","HeatmapLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLHeatmapLayer"],"sourceRoot":"../../javascript","sources":["HeatmapLayer.tsx"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,sBAAsB,QAAQ,cAAc;AAQpE,OAAOC,aAAa,MAAM,iBAAiB;AAE3C,MAAMC,QAAQ,GAAGH,aAAa,CAACI,SAAS;AAExC,OAAO,MAAMC,kBAAkB,GAAG,oBAAoB;AA6DtD;AACA;AACA;AACA,MAAMC,YAAY,SAASJ,aAAa,CAAyB;EAK/DK,MAAM,GAAG;IACP,MAAMC,KAAK,GAAG;MACZ,GAAG,IAAI,CAACA,KAAK;MACb,GAAG,IAAI,CAACC,SAAS;MACjBC,aAAa,EAAE,IAAI,CAACF,KAAK,CAACE;IAC5B,CAAC;IACD,oBAAO,oBAAC,kBAAkB;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EACpE;AACF;AAAC,gBAbKF,YAAY,kBACM;EACpBM,QAAQ,EAAET,QAAQ,CAACU,WAAW,CAACC;AACjC,CAAC;AAYH,MAAMC,kBAAkB,GACtBd,sBAAsB,CAAkBI,kBAAkB,CAAC;AAE7D,eAAeC,YAAY"}
|
|
@@ -1,35 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
-
import React from 'react';
|
|
1
|
+
import React, { memo } from 'react';
|
|
5
2
|
import { requireNativeComponent } from 'react-native';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
3
|
const NATIVE_MODULE_NAME = 'RCTMGLNativeUserLocation';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
_defineProperty(NativeUserLocation, "propTypes", {
|
|
14
|
-
/**
|
|
15
|
-
* Android render mode.
|
|
16
|
-
*
|
|
17
|
-
* - normal: just a circle
|
|
18
|
-
* - compass: triangle with heading
|
|
19
|
-
* - gps: large arrow
|
|
20
|
-
*
|
|
21
|
-
* @platform android
|
|
22
|
-
*/
|
|
23
|
-
androidRenderMode: PropTypes.oneOf(['normal', 'compass', 'gps']),
|
|
24
|
-
/**
|
|
25
|
-
* iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.
|
|
26
|
-
*
|
|
27
|
-
* @platform ios
|
|
28
|
-
*/
|
|
29
|
-
iosShowsUserHeadingIndicator: PropTypes.bool
|
|
30
|
-
});
|
|
31
|
-
const RCTMGLNativeUserLocation = requireNativeComponent(NATIVE_MODULE_NAME, NativeUserLocation, {
|
|
32
|
-
nativeOnly: {}
|
|
4
|
+
const RCTMGLNativeUserLocation = requireNativeComponent(NATIVE_MODULE_NAME);
|
|
5
|
+
const NativeUserLocation = /*#__PURE__*/memo(props => {
|
|
6
|
+
return /*#__PURE__*/React.createElement(RCTMGLNativeUserLocation, props);
|
|
33
7
|
});
|
|
34
8
|
export default NativeUserLocation;
|
|
35
9
|
//# sourceMappingURL=NativeUserLocation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","memo","requireNativeComponent","NATIVE_MODULE_NAME","RCTMGLNativeUserLocation","NativeUserLocation","props"],"sourceRoot":"../../javascript","sources":["NativeUserLocation.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAAwBC,sBAAsB,QAAQ,cAAc;AAEpE,MAAMC,kBAAkB,GAAG,0BAA0B;AAsBrD,MAAMC,wBAA8C,GAClDF,sBAAsB,CAACC,kBAAkB,CAAC;AAE5C,MAAME,kBAAkB,gBAAGJ,IAAI,CAAEK,KAAY,IAAK;EAChD,oBAAO,oBAAC,wBAAwB,EAAKA,KAAK,CAAI;AAChD,CAAC,CAAC;AAEF,eAAeD,kBAAkB"}
|
|
@@ -3,10 +3,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
4
4
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
6
|
import { NativeModules, requireNativeComponent } from 'react-native';
|
|
8
|
-
import { viewPropTypes } from '../utils';
|
|
9
|
-
import { RasterLayerStyleProp } from '../utils/styleMap';
|
|
10
7
|
import AbstractLayer from './AbstractLayer';
|
|
11
8
|
const MapboxGL = NativeModules.MGLModule;
|
|
12
9
|
export const NATIVE_MODULE_NAME = 'RCTMGLRasterLayer';
|
|
@@ -21,58 +18,9 @@ class RasterLayer extends AbstractLayer {
|
|
|
21
18
|
}, props));
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
|
-
_defineProperty(RasterLayer, "propTypes", {
|
|
25
|
-
...viewPropTypes,
|
|
26
|
-
/**
|
|
27
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
28
|
-
*/
|
|
29
|
-
id: PropTypes.string.isRequired,
|
|
30
|
-
/**
|
|
31
|
-
* The source from which to obtain the data to style.
|
|
32
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
33
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
34
|
-
*/
|
|
35
|
-
sourceID: PropTypes.string,
|
|
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: PropTypes.string,
|
|
40
|
-
/**
|
|
41
|
-
* Inserts a layer above aboveLayerID.
|
|
42
|
-
*/
|
|
43
|
-
aboveLayerID: PropTypes.string,
|
|
44
|
-
/**
|
|
45
|
-
* Inserts a layer below belowLayerID
|
|
46
|
-
*/
|
|
47
|
-
belowLayerID: PropTypes.string,
|
|
48
|
-
/**
|
|
49
|
-
* Inserts a layer at a specified index
|
|
50
|
-
*/
|
|
51
|
-
layerIndex: PropTypes.number,
|
|
52
|
-
/**
|
|
53
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
54
|
-
*/
|
|
55
|
-
filter: PropTypes.array,
|
|
56
|
-
/**
|
|
57
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
58
|
-
*/
|
|
59
|
-
minZoomLevel: PropTypes.number,
|
|
60
|
-
/**
|
|
61
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
62
|
-
*/
|
|
63
|
-
maxZoomLevel: PropTypes.number,
|
|
64
|
-
/**
|
|
65
|
-
* Customizable style attributes
|
|
66
|
-
*/
|
|
67
|
-
style: PropTypes.oneOfType([RasterLayerStyleProp, PropTypes.arrayOf(RasterLayerStyleProp)])
|
|
68
|
-
});
|
|
69
21
|
_defineProperty(RasterLayer, "defaultProps", {
|
|
70
22
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
71
23
|
});
|
|
72
|
-
const RCTMGLRasterLayer = requireNativeComponent(NATIVE_MODULE_NAME
|
|
73
|
-
nativeOnly: {
|
|
74
|
-
reactStyle: true
|
|
75
|
-
}
|
|
76
|
-
});
|
|
24
|
+
const RCTMGLRasterLayer = requireNativeComponent(NATIVE_MODULE_NAME);
|
|
77
25
|
export default RasterLayer;
|
|
78
26
|
//# sourceMappingURL=RasterLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","NativeModules","requireNativeComponent","AbstractLayer","MapboxGL","MGLModule","NATIVE_MODULE_NAME","RasterLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLRasterLayer"],"sourceRoot":"../../javascript","sources":["RasterLayer.tsx"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,sBAAsB,QAAQ,cAAc;AAKpE,OAAOC,aAAa,MAAM,iBAAiB;AAE3C,MAAMC,QAAQ,GAAGH,aAAa,CAACI,SAAS;AAExC,OAAO,MAAMC,kBAAkB,GAAG,mBAAmB;AA4DrD,MAAMC,WAAW,SAASJ,aAAa,CAAyB;EAK9DK,MAAM,GAAG;IACP,MAAMC,KAAK,GAAG;MACZ,GAAG,IAAI,CAACC,SAAS;MACjBC,aAAa,EAAE,IAAI,CAACF,KAAK,CAACE;IAC5B,CAAC;IACD,oBAAO,oBAAC,iBAAiB;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EACnE;AACF;AAAC,gBAZKF,WAAW,kBACO;EACpBM,QAAQ,EAAET,QAAQ,CAACU,WAAW,CAACC;AACjC,CAAC;AAWH,MAAMC,iBAAiB,GACrBd,sBAAsB,CAAkBI,kBAAkB,CAAC;AAE7D,eAAeC,WAAW"}
|
|
@@ -3,64 +3,23 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
4
4
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
6
|
import { NativeModules, requireNativeComponent } from 'react-native';
|
|
8
|
-
import { viewPropTypes } from '../utils';
|
|
9
|
-
import { SkyLayerStyleProp } from '../utils/styleMap';
|
|
10
7
|
import AbstractLayer from './AbstractLayer';
|
|
11
8
|
const MapboxGL = NativeModules.MGLModule;
|
|
12
9
|
export const NATIVE_MODULE_NAME = 'RCTMGLSkyLayer';
|
|
13
|
-
|
|
14
10
|
/**
|
|
15
11
|
* SkyLayer is a spherical dome around the map that is always rendered behind all other layers
|
|
16
12
|
*/
|
|
17
13
|
class SkyLayer extends AbstractLayer {
|
|
18
14
|
render() {
|
|
19
15
|
return /*#__PURE__*/React.createElement(RCTMGLSkyLayer, _extends({
|
|
20
|
-
testID: "rctmglSkyLayer",
|
|
21
16
|
ref: this.setNativeLayer
|
|
22
17
|
}, this.baseProps));
|
|
23
18
|
}
|
|
24
19
|
}
|
|
25
|
-
_defineProperty(SkyLayer, "propTypes", {
|
|
26
|
-
...viewPropTypes,
|
|
27
|
-
/**
|
|
28
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
29
|
-
*/
|
|
30
|
-
id: PropTypes.string.isRequired,
|
|
31
|
-
/**
|
|
32
|
-
* The source from which to obtain the data to style.
|
|
33
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
34
|
-
*/
|
|
35
|
-
sourceID: PropTypes.string,
|
|
36
|
-
/**
|
|
37
|
-
* Inserts a layer above aboveLayerID.
|
|
38
|
-
*/
|
|
39
|
-
aboveLayerID: PropTypes.string,
|
|
40
|
-
/**
|
|
41
|
-
* Inserts a layer below belowLayerID
|
|
42
|
-
*/
|
|
43
|
-
belowLayerID: PropTypes.string,
|
|
44
|
-
/**
|
|
45
|
-
* Inserts a layer at a specified index
|
|
46
|
-
*/
|
|
47
|
-
layerIndex: PropTypes.number,
|
|
48
|
-
/**
|
|
49
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
50
|
-
*/
|
|
51
|
-
filter: PropTypes.array,
|
|
52
|
-
/**
|
|
53
|
-
* Customizable style attributes
|
|
54
|
-
*/
|
|
55
|
-
style: PropTypes.oneOfType([SkyLayerStyleProp, PropTypes.arrayOf(SkyLayerStyleProp)])
|
|
56
|
-
});
|
|
57
20
|
_defineProperty(SkyLayer, "defaultProps", {
|
|
58
21
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
59
22
|
});
|
|
60
|
-
const RCTMGLSkyLayer = requireNativeComponent(NATIVE_MODULE_NAME
|
|
61
|
-
nativeOnly: {
|
|
62
|
-
reactStyle: true
|
|
63
|
-
}
|
|
64
|
-
});
|
|
23
|
+
const RCTMGLSkyLayer = requireNativeComponent(NATIVE_MODULE_NAME);
|
|
65
24
|
export default SkyLayer;
|
|
66
25
|
//# sourceMappingURL=SkyLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","NativeModules","requireNativeComponent","AbstractLayer","MapboxGL","MGLModule","NATIVE_MODULE_NAME","SkyLayer","render","setNativeLayer","baseProps","sourceID","StyleSource","DefaultSourceID","RCTMGLSkyLayer"],"sourceRoot":"../../javascript","sources":["SkyLayer.tsx"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,sBAAsB,QAAQ,cAAc;AAKpE,OAAOC,aAAa,MAAM,iBAAiB;AAE3C,MAAMC,QAAQ,GAAGH,aAAa,CAACI,SAAS;AAExC,OAAO,MAAMC,kBAAkB,GAAG,gBAAgB;AA2ClD;AACA;AACA;AACA,MAAMC,QAAQ,SAASJ,aAAa,CAAyB;EAK3DK,MAAM,GAAG;IACP,oBAAO,oBAAC,cAAc;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAK,IAAI,CAACC,SAAS,EAAI;EACzE;AACF;AAAC,gBARKH,QAAQ,kBACU;EACpBI,QAAQ,EAAEP,QAAQ,CAACQ,WAAW,CAACC;AACjC,CAAC;AAOH,MAAMC,cAAc,GAClBZ,sBAAsB,CAAkBI,kBAAkB,CAAC;AAE7D,eAAeC,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","NativeEventEmitter","AppState","MapboxGL","MGLModule","MapboxGLLocationManager","MGLLocationModule","LocationModuleEventEmitter","LocationManager","constructor","_listeners","_lastKnownLocation","_isListening","_requestsAlwaysUse","onUpdate","bind","subscription","_appStateListener","addEventListener","_handleAppStateChange","getLastKnownLocation","lastKnownLocation","error","console","warn","addListener","listener","start","includes","push","removeListener","filter","l","length","stop","removeAllListeners","appState","displacement","undefined","_minDisplacement","LocationCallbackName","Update","remove","setMinDisplacement","minDisplacement","setRequestsAlwaysUse","requestsAlwaysUse","location","forEach"],"sourceRoot":"../../javascript","sources":["locationManager.js"],"mappings":"AAAA,SAASA,aAAa,EAAEC,kBAAkB,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,MAAMC,QAAQ,GAAGH,aAAa,CAACI,SAAS;AACxC,MAAMC,uBAAuB,GAAGL,aAAa,CAACM,iBAAiB;AAE/D,OAAO,MAAMC,0BAA0B,GAAG,IAAIN,kBAAkB,CAC9DI,uBAAuB,CACxB;AAED,MAAMG,eAAe,CAAC;EACpBC,WAAW,GAAG;IACZ,IAAI,CAACC,UAAU,GAAG,EAAE;IACpB,IAAI,CAACC,kBAAkB,GAAG,IAAI;IAC9B,IAAI,CAACC,YAAY,GAAG,KAAK;IACzB,IAAI,CAACC,kBAAkB,GAAG,KAAK;IAC/B,IAAI,CAACC,QAAQ,GAAG,IAAI,CAACA,QAAQ,CAACC,IAAI,CAAC,IAAI,CAAC;IACxC,IAAI,CAACC,YAAY,GAAG,IAAI;IAExB,IAAI,CAACC,iBAAiB,GAAGf,QAAQ,CAACgB,gBAAgB,CAChD,QAAQ,EACR,IAAI,CAACC,qBAAqB,CAACJ,IAAI,CAAC,IAAI,CAAC,CACtC;EACH;EAEA,MAAMK,oBAAoB,GAAG;IAC3B,IAAI,CAAC,IAAI,CAACT,kBAAkB,EAAE;MAC5B,IAAIU,iBAAiB;;MAErB;MACA;MACA;MACA;MACA,IAAI;QACFA,iBAAiB,GACf,MAAMhB,uBAAuB,CAACe,oBAAoB,EAAE;MACxD,CAAC,CAAC,OAAOE,KAAK,EAAE;QACdC,OAAO,CAACC,IAAI,CAAC,yBAAyB,EAAEF,KAAK,CAAC;MAChD;MAEA,IAAI,CAAC,IAAI,CAACX,kBAAkB,IAAIU,iBAAiB,EAAE;QACjD,IAAI,CAACV,kBAAkB,GAAGU,iBAAiB;MAC7C;IACF;IAEA,OAAO,IAAI,CAACV,kBAAkB;EAChC;EAEAc,WAAW,CAACC,QAAQ,EAAE;IACpB,IAAI,CAAC,IAAI,CAACd,YAAY,EAAE;MACtB,IAAI,CAACe,KAAK,EAAE;IACd;IACA,IAAI,CAAC,IAAI,CAACjB,UAAU,CAACkB,QAAQ,CAACF,QAAQ,CAAC,EAAE;MACvC,IAAI,CAAChB,UAAU,CAACmB,IAAI,CAACH,QAAQ,CAAC;MAE9B,IAAI,IAAI,CAACf,kBAAkB,EAAE;QAC3Be,QAAQ,CAAC,IAAI,CAACf,kBAAkB,CAAC;MACnC;IACF;EACF;EAEAmB,cAAc,CAACJ,QAAQ,EAAE;IACvB,IAAI,CAAChB,UAAU,GAAG,IAAI,CAACA,UAAU,CAACqB,MAAM,CAAEC,CAAC,IAAKA,CAAC,KAAKN,QAAQ,CAAC;IAC/D,IAAI,IAAI,CAAChB,UAAU,CAACuB,MAAM,KAAK,CAAC,EAAE;MAChC,IAAI,CAACC,IAAI,EAAE;IACb;EACF;EAEAC,kBAAkB,GAAG;IACnB,IAAI,CAACzB,UAAU,GAAG,EAAE;IACpB,IAAI,CAACwB,IAAI,EAAE;EACb;EAEAf,qBAAqB,CAACiB,QAAQ,EAAE;IAC9B,IAAI,CAAC,IAAI,CAACvB,kBAAkB,EAAE;MAC5B,IAAIuB,QAAQ,KAAK,YAAY,EAAE;QAC7B,IAAI,CAACF,IAAI,EAAE;MACb,CAAC,MAAM,IAAIE,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,
|
|
1
|
+
{"version":3,"names":["NativeModules","NativeEventEmitter","AppState","MapboxGL","MGLModule","MapboxGLLocationManager","MGLLocationModule","LocationModuleEventEmitter","LocationManager","constructor","_listeners","_lastKnownLocation","_isListening","_requestsAlwaysUse","onUpdate","bind","subscription","_appStateListener","addEventListener","_handleAppStateChange","getLastKnownLocation","lastKnownLocation","error","console","warn","addListener","listener","start","includes","push","removeListener","filter","l","length","stop","removeAllListeners","appState","displacement","undefined","_minDisplacement","LocationCallbackName","Update","remove","setMinDisplacement","minDisplacement","setRequestsAlwaysUse","requestsAlwaysUse","location","forEach"],"sourceRoot":"../../javascript","sources":["locationManager.js"],"mappings":"AAAA,SAASA,aAAa,EAAEC,kBAAkB,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,MAAMC,QAAQ,GAAGH,aAAa,CAACI,SAAS;AACxC,MAAMC,uBAAuB,GAAGL,aAAa,CAACM,iBAAiB;AAE/D,OAAO,MAAMC,0BAA0B,GAAG,IAAIN,kBAAkB,CAC9DI,uBAAuB,CACxB;AAED,MAAMG,eAAe,CAAC;EACpBC,WAAW,GAAG;IACZ,IAAI,CAACC,UAAU,GAAG,EAAE;IACpB,IAAI,CAACC,kBAAkB,GAAG,IAAI;IAC9B,IAAI,CAACC,YAAY,GAAG,KAAK;IACzB,IAAI,CAACC,kBAAkB,GAAG,KAAK;IAC/B,IAAI,CAACC,QAAQ,GAAG,IAAI,CAACA,QAAQ,CAACC,IAAI,CAAC,IAAI,CAAC;IACxC,IAAI,CAACC,YAAY,GAAG,IAAI;IAExB,IAAI,CAACC,iBAAiB,GAAGf,QAAQ,CAACgB,gBAAgB,CAChD,QAAQ,EACR,IAAI,CAACC,qBAAqB,CAACJ,IAAI,CAAC,IAAI,CAAC,CACtC;EACH;EAEA,MAAMK,oBAAoB,GAAG;IAC3B,IAAI,CAAC,IAAI,CAACT,kBAAkB,EAAE;MAC5B,IAAIU,iBAAiB;;MAErB;MACA;MACA;MACA;MACA,IAAI;QACFA,iBAAiB,GACf,MAAMhB,uBAAuB,CAACe,oBAAoB,EAAE;MACxD,CAAC,CAAC,OAAOE,KAAK,EAAE;QACdC,OAAO,CAACC,IAAI,CAAC,yBAAyB,EAAEF,KAAK,CAAC;MAChD;MAEA,IAAI,CAAC,IAAI,CAACX,kBAAkB,IAAIU,iBAAiB,EAAE;QACjD,IAAI,CAACV,kBAAkB,GAAGU,iBAAiB;MAC7C;IACF;IAEA,OAAO,IAAI,CAACV,kBAAkB;EAChC;EAEAc,WAAW,CAACC,QAAQ,EAAE;IACpB,IAAI,CAAC,IAAI,CAACd,YAAY,EAAE;MACtB,IAAI,CAACe,KAAK,EAAE;IACd;IACA,IAAI,CAAC,IAAI,CAACjB,UAAU,CAACkB,QAAQ,CAACF,QAAQ,CAAC,EAAE;MACvC,IAAI,CAAChB,UAAU,CAACmB,IAAI,CAACH,QAAQ,CAAC;MAE9B,IAAI,IAAI,CAACf,kBAAkB,EAAE;QAC3Be,QAAQ,CAAC,IAAI,CAACf,kBAAkB,CAAC;MACnC;IACF;EACF;EAEAmB,cAAc,CAACJ,QAAQ,EAAE;IACvB,IAAI,CAAChB,UAAU,GAAG,IAAI,CAACA,UAAU,CAACqB,MAAM,CAAEC,CAAC,IAAKA,CAAC,KAAKN,QAAQ,CAAC;IAC/D,IAAI,IAAI,CAAChB,UAAU,CAACuB,MAAM,KAAK,CAAC,EAAE;MAChC,IAAI,CAACC,IAAI,EAAE;IACb;EACF;EAEAC,kBAAkB,GAAG;IACnB,IAAI,CAACzB,UAAU,GAAG,EAAE;IACpB,IAAI,CAACwB,IAAI,EAAE;EACb;EAEAf,qBAAqB,CAACiB,QAAQ,EAAE;IAC9B,IAAI,CAAC,IAAI,CAACvB,kBAAkB,EAAE;MAC5B,IAAIuB,QAAQ,KAAK,YAAY,EAAE;QAC7B,IAAI,CAACF,IAAI,EAAE;MACb,CAAC,MAAM,IAAIE,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,IAAI,CAAC1B,UAAU,CAACuB,MAAM,GAAG,CAAC,EAAE;UAC9B,IAAI,CAACN,KAAK,EAAE;QACd;MACF;IACF;EACF;EAEAA,KAAK,GAAoB;IAAA,IAAnBU,YAAY,uEAAG,CAAC,CAAC;IACrB,IACEA,YAAY,KAAK,CAAC,CAAC,IACnBA,YAAY,KAAK,IAAI,IACrBA,YAAY,KAAKC,SAAS,EAC1B;MACAD,YAAY,GAAG,IAAI,CAACE,gBAAgB;IACtC;IACA,IAAIF,YAAY,IAAI,IAAI,EAAE;MACxBA,YAAY,GAAG,CAAC,CAAC;IACnB;IAEA,IAAI,CAAC,IAAI,CAACzB,YAAY,EAAE;MACtBP,uBAAuB,CAACsB,KAAK,CAACU,YAAY,CAAC;MAE3C,IAAI,CAACrB,YAAY,GAAGT,0BAA0B,CAACkB,WAAW,CACxDtB,QAAQ,CAACqC,oBAAoB,CAACC,MAAM,EACpC,IAAI,CAAC3B,QAAQ,CACd;MAED,IAAI,CAACF,YAAY,GAAG,IAAI;IAC1B;EACF;EAEAsB,IAAI,GAAG;IACL7B,uBAAuB,CAAC6B,IAAI,EAAE;IAE9B,IAAI,IAAI,CAACtB,YAAY,EAAE;MACrB,IAAI,CAACI,YAAY,CAAC0B,MAAM,EAAE;IAC5B;IAEA,IAAI,CAAC9B,YAAY,GAAG,KAAK;EAC3B;EAEA+B,kBAAkB,CAACC,eAAe,EAAE;IAClC,IAAI,CAACL,gBAAgB,GAAGK,eAAe;IACvCvC,uBAAuB,CAACsC,kBAAkB,CAACC,eAAe,CAAC;EAC7D;EAEAC,oBAAoB,CAACC,iBAAiB,EAAE;IACtCzC,uBAAuB,CAACwC,oBAAoB,CAACC,iBAAiB,CAAC;IAC/D,IAAI,CAACjC,kBAAkB,GAAGiC,iBAAiB;EAC7C;EAEAhC,QAAQ,CAACiC,QAAQ,EAAE;IACjB,IAAI,CAACpC,kBAAkB,GAAGoC,QAAQ;IAElC,IAAI,CAACrC,UAAU,CAACsC,OAAO,CAAEhB,CAAC,IAAKA,CAAC,CAACe,QAAQ,CAAC,CAAC;EAC7C;AACF;AAEA,eAAe,IAAIvC,eAAe,EAAE"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterExpression, BackgroundLayerStyleProps } from '../utils/MapboxStyles';
|
|
3
|
+
import { StyleValue } from '../utils/StyleValue';
|
|
4
|
+
import AbstractLayer from './AbstractLayer';
|
|
5
|
+
export declare type Props = {
|
|
6
|
+
/**
|
|
7
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The source from which to obtain the data to style.
|
|
12
|
+
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
13
|
+
* Inferred from parent source only if the layer is a direct child to it.
|
|
14
|
+
*/
|
|
15
|
+
sourceID?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
18
|
+
*/
|
|
19
|
+
sourceLayerID?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Inserts a layer above aboveLayerID.
|
|
22
|
+
*/
|
|
23
|
+
aboveLayerID?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Inserts a layer below belowLayerID
|
|
26
|
+
*/
|
|
27
|
+
belowLayerID?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Inserts a layer at a specified index
|
|
30
|
+
*/
|
|
31
|
+
layerIndex?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Filter only the features in the source layer that satisfy a condition that you define
|
|
34
|
+
*/
|
|
35
|
+
filter?: FilterExpression;
|
|
36
|
+
/**
|
|
37
|
+
* The minimum zoom level at which the layer gets parsed and appears.
|
|
38
|
+
*/
|
|
39
|
+
minZoomLevel?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The maximum zoom level at which the layer gets parsed and appears.
|
|
42
|
+
*/
|
|
43
|
+
maxZoomLevel?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Customizable style attributes
|
|
46
|
+
*/
|
|
47
|
+
style?: BackgroundLayerStyleProps;
|
|
48
|
+
} & React.ComponentProps<typeof AbstractLayer>;
|
|
49
|
+
export declare const NATIVE_MODULE_NAME = "RCTMGLBackgroundLayer";
|
|
50
|
+
declare type NativeTypeProps = Omit<Props, 'style'> & {
|
|
51
|
+
reactStyle?: {
|
|
52
|
+
[key: string]: StyleValue;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
declare class BackgroundLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
56
|
+
static defaultProps: {
|
|
57
|
+
sourceID: any;
|
|
58
|
+
};
|
|
59
|
+
render(): JSX.Element;
|
|
60
|
+
}
|
|
61
|
+
export default BackgroundLayer;
|
|
62
|
+
//# sourceMappingURL=BackgroundLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundLayer.d.ts","sourceRoot":"","sources":["../../../javascript/components/BackgroundLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAC/B,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;;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,yBAAyB,CAAC;CACnC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/C,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D,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,eAAgB,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IACjE,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAOP;AAKD,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterExpression, CircleLayerStyleProps } from '../utils/MapboxStyles';
|
|
3
|
+
import { StyleValue } from '../utils/StyleValue';
|
|
4
|
+
import AbstractLayer from './AbstractLayer';
|
|
5
|
+
export declare type Props = {
|
|
6
|
+
/**
|
|
7
|
+
* A string that uniquely identifies the source in the style to which it is added.
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The source from which to obtain the data to style.
|
|
12
|
+
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
13
|
+
* Inferred from parent source only if the layer is a direct child to it.
|
|
14
|
+
*/
|
|
15
|
+
sourceID?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Identifier of the layer within the source identified by the sourceID property
|
|
18
|
+
* 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?: CircleLayerStyleProps;
|
|
49
|
+
} & React.ComponentProps<typeof AbstractLayer>;
|
|
50
|
+
export declare const NATIVE_MODULE_NAME = "RCTMGLCircleLayer";
|
|
51
|
+
declare type NativeTypeProps = Omit<Props, 'style'> & {
|
|
52
|
+
reactStyle?: {
|
|
53
|
+
[key: string]: StyleValue;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* CircleLayer is a style layer that renders one or more filled circles on the map.
|
|
58
|
+
*/
|
|
59
|
+
declare class CircleLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
60
|
+
static defaultProps: {
|
|
61
|
+
sourceID: any;
|
|
62
|
+
};
|
|
63
|
+
render(): JSX.Element;
|
|
64
|
+
}
|
|
65
|
+
export default CircleLayer;
|
|
66
|
+
//# sourceMappingURL=CircleLayer.d.ts.map
|