react-native-map4d-map-dtqg 0.1.4 → 0.1.6
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 +2 -2
- package/android/build.gradle +23 -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 +30 -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 +334 -0
- package/lib/commonjs/components/MFBanDoSo/styles.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/ui.js +231 -0
- package/lib/commonjs/components/MFBanDoSo/ui.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo.js +201 -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 +25 -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 +332 -0
- package/lib/module/components/MFBanDoSo/styles.js.map +1 -0
- package/lib/module/components/MFBanDoSo/ui.js +224 -0
- package/lib/module/components/MFBanDoSo/ui.js.map +1 -0
- package/lib/module/components/MFBanDoSo.js +203 -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 +11 -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 +336 -0
- package/lib/typescript/components/MFBanDoSo/styles.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/ui.d.ts +32 -0
- package/lib/typescript/components/MFBanDoSo/ui.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo.d.ts +38 -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 +38 -0
- package/src/components/MFBanDoSo/helpers.js +273 -0
- package/src/components/MFBanDoSo/propTypes.js +14 -0
- package/src/components/MFBanDoSo/styles.js +323 -0
- package/src/components/MFBanDoSo/ui.js +261 -0
- package/src/components/MFBanDoSo.js +280 -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,22 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MFDirectionsRenderer = 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
|
const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
|
|
21
|
-
const propTypes = {
|
|
22
|
-
|
|
15
|
+
const propTypes = {
|
|
16
|
+
...viewPropTypes,
|
|
23
17
|
/**
|
|
24
18
|
* The directions to display on the map,
|
|
25
19
|
* retrieved as an array of array of coordinates to describe the routes.
|
|
@@ -29,59 +23,48 @@ const propTypes = { ...viewPropTypes,
|
|
|
29
23
|
latitude: _propTypes.default.number.isRequired,
|
|
30
24
|
longitude: _propTypes.default.number.isRequired
|
|
31
25
|
}))),
|
|
32
|
-
|
|
33
26
|
/**
|
|
34
27
|
* The directions to display on the map,
|
|
35
28
|
* retrieved as a json string from Get route Map4D API (/sdk/route).
|
|
36
29
|
* Similar to routes prop but with lower priority
|
|
37
30
|
*/
|
|
38
31
|
directions: _propTypes.default.string,
|
|
39
|
-
|
|
40
32
|
/**
|
|
41
33
|
* The index of the main route, default value is 0.
|
|
42
34
|
*/
|
|
43
35
|
activedIndex: _propTypes.default.number,
|
|
44
|
-
|
|
45
36
|
/**
|
|
46
37
|
* The active route stroke width.
|
|
47
38
|
*/
|
|
48
39
|
activeStrokeWidth: _propTypes.default.number,
|
|
49
|
-
|
|
50
40
|
/**
|
|
51
41
|
* The active route color.
|
|
52
42
|
*/
|
|
53
43
|
activeStrokeColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
54
|
-
|
|
55
44
|
/**
|
|
56
45
|
* The active route outline stroke width.
|
|
57
46
|
*/
|
|
58
47
|
activeOutlineWidth: _propTypes.default.number,
|
|
59
|
-
|
|
60
48
|
/**
|
|
61
49
|
* The active route outline color.
|
|
62
50
|
*/
|
|
63
51
|
activeOutlineColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
64
|
-
|
|
65
52
|
/**
|
|
66
53
|
* The inactive route stroke width.
|
|
67
54
|
*/
|
|
68
55
|
inactiveStrokeWidth: _propTypes.default.number,
|
|
69
|
-
|
|
70
56
|
/**
|
|
71
57
|
* The inactive route color.
|
|
72
58
|
*/
|
|
73
59
|
inactiveStrokeColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
74
|
-
|
|
75
60
|
/**
|
|
76
61
|
* The inactive route outline stroke width.
|
|
77
62
|
*/
|
|
78
63
|
inactiveOutlineWidth: _propTypes.default.number,
|
|
79
|
-
|
|
80
64
|
/**
|
|
81
65
|
* The inactive route outline color.
|
|
82
66
|
*/
|
|
83
67
|
inactiveOutlineColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
84
|
-
|
|
85
68
|
/**
|
|
86
69
|
* The options of the origin POI.
|
|
87
70
|
*/
|
|
@@ -97,7 +80,6 @@ const propTypes = { ...viewPropTypes,
|
|
|
97
80
|
titleColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
98
81
|
visible: _propTypes.default.bool
|
|
99
82
|
}),
|
|
100
|
-
|
|
101
83
|
/**
|
|
102
84
|
* The options of the destination POI.
|
|
103
85
|
*/
|
|
@@ -113,40 +95,32 @@ const propTypes = { ...viewPropTypes,
|
|
|
113
95
|
titleColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
114
96
|
visible: _propTypes.default.bool
|
|
115
97
|
}),
|
|
116
|
-
|
|
117
98
|
/**
|
|
118
99
|
* Callback that is called when the user presses on the routes.
|
|
119
100
|
*/
|
|
120
101
|
onPress: _propTypes.default.func
|
|
121
102
|
};
|
|
122
|
-
|
|
123
103
|
class MFDirectionsRenderer extends _react.default.Component {
|
|
124
104
|
constructor(props) {
|
|
125
105
|
super(props);
|
|
126
106
|
this._ref = this._ref.bind(this);
|
|
127
107
|
this._onPress = this._onPress.bind(this);
|
|
128
108
|
}
|
|
129
|
-
|
|
130
109
|
setActivedIndex(index) {
|
|
131
110
|
this._runCommand("setActivedIndex", [index]);
|
|
132
111
|
}
|
|
133
|
-
|
|
134
112
|
setRoutes(routes) {
|
|
135
113
|
this._runCommand("setRoutes", [routes]);
|
|
136
114
|
}
|
|
137
|
-
|
|
138
115
|
setDirections(directions) {
|
|
139
116
|
this._runCommand("setDirections", [directions]);
|
|
140
117
|
}
|
|
141
|
-
|
|
142
118
|
render() {
|
|
143
119
|
let originPOIOptions = this.props.originPOIOptions;
|
|
144
|
-
|
|
145
120
|
if (originPOIOptions) {
|
|
146
121
|
if (originPOIOptions.titleColor) {
|
|
147
122
|
originPOIOptions.titleColor = (0, _reactNative.processColor)(originPOIOptions.titleColor);
|
|
148
123
|
}
|
|
149
|
-
|
|
150
124
|
if (originPOIOptions.icon) {
|
|
151
125
|
let uri = _reactNative.Image.resolveAssetSource(originPOIOptions.icon.uri) || {
|
|
152
126
|
uri: originPOIOptions.icon.uri
|
|
@@ -156,14 +130,11 @@ class MFDirectionsRenderer extends _react.default.Component {
|
|
|
156
130
|
};
|
|
157
131
|
}
|
|
158
132
|
}
|
|
159
|
-
|
|
160
133
|
let destinationPOIOptions = this.props.destinationPOIOptions;
|
|
161
|
-
|
|
162
134
|
if (destinationPOIOptions) {
|
|
163
135
|
if (destinationPOIOptions.titleColor) {
|
|
164
136
|
destinationPOIOptions.titleColor = (0, _reactNative.processColor)(destinationPOIOptions.titleColor);
|
|
165
137
|
}
|
|
166
|
-
|
|
167
138
|
if (destinationPOIOptions.icon) {
|
|
168
139
|
let uri = _reactNative.Image.resolveAssetSource(destinationPOIOptions.icon.uri) || {
|
|
169
140
|
uri: destinationPOIOptions.icon.uri
|
|
@@ -173,85 +144,36 @@ class MFDirectionsRenderer extends _react.default.Component {
|
|
|
173
144
|
};
|
|
174
145
|
}
|
|
175
146
|
}
|
|
176
|
-
|
|
177
|
-
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFDirectionsRenderer, {
|
|
148
|
+
...this.props,
|
|
178
149
|
originPOIOptions: originPOIOptions,
|
|
179
150
|
destinationPOIOptions: destinationPOIOptions,
|
|
180
151
|
ref: this._ref,
|
|
181
152
|
onPress: this._onPress
|
|
182
|
-
})
|
|
153
|
+
});
|
|
183
154
|
}
|
|
184
|
-
|
|
185
155
|
_ref(ref) {
|
|
186
156
|
this.renderer = ref;
|
|
187
157
|
}
|
|
188
|
-
|
|
189
158
|
_onPress(event) {
|
|
190
159
|
event.stopPropagation();
|
|
191
|
-
|
|
192
160
|
if (this.props.onPress) {
|
|
193
161
|
this.props.onPress(event);
|
|
194
162
|
}
|
|
195
163
|
}
|
|
196
|
-
|
|
197
164
|
_runCommand(name, args) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
const commandId = this._uiManagerCommand(name);
|
|
206
|
-
|
|
207
|
-
if (commandId == null) {
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
_reactNative.UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
|
|
212
|
-
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
case 'ios':
|
|
217
|
-
this._mapManagerCommand(name)(this._getHandle(), ...args);
|
|
218
|
-
|
|
219
|
-
break;
|
|
220
|
-
|
|
221
|
-
default:
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
165
|
+
return (0, _ViewManagerCommand.runViewManagerCommand)({
|
|
166
|
+
componentName: 'RMFDirectionsRenderer',
|
|
167
|
+
moduleName: 'RMFDirectionsRenderer',
|
|
168
|
+
commandName: name,
|
|
169
|
+
args,
|
|
170
|
+
reactTag: this._getHandle()
|
|
171
|
+
});
|
|
224
172
|
}
|
|
225
|
-
|
|
226
173
|
_getHandle() {
|
|
227
174
|
return (0, _reactNative.findNodeHandle)(this.renderer);
|
|
228
175
|
}
|
|
229
|
-
|
|
230
|
-
_uiManagerCommand(name) {
|
|
231
|
-
const uiManager = _reactNative.UIManager || _reactNative.NativeModules.UIManager;
|
|
232
|
-
const componentName = "RMFDirectionsRenderer";
|
|
233
|
-
|
|
234
|
-
if (!uiManager) {
|
|
235
|
-
return null;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
if (!uiManager.getViewManagerConfig) {
|
|
239
|
-
// RN < 0.58
|
|
240
|
-
const legacyConfig = uiManager[componentName];
|
|
241
|
-
return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;
|
|
242
|
-
} // RN >= 0.58
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
const config = uiManager.getViewManagerConfig(componentName);
|
|
246
|
-
return config && config.Commands ? config.Commands[name] : null;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
_mapManagerCommand(name) {
|
|
250
|
-
return _reactNative.NativeModules[`RMFDirectionsRenderer`][name];
|
|
251
|
-
}
|
|
252
|
-
|
|
253
176
|
}
|
|
254
|
-
|
|
255
177
|
exports.MFDirectionsRenderer = MFDirectionsRenderer;
|
|
256
178
|
MFDirectionsRenderer.propTypes = propTypes;
|
|
257
179
|
var RMFDirectionsRenderer = (0, _reactNative.requireNativeComponent)(`RMFDirectionsRenderer`, MFDirectionsRenderer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","routes","PropTypes","arrayOf","shape","latitude","number","isRequired","longitude","directions","string","activedIndex","activeStrokeWidth","activeStrokeColor","ColorPropType","activeOutlineWidth","activeOutlineColor","inactiveStrokeWidth","inactiveStrokeColor","inactiveOutlineWidth","inactiveOutlineColor","originPOIOptions","coordinate","icon","uri","any","title","titleColor","visible","bool","destinationPOIOptions","onPress","func","MFDirectionsRenderer","React","Component","constructor","props","_ref","bind","_onPress","setActivedIndex","index","_runCommand","setRoutes","setDirections","render","processColor","Image","resolveAssetSource","ref","renderer","event","stopPropagation","name","args","Platform","OS","UIManager","dispatchViewManagerCommand","commandId","_uiManagerCommand","_getHandle","_mapManagerCommand","findNodeHandle","uiManager","NativeModules","componentName","getViewManagerConfig","legacyConfig","Commands","config","RMFDirectionsRenderer","requireNativeComponent"],"sources":["MFDirectionsRenderer.js"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\r\nimport {\r\n requireNativeComponent,\r\n Platform,\r\n Image,\r\n UIManager,\r\n NativeModules,\r\n findNodeHandle,\r\n processColor\r\n} from 'react-native';\r\n\r\nconst viewPropTypes = ViewPropTypes || View.propTypes;\r\n\r\nconst propTypes = {\r\n ...viewPropTypes,\r\n\r\n /**\r\n * The directions to display on the map,\r\n * retrieved as an array of array of coordinates to describe the routes.\r\n * Similar to directions prop but has higher priority\r\n */\r\n routes: PropTypes.arrayOf(\r\n PropTypes.arrayOf(\r\n PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n })\r\n )\r\n ),\r\n\r\n /**\r\n * The directions to display on the map,\r\n * retrieved as a json string from Get route Map4D API (/sdk/route).\r\n * Similar to routes prop but with lower priority\r\n */\r\n directions: PropTypes.string,\r\n\r\n /**\r\n * The index of the main route, default value is 0.\r\n */\r\n activedIndex: PropTypes.number,\r\n\r\n /**\r\n * The active route stroke width.\r\n */\r\n activeStrokeWidth: PropTypes.number,\r\n\r\n /**\r\n * The active route color.\r\n */\r\n activeStrokeColor: ColorPropType,\r\n\r\n /**\r\n * The active route outline stroke width.\r\n */\r\n activeOutlineWidth: PropTypes.number,\r\n\r\n /**\r\n * The active route outline color.\r\n */\r\n activeOutlineColor: ColorPropType,\r\n\r\n /**\r\n * The inactive route stroke width.\r\n */\r\n inactiveStrokeWidth: PropTypes.number,\r\n\r\n /**\r\n * The inactive route color.\r\n */\r\n inactiveStrokeColor: ColorPropType,\r\n\r\n /**\r\n * The inactive route outline stroke width.\r\n */\r\n inactiveOutlineWidth: PropTypes.number,\r\n\r\n /**\r\n * The inactive route outline color.\r\n */\r\n inactiveOutlineColor: ColorPropType,\r\n\r\n /**\r\n * The options of the origin POI.\r\n */\r\n originPOIOptions: PropTypes.shape({\r\n coordinate: PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }),\r\n\r\n icon: PropTypes.shape({\r\n uri: PropTypes.any.isRequired\r\n }),\r\n\r\n title: PropTypes.string,\r\n\r\n titleColor: ColorPropType,\r\n\r\n visible: PropTypes.bool,\r\n }),\r\n\r\n /**\r\n * The options of the destination POI.\r\n */\r\n destinationPOIOptions: PropTypes.shape({\r\n coordinate: PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }),\r\n\r\n icon: PropTypes.shape({\r\n uri: PropTypes.any.isRequired\r\n }),\r\n\r\n title: PropTypes.string,\r\n\r\n titleColor: ColorPropType,\r\n\r\n visible: PropTypes.bool,\r\n }),\r\n\r\n /**\r\n * Callback that is called when the user presses on the routes.\r\n */\r\n onPress: PropTypes.func,\r\n};\r\n\r\nclass MFDirectionsRenderer extends React.Component {\r\n constructor(props) {\r\n super(props)\r\n this._ref = this._ref.bind(this)\r\n this._onPress = this._onPress.bind(this)\r\n }\r\n\r\n setActivedIndex(index) {\r\n this._runCommand(\"setActivedIndex\", [index])\r\n }\r\n\r\n setRoutes(routes) {\r\n this._runCommand(\"setRoutes\", [routes])\r\n }\r\n\r\n setDirections(directions) {\r\n this._runCommand(\"setDirections\", [directions])\r\n }\r\n\r\n render() {\r\n let originPOIOptions = this.props.originPOIOptions\r\n if (originPOIOptions) {\r\n if (originPOIOptions.titleColor) {\r\n originPOIOptions.titleColor = processColor(originPOIOptions.titleColor)\r\n }\r\n if (originPOIOptions.icon) {\r\n let uri = Image.resolveAssetSource(originPOIOptions.icon.uri) || {uri: originPOIOptions.icon.uri};\r\n originPOIOptions.icon = {uri: uri.uri}\r\n }\r\n }\r\n\r\n let destinationPOIOptions = this.props.destinationPOIOptions\r\n if (destinationPOIOptions) {\r\n if (destinationPOIOptions.titleColor) {\r\n destinationPOIOptions.titleColor = processColor(destinationPOIOptions.titleColor)\r\n }\r\n if (destinationPOIOptions.icon) {\r\n let uri = Image.resolveAssetSource(destinationPOIOptions.icon.uri) || {uri: destinationPOIOptions.icon.uri};\r\n destinationPOIOptions.icon = {uri: uri.uri}\r\n }\r\n }\r\n\r\n return <RMFDirectionsRenderer\r\n {...this.props}\r\n originPOIOptions={originPOIOptions}\r\n destinationPOIOptions={destinationPOIOptions}\r\n ref={this._ref}\r\n onPress={this._onPress}\r\n />;\r\n }\r\n\r\n _ref(ref) {\r\n this.renderer = ref;\r\n }\r\n\r\n _onPress(event) {\r\n event.stopPropagation();\r\n if (this.props.onPress) {\r\n this.props.onPress(event);\r\n }\r\n }\r\n\r\n _runCommand(name, args) {\r\n switch (Platform.OS) {\r\n case 'android': {\r\n if (!UIManager || typeof UIManager.dispatchViewManagerCommand !== 'function') {\r\n return;\r\n }\r\n\r\n const commandId = this._uiManagerCommand(name);\r\n if (commandId == null) {\r\n return;\r\n }\r\n\r\n UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);\r\n break;\r\n }\r\n\r\n case 'ios':\r\n this._mapManagerCommand(name)(this._getHandle(), ...args);\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n _getHandle() {\r\n return findNodeHandle(this.renderer);\r\n }\r\n\r\n _uiManagerCommand(name) {\r\n const uiManager = UIManager || NativeModules.UIManager;\r\n const componentName = \"RMFDirectionsRenderer\";\r\n\r\n if (!uiManager) {\r\n return null;\r\n }\r\n\r\n if (!uiManager.getViewManagerConfig) {\r\n // RN < 0.58\r\n const legacyConfig = uiManager[componentName];\r\n return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;\r\n }\r\n\r\n // RN >= 0.58 \r\n const config = uiManager.getViewManagerConfig(componentName);\r\n return config && config.Commands ? config.Commands[name] : null;\r\n }\r\n\r\n _mapManagerCommand(name) {\r\n return NativeModules[`RMFDirectionsRenderer`][name];\r\n }\r\n}\r\n\r\nMFDirectionsRenderer.propTypes = propTypes;\r\n\r\nvar RMFDirectionsRenderer = requireNativeComponent(`RMFDirectionsRenderer`, MFDirectionsRenderer);\r\n\r\nexport { MFDirectionsRenderer }\r\n"],"mappings":";;;;;;;AAA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qC;MACnC;MACA,MAAMC,YAAY,GAAGJ,SAAS,CAACE,aAAD,CAA9B;MACA,OAAOE,YAAY,IAAIA,YAAY,CAACC,QAA7B,GAAwCD,YAAY,CAACC,QAAb,CAAsBhB,IAAtB,CAAxC,GAAsE,IAA7E;IACD,CAZqB,CActB;;;IACA,MAAMiB,MAAM,GAAGN,SAAS,CAACG,oBAAV,CAA+BD,aAA/B,CAAf;IACA,OAAOI,MAAM,IAAIA,MAAM,CAACD,QAAjB,GAA4BC,MAAM,CAACD,QAAP,CAAgBhB,IAAhB,CAA5B,GAAoD,IAA3D;EACD;;EAEDS,kBAAkB,CAACT,IAAD,EAAO;IACvB,OAAOY,0BAAA,CAAe,uBAAf,EAAuCZ,IAAvC,CAAP;EACD;;AAhHgD;;;AAmHnDrB,oBAAoB,CAACjC,SAArB,GAAiCA,SAAjC;AAEA,IAAIwE,qBAAqB,GAAG,IAAAC,mCAAA,EAAwB,uBAAxB,EAAgDxC,oBAAhD,CAA5B"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_propTypes","_deprecatedReactNativePropTypes","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","viewPropTypes","ViewPropTypes","View","propTypes","routes","PropTypes","arrayOf","shape","latitude","number","isRequired","longitude","directions","string","activedIndex","activeStrokeWidth","activeStrokeColor","ColorPropType","activeOutlineWidth","activeOutlineColor","inactiveStrokeWidth","inactiveStrokeColor","inactiveOutlineWidth","inactiveOutlineColor","originPOIOptions","coordinate","icon","uri","any","title","titleColor","visible","bool","destinationPOIOptions","onPress","func","MFDirectionsRenderer","React","Component","constructor","props","_ref","bind","_onPress","setActivedIndex","index","_runCommand","setRoutes","setDirections","render","processColor","Image","resolveAssetSource","jsx","RMFDirectionsRenderer","ref","renderer","event","stopPropagation","name","args","runViewManagerCommand","componentName","moduleName","commandName","reactTag","_getHandle","findNodeHandle","exports","requireNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFDirectionsRenderer.js"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