react-native-map4d-map-dtqg 0.1.4 → 0.1.5
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/README.md +58 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/reactnativemap4dmap/Map4dMapModule.java +39 -27
- package/ios/Map4dMap.h +12 -3
- package/ios/Map4dMap.m +108 -3
- package/ios/Map4dMapTurbo.mm +16 -0
- package/ios/RMFCircleManager.m +40 -68
- package/ios/RMFDirectionsRendererManager.m +26 -24
- package/ios/RMFMapViewManager.m +64 -149
- package/ios/RMFMarkerManager.m +36 -64
- package/ios/RMFPOIManager.m +40 -74
- package/ios/RMFPolygonManager.m +38 -60
- package/ios/RMFPolylineManager.m +36 -58
- package/ios/building/RMFBuildingManager.m +36 -64
- package/lib/commonjs/components/MFBanDoSo/constants.js +27 -0
- package/lib/commonjs/components/MFBanDoSo/constants.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/helpers.js +200 -0
- package/lib/commonjs/components/MFBanDoSo/helpers.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/propTypes.js +18 -0
- package/lib/commonjs/components/MFBanDoSo/propTypes.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/styles.js +328 -0
- package/lib/commonjs/components/MFBanDoSo/styles.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/ui.js +220 -0
- package/lib/commonjs/components/MFBanDoSo/ui.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo.js +190 -73
- package/lib/commonjs/components/MFBanDoSo.js.map +1 -1
- package/lib/commonjs/components/MFBuilding.js +15 -90
- package/lib/commonjs/components/MFBuilding.js.map +1 -1
- package/lib/commonjs/components/MFCircle.js +20 -88
- package/lib/commonjs/components/MFCircle.js.map +1 -1
- package/lib/commonjs/components/MFDirectionsRenderer.js +15 -93
- package/lib/commonjs/components/MFDirectionsRenderer.js.map +1 -1
- package/lib/commonjs/components/MFMapView.js +50 -147
- package/lib/commonjs/components/MFMapView.js.map +1 -1
- package/lib/commonjs/components/MFMarker.js +15 -101
- package/lib/commonjs/components/MFMarker.js.map +1 -1
- package/lib/commonjs/components/MFPOI.js +17 -92
- package/lib/commonjs/components/MFPOI.js.map +1 -1
- package/lib/commonjs/components/MFPolygon.js +15 -87
- package/lib/commonjs/components/MFPolygon.js.map +1 -1
- package/lib/commonjs/components/MFPolyline.js +17 -87
- package/lib/commonjs/components/MFPolyline.js.map +1 -1
- package/lib/commonjs/components/MFTileOverlay.js +7 -15
- package/lib/commonjs/components/MFTileOverlay.js.map +1 -1
- package/lib/commonjs/components/Map4dMapView.js +1 -4
- package/lib/commonjs/components/Map4dMapView.js.map +1 -1
- package/lib/commonjs/components/extends/AreaFocusManager.js +4 -38
- package/lib/commonjs/components/extends/AreaFocusManager.js.map +1 -1
- package/lib/commonjs/components/extends/AreaFocuser.js +1 -17
- package/lib/commonjs/components/extends/AreaFocuser.js.map +1 -1
- package/lib/commonjs/components/extends/BoundHelper.js +0 -6
- package/lib/commonjs/components/extends/BoundHelper.js.map +1 -1
- package/lib/commonjs/components/extends/area/AreaFocusAreas.js +0 -37
- package/lib/commonjs/components/extends/area/AreaFocusAreas.js.map +1 -1
- package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js +1 -35
- package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
- package/lib/commonjs/components/extends/area/AreaFocusSession.js +0 -18
- package/lib/commonjs/components/extends/area/AreaFocusSession.js.map +1 -1
- package/lib/commonjs/components/extends/area/AreaFocusTypes.js +2 -3
- package/lib/commonjs/components/extends/area/AreaFocusTypes.js.map +1 -1
- package/lib/commonjs/components/internal/DefaultRoadmapStyle.js +1 -2
- package/lib/commonjs/components/internal/DefaultRoadmapStyle.js.map +1 -1
- package/lib/commonjs/components/internal/GeojsonStyleUtils.js +20 -31
- package/lib/commonjs/components/internal/GeojsonStyleUtils.js.map +1 -1
- package/lib/commonjs/index.js +0 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/native/Map4dMapNativeModule.js +10 -0
- package/lib/commonjs/native/Map4dMapNativeModule.js.map +1 -0
- package/lib/commonjs/native/NativeModuleResolver.js +35 -0
- package/lib/commonjs/native/NativeModuleResolver.js.map +1 -0
- package/lib/commonjs/native/ViewManagerCommand.js +67 -0
- package/lib/commonjs/native/ViewManagerCommand.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/specs/NativeMap4dMap.js +9 -0
- package/lib/commonjs/specs/NativeMap4dMap.js.map +1 -0
- package/lib/module/components/MFBanDoSo/constants.js +22 -0
- package/lib/module/components/MFBanDoSo/constants.js.map +1 -0
- package/lib/module/components/MFBanDoSo/helpers.js +188 -0
- package/lib/module/components/MFBanDoSo/helpers.js.map +1 -0
- package/lib/module/components/MFBanDoSo/propTypes.js +14 -0
- package/lib/module/components/MFBanDoSo/propTypes.js.map +1 -0
- package/lib/module/components/MFBanDoSo/styles.js +325 -0
- package/lib/module/components/MFBanDoSo/styles.js.map +1 -0
- package/lib/module/components/MFBanDoSo/ui.js +213 -0
- package/lib/module/components/MFBanDoSo/ui.js.map +1 -0
- package/lib/module/components/MFBanDoSo.js +192 -63
- package/lib/module/components/MFBanDoSo.js.map +1 -1
- package/lib/module/components/MFBuilding.js +17 -82
- package/lib/module/components/MFBuilding.js.map +1 -1
- package/lib/module/components/MFCircle.js +22 -80
- package/lib/module/components/MFCircle.js.map +1 -1
- package/lib/module/components/MFDirectionsRenderer.js +16 -85
- package/lib/module/components/MFDirectionsRenderer.js.map +1 -1
- package/lib/module/components/MFMapView.js +51 -136
- package/lib/module/components/MFMapView.js.map +1 -1
- package/lib/module/components/MFMarker.js +17 -92
- package/lib/module/components/MFMarker.js.map +1 -1
- package/lib/module/components/MFPOI.js +19 -84
- package/lib/module/components/MFPOI.js.map +1 -1
- package/lib/module/components/MFPolygon.js +17 -79
- package/lib/module/components/MFPolygon.js.map +1 -1
- package/lib/module/components/MFPolyline.js +19 -79
- package/lib/module/components/MFPolyline.js.map +1 -1
- package/lib/module/components/MFTileOverlay.js +10 -9
- package/lib/module/components/MFTileOverlay.js.map +1 -1
- package/lib/module/components/Map4dMapView.js +2 -0
- package/lib/module/components/Map4dMapView.js.map +1 -1
- package/lib/module/components/extends/AreaFocusManager.js +6 -32
- package/lib/module/components/extends/AreaFocusManager.js.map +1 -1
- package/lib/module/components/extends/AreaFocuser.js +3 -15
- package/lib/module/components/extends/AreaFocuser.js.map +1 -1
- package/lib/module/components/extends/BoundHelper.js +2 -5
- package/lib/module/components/extends/BoundHelper.js.map +1 -1
- package/lib/module/components/extends/area/AreaFocusAreas.js +2 -33
- package/lib/module/components/extends/area/AreaFocusAreas.js.map +1 -1
- package/lib/module/components/extends/area/AreaFocusGeometryUtils.js +2 -32
- package/lib/module/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
- package/lib/module/components/extends/area/AreaFocusSession.js +2 -17
- package/lib/module/components/extends/area/AreaFocusSession.js.map +1 -1
- package/lib/module/components/extends/area/AreaFocusTypes.js +3 -0
- package/lib/module/components/extends/area/AreaFocusTypes.js.map +1 -1
- package/lib/module/components/internal/DefaultRoadmapStyle.js +2 -0
- package/lib/module/components/internal/DefaultRoadmapStyle.js.map +1 -1
- package/lib/module/components/internal/GeojsonStyleUtils.js +21 -28
- package/lib/module/components/internal/GeojsonStyleUtils.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/Map4dMapNativeModule.js +5 -0
- package/lib/module/native/Map4dMapNativeModule.js.map +1 -0
- package/lib/module/native/NativeModuleResolver.js +29 -0
- package/lib/module/native/NativeModuleResolver.js.map +1 -0
- package/lib/module/native/ViewManagerCommand.js +61 -0
- package/lib/module/native/ViewManagerCommand.js.map +1 -0
- package/lib/module/specs/NativeMap4dMap.js +5 -0
- package/lib/module/specs/NativeMap4dMap.js.map +1 -0
- package/lib/typescript/components/MFBanDoSo/constants.d.ts +8 -0
- package/lib/typescript/components/MFBanDoSo/constants.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/helpers.d.ts +14 -0
- package/lib/typescript/components/MFBanDoSo/helpers.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/propTypes.d.ts +2 -0
- package/lib/typescript/components/MFBanDoSo/propTypes.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/styles.d.ts +462 -0
- package/lib/typescript/components/MFBanDoSo/styles.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/ui.d.ts +30 -0
- package/lib/typescript/components/MFBanDoSo/ui.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo.d.ts +37 -0
- package/lib/typescript/components/MFBanDoSo.d.ts.map +1 -0
- package/lib/typescript/components/MFBuilding.d.ts +24 -0
- package/lib/typescript/components/MFBuilding.d.ts.map +1 -0
- package/lib/typescript/components/MFCircle.d.ts +24 -0
- package/lib/typescript/components/MFCircle.d.ts.map +1 -0
- package/lib/typescript/components/MFDirectionsRenderer.d.ts +19 -0
- package/lib/typescript/components/MFDirectionsRenderer.d.ts.map +1 -0
- package/lib/typescript/components/MFMapView.d.ts +66 -0
- package/lib/typescript/components/MFMapView.d.ts.map +1 -0
- package/lib/typescript/components/MFMarker.d.ts +26 -0
- package/lib/typescript/components/MFMarker.d.ts.map +1 -0
- package/lib/typescript/components/MFPOI.d.ts +24 -0
- package/lib/typescript/components/MFPOI.d.ts.map +1 -0
- package/lib/typescript/components/MFPolygon.d.ts +24 -0
- package/lib/typescript/components/MFPolygon.d.ts.map +1 -0
- package/lib/typescript/components/MFPolyline.d.ts +24 -0
- package/lib/typescript/components/MFPolyline.d.ts.map +1 -0
- package/lib/typescript/components/MFTileOverlay.d.ts +12 -0
- package/lib/typescript/components/MFTileOverlay.d.ts.map +1 -0
- package/lib/typescript/components/Map4dMapView.d.ts +8 -7
- package/lib/typescript/components/Map4dMapView.d.ts.map +1 -0
- package/lib/typescript/components/extends/AreaFocusManager.d.ts +34 -0
- package/lib/typescript/components/extends/AreaFocusManager.d.ts.map +1 -0
- package/lib/typescript/components/extends/AreaFocuser.d.ts +15 -0
- package/lib/typescript/components/extends/AreaFocuser.d.ts.map +1 -0
- package/lib/typescript/components/extends/BoundHelper.d.ts +11 -0
- package/lib/typescript/components/extends/BoundHelper.d.ts.map +1 -0
- package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts +58 -0
- package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts.map +1 -0
- package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts +19 -0
- package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts.map +1 -0
- package/lib/typescript/components/extends/area/AreaFocusSession.d.ts +14 -0
- package/lib/typescript/components/extends/area/AreaFocusSession.d.ts.map +1 -0
- package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts +40 -0
- package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts.map +1 -0
- package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts +820 -0
- package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts.map +1 -0
- package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts +3 -0
- package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +13 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/native/Map4dMapNativeModule.d.ts +2 -0
- package/lib/typescript/native/Map4dMapNativeModule.d.ts.map +1 -0
- package/lib/typescript/native/NativeModuleResolver.d.ts +3 -0
- package/lib/typescript/native/NativeModuleResolver.d.ts.map +1 -0
- package/lib/typescript/native/ViewManagerCommand.d.ts +11 -0
- package/lib/typescript/native/ViewManagerCommand.d.ts.map +1 -0
- package/package.json +27 -11
- package/src/components/MFBanDoSo/constants.js +32 -0
- package/src/components/MFBanDoSo/helpers.js +273 -0
- package/src/components/MFBanDoSo/propTypes.js +14 -0
- package/src/components/MFBanDoSo/styles.js +316 -0
- package/src/components/MFBanDoSo/ui.js +230 -0
- package/src/components/MFBanDoSo.js +268 -78
- package/src/components/MFBuilding.js +8 -48
- package/src/components/MFCircle.js +8 -48
- package/src/components/MFDirectionsRenderer.js +8 -47
- package/src/components/MFMapView.js +31 -53
- package/src/components/MFMarker.js +9 -50
- package/src/components/MFPOI.js +8 -48
- package/src/components/MFPolygon.js +8 -48
- package/src/components/MFPolyline.js +8 -48
- package/src/components/internal/GeojsonStyleUtils.js +3 -0
- package/src/native/Map4dMapNativeModule.js +3 -0
- package/src/native/NativeModuleResolver.js +33 -0
- package/src/native/ViewManagerCommand.js +82 -0
- package/src/specs/NativeMap4dMap.js +12 -0
- package/ios/Map4dMapViewManager.m +0 -34
|
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MFPolygon = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _deprecatedReactNativePropTypes = require("deprecated-react-native-prop-types");
|
|
13
|
-
|
|
10
|
+
var _ViewManagerCommand = require("../native/ViewManagerCommand");
|
|
14
11
|
var _reactNative = require("react-native");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(
|
|
17
|
-
|
|
18
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
19
|
-
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
14
|
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
|
|
21
15
|
const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
|
|
22
|
-
const propTypes = {
|
|
23
|
-
|
|
16
|
+
const propTypes = {
|
|
17
|
+
...viewPropTypes,
|
|
24
18
|
/**
|
|
25
19
|
* An array of coordinates to describe the polygon
|
|
26
20
|
*/
|
|
@@ -31,7 +25,6 @@ const propTypes = { ...viewPropTypes,
|
|
|
31
25
|
latitude: _propTypes.default.number.isRequired,
|
|
32
26
|
longitude: _propTypes.default.number.isRequired
|
|
33
27
|
})),
|
|
34
|
-
|
|
35
28
|
/**
|
|
36
29
|
* An array of array of coordinates to describe the polygon holes
|
|
37
30
|
*/
|
|
@@ -42,159 +35,94 @@ const propTypes = { ...viewPropTypes,
|
|
|
42
35
|
latitude: _propTypes.default.number.isRequired,
|
|
43
36
|
longitude: _propTypes.default.number.isRequired
|
|
44
37
|
}))),
|
|
45
|
-
|
|
46
38
|
/**
|
|
47
39
|
* The color to use for the polygon.
|
|
48
40
|
*/
|
|
49
41
|
fillColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
50
|
-
|
|
51
42
|
/**
|
|
52
43
|
* The color to use for the polygon stroke.
|
|
53
44
|
*/
|
|
54
45
|
strokeColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
55
|
-
|
|
56
46
|
/**
|
|
57
47
|
* The stroke width to use for the polygon.
|
|
58
48
|
*/
|
|
59
49
|
strokeWidth: _propTypes.default.number,
|
|
60
|
-
|
|
61
50
|
/**
|
|
62
51
|
* zIndex
|
|
63
52
|
*/
|
|
64
53
|
zIndex: _propTypes.default.number,
|
|
65
|
-
|
|
66
54
|
/**
|
|
67
55
|
* visible
|
|
68
56
|
*/
|
|
69
57
|
visible: _propTypes.default.bool,
|
|
70
|
-
|
|
71
58
|
/**
|
|
72
59
|
* userData
|
|
73
60
|
*/
|
|
74
61
|
userData: _propTypes.default.object,
|
|
75
|
-
|
|
76
62
|
/**
|
|
77
63
|
* Callback that is called when the user presses on the polygon
|
|
78
64
|
*/
|
|
79
65
|
onPress: _propTypes.default.func
|
|
80
66
|
};
|
|
81
|
-
|
|
82
67
|
class MFPolygon extends _react.default.Component {
|
|
83
68
|
constructor(props) {
|
|
84
69
|
super(props);
|
|
85
70
|
this._onPress = this._onPress.bind(this);
|
|
86
71
|
this._ref = this._ref.bind(this);
|
|
87
72
|
}
|
|
88
|
-
|
|
89
73
|
_onPress(event) {
|
|
90
74
|
event.stopPropagation();
|
|
91
|
-
|
|
92
75
|
if (this.props.onPress) {
|
|
93
76
|
this.props.onPress(event);
|
|
94
77
|
}
|
|
95
78
|
}
|
|
96
|
-
|
|
97
79
|
_ref(ref) {
|
|
98
80
|
this.polygon = ref;
|
|
99
81
|
}
|
|
100
|
-
|
|
101
82
|
setCoordinates(coordinates) {
|
|
102
83
|
this._runCommand("setCoordinates", [coordinates]);
|
|
103
84
|
}
|
|
104
|
-
|
|
105
85
|
setHoles(holes) {
|
|
106
86
|
this._runCommand("setHoles", [holes]);
|
|
107
87
|
}
|
|
108
|
-
|
|
109
88
|
setFillColor(color) {
|
|
110
89
|
this._runCommand("setFillColor", [(0, _reactNative.processColor)(color)]);
|
|
111
90
|
}
|
|
112
|
-
|
|
113
91
|
setStrokeColor(color) {
|
|
114
92
|
this._runCommand("setStrokeColor", [(0, _reactNative.processColor)(color)]);
|
|
115
93
|
}
|
|
116
|
-
|
|
117
94
|
setStrokeWidth(width) {
|
|
118
95
|
this._runCommand("setStrokeWidth", [width]);
|
|
119
96
|
}
|
|
120
|
-
|
|
121
97
|
setVisible(visible) {
|
|
122
98
|
this._runCommand("setVisible", [visible]);
|
|
123
99
|
}
|
|
124
|
-
|
|
125
100
|
setZIndex(zIndex) {
|
|
126
101
|
this._runCommand("setZIndex", [zIndex]);
|
|
127
102
|
}
|
|
128
|
-
|
|
129
103
|
setUserData(userData) {
|
|
130
104
|
this._runCommand("setUserData", [userData]);
|
|
131
105
|
}
|
|
132
|
-
|
|
133
106
|
_getHandle() {
|
|
134
107
|
return (0, _reactNative.findNodeHandle)(this.polygon);
|
|
135
108
|
}
|
|
136
|
-
|
|
137
109
|
_runCommand(name, args) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
const commandId = this._uiManagerCommand(name);
|
|
146
|
-
|
|
147
|
-
if (commandId == null) {
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
_reactNative.UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
|
|
152
|
-
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
case 'ios':
|
|
157
|
-
this._mapManagerCommand(name)(this._getHandle(), ...args);
|
|
158
|
-
|
|
159
|
-
break;
|
|
160
|
-
|
|
161
|
-
default:
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
110
|
+
return (0, _ViewManagerCommand.runViewManagerCommand)({
|
|
111
|
+
componentName: 'RMFPolygon',
|
|
112
|
+
moduleName: 'RMFPolygon',
|
|
113
|
+
commandName: name,
|
|
114
|
+
args,
|
|
115
|
+
reactTag: this._getHandle()
|
|
116
|
+
});
|
|
164
117
|
}
|
|
165
|
-
|
|
166
|
-
_uiManagerCommand(name) {
|
|
167
|
-
const uiManager = _reactNative.UIManager || _reactNative.NativeModules.UIManager;
|
|
168
|
-
const componentName = "RMFPolygon";
|
|
169
|
-
|
|
170
|
-
if (!uiManager) {
|
|
171
|
-
return null;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if (!uiManager.getViewManagerConfig) {
|
|
175
|
-
// RN < 0.58
|
|
176
|
-
const legacyConfig = uiManager[componentName];
|
|
177
|
-
return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;
|
|
178
|
-
} // RN >= 0.58
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
const config = uiManager.getViewManagerConfig(componentName);
|
|
182
|
-
return config && config.Commands ? config.Commands[name] : null;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
_mapManagerCommand(name) {
|
|
186
|
-
return _reactNative.NativeModules[`RMFPolygon`][name];
|
|
187
|
-
}
|
|
188
|
-
|
|
189
118
|
render() {
|
|
190
|
-
return /*#__PURE__*/
|
|
119
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFPolygon, {
|
|
120
|
+
...this.props,
|
|
191
121
|
ref: this._ref,
|
|
192
122
|
onPress: this._onPress
|
|
193
|
-
})
|
|
123
|
+
});
|
|
194
124
|
}
|
|
195
|
-
|
|
196
125
|
}
|
|
197
|
-
|
|
198
126
|
exports.MFPolygon = MFPolygon;
|
|
199
127
|
MFPolygon.propTypes = propTypes;
|
|
200
128
|
var RMFPolygon = (0, _reactNative.requireNativeComponent)(`RMFPolygon`, MFPolygon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","coordinates","PropTypes","arrayOf","shape","latitude","number","isRequired","longitude","holes","fillColor","ColorPropType","strokeColor","strokeWidth","zIndex","visible","bool","userData","object","onPress","func","MFPolygon","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","polygon","setCoordinates","_runCommand","setHoles","setFillColor","color","processColor","setStrokeColor","setStrokeWidth","width","setVisible","setZIndex","setUserData","_getHandle","findNodeHandle","name","args","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_propTypes","_deprecatedReactNativePropTypes","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","viewPropTypes","ViewPropTypes","View","propTypes","coordinates","PropTypes","arrayOf","shape","latitude","number","isRequired","longitude","holes","fillColor","ColorPropType","strokeColor","strokeWidth","zIndex","visible","bool","userData","object","onPress","func","MFPolygon","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","polygon","setCoordinates","_runCommand","setHoles","setFillColor","color","processColor","setStrokeColor","setStrokeWidth","width","setVisible","setZIndex","setUserData","_getHandle","findNodeHandle","name","args","runViewManagerCommand","componentName","moduleName","commandName","reactTag","render","jsx","RMFPolygon","exports","requireNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFPolygon.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAIsB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB;AACA,MAAMG,aAAa,GAAGC,6CAAa,IAAIC,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGH,aAAa;EAEhB;AACF;AACA;EACEI,WAAW,EAAEC,kBAAS,CAACC,OAAO,CAC5BD,kBAAS,CAACE,KAAK,CAAC;IACd;AACN;AACA;IACMC,QAAQ,EAAEH,kBAAS,CAACI,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEN,kBAAS,CAACI,MAAM,CAACC;EAC9B,CAAC,CACH,CAAC;EAED;AACF;AACA;EACEE,KAAK,EAAEP,kBAAS,CAACC,OAAO,CACtBD,kBAAS,CAACC,OAAO,CACfD,kBAAS,CAACE,KAAK,CAAC;IACd;AACR;AACA;IACQC,QAAQ,EAAEH,kBAAS,CAACI,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEN,kBAAS,CAACI,MAAM,CAACC;EAC9B,CAAC,CACH,CACF,CAAC;EAED;AACF;AACA;EACEG,SAAS,EAAEC,6CAAa;EAExB;AACF;AACA;EACEC,WAAW,EAAED,6CAAa;EAE1B;AACF;AACA;EACEE,WAAW,EAAEX,kBAAS,CAACI,MAAM;EAE7B;AACF;AACA;EACEQ,MAAM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
exports.MFPolyline = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _deprecatedReactNativePropTypes = require("deprecated-react-native-prop-types");
|
|
13
|
-
|
|
10
|
+
var _ViewManagerCommand = require("../native/ViewManagerCommand");
|
|
14
11
|
var _reactNative = require("react-native");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(
|
|
17
|
-
|
|
18
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
19
|
-
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
14
|
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
|
|
21
15
|
const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
|
|
22
|
-
const propTypes = {
|
|
23
|
-
|
|
16
|
+
const propTypes = {
|
|
17
|
+
...viewPropTypes,
|
|
24
18
|
/**
|
|
25
19
|
* An array of coordinates to describe the polyline
|
|
26
20
|
*/
|
|
@@ -31,160 +25,96 @@ const propTypes = { ...viewPropTypes,
|
|
|
31
25
|
latitude: _propTypes.default.number.isRequired,
|
|
32
26
|
longitude: _propTypes.default.number.isRequired
|
|
33
27
|
})),
|
|
34
|
-
|
|
35
28
|
/**
|
|
36
29
|
* The color to use for the path.
|
|
37
30
|
*/
|
|
38
31
|
color: _deprecatedReactNativePropTypes.ColorPropType,
|
|
39
|
-
|
|
40
32
|
/**
|
|
41
33
|
* The stroke width to use for the path.
|
|
42
34
|
*/
|
|
43
35
|
width: _propTypes.default.number,
|
|
44
|
-
|
|
45
36
|
/**
|
|
46
37
|
* The default style is `solid`.
|
|
47
38
|
*/
|
|
48
39
|
lineStyle: _propTypes.default.oneOf(['solid', 'dotted']),
|
|
49
|
-
|
|
50
40
|
/**
|
|
51
41
|
* zIndex
|
|
52
42
|
*/
|
|
53
43
|
zIndex: _propTypes.default.number,
|
|
54
|
-
|
|
55
44
|
/**
|
|
56
45
|
* visible
|
|
57
46
|
*/
|
|
58
47
|
visible: _propTypes.default.bool,
|
|
59
|
-
|
|
60
48
|
/**
|
|
61
49
|
* userData
|
|
62
50
|
*/
|
|
63
51
|
userData: _propTypes.default.object,
|
|
64
|
-
|
|
65
52
|
/**
|
|
66
53
|
* Callback that is called when the user presses on the polyline
|
|
67
54
|
*/
|
|
68
55
|
onPress: _propTypes.default.func
|
|
69
56
|
};
|
|
70
|
-
|
|
71
57
|
class MFPolyline extends _react.default.Component {
|
|
72
58
|
constructor(props) {
|
|
73
59
|
super(props);
|
|
74
60
|
this._onPress = this._onPress.bind(this);
|
|
75
61
|
this._ref = this._ref.bind(this);
|
|
76
62
|
}
|
|
77
|
-
|
|
78
63
|
_onPress(event) {
|
|
79
64
|
event.stopPropagation();
|
|
80
|
-
|
|
81
65
|
if (this.props.onPress) {
|
|
82
66
|
this.props.onPress(event);
|
|
83
67
|
}
|
|
84
68
|
}
|
|
85
|
-
|
|
86
69
|
_ref(ref) {
|
|
87
70
|
this.polyline = ref;
|
|
88
|
-
}
|
|
89
|
-
|
|
71
|
+
}
|
|
90
72
|
|
|
73
|
+
// TODO - bug
|
|
91
74
|
setCoordinates(coordinates) {
|
|
92
75
|
this._runCommand("setCoordinates", [coordinates]);
|
|
93
76
|
}
|
|
94
|
-
|
|
95
77
|
setWidth(width) {
|
|
96
78
|
this._runCommand("setWidth", [width]);
|
|
97
79
|
}
|
|
98
|
-
|
|
99
80
|
setColor(color) {
|
|
100
81
|
this._runCommand("setColor", [(0, _reactNative.processColor)(color)]);
|
|
101
82
|
}
|
|
102
|
-
|
|
103
83
|
setVisible(visible) {
|
|
104
84
|
this._runCommand("setVisible", [visible]);
|
|
105
85
|
}
|
|
106
|
-
|
|
107
86
|
setTouchable(touchable) {
|
|
108
87
|
this._runCommand("setTouchable", [touchable]);
|
|
109
88
|
}
|
|
110
|
-
|
|
111
89
|
setZIndex(zIndex) {
|
|
112
90
|
this._runCommand("setZIndex", [zIndex]);
|
|
113
91
|
}
|
|
114
|
-
|
|
115
92
|
setLineStyle(style) {
|
|
116
93
|
this._runCommand("setLineStyle", [style]);
|
|
117
94
|
}
|
|
118
|
-
|
|
119
95
|
setUserData(userData) {
|
|
120
96
|
this._runCommand("setUserData", [userData]);
|
|
121
97
|
}
|
|
122
|
-
|
|
123
98
|
_getHandle() {
|
|
124
99
|
return (0, _reactNative.findNodeHandle)(this.polyline);
|
|
125
100
|
}
|
|
126
|
-
|
|
127
101
|
_runCommand(name, args) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const commandId = this._uiManagerCommand(name);
|
|
136
|
-
|
|
137
|
-
if (commandId == null) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
_reactNative.UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
|
|
142
|
-
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
case 'ios':
|
|
147
|
-
this._mapManagerCommand(name)(this._getHandle(), ...args);
|
|
148
|
-
|
|
149
|
-
break;
|
|
150
|
-
|
|
151
|
-
default:
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
102
|
+
return (0, _ViewManagerCommand.runViewManagerCommand)({
|
|
103
|
+
componentName: 'RMFPolyline',
|
|
104
|
+
moduleName: 'RMFPolyline',
|
|
105
|
+
commandName: name,
|
|
106
|
+
args,
|
|
107
|
+
reactTag: this._getHandle()
|
|
108
|
+
});
|
|
154
109
|
}
|
|
155
|
-
|
|
156
|
-
_uiManagerCommand(name) {
|
|
157
|
-
const uiManager = _reactNative.UIManager || _reactNative.NativeModules.UIManager;
|
|
158
|
-
const componentName = "RMFPolyline";
|
|
159
|
-
|
|
160
|
-
if (!uiManager) {
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
if (!uiManager.getViewManagerConfig) {
|
|
165
|
-
// RN < 0.58
|
|
166
|
-
const legacyConfig = uiManager[componentName];
|
|
167
|
-
return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;
|
|
168
|
-
} // RN >= 0.58
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
const config = uiManager.getViewManagerConfig(componentName);
|
|
172
|
-
return config && config.Commands ? config.Commands[name] : null;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
_mapManagerCommand(name) {
|
|
176
|
-
return _reactNative.NativeModules[`RMFPolyline`][name];
|
|
177
|
-
}
|
|
178
|
-
|
|
179
110
|
render() {
|
|
180
|
-
return /*#__PURE__*/
|
|
111
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFPolyline, {
|
|
112
|
+
...this.props,
|
|
181
113
|
ref: this._ref,
|
|
182
114
|
onPress: this._onPress
|
|
183
|
-
})
|
|
115
|
+
});
|
|
184
116
|
}
|
|
185
|
-
|
|
186
117
|
}
|
|
187
|
-
|
|
188
118
|
exports.MFPolyline = MFPolyline;
|
|
189
119
|
MFPolyline.propTypes = propTypes;
|
|
190
120
|
var RMFPolyline = (0, _reactNative.requireNativeComponent)(`RMFPolyline`, MFPolyline);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","coordinates","PropTypes","arrayOf","shape","latitude","number","isRequired","longitude","color","ColorPropType","width","lineStyle","oneOf","zIndex","visible","bool","userData","object","onPress","func","MFPolyline","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","polyline","setCoordinates","_runCommand","setWidth","setColor","processColor","setVisible","setTouchable","touchable","setZIndex","setLineStyle","style","setUserData","_getHandle","findNodeHandle","name","args","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_propTypes","_deprecatedReactNativePropTypes","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","viewPropTypes","ViewPropTypes","View","propTypes","coordinates","PropTypes","arrayOf","shape","latitude","number","isRequired","longitude","color","ColorPropType","width","lineStyle","oneOf","zIndex","visible","bool","userData","object","onPress","func","MFPolyline","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","polyline","setCoordinates","_runCommand","setWidth","setColor","processColor","setVisible","setTouchable","touchable","setZIndex","setLineStyle","style","setUserData","_getHandle","findNodeHandle","name","args","runViewManagerCommand","componentName","moduleName","commandName","reactTag","render","jsx","RMFPolyline","exports","requireNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFPolyline.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAIsB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB;AACA,MAAMG,aAAa,GAAGC,6CAAa,IAAIC,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGH,aAAa;EAEhB;AACF;AACA;EACEI,WAAW,EAAEC,kBAAS,CAACC,OAAO,CAC5BD,kBAAS,CAACE,KAAK,CAAC;IACd;AACN;AACA;IACMC,QAAQ,EAAEH,kBAAS,CAACI,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEN,kBAAS,CAACI,MAAM,CAACC;EAC9B,CAAC,CACH,CAAC;EAED;AACF;AACA;EACEE,KAAK,EAAEC,6CAAa;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W,GAAG,IAAAE,mCAAsB,EAAC,aAAa,EAAErC,UAAU,CAAC","ignoreList":[]}
|
|
@@ -4,32 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MFTileOverlay = void 0;
|
|
7
|
-
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _deprecatedReactNativePropTypes = require("deprecated-react-native-prop-types");
|
|
13
|
-
|
|
14
10
|
var _reactNative = require("react-native");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(
|
|
17
|
-
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
13
|
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
|
|
19
14
|
const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || _reactNative.View.propTypes;
|
|
20
|
-
const propTypes = {
|
|
21
|
-
|
|
15
|
+
const propTypes = {
|
|
16
|
+
...viewPropTypes,
|
|
22
17
|
/**
|
|
23
18
|
* The url template of the tile server. The patterns {x} {y} {z} will be replaced at runtime
|
|
24
19
|
* For example, https://tile.openstreetmap.de/{z}/{x}/{y}.png
|
|
25
20
|
*/
|
|
26
21
|
urlTemplate: _propTypes.default.string.isRequired,
|
|
27
|
-
|
|
28
22
|
/**
|
|
29
23
|
* visible
|
|
30
24
|
*/
|
|
31
25
|
visible: _propTypes.default.bool,
|
|
32
|
-
|
|
33
26
|
/**
|
|
34
27
|
* The order in which this tile overlay is drawn with respect to other overlays. An overlay
|
|
35
28
|
* with a larger z-index is drawn over overlays with smaller z-indices. The order of overlays
|
|
@@ -37,14 +30,13 @@ const propTypes = { ...viewPropTypes,
|
|
|
37
30
|
*/
|
|
38
31
|
zIndex: _propTypes.default.number
|
|
39
32
|
};
|
|
40
|
-
|
|
41
33
|
class MFTileOverlay extends _react.default.Component {
|
|
42
34
|
render() {
|
|
43
|
-
return /*#__PURE__*/
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFTileOverlay, {
|
|
36
|
+
...this.props
|
|
37
|
+
});
|
|
44
38
|
}
|
|
45
|
-
|
|
46
39
|
}
|
|
47
|
-
|
|
48
40
|
exports.MFTileOverlay = MFTileOverlay;
|
|
49
41
|
MFTileOverlay.propTypes = propTypes;
|
|
50
42
|
var RMFTileOverlay = (0, _reactNative.requireNativeComponent)(`RMFTileOverlay`, MFTileOverlay);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","urlTemplate","PropTypes","string","isRequired","visible","bool","zIndex","number","MFTileOverlay","React","Component","render","
|
|
1
|
+
{"version":3,"names":["_propTypes","_interopRequireDefault","require","_react","_deprecatedReactNativePropTypes","_reactNative","_jsxRuntime","e","__esModule","default","viewPropTypes","ViewPropTypes","View","propTypes","urlTemplate","PropTypes","string","isRequired","visible","bool","zIndex","number","MFTileOverlay","React","Component","render","jsx","RMFTileOverlay","props","exports","requireNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFTileOverlay.js"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGsB,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB;AACA,MAAMG,aAAa,GAAGC,6CAAa,IAAIC,iBAAI,CAACC,SAAS;AACrD,MAAMA,SAAS,GAAG;EAChB,GAAGH,aAAa;EAEhB;AACF;AACA;AACA;EACEI,WAAW,EAAEC,kBAAS,CAACC,MAAM,CAACC,UAAU;EAExC;AACF;AACA;EACEC,OAAO,EAAEH,kBAAS,CAACI,IAAI;EAEvB;AACF;AACA;AACA;AACA;EACEC,MAAM,EAAEL,kBAAS,CAACM;AACpB,CAAC;AAED,MAAMC,aAAa,SAASC,cAAK,CAACC,SAAS,CAAC;EAC1CC,MAAMA,CAAA,EAAG;IACP,oBAAO,IAAAnB,WAAA,CAAAoB,GAAA,EAACC,cAAc;MAAA,GAChB,IAAI,CAACC;IAAK,CACf,CAAC;EACJ;AACF;AAACC,OAAA,CAAAP,aAAA,GAAAA,aAAA;AAEDA,aAAa,CAACT,SAAS,GAAGA,SAAS;AAEnC,IAAIc,cAAc,GAAG,IAAAG,mCAAsB,EAAC,gBAAgB,EAAER,aAAa,CAAC","ignoreList":[]}
|
|
@@ -4,16 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Map4dMapView = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
const LINKING_ERROR = `The package 'react-native-map4d-map' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
|
|
11
9
|
ios: "- You have run 'pod install'\n",
|
|
12
10
|
default: ''
|
|
13
11
|
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
|
|
14
12
|
const ComponentName = 'Map4dMapView';
|
|
15
|
-
const Map4dMapView = _reactNative.UIManager.getViewManagerConfig(ComponentName) != null ? (0, _reactNative.requireNativeComponent)(ComponentName) : () => {
|
|
13
|
+
const Map4dMapView = exports.Map4dMapView = _reactNative.UIManager.getViewManagerConfig(ComponentName) != null ? (0, _reactNative.requireNativeComponent)(ComponentName) : () => {
|
|
16
14
|
throw new Error(LINKING_ERROR);
|
|
17
15
|
};
|
|
18
|
-
exports.Map4dMapView = Map4dMapView;
|
|
19
16
|
//# sourceMappingURL=Map4dMapView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LINKING_ERROR","Platform","select","ios","default","ComponentName","Map4dMapView","UIManager","getViewManagerConfig","requireNativeComponent","Error"],"
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","ComponentName","Map4dMapView","exports","UIManager","getViewManagerConfig","requireNativeComponent","Error"],"sourceRoot":"..\\..\\..\\src","sources":["components/Map4dMapView.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOE,MAAMC,aAAa,GACjB,iFAAiF,GACjFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,6CAA6C;AAO/C,MAAMC,aAAa,GAAG,cAAc;AAE7B,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GACvBE,sBAAS,CAACC,oBAAoB,CAACJ,aAAa,CAAC,IAAI,IAAI,GACjD,IAAAK,mCAAsB,EAAgBL,aAAa,CAAC,GACpD,MAAM;EACJ,MAAM,IAAIM,KAAK,CAACX,aAAa,CAAC;AAChC,CAAC","ignoreList":[]}
|