@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
|
@@ -5,10 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.NATIVE_MODULE_NAME = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
8
|
var _reactNative = require("react-native");
|
|
10
|
-
var _utils = require("../utils");
|
|
11
|
-
var _styleMap = require("../utils/styleMap");
|
|
12
9
|
var _AbstractLayer = _interopRequireDefault(require("./AbstractLayer"));
|
|
13
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
11
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -17,11 +14,10 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
|
|
|
17
14
|
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); }
|
|
18
15
|
const MapboxGL = _reactNative.NativeModules.MGLModule;
|
|
19
16
|
const NATIVE_MODULE_NAME = 'RCTMGLFillLayer';
|
|
20
|
-
|
|
17
|
+
exports.NATIVE_MODULE_NAME = NATIVE_MODULE_NAME;
|
|
21
18
|
/**
|
|
22
19
|
* FillLayer is a style layer that renders one or more filled (and optionally stroked) polygons on the map.
|
|
23
20
|
*/
|
|
24
|
-
exports.NATIVE_MODULE_NAME = NATIVE_MODULE_NAME;
|
|
25
21
|
class FillLayer extends _AbstractLayer.default {
|
|
26
22
|
render() {
|
|
27
23
|
const props = {
|
|
@@ -33,59 +29,10 @@ class FillLayer extends _AbstractLayer.default {
|
|
|
33
29
|
}, props));
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
|
-
_defineProperty(FillLayer, "propTypes", {
|
|
37
|
-
..._utils.viewPropTypes,
|
|
38
|
-
/**
|
|
39
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
40
|
-
*/
|
|
41
|
-
id: _propTypes.default.string.isRequired,
|
|
42
|
-
/**
|
|
43
|
-
* The source from which to obtain the data to style.
|
|
44
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
45
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
46
|
-
*/
|
|
47
|
-
sourceID: _propTypes.default.string,
|
|
48
|
-
/**
|
|
49
|
-
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
50
|
-
*/
|
|
51
|
-
sourceLayerID: _propTypes.default.string,
|
|
52
|
-
/**
|
|
53
|
-
* Inserts a layer above aboveLayerID.
|
|
54
|
-
*/
|
|
55
|
-
aboveLayerID: _propTypes.default.string,
|
|
56
|
-
/**
|
|
57
|
-
* Inserts a layer below belowLayerID
|
|
58
|
-
*/
|
|
59
|
-
belowLayerID: _propTypes.default.string,
|
|
60
|
-
/**
|
|
61
|
-
* Inserts a layer at a specified index
|
|
62
|
-
*/
|
|
63
|
-
layerIndex: _propTypes.default.number,
|
|
64
|
-
/**
|
|
65
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
66
|
-
*/
|
|
67
|
-
filter: _propTypes.default.array,
|
|
68
|
-
/**
|
|
69
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
70
|
-
*/
|
|
71
|
-
minZoomLevel: _propTypes.default.number,
|
|
72
|
-
/**
|
|
73
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
74
|
-
*/
|
|
75
|
-
maxZoomLevel: _propTypes.default.number,
|
|
76
|
-
/**
|
|
77
|
-
* Customizable style attributes
|
|
78
|
-
*/
|
|
79
|
-
style: _propTypes.default.oneOfType([_styleMap.FillLayerStyleProp, _propTypes.default.arrayOf(_styleMap.FillLayerStyleProp)])
|
|
80
|
-
});
|
|
81
32
|
_defineProperty(FillLayer, "defaultProps", {
|
|
82
33
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
83
34
|
});
|
|
84
|
-
const RCTMGLFillLayer = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME
|
|
85
|
-
nativeOnly: {
|
|
86
|
-
reactStyle: true
|
|
87
|
-
}
|
|
88
|
-
});
|
|
35
|
+
const RCTMGLFillLayer = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME);
|
|
89
36
|
var _default = FillLayer;
|
|
90
37
|
exports.default = _default;
|
|
91
38
|
//# sourceMappingURL=FillLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","NATIVE_MODULE_NAME","FillLayer","AbstractLayer","render","props","baseProps","sourceLayerID","setNativeLayer","
|
|
1
|
+
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","NATIVE_MODULE_NAME","FillLayer","AbstractLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLFillLayer","requireNativeComponent"],"sourceRoot":"../../javascript","sources":["FillLayer.tsx"],"mappings":";;;;;;AAAA;AACA;AAKA;AAA4C;AAAA;AAAA;AAAA;AAAA;AAE5C,MAAMA,QAAQ,GAAGC,0BAAa,CAACC,SAAS;AAEjC,MAAMC,kBAAkB,GAAG,iBAAiB;AAAC;AA4DpD;AACA;AACA;AACA,MAAMC,SAAS,SAASC,sBAAa,CAAyB;EAK5DC,MAAM,GAAG;IACP,MAAMC,KAAK,GAAG;MACZ,GAAG,IAAI,CAACC,SAAS;MACjBC,aAAa,EAAE,IAAI,CAACF,KAAK,CAACE;IAC5B,CAAC;IACD,oBAAO,6BAAC,eAAe;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EACjE;AACF;AAAC,gBAZKH,SAAS,kBACS;EACpBO,QAAQ,EAAEX,QAAQ,CAACY,WAAW,CAACC;AACjC,CAAC;AAWH,MAAMC,eAAe,GACnB,IAAAC,mCAAsB,EAAkBZ,kBAAkB,CAAC;AAAC,eAE/CC,SAAS;AAAA"}
|
|
@@ -5,10 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.NATIVE_MODULE_NAME = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
8
|
var _reactNative = require("react-native");
|
|
10
|
-
var _utils = require("../utils");
|
|
11
|
-
var _styleMap = require("../utils/styleMap");
|
|
12
9
|
var _AbstractLayer = _interopRequireDefault(require("./AbstractLayer"));
|
|
13
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
11
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -17,14 +14,14 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
|
|
|
17
14
|
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); }
|
|
18
15
|
const MapboxGL = _reactNative.NativeModules.MGLModule;
|
|
19
16
|
const NATIVE_MODULE_NAME = 'RCTMGLHeatmapLayer';
|
|
20
|
-
|
|
17
|
+
exports.NATIVE_MODULE_NAME = NATIVE_MODULE_NAME;
|
|
21
18
|
/**
|
|
22
19
|
* HeatmapLayer is a style layer that renders one or more filled circles on the map.
|
|
23
20
|
*/
|
|
24
|
-
exports.NATIVE_MODULE_NAME = NATIVE_MODULE_NAME;
|
|
25
21
|
class HeatmapLayer extends _AbstractLayer.default {
|
|
26
22
|
render() {
|
|
27
23
|
const props = {
|
|
24
|
+
...this.props,
|
|
28
25
|
...this.baseProps,
|
|
29
26
|
sourceLayerID: this.props.sourceLayerID
|
|
30
27
|
};
|
|
@@ -33,60 +30,10 @@ class HeatmapLayer extends _AbstractLayer.default {
|
|
|
33
30
|
}, props));
|
|
34
31
|
}
|
|
35
32
|
}
|
|
36
|
-
_defineProperty(HeatmapLayer, "propTypes", {
|
|
37
|
-
..._utils.viewPropTypes,
|
|
38
|
-
/**
|
|
39
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
40
|
-
*/
|
|
41
|
-
id: _propTypes.default.string.isRequired,
|
|
42
|
-
/**
|
|
43
|
-
* The source from which to obtain the data to style.
|
|
44
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
45
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
46
|
-
*/
|
|
47
|
-
sourceID: _propTypes.default.string,
|
|
48
|
-
/**
|
|
49
|
-
* Identifier of the layer within the source identified by the sourceID property
|
|
50
|
-
* from which the receiver obtains the data to style.
|
|
51
|
-
*/
|
|
52
|
-
sourceLayerID: _propTypes.default.string,
|
|
53
|
-
/**
|
|
54
|
-
* Inserts a layer above aboveLayerID.
|
|
55
|
-
*/
|
|
56
|
-
aboveLayerID: _propTypes.default.string,
|
|
57
|
-
/**
|
|
58
|
-
* Inserts a layer below belowLayerID
|
|
59
|
-
*/
|
|
60
|
-
belowLayerID: _propTypes.default.string,
|
|
61
|
-
/**
|
|
62
|
-
* Inserts a layer at a specified index
|
|
63
|
-
*/
|
|
64
|
-
layerIndex: _propTypes.default.number,
|
|
65
|
-
/**
|
|
66
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
67
|
-
*/
|
|
68
|
-
filter: _propTypes.default.array,
|
|
69
|
-
/**
|
|
70
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
71
|
-
*/
|
|
72
|
-
minZoomLevel: _propTypes.default.number,
|
|
73
|
-
/**
|
|
74
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
75
|
-
*/
|
|
76
|
-
maxZoomLevel: _propTypes.default.number,
|
|
77
|
-
/**
|
|
78
|
-
* Customizable style attributes
|
|
79
|
-
*/
|
|
80
|
-
style: _propTypes.default.oneOfType([_styleMap.HeatmapLayerStyleProp, _propTypes.default.arrayOf(_styleMap.HeatmapLayerStyleProp)])
|
|
81
|
-
});
|
|
82
33
|
_defineProperty(HeatmapLayer, "defaultProps", {
|
|
83
34
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
84
35
|
});
|
|
85
|
-
const RCTMGLHeatmapLayer = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME
|
|
86
|
-
nativeOnly: {
|
|
87
|
-
reactStyle: true
|
|
88
|
-
}
|
|
89
|
-
});
|
|
36
|
+
const RCTMGLHeatmapLayer = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME);
|
|
90
37
|
var _default = HeatmapLayer;
|
|
91
38
|
exports.default = _default;
|
|
92
39
|
//# sourceMappingURL=HeatmapLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","NATIVE_MODULE_NAME","HeatmapLayer","AbstractLayer","render","props","baseProps","sourceLayerID","setNativeLayer","
|
|
1
|
+
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","NATIVE_MODULE_NAME","HeatmapLayer","AbstractLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLHeatmapLayer","requireNativeComponent"],"sourceRoot":"../../javascript","sources":["HeatmapLayer.tsx"],"mappings":";;;;;;AAAA;AACA;AAQA;AAA4C;AAAA;AAAA;AAAA;AAAA;AAE5C,MAAMA,QAAQ,GAAGC,0BAAa,CAACC,SAAS;AAEjC,MAAMC,kBAAkB,GAAG,oBAAoB;AAAC;AA6DvD;AACA;AACA;AACA,MAAMC,YAAY,SAASC,sBAAa,CAAyB;EAK/DC,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,6BAAC,kBAAkB;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EACpE;AACF;AAAC,gBAbKH,YAAY,kBACM;EACpBO,QAAQ,EAAEX,QAAQ,CAACY,WAAW,CAACC;AACjC,CAAC;AAYH,MAAMC,kBAAkB,GACtB,IAAAC,mCAAsB,EAAkBZ,kBAAkB,CAAC;AAAC,eAE/CC,YAAY;AAAA"}
|
|
@@ -4,39 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
13
|
-
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); }
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
11
|
const NATIVE_MODULE_NAME = 'RCTMGLNativeUserLocation';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
_defineProperty(NativeUserLocation, "propTypes", {
|
|
21
|
-
/**
|
|
22
|
-
* Android render mode.
|
|
23
|
-
*
|
|
24
|
-
* - normal: just a circle
|
|
25
|
-
* - compass: triangle with heading
|
|
26
|
-
* - gps: large arrow
|
|
27
|
-
*
|
|
28
|
-
* @platform android
|
|
29
|
-
*/
|
|
30
|
-
androidRenderMode: _propTypes.default.oneOf(['normal', 'compass', 'gps']),
|
|
31
|
-
/**
|
|
32
|
-
* iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.
|
|
33
|
-
*
|
|
34
|
-
* @platform ios
|
|
35
|
-
*/
|
|
36
|
-
iosShowsUserHeadingIndicator: _propTypes.default.bool
|
|
37
|
-
});
|
|
38
|
-
const RCTMGLNativeUserLocation = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME, NativeUserLocation, {
|
|
39
|
-
nativeOnly: {}
|
|
12
|
+
const RCTMGLNativeUserLocation = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME);
|
|
13
|
+
const NativeUserLocation = /*#__PURE__*/(0, _react.memo)(props => {
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(RCTMGLNativeUserLocation, props);
|
|
40
15
|
});
|
|
41
16
|
var _default = NativeUserLocation;
|
|
42
17
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NATIVE_MODULE_NAME","
|
|
1
|
+
{"version":3,"names":["NATIVE_MODULE_NAME","RCTMGLNativeUserLocation","requireNativeComponent","NativeUserLocation","memo","props"],"sourceRoot":"../../javascript","sources":["NativeUserLocation.tsx"],"mappings":";;;;;;AAAA;AACA;AAAqE;AAAA;AAErE,MAAMA,kBAAkB,GAAG,0BAA0B;AAsBrD,MAAMC,wBAA8C,GAClD,IAAAC,mCAAsB,EAACF,kBAAkB,CAAC;AAE5C,MAAMG,kBAAkB,gBAAG,IAAAC,WAAI,EAAEC,KAAY,IAAK;EAChD,oBAAO,6BAAC,wBAAwB,EAAKA,KAAK,CAAI;AAChD,CAAC,CAAC;AAAC,eAEYF,kBAAkB;AAAA"}
|
|
@@ -5,10 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.NATIVE_MODULE_NAME = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
8
|
var _reactNative = require("react-native");
|
|
10
|
-
var _utils = require("../utils");
|
|
11
|
-
var _styleMap = require("../utils/styleMap");
|
|
12
9
|
var _AbstractLayer = _interopRequireDefault(require("./AbstractLayer"));
|
|
13
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
11
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -29,59 +26,10 @@ class RasterLayer extends _AbstractLayer.default {
|
|
|
29
26
|
}, props));
|
|
30
27
|
}
|
|
31
28
|
}
|
|
32
|
-
_defineProperty(RasterLayer, "propTypes", {
|
|
33
|
-
..._utils.viewPropTypes,
|
|
34
|
-
/**
|
|
35
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
36
|
-
*/
|
|
37
|
-
id: _propTypes.default.string.isRequired,
|
|
38
|
-
/**
|
|
39
|
-
* The source from which to obtain the data to style.
|
|
40
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
41
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
42
|
-
*/
|
|
43
|
-
sourceID: _propTypes.default.string,
|
|
44
|
-
/**
|
|
45
|
-
* Identifier of the layer within the source identified by the sourceID property from which the receiver obtains the data to style.
|
|
46
|
-
*/
|
|
47
|
-
sourceLayerID: _propTypes.default.string,
|
|
48
|
-
/**
|
|
49
|
-
* Inserts a layer above aboveLayerID.
|
|
50
|
-
*/
|
|
51
|
-
aboveLayerID: _propTypes.default.string,
|
|
52
|
-
/**
|
|
53
|
-
* Inserts a layer below belowLayerID
|
|
54
|
-
*/
|
|
55
|
-
belowLayerID: _propTypes.default.string,
|
|
56
|
-
/**
|
|
57
|
-
* Inserts a layer at a specified index
|
|
58
|
-
*/
|
|
59
|
-
layerIndex: _propTypes.default.number,
|
|
60
|
-
/**
|
|
61
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
62
|
-
*/
|
|
63
|
-
filter: _propTypes.default.array,
|
|
64
|
-
/**
|
|
65
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
66
|
-
*/
|
|
67
|
-
minZoomLevel: _propTypes.default.number,
|
|
68
|
-
/**
|
|
69
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
70
|
-
*/
|
|
71
|
-
maxZoomLevel: _propTypes.default.number,
|
|
72
|
-
/**
|
|
73
|
-
* Customizable style attributes
|
|
74
|
-
*/
|
|
75
|
-
style: _propTypes.default.oneOfType([_styleMap.RasterLayerStyleProp, _propTypes.default.arrayOf(_styleMap.RasterLayerStyleProp)])
|
|
76
|
-
});
|
|
77
29
|
_defineProperty(RasterLayer, "defaultProps", {
|
|
78
30
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
79
31
|
});
|
|
80
|
-
const RCTMGLRasterLayer = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME
|
|
81
|
-
nativeOnly: {
|
|
82
|
-
reactStyle: true
|
|
83
|
-
}
|
|
84
|
-
});
|
|
32
|
+
const RCTMGLRasterLayer = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME);
|
|
85
33
|
var _default = RasterLayer;
|
|
86
34
|
exports.default = _default;
|
|
87
35
|
//# sourceMappingURL=RasterLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","NATIVE_MODULE_NAME","RasterLayer","AbstractLayer","render","props","baseProps","sourceLayerID","setNativeLayer","
|
|
1
|
+
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","NATIVE_MODULE_NAME","RasterLayer","AbstractLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLRasterLayer","requireNativeComponent"],"sourceRoot":"../../javascript","sources":["RasterLayer.tsx"],"mappings":";;;;;;AAAA;AACA;AAKA;AAA4C;AAAA;AAAA;AAAA;AAAA;AAE5C,MAAMA,QAAQ,GAAGC,0BAAa,CAACC,SAAS;AAEjC,MAAMC,kBAAkB,GAAG,mBAAmB;AAAC;AA4DtD,MAAMC,WAAW,SAASC,sBAAa,CAAyB;EAK9DC,MAAM,GAAG;IACP,MAAMC,KAAK,GAAG;MACZ,GAAG,IAAI,CAACC,SAAS;MACjBC,aAAa,EAAE,IAAI,CAACF,KAAK,CAACE;IAC5B,CAAC;IACD,oBAAO,6BAAC,iBAAiB;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EACnE;AACF;AAAC,gBAZKH,WAAW,kBACO;EACpBO,QAAQ,EAAEX,QAAQ,CAACY,WAAW,CAACC;AACjC,CAAC;AAWH,MAAMC,iBAAiB,GACrB,IAAAC,mCAAsB,EAAkBZ,kBAAkB,CAAC;AAAC,eAE/CC,WAAW;AAAA"}
|
|
@@ -5,10 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.NATIVE_MODULE_NAME = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
8
|
var _reactNative = require("react-native");
|
|
10
|
-
var _utils = require("../utils");
|
|
11
|
-
var _styleMap = require("../utils/styleMap");
|
|
12
9
|
var _AbstractLayer = _interopRequireDefault(require("./AbstractLayer"));
|
|
13
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
11
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -17,59 +14,21 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
|
|
|
17
14
|
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); }
|
|
18
15
|
const MapboxGL = _reactNative.NativeModules.MGLModule;
|
|
19
16
|
const NATIVE_MODULE_NAME = 'RCTMGLSkyLayer';
|
|
20
|
-
|
|
17
|
+
exports.NATIVE_MODULE_NAME = NATIVE_MODULE_NAME;
|
|
21
18
|
/**
|
|
22
19
|
* SkyLayer is a spherical dome around the map that is always rendered behind all other layers
|
|
23
20
|
*/
|
|
24
|
-
exports.NATIVE_MODULE_NAME = NATIVE_MODULE_NAME;
|
|
25
21
|
class SkyLayer extends _AbstractLayer.default {
|
|
26
22
|
render() {
|
|
27
23
|
return /*#__PURE__*/_react.default.createElement(RCTMGLSkyLayer, _extends({
|
|
28
|
-
testID: "rctmglSkyLayer",
|
|
29
24
|
ref: this.setNativeLayer
|
|
30
25
|
}, this.baseProps));
|
|
31
26
|
}
|
|
32
27
|
}
|
|
33
|
-
_defineProperty(SkyLayer, "propTypes", {
|
|
34
|
-
..._utils.viewPropTypes,
|
|
35
|
-
/**
|
|
36
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
37
|
-
*/
|
|
38
|
-
id: _propTypes.default.string.isRequired,
|
|
39
|
-
/**
|
|
40
|
-
* The source from which to obtain the data to style.
|
|
41
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
42
|
-
*/
|
|
43
|
-
sourceID: _propTypes.default.string,
|
|
44
|
-
/**
|
|
45
|
-
* Inserts a layer above aboveLayerID.
|
|
46
|
-
*/
|
|
47
|
-
aboveLayerID: _propTypes.default.string,
|
|
48
|
-
/**
|
|
49
|
-
* Inserts a layer below belowLayerID
|
|
50
|
-
*/
|
|
51
|
-
belowLayerID: _propTypes.default.string,
|
|
52
|
-
/**
|
|
53
|
-
* Inserts a layer at a specified index
|
|
54
|
-
*/
|
|
55
|
-
layerIndex: _propTypes.default.number,
|
|
56
|
-
/**
|
|
57
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
58
|
-
*/
|
|
59
|
-
filter: _propTypes.default.array,
|
|
60
|
-
/**
|
|
61
|
-
* Customizable style attributes
|
|
62
|
-
*/
|
|
63
|
-
style: _propTypes.default.oneOfType([_styleMap.SkyLayerStyleProp, _propTypes.default.arrayOf(_styleMap.SkyLayerStyleProp)])
|
|
64
|
-
});
|
|
65
28
|
_defineProperty(SkyLayer, "defaultProps", {
|
|
66
29
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
67
30
|
});
|
|
68
|
-
const RCTMGLSkyLayer = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME
|
|
69
|
-
nativeOnly: {
|
|
70
|
-
reactStyle: true
|
|
71
|
-
}
|
|
72
|
-
});
|
|
31
|
+
const RCTMGLSkyLayer = (0, _reactNative.requireNativeComponent)(NATIVE_MODULE_NAME);
|
|
73
32
|
var _default = SkyLayer;
|
|
74
33
|
exports.default = _default;
|
|
75
34
|
//# sourceMappingURL=SkyLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","NATIVE_MODULE_NAME","SkyLayer","AbstractLayer","render","setNativeLayer","baseProps","
|
|
1
|
+
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","NATIVE_MODULE_NAME","SkyLayer","AbstractLayer","render","setNativeLayer","baseProps","sourceID","StyleSource","DefaultSourceID","RCTMGLSkyLayer","requireNativeComponent"],"sourceRoot":"../../javascript","sources":["SkyLayer.tsx"],"mappings":";;;;;;AAAA;AACA;AAKA;AAA4C;AAAA;AAAA;AAAA;AAAA;AAE5C,MAAMA,QAAQ,GAAGC,0BAAa,CAACC,SAAS;AAEjC,MAAMC,kBAAkB,GAAG,gBAAgB;AAAC;AA2CnD;AACA;AACA;AACA,MAAMC,QAAQ,SAASC,sBAAa,CAAyB;EAK3DC,MAAM,GAAG;IACP,oBAAO,6BAAC,cAAc;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAK,IAAI,CAACC,SAAS,EAAI;EACzE;AACF;AAAC,gBARKJ,QAAQ,kBACU;EACpBK,QAAQ,EAAET,QAAQ,CAACU,WAAW,CAACC;AACjC,CAAC;AAOH,MAAMC,cAAc,GAClB,IAAAC,mCAAsB,EAAkBV,kBAAkB,CAAC;AAAC,eAE/CC,QAAQ;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","MapboxGLLocationManager","MGLLocationModule","LocationModuleEventEmitter","NativeEventEmitter","LocationManager","constructor","_listeners","_lastKnownLocation","_isListening","_requestsAlwaysUse","onUpdate","bind","subscription","_appStateListener","AppState","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;AAEA,MAAMA,QAAQ,GAAGC,0BAAa,CAACC,SAAS;AACxC,MAAMC,uBAAuB,GAAGF,0BAAa,CAACG,iBAAiB;AAExD,MAAMC,0BAA0B,GAAG,IAAIC,+BAAkB,CAC9DH,uBAAuB,CACxB;AAAC;AAEF,MAAMI,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,GAAGC,qBAAQ,CAACC,gBAAgB,CAChD,QAAQ,EACR,IAAI,CAACC,qBAAqB,CAACL,IAAI,CAAC,IAAI,CAAC,CACtC;EACH;EAEA,MAAMM,oBAAoB,GAAG;IAC3B,IAAI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I,CAACF,IAAI,EAAE;MACb,CAAC,MAAM,IAAIE,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAI,
|
|
1
|
+
{"version":3,"names":["MapboxGL","NativeModules","MGLModule","MapboxGLLocationManager","MGLLocationModule","LocationModuleEventEmitter","NativeEventEmitter","LocationManager","constructor","_listeners","_lastKnownLocation","_isListening","_requestsAlwaysUse","onUpdate","bind","subscription","_appStateListener","AppState","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;AAEA,MAAMA,QAAQ,GAAGC,0BAAa,CAACC,SAAS;AACxC,MAAMC,uBAAuB,GAAGF,0BAAa,CAACG,iBAAiB;AAExD,MAAMC,0BAA0B,GAAG,IAAIC,+BAAkB,CAC9DH,uBAAuB,CACxB;AAAC;AAEF,MAAMI,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,GAAGC,qBAAQ,CAACC,gBAAgB,CAChD,QAAQ,EACR,IAAI,CAACC,qBAAqB,CAACL,IAAI,CAAC,IAAI,CAAC,CACtC;EACH;EAEA,MAAMM,oBAAoB,GAAG;IAC3B,IAAI,CAAC,IAAI,CAACV,kBAAkB,EAAE;MAC5B,IAAIW,iBAAiB;;MAErB;MAC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U,CAACuC,OAAO,CAAEhB,CAAC,IAAKA,CAAC,CAACe,QAAQ,CAAC,CAAC;EAC7C;AACF;AAAC,eAEc,IAAIxC,eAAe,EAAE;AAAA"}
|
|
@@ -3,73 +3,24 @@ 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 { BackgroundLayerStyleProp } from '../utils/styleMap';
|
|
10
7
|
import AbstractLayer from './AbstractLayer';
|
|
11
8
|
const MapboxGL = NativeModules.MGLModule;
|
|
12
9
|
export const NATIVE_MODULE_NAME = 'RCTMGLBackgroundLayer';
|
|
13
10
|
class BackgroundLayer extends AbstractLayer {
|
|
14
11
|
render() {
|
|
12
|
+
const props = {
|
|
13
|
+
...this.baseProps,
|
|
14
|
+
sourceLayerID: this.props.sourceLayerID
|
|
15
|
+
};
|
|
15
16
|
return /*#__PURE__*/React.createElement(RCTMGLBackgroundLayer, _extends({
|
|
16
|
-
testID: "rctmglBackgroundLayer",
|
|
17
17
|
ref: this.setNativeLayer
|
|
18
|
-
},
|
|
18
|
+
}, props));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
_defineProperty(BackgroundLayer, "propTypes", {
|
|
22
|
-
...viewPropTypes,
|
|
23
|
-
/**
|
|
24
|
-
* A string that uniquely identifies the source in the style to which it is added.
|
|
25
|
-
*/
|
|
26
|
-
id: PropTypes.string.isRequired,
|
|
27
|
-
/**
|
|
28
|
-
* The source from which to obtain the data to style.
|
|
29
|
-
* If the source has not yet been added to the current style, the behavior is undefined.
|
|
30
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
31
|
-
*/
|
|
32
|
-
sourceID: PropTypes.string,
|
|
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: PropTypes.string,
|
|
37
|
-
/**
|
|
38
|
-
* Inserts a layer above aboveLayerID.
|
|
39
|
-
*/
|
|
40
|
-
aboveLayerID: PropTypes.string,
|
|
41
|
-
/**
|
|
42
|
-
* Inserts a layer below belowLayerID
|
|
43
|
-
*/
|
|
44
|
-
belowLayerID: PropTypes.string,
|
|
45
|
-
/**
|
|
46
|
-
* Inserts a layer at a specified index
|
|
47
|
-
*/
|
|
48
|
-
layerIndex: PropTypes.number,
|
|
49
|
-
/**
|
|
50
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
51
|
-
*/
|
|
52
|
-
filter: PropTypes.array,
|
|
53
|
-
/**
|
|
54
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
55
|
-
*/
|
|
56
|
-
minZoomLevel: PropTypes.number,
|
|
57
|
-
/**
|
|
58
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
59
|
-
*/
|
|
60
|
-
maxZoomLevel: PropTypes.number,
|
|
61
|
-
/**
|
|
62
|
-
* Customizable style attributes
|
|
63
|
-
*/
|
|
64
|
-
style: PropTypes.oneOfType([BackgroundLayerStyleProp, PropTypes.arrayOf(BackgroundLayerStyleProp)])
|
|
65
|
-
});
|
|
66
21
|
_defineProperty(BackgroundLayer, "defaultProps", {
|
|
67
22
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
68
23
|
});
|
|
69
|
-
const RCTMGLBackgroundLayer = requireNativeComponent(NATIVE_MODULE_NAME
|
|
70
|
-
nativeOnly: {
|
|
71
|
-
reactStyle: true
|
|
72
|
-
}
|
|
73
|
-
});
|
|
24
|
+
const RCTMGLBackgroundLayer = requireNativeComponent(NATIVE_MODULE_NAME);
|
|
74
25
|
export default BackgroundLayer;
|
|
75
26
|
//# sourceMappingURL=BackgroundLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","NativeModules","requireNativeComponent","AbstractLayer","MapboxGL","MGLModule","NATIVE_MODULE_NAME","BackgroundLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLBackgroundLayer"],"sourceRoot":"../../javascript","sources":["BackgroundLayer.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;AAwDxC,OAAO,MAAMC,kBAAkB,GAAG,uBAAuB;AAMzD,MAAMC,eAAe,SAASJ,aAAa,CAAyB;EAKlEK,MAAM,GAAG;IACP,MAAMC,KAAK,GAAG;MACZ,GAAG,IAAI,CAACC,SAAS;MACjBC,aAAa,EAAE,IAAI,CAACF,KAAK,CAACE;IAC5B,CAAC;IACD,oBAAO,oBAAC,qBAAqB;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EACvE;AACF;AAAC,gBAZKF,eAAe,kBACG;EACpBM,QAAQ,EAAET,QAAQ,CAACU,WAAW,CAACC;AACjC,CAAC;AAWH,MAAMC,qBAAqB,GACzBd,sBAAsB,CAAkBI,kBAAkB,CAAC;AAE7D,eAAeC,eAAe"}
|
|
@@ -3,78 +3,28 @@ 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 { CircleLayerStyleProp } from '../utils/styleMap';
|
|
10
7
|
import AbstractLayer from './AbstractLayer';
|
|
11
8
|
const MapboxGL = NativeModules.MGLModule;
|
|
12
9
|
export const NATIVE_MODULE_NAME = 'RCTMGLCircleLayer';
|
|
13
|
-
|
|
14
10
|
/**
|
|
15
11
|
* CircleLayer is a style layer that renders one or more filled circles on the map.
|
|
16
12
|
*/
|
|
17
13
|
class CircleLayer extends AbstractLayer {
|
|
18
14
|
render() {
|
|
15
|
+
const props = {
|
|
16
|
+
...this.props,
|
|
17
|
+
...this.baseProps,
|
|
18
|
+
sourceLayerID: this.props.sourceLayerID
|
|
19
|
+
};
|
|
19
20
|
return /*#__PURE__*/React.createElement(RCTMGLCircleLayer, _extends({
|
|
20
|
-
testID: "rctmglCircleLayer",
|
|
21
21
|
ref: this.setNativeLayer
|
|
22
|
-
},
|
|
22
|
+
}, props));
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
_defineProperty(CircleLayer, "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
|
-
* Inferred from parent source only if the layer is a direct child to it.
|
|
35
|
-
*/
|
|
36
|
-
sourceID: PropTypes.string,
|
|
37
|
-
/**
|
|
38
|
-
* Identifier of the layer within the source identified by the sourceID property
|
|
39
|
-
* from which the receiver obtains the data to style.
|
|
40
|
-
*/
|
|
41
|
-
sourceLayerID: PropTypes.string,
|
|
42
|
-
/**
|
|
43
|
-
* Inserts a layer above aboveLayerID.
|
|
44
|
-
*/
|
|
45
|
-
aboveLayerID: PropTypes.string,
|
|
46
|
-
/**
|
|
47
|
-
* Inserts a layer below belowLayerID
|
|
48
|
-
*/
|
|
49
|
-
belowLayerID: PropTypes.string,
|
|
50
|
-
/**
|
|
51
|
-
* Inserts a layer at a specified index
|
|
52
|
-
*/
|
|
53
|
-
layerIndex: PropTypes.number,
|
|
54
|
-
/**
|
|
55
|
-
* Filter only the features in the source layer that satisfy a condition that you define
|
|
56
|
-
*/
|
|
57
|
-
filter: PropTypes.array,
|
|
58
|
-
/**
|
|
59
|
-
* The minimum zoom level at which the layer gets parsed and appears.
|
|
60
|
-
*/
|
|
61
|
-
minZoomLevel: PropTypes.number,
|
|
62
|
-
/**
|
|
63
|
-
* The maximum zoom level at which the layer gets parsed and appears.
|
|
64
|
-
*/
|
|
65
|
-
maxZoomLevel: PropTypes.number,
|
|
66
|
-
/**
|
|
67
|
-
* Customizable style attributes
|
|
68
|
-
*/
|
|
69
|
-
style: PropTypes.oneOfType([CircleLayerStyleProp, PropTypes.arrayOf(CircleLayerStyleProp)])
|
|
70
|
-
});
|
|
71
25
|
_defineProperty(CircleLayer, "defaultProps", {
|
|
72
26
|
sourceID: MapboxGL.StyleSource.DefaultSourceID
|
|
73
27
|
});
|
|
74
|
-
const RCTMGLCircleLayer = requireNativeComponent(NATIVE_MODULE_NAME
|
|
75
|
-
nativeOnly: {
|
|
76
|
-
reactStyle: true
|
|
77
|
-
}
|
|
78
|
-
});
|
|
28
|
+
const RCTMGLCircleLayer = requireNativeComponent(NATIVE_MODULE_NAME);
|
|
79
29
|
export default CircleLayer;
|
|
80
30
|
//# sourceMappingURL=CircleLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","NativeModules","requireNativeComponent","AbstractLayer","MapboxGL","MGLModule","NATIVE_MODULE_NAME","CircleLayer","render","props","baseProps","sourceLayerID","setNativeLayer","sourceID","StyleSource","DefaultSourceID","RCTMGLCircleLayer"],"sourceRoot":"../../javascript","sources":["CircleLayer.tsx"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAEEC,aAAa,EACbC,sBAAsB,QACjB,cAAc;AAKrB,OAAOC,aAAa,MAAM,iBAAiB;AAE3C,MAAMC,QAAQ,GAAGH,aAAa,CAACI,SAAS;AAyDxC,OAAO,MAAMC,kBAAkB,GAAG,mBAAmB;AAMrD;AACA;AACA;AACA,MAAMC,WAAW,SAASJ,aAAa,CAAyB;EAK9DK,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,iBAAiB;MAAC,GAAG,EAAE,IAAI,CAACC;IAAe,GAAKH,KAAK,EAAI;EACnE;AACF;AAAC,gBAbKF,WAAW,kBACO;EACpBM,QAAQ,EAAET,QAAQ,CAACU,WAAW,CAACC;AACjC,CAAC;AAYH,MAAMC,iBAAuC,GAC3Cd,sBAAsB,CAAkBI,kBAAkB,CAAC;AAE7D,eAAeC,WAAW"}
|