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,25 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MFMapView = 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 _AreaFocusManager = require("./extends/AreaFocusManager");
|
|
15
|
-
|
|
16
11
|
var _AreaFocuser = require("./extends/AreaFocuser");
|
|
17
|
-
|
|
18
12
|
var _MFPolygon = require("./MFPolygon");
|
|
19
|
-
|
|
13
|
+
var _Map4dMapNativeModule = require("../native/Map4dMapNativeModule");
|
|
14
|
+
var _ViewManagerCommand = require("../native/ViewManagerCommand");
|
|
20
15
|
var _reactNative = require("react-native");
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
26
18
|
const CameraShape = _propTypes.default.shape({
|
|
27
19
|
target: _propTypes.default.shape({
|
|
28
20
|
latitude: _propTypes.default.number.isRequired,
|
|
@@ -31,132 +23,110 @@ const CameraShape = _propTypes.default.shape({
|
|
|
31
23
|
zoom: _propTypes.default.number.isRequired,
|
|
32
24
|
bearing: _propTypes.default.number.isRequired,
|
|
33
25
|
tilt: _propTypes.default.number.isRequired
|
|
34
|
-
});
|
|
35
|
-
|
|
26
|
+
});
|
|
36
27
|
|
|
28
|
+
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
|
|
37
29
|
const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
|
|
38
|
-
const propTypes = {
|
|
39
|
-
|
|
30
|
+
const propTypes = {
|
|
31
|
+
...viewPropTypes,
|
|
40
32
|
/**
|
|
41
33
|
* An opaque identifier for a custom map configuration.
|
|
42
34
|
*/
|
|
43
35
|
mapID: _propTypes.default.string,
|
|
44
|
-
|
|
45
36
|
/**
|
|
46
37
|
* Map style by string for a custom map configuration.
|
|
47
38
|
*/
|
|
48
39
|
mapStyle: _propTypes.default.string,
|
|
49
|
-
|
|
50
40
|
/**
|
|
51
41
|
* If `false` hide the button to move map to the current user's location.
|
|
52
42
|
* Default value is `false`.
|
|
53
43
|
*/
|
|
54
44
|
showsMyLocationButton: _propTypes.default.bool,
|
|
55
|
-
|
|
56
45
|
/**
|
|
57
46
|
* If `true` the app will ask for the user's location.
|
|
58
47
|
* Default value is `false`.
|
|
59
48
|
*/
|
|
60
49
|
showsMyLocation: _propTypes.default.bool,
|
|
61
|
-
|
|
62
50
|
/**
|
|
63
51
|
* A Boolean indicating whether the map displays buildings.
|
|
64
52
|
* Default value is `true`.
|
|
65
53
|
*/
|
|
66
54
|
showsBuildings: _propTypes.default.bool,
|
|
67
|
-
|
|
68
55
|
/**
|
|
69
56
|
* A Boolean indicating whether the map displays POIs.
|
|
70
57
|
* Default value is `true`.
|
|
71
58
|
*/
|
|
72
59
|
showsPOIs: _propTypes.default.bool,
|
|
73
|
-
|
|
74
60
|
/**
|
|
75
61
|
* If `false` the user won't be able to zoom the map.
|
|
76
62
|
* Default value is `true`.
|
|
77
63
|
*/
|
|
78
64
|
zoomGesturesEnabled: _propTypes.default.bool,
|
|
79
|
-
|
|
80
65
|
/**
|
|
81
66
|
* If `false` the user won't be able to scroll the map.
|
|
82
67
|
* Default value is `true`.
|
|
83
68
|
*/
|
|
84
69
|
scrollGesturesEnabled: _propTypes.default.bool,
|
|
85
|
-
|
|
86
70
|
/**
|
|
87
71
|
* If `false` the user won't be able to pinch/rotate the map.
|
|
88
72
|
* Default value is `true`.
|
|
89
73
|
*/
|
|
90
74
|
rotateGesturesEnabled: _propTypes.default.bool,
|
|
91
|
-
|
|
92
75
|
/**
|
|
93
76
|
* If `false` the user won't be able to tilt the map.
|
|
94
77
|
* Default value is `true`.
|
|
95
78
|
*/
|
|
96
79
|
tiltGesturesEnabled: _propTypes.default.bool,
|
|
97
|
-
|
|
98
80
|
/**
|
|
99
81
|
* The camera view position.
|
|
100
82
|
*/
|
|
101
83
|
camera: CameraShape,
|
|
102
|
-
|
|
103
84
|
/**
|
|
104
85
|
* Type of map tiles to be rendered.
|
|
105
86
|
*/
|
|
106
87
|
mapType: _propTypes.default.oneOf(['roadmap', 'satellite', 'hybrid']),
|
|
107
|
-
|
|
108
88
|
/**
|
|
109
89
|
* Callback that is called once the map is fully loaded.
|
|
110
90
|
* @platform android
|
|
111
91
|
*/
|
|
112
92
|
onMapReady: _propTypes.default.func,
|
|
113
|
-
|
|
114
93
|
/**
|
|
115
94
|
* Callback that is called when user taps on the map.
|
|
116
95
|
*/
|
|
117
96
|
onPress: _propTypes.default.func,
|
|
118
|
-
|
|
119
97
|
/**
|
|
120
98
|
* Callback that is called when user taps on the POIs
|
|
121
99
|
*/
|
|
122
100
|
onPoiPress: _propTypes.default.func,
|
|
123
|
-
|
|
124
101
|
/**
|
|
125
102
|
* Callback that is called when user taps on the Buildings
|
|
126
103
|
*/
|
|
127
104
|
onBuildingPress: _propTypes.default.func,
|
|
128
|
-
|
|
129
105
|
/**
|
|
130
106
|
* Callback that is called when user taps on the Places
|
|
131
107
|
*/
|
|
132
108
|
onPlacePress: _propTypes.default.func,
|
|
133
|
-
|
|
134
109
|
/**
|
|
135
110
|
* Callback that is called when user taps on the Data Source Features
|
|
136
111
|
*/
|
|
137
112
|
onDataSourceFeaturePress: _propTypes.default.func,
|
|
138
|
-
|
|
139
113
|
/**
|
|
140
114
|
* Callback that is called when moving camera
|
|
141
115
|
*/
|
|
142
116
|
onCameraMove: _propTypes.default.func,
|
|
143
|
-
|
|
144
117
|
/**
|
|
145
118
|
* Callback that is called when camera start moving
|
|
146
119
|
*/
|
|
147
120
|
onCameraMoveStart: _propTypes.default.func,
|
|
148
|
-
|
|
149
121
|
/**
|
|
150
122
|
* Callback that is called when camera idle
|
|
151
123
|
*/
|
|
152
124
|
onCameraIdle: _propTypes.default.func,
|
|
153
|
-
|
|
154
125
|
/**
|
|
155
126
|
* Callback that is called when user taps on location Button
|
|
156
127
|
*/
|
|
157
128
|
onMyLocationButtonPress: _propTypes.default.func
|
|
158
129
|
};
|
|
159
|
-
|
|
160
130
|
class MFMapView extends _react.default.Component {
|
|
161
131
|
constructor(props) {
|
|
162
132
|
super(props);
|
|
@@ -169,35 +139,33 @@ class MFMapView extends _react.default.Component {
|
|
|
169
139
|
this._onMapReady = this._onMapReady.bind(this);
|
|
170
140
|
this._ref = this._ref.bind(this);
|
|
171
141
|
}
|
|
172
|
-
|
|
173
142
|
_addPolygon(polygon) {
|
|
174
143
|
if (polygon == null || typeof polygon !== 'object') {
|
|
175
144
|
return null;
|
|
176
145
|
}
|
|
177
|
-
|
|
178
146
|
const id = typeof polygon.id === 'string' && polygon.id.trim().length > 0 ? polygon.id : 'polygon-highlight-id-default';
|
|
179
|
-
const _polygon = {
|
|
147
|
+
const _polygon = {
|
|
148
|
+
...polygon,
|
|
180
149
|
id
|
|
181
150
|
};
|
|
182
151
|
this.setState(prevState => ({
|
|
183
|
-
managedPolygons: {
|
|
152
|
+
managedPolygons: {
|
|
153
|
+
...prevState.managedPolygons,
|
|
184
154
|
[id]: _polygon
|
|
185
155
|
}
|
|
186
156
|
}));
|
|
187
157
|
return id;
|
|
188
158
|
}
|
|
189
|
-
|
|
190
159
|
_removePolygon(id) {
|
|
191
160
|
if (typeof id !== 'string' || id.trim().length === 0) {
|
|
192
161
|
return;
|
|
193
162
|
}
|
|
194
|
-
|
|
195
163
|
this.setState(prevState => {
|
|
196
164
|
if (!prevState.managedPolygons[id]) {
|
|
197
165
|
return null;
|
|
198
166
|
}
|
|
199
|
-
|
|
200
|
-
|
|
167
|
+
const managedPolygons = {
|
|
168
|
+
...prevState.managedPolygons
|
|
201
169
|
};
|
|
202
170
|
delete managedPolygons[id];
|
|
203
171
|
return {
|
|
@@ -205,13 +173,11 @@ class MFMapView extends _react.default.Component {
|
|
|
205
173
|
};
|
|
206
174
|
});
|
|
207
175
|
}
|
|
208
|
-
|
|
209
176
|
_clearManagedPolygons() {
|
|
210
177
|
this.setState({
|
|
211
178
|
managedPolygons: {}
|
|
212
179
|
});
|
|
213
180
|
}
|
|
214
|
-
|
|
215
181
|
_onMapReady() {
|
|
216
182
|
const {
|
|
217
183
|
onMapReady
|
|
@@ -224,104 +190,83 @@ class MFMapView extends _react.default.Component {
|
|
|
224
190
|
}
|
|
225
191
|
});
|
|
226
192
|
}
|
|
227
|
-
|
|
228
193
|
_ref(ref) {
|
|
229
194
|
this.map = ref;
|
|
230
195
|
}
|
|
231
|
-
|
|
232
196
|
getCamera() {
|
|
233
197
|
if (_reactNative.Platform.OS === 'android') {
|
|
234
|
-
return
|
|
198
|
+
return this._runMap4dMapModuleMethod('getCamera', [this._getHandle()]);
|
|
235
199
|
} else if (_reactNative.Platform.OS === 'ios') {
|
|
236
200
|
return this._runCommand('getCamera', []);
|
|
237
201
|
}
|
|
238
|
-
|
|
239
202
|
return Promise.reject('Function not supported on this platform');
|
|
240
203
|
}
|
|
241
|
-
|
|
242
204
|
getBounds() {
|
|
243
205
|
if (_reactNative.Platform.OS === 'android') {
|
|
244
|
-
return
|
|
206
|
+
return this._runMap4dMapModuleMethod('getBounds', [this._getHandle()]);
|
|
245
207
|
} else if (_reactNative.Platform.OS === 'ios') {
|
|
246
208
|
return this._runCommand('getBounds', []);
|
|
247
209
|
}
|
|
248
|
-
|
|
249
210
|
return Promise.reject('Function not supported on this platform');
|
|
250
211
|
}
|
|
251
|
-
|
|
252
212
|
getMyLocation() {
|
|
253
213
|
if (_reactNative.Platform.OS === 'android') {
|
|
254
|
-
return
|
|
214
|
+
return this._runMap4dMapModuleMethod('getMyLocation', [this._getHandle()]);
|
|
255
215
|
} else if (_reactNative.Platform.OS === 'ios') {
|
|
256
216
|
return this._runCommand('getMyLocation', []);
|
|
257
217
|
}
|
|
258
|
-
|
|
259
218
|
return Promise.reject('Function not supported on this platform');
|
|
260
219
|
}
|
|
261
|
-
|
|
262
220
|
animateCamera(camera) {
|
|
263
221
|
this._runCommand('animateCamera', [camera]);
|
|
264
222
|
}
|
|
265
|
-
|
|
266
223
|
moveCamera(camera) {
|
|
267
224
|
this._runCommand('moveCamera', [camera]);
|
|
268
225
|
}
|
|
269
|
-
|
|
270
226
|
setMyLocationEnabled(enable) {
|
|
271
227
|
this._runCommand('setMyLocationEnabled', [enable]);
|
|
272
228
|
}
|
|
273
|
-
|
|
274
229
|
showsMyLocationButton(enable) {
|
|
275
230
|
this._runCommand('showsMyLocationButton', [enable]);
|
|
276
231
|
}
|
|
277
|
-
|
|
278
232
|
setPOIsEnabled(enable) {
|
|
279
233
|
this._runCommand('setPOIsEnabled', [enable]);
|
|
280
234
|
}
|
|
281
|
-
|
|
282
235
|
setZoomGesturesEnabled(enable) {
|
|
283
236
|
this._runCommand('setZoomGesturesEnabled', [enable]);
|
|
284
237
|
}
|
|
285
|
-
|
|
286
238
|
setScrollGesturesEnabled(enable) {
|
|
287
239
|
this._runCommand('setScrollGesturesEnabled', [enable]);
|
|
288
240
|
}
|
|
289
|
-
|
|
290
241
|
setRotateGesturesEnabled(enable) {
|
|
291
242
|
this._runCommand('setRotateGesturesEnabled', [enable]);
|
|
292
243
|
}
|
|
293
|
-
|
|
294
244
|
setTiltGesturesEnabled(enable) {
|
|
295
245
|
this._runCommand('setTiltGesturesEnabled', [enable]);
|
|
296
246
|
}
|
|
297
|
-
|
|
298
247
|
setAllGesturesEnabled(enable) {
|
|
299
248
|
this._runCommand('setAllGesturesEnabled', [enable]);
|
|
300
249
|
}
|
|
301
|
-
|
|
302
250
|
setTime(time) {
|
|
303
251
|
let t = Date.parse(time);
|
|
304
|
-
|
|
305
252
|
if (isNaN(t)) {
|
|
306
253
|
console.log('time invalid');
|
|
307
254
|
} else {
|
|
308
255
|
this._runCommand('setTime', [t]);
|
|
309
256
|
}
|
|
310
257
|
}
|
|
311
|
-
|
|
312
258
|
fitBounds(boundsData) {
|
|
313
259
|
this._runCommand("fitBounds", [boundsData]);
|
|
314
260
|
}
|
|
315
|
-
|
|
316
261
|
cameraForBounds(boundsData) {
|
|
317
262
|
if (_reactNative.Platform.OS === 'android') {
|
|
318
|
-
return
|
|
263
|
+
return this._runMap4dMapModuleMethod('cameraForBounds', [this._getHandle(), boundsData]);
|
|
319
264
|
} else if (_reactNative.Platform.OS === 'ios') {
|
|
320
265
|
return this._runCommand('cameraForBounds', [boundsData]);
|
|
321
266
|
}
|
|
322
|
-
|
|
323
267
|
return Promise.reject('cameraForBounds not supported on this platform');
|
|
324
268
|
}
|
|
269
|
+
|
|
325
270
|
/**
|
|
326
271
|
* Convert a map coordinate to screen point
|
|
327
272
|
*
|
|
@@ -331,17 +276,15 @@ class MFMapView extends _react.default.Component {
|
|
|
331
276
|
*
|
|
332
277
|
* @return Promise Promise with the point ({ x: Number, y: Number })
|
|
333
278
|
*/
|
|
334
|
-
|
|
335
|
-
|
|
336
279
|
pointForCoordinate(coordinate) {
|
|
337
280
|
if (_reactNative.Platform.OS === 'android') {
|
|
338
|
-
return
|
|
281
|
+
return this._runMap4dMapModuleMethod('pointForCoordinate', [this._getHandle(), coordinate]);
|
|
339
282
|
} else if (_reactNative.Platform.OS === 'ios') {
|
|
340
283
|
return this._runCommand('pointForCoordinate', [coordinate]);
|
|
341
284
|
}
|
|
342
|
-
|
|
343
285
|
return Promise.reject('pointForCoordinate not supported on this platform');
|
|
344
286
|
}
|
|
287
|
+
|
|
345
288
|
/**
|
|
346
289
|
* Convert a screen point to a map coordinate
|
|
347
290
|
*
|
|
@@ -351,85 +294,47 @@ class MFMapView extends _react.default.Component {
|
|
|
351
294
|
*
|
|
352
295
|
* @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })
|
|
353
296
|
*/
|
|
354
|
-
|
|
355
|
-
|
|
356
297
|
coordinateForPoint(point) {
|
|
357
298
|
if (_reactNative.Platform.OS === 'android') {
|
|
358
|
-
return
|
|
299
|
+
return this._runMap4dMapModuleMethod('coordinateForPoint', [this._getHandle(), point]);
|
|
359
300
|
} else if (_reactNative.Platform.OS === 'ios') {
|
|
360
301
|
return this._runCommand('coordinateForPoint', [point]);
|
|
361
302
|
}
|
|
362
|
-
|
|
363
303
|
return Promise.reject('coordinateForPoint not supported on this platform');
|
|
364
304
|
}
|
|
365
|
-
|
|
366
305
|
focusArea(focusOptions) {
|
|
367
306
|
if (!this.areaFocusManager) {
|
|
368
307
|
return Promise.resolve(null);
|
|
369
308
|
}
|
|
370
|
-
|
|
371
309
|
return this.areaFocusManager.focus(focusOptions);
|
|
372
310
|
}
|
|
373
|
-
|
|
374
311
|
clearFocusedArea() {
|
|
375
312
|
if (!this.areaFocusManager) {
|
|
376
313
|
return;
|
|
377
314
|
}
|
|
378
|
-
|
|
379
315
|
this.areaFocusManager.clear();
|
|
380
316
|
}
|
|
381
|
-
|
|
382
317
|
_getHandle() {
|
|
383
318
|
return (0, _reactNative.findNodeHandle)(this.map);
|
|
384
319
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
{
|
|
390
|
-
if (!_reactNative.UIManager || typeof _reactNative.UIManager.dispatchViewManagerCommand !== 'function') {
|
|
391
|
-
return Promise.reject('UIManager.dispatchViewManagerCommand is unavailable on this React Native version');
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
const commandId = this._uiManagerCommand(name);
|
|
395
|
-
|
|
396
|
-
if (commandId == null) {
|
|
397
|
-
return Promise.reject(`Cannot find native command "${name}" for RMFMapView`);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
return _reactNative.UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
case 'ios':
|
|
404
|
-
return this._mapManagerCommand(name)(this._getHandle(), ...args);
|
|
405
|
-
|
|
406
|
-
default:
|
|
407
|
-
return Promise.reject(`Invalid platform was passed: ${_reactNative.Platform.OS}`);
|
|
320
|
+
_runMap4dMapModuleMethod(name, args) {
|
|
321
|
+
const map4dMapNativeModule = (0, _Map4dMapNativeModule.getMap4dMapNativeModule)();
|
|
322
|
+
if (!map4dMapNativeModule || typeof map4dMapNativeModule[name] !== 'function') {
|
|
323
|
+
return Promise.reject(`Map4dMap native method "${name}" is unavailable`);
|
|
408
324
|
}
|
|
325
|
+
return map4dMapNativeModule[name](...args);
|
|
409
326
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
// RN < 0.58
|
|
421
|
-
return uiManager[componentName].Commands[name];
|
|
422
|
-
} // RN >= 0.58
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
const config = uiManager.getViewManagerConfig(componentName);
|
|
426
|
-
return config && config.Commands ? config.Commands[name] : null;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
_mapManagerCommand(name) {
|
|
430
|
-
return _reactNative.NativeModules[`RMFMapView`][name];
|
|
327
|
+
_runCommand(name, args) {
|
|
328
|
+
return (0, _ViewManagerCommand.runViewManagerCommand)({
|
|
329
|
+
componentName: 'RMFMapView',
|
|
330
|
+
moduleName: 'RMFMapView',
|
|
331
|
+
commandName: name,
|
|
332
|
+
args,
|
|
333
|
+
reactTag: this._getHandle(),
|
|
334
|
+
platform: _reactNative.Platform.OS,
|
|
335
|
+
rejectOnError: true
|
|
336
|
+
});
|
|
431
337
|
}
|
|
432
|
-
|
|
433
338
|
render() {
|
|
434
339
|
let props;
|
|
435
340
|
const {
|
|
@@ -437,21 +342,21 @@ class MFMapView extends _react.default.Component {
|
|
|
437
342
|
...restProps
|
|
438
343
|
} = this.props;
|
|
439
344
|
const managedPolygons = Object.values(this.state.managedPolygons);
|
|
440
|
-
|
|
441
345
|
if (this.state.isReady) {
|
|
442
346
|
props = {
|
|
443
347
|
style: this.props.style,
|
|
444
348
|
onMapReady: this._onMapReady,
|
|
445
349
|
...restProps,
|
|
446
|
-
children: /*#__PURE__*/
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
350
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
|
|
351
|
+
children: [children, managedPolygons.map(polygon => /*#__PURE__*/(0, _jsxRuntime.jsx)(_MFPolygon.MFPolygon, {
|
|
352
|
+
coordinates: polygon.coordinates,
|
|
353
|
+
holes: polygon.holes,
|
|
354
|
+
fillColor: polygon.fillColor,
|
|
355
|
+
strokeColor: polygon.strokeColor,
|
|
356
|
+
strokeWidth: polygon.strokeWidth,
|
|
357
|
+
zIndex: polygon.zIndex
|
|
358
|
+
}, polygon.id))]
|
|
359
|
+
})
|
|
455
360
|
};
|
|
456
361
|
} else {
|
|
457
362
|
props = {
|
|
@@ -459,14 +364,12 @@ class MFMapView extends _react.default.Component {
|
|
|
459
364
|
onMapReady: this._onMapReady
|
|
460
365
|
};
|
|
461
366
|
}
|
|
462
|
-
|
|
463
|
-
|
|
367
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFMapView, {
|
|
368
|
+
...props,
|
|
464
369
|
ref: this._ref
|
|
465
|
-
})
|
|
370
|
+
});
|
|
466
371
|
}
|
|
467
|
-
|
|
468
372
|
}
|
|
469
|
-
|
|
470
373
|
exports.MFMapView = MFMapView;
|
|
471
374
|
MFMapView.propTypes = propTypes;
|
|
472
375
|
var RMFMapView = (0, _reactNative.requireNativeComponent)(`RMFMapView`, MFMapView);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CameraShape","PropTypes","shape","target","latitude","number","isRequired","longitude","zoom","bearing","tilt","viewPropTypes","ViewPropTypes","View","propTypes","mapID","string","mapStyle","showsMyLocationButton","bool","showsMyLocation","showsBuildings","showsPOIs","zoomGesturesEnabled","scrollGesturesEnabled","rotateGesturesEnabled","tiltGesturesEnabled","camera","mapType","oneOf","onMapReady","func","onPress","onPoiPress","onBuildingPress","onPlacePress","onDataSourceFeaturePress","onCameraMove","onCameraMoveStart","onCameraIdle","onMyLocationButtonPress","MFMapView","React","Component","constructor","props","areaFocusManager","AreaFocusManager","areaFocuser","AreaFocuser","state","isReady","Platform","OS","managedPolygons","_onMapReady","bind","_ref","_addPolygon","polygon","id","trim","length","_polygon","setState","prevState","_removePolygon","_clearManagedPolygons","ref","map","getCamera","NativeModules","Map4dMap","_getHandle","_runCommand","Promise","reject","getBounds","getMyLocation","animateCamera","moveCamera","setMyLocationEnabled","enable","setPOIsEnabled","setZoomGesturesEnabled","setScrollGesturesEnabled","setRotateGesturesEnabled","setTiltGesturesEnabled","setAllGesturesEnabled","setTime","time","t","Date","parse","isNaN","console","log","fitBounds","boundsData","cameraForBounds","pointForCoordinate","coordinate","coordinateForPoint","point","focusArea","focusOptions","resolve","focus","clearFocusedArea","clear","findNodeHandle","name","args","UIManager","dispatchViewManagerCommand","commandId","_uiManagerCommand","_mapManagerCommand","uiManager","componentName","getViewManagerConfig","Commands","config","render","children","restProps","Object","values","style","coordinates","holes","fillColor","strokeColor","strokeWidth","zIndex","RMFMapView","requireNativeComponent"],"sources":["MFMapView.js"],"sourcesContent":["import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\r\nimport {AreaFocusManager} from './extends/AreaFocusManager';\r\nimport {AreaFocuser} from './extends/AreaFocuser';\r\nimport {MFPolygon} from './MFPolygon';\r\nimport {\r\n requireNativeComponent,\r\n Platform,\r\n UIManager,\r\n NativeModules,\r\n findNodeHandle\r\n} from 'react-native';\r\n\r\nconst CameraShape = PropTypes.shape({\r\n target: PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }),\r\n zoom: PropTypes.number.isRequired,\r\n bearing: PropTypes.number.isRequired,\r\n tilt: PropTypes.number.isRequired,\r\n});\r\n\r\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\r\nconst viewPropTypes = ViewPropTypes || View.propTypes;\r\n\r\nconst propTypes = {\r\n ...viewPropTypes,\r\n\r\n /**\r\n * An opaque identifier for a custom map configuration.\r\n */\r\n mapID: PropTypes.string,\r\n\r\n /**\r\n * Map style by string for a custom map configuration.\r\n */\r\n mapStyle: PropTypes.string,\r\n\r\n /**\r\n * If `false` hide the button to move map to the current user's location.\r\n * Default value is `false`.\r\n */\r\n showsMyLocationButton: PropTypes.bool,\r\n\r\n /**\r\n * If `true` the app will ask for the user's location.\r\n * Default value is `false`.\r\n */\r\n showsMyLocation: PropTypes.bool,\r\n\r\n /**\r\n * A Boolean indicating whether the map displays buildings.\r\n * Default value is `true`.\r\n */\r\n showsBuildings: PropTypes.bool,\r\n\r\n /**\r\n * A Boolean indicating whether the map displays POIs.\r\n * Default value is `true`.\r\n */\r\n showsPOIs: PropTypes.bool,\r\n\r\n /**\r\n * If `false` the user won't be able to zoom the map.\r\n * Default value is `true`.\r\n */\r\n zoomGesturesEnabled: PropTypes.bool,\r\n\r\n /**\r\n * If `false` the user won't be able to scroll the map.\r\n * Default value is `true`.\r\n */\r\n scrollGesturesEnabled: PropTypes.bool,\r\n\r\n /**\r\n * If `false` the user won't be able to pinch/rotate the map.\r\n * Default value is `true`.\r\n */\r\n rotateGesturesEnabled: PropTypes.bool,\r\n\r\n /**\r\n * If `false` the user won't be able to tilt the map.\r\n * Default value is `true`.\r\n */\r\n tiltGesturesEnabled: PropTypes.bool,\r\n\r\n /**\r\n * The camera view position.\r\n */\r\n camera: CameraShape,\r\n\r\n /**\r\n * Type of map tiles to be rendered.\r\n */\r\n mapType: PropTypes.oneOf(['roadmap', 'satellite', 'hybrid']),\r\n\r\n /**\r\n * Callback that is called once the map is fully loaded.\r\n * @platform android\r\n */\r\n onMapReady: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the map.\r\n */\r\n onPress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the POIs\r\n */\r\n onPoiPress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the Buildings\r\n */\r\n onBuildingPress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the Places\r\n */\r\n onPlacePress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on the Data Source Features\r\n */\r\n onDataSourceFeaturePress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when moving camera\r\n */\r\n onCameraMove: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when camera start moving\r\n */\r\n onCameraMoveStart: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when camera idle\r\n */\r\n onCameraIdle: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when user taps on location Button\r\n */\r\n onMyLocationButtonPress: PropTypes.func,\r\n\r\n};\r\n\r\n\r\nclass MFMapView extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.areaFocusManager = new AreaFocusManager(this);\r\n this.areaFocuser = new AreaFocuser(this.areaFocusManager);\r\n this.state = {\r\n isReady: Platform.OS === 'ios',\r\n managedPolygons: {},\r\n };\r\n\r\n this._onMapReady = this._onMapReady.bind(this);\r\n this._ref = this._ref.bind(this);\r\n }\r\n\r\n _addPolygon(polygon) {\r\n if (polygon == null || typeof polygon !== 'object') {\r\n return null;\r\n }\r\n\r\n const id =\r\n typeof polygon.id === 'string' && polygon.id.trim().length > 0\r\n ? polygon.id\r\n : 'polygon-highlight-id-default';\r\n\r\n const _polygon = {\r\n ...polygon,\r\n id,\r\n };\r\n\r\n this.setState((prevState) => ({\r\n managedPolygons: {\r\n ...prevState.managedPolygons,\r\n [id]: _polygon,\r\n },\r\n }));\r\n\r\n return id;\r\n }\r\n\r\n _removePolygon(id) {\r\n if (typeof id !== 'string' || id.trim().length === 0) {\r\n return;\r\n }\r\n\r\n this.setState((prevState) => {\r\n if (!prevState.managedPolygons[id]) {\r\n return null;\r\n }\r\n\r\n const managedPolygons = {\r\n ...prevState.managedPolygons,\r\n };\r\n delete managedPolygons[id];\r\n\r\n return {\r\n managedPolygons,\r\n };\r\n });\r\n }\r\n\r\n _clearManagedPolygons() {\r\n this.setState({\r\n managedPolygons: {},\r\n });\r\n }\r\n\r\n _onMapReady() {\r\n const { onMapReady } = this.props;\r\n this.setState({ isReady: true }, () => {\r\n if (onMapReady) {\r\n onMapReady();\r\n }\r\n });\r\n }\r\n\r\n _ref(ref) {\r\n this.map = ref;\r\n }\r\n\r\n getCamera() {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.getCamera(this._getHandle());\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('getCamera', []);\r\n }\r\n return Promise.reject('Function not supported on this platform');\r\n }\r\n\r\n getBounds() {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.getBounds(this._getHandle());\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('getBounds', []);\r\n }\r\n return Promise.reject('Function not supported on this platform');\r\n }\r\n\r\n getMyLocation() {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.getMyLocation(this._getHandle());\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('getMyLocation', []);\r\n }\r\n return Promise.reject('Function not supported on this platform');\r\n }\r\n\r\n animateCamera(camera) {\r\n this._runCommand('animateCamera', [camera]);\r\n }\r\n\r\n moveCamera(camera) {\r\n this._runCommand('moveCamera', [camera]);\r\n }\r\n\r\n setMyLocationEnabled(enable) {\r\n this._runCommand('setMyLocationEnabled', [enable]);\r\n }\r\n\r\n showsMyLocationButton(enable) {\r\n this._runCommand('showsMyLocationButton', [enable]);\r\n }\r\n\r\n setPOIsEnabled(enable) {\r\n this._runCommand('setPOIsEnabled', [enable]);\r\n }\r\n\r\n setZoomGesturesEnabled(enable) {\r\n this._runCommand('setZoomGesturesEnabled', [enable]);\r\n }\r\n\r\n setScrollGesturesEnabled(enable) {\r\n this._runCommand('setScrollGesturesEnabled', [enable]);\r\n }\r\n\r\n setRotateGesturesEnabled(enable) {\r\n this._runCommand('setRotateGesturesEnabled', [enable]);\r\n }\r\n\r\n setTiltGesturesEnabled(enable) {\r\n this._runCommand('setTiltGesturesEnabled', [enable]);\r\n }\r\n\r\n setAllGesturesEnabled(enable) {\r\n this._runCommand('setAllGesturesEnabled', [enable]);\r\n }\r\n\r\n setTime(time) {\r\n let t = Date.parse(time)\r\n if (isNaN(t)) {\r\n console.log('time invalid')\r\n }\r\n else {\r\n this._runCommand('setTime', [t]);\r\n }\r\n }\r\n\r\n fitBounds(boundsData) {\r\n this._runCommand(\"fitBounds\", [boundsData])\r\n }\r\n\r\n cameraForBounds(boundsData) {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.cameraForBounds(\r\n this._getHandle(),\r\n boundsData\r\n );\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('cameraForBounds', [boundsData]);\r\n }\r\n return Promise.reject('cameraForBounds not supported on this platform');\r\n }\r\n\r\n\r\n /**\r\n * Convert a map coordinate to screen point\r\n *\r\n * @param coordinate Coordinate\r\n * @param [coordinate.latitude] Latitude\r\n * @param [coordinate.longitude] Longitude\r\n *\r\n * @return Promise Promise with the point ({ x: Number, y: Number })\r\n */\r\n pointForCoordinate(coordinate) {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.pointForCoordinate(\r\n this._getHandle(),\r\n coordinate\r\n );\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('pointForCoordinate', [coordinate]);\r\n }\r\n return Promise.reject('pointForCoordinate not supported on this platform');\r\n }\r\n\r\n /**\r\n * Convert a screen point to a map coordinate\r\n *\r\n * @param point Point\r\n * @param [point.x] X\r\n * @param [point.x] Y\r\n *\r\n * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })\r\n */\r\n coordinateForPoint(point) {\r\n if (Platform.OS === 'android') {\r\n return NativeModules.Map4dMap.coordinateForPoint(\r\n this._getHandle(),\r\n point\r\n );\r\n } else if (Platform.OS === 'ios') {\r\n return this._runCommand('coordinateForPoint', [point]);\r\n }\r\n return Promise.reject('coordinateForPoint not supported on this platform');\r\n }\r\n\r\n focusArea(focusOptions) {\r\n if (!this.areaFocusManager) {\r\n return Promise.resolve(null)\r\n }\r\n\r\n return this.areaFocusManager.focus(focusOptions)\r\n }\r\n\r\n clearFocusedArea() {\r\n if (!this.areaFocusManager) {\r\n return\r\n }\r\n this.areaFocusManager.clear()\r\n }\r\n\r\n _getHandle() {\r\n return findNodeHandle(this.map);\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 Promise.reject('UIManager.dispatchViewManagerCommand is unavailable on this React Native version')\r\n }\r\n\r\n const commandId = this._uiManagerCommand(name)\r\n if (commandId == null) {\r\n return Promise.reject(`Cannot find native command \"${name}\" for RMFMapView`)\r\n }\r\n\r\n return UIManager.dispatchViewManagerCommand(\r\n this._getHandle(),\r\n commandId,\r\n args\r\n );\r\n }\r\n\r\n case 'ios':\r\n return this._mapManagerCommand(name)(this._getHandle(), ...args);\r\n\r\n default:\r\n return Promise.reject(`Invalid platform was passed: ${Platform.OS}`);\r\n }\r\n }\r\n\r\n _uiManagerCommand(name) {\r\n const uiManager = UIManager || NativeModules.UIManager;\r\n const componentName = \"RMFMapView\";\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 return uiManager[componentName].Commands[name];\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[`RMFMapView`][name];\r\n }\r\n\r\n render() {\r\n let props;\r\n const { children, ...restProps } = this.props;\r\n const managedPolygons = Object.values(this.state.managedPolygons);\r\n\r\n if (this.state.isReady) {\r\n props = {\r\n style: this.props.style,\r\n onMapReady: this._onMapReady,\r\n ...restProps,\r\n children: (\r\n <React.Fragment>\r\n {children}\r\n {managedPolygons.map((polygon) => (\r\n <MFPolygon\r\n key={polygon.id}\r\n coordinates={polygon.coordinates}\r\n holes={polygon.holes}\r\n fillColor={polygon.fillColor}\r\n strokeColor={polygon.strokeColor}\r\n strokeWidth={polygon.strokeWidth}\r\n zIndex={polygon.zIndex}\r\n />\r\n ))}\r\n </React.Fragment>\r\n ),\r\n };\r\n } else {\r\n props = {\r\n style: this.props.style,\r\n onMapReady: this._onMapReady\r\n };\r\n }\r\n\r\n return <RMFMapView\r\n {...props}\r\n ref={this._ref}\r\n />;\r\n }\r\n}\r\n\r\nMFMapView.propTypes = propTypes;\r\nvar RMFMapView = requireNativeComponent(`RMFMapView`, MFMapView);\r\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W,EAAED,OAAO,CAACsE,WAFvB;UAGE,KAAK,EAAEtE,OAAO,CAACuE,KAHjB;UAIE,SAAS,EAAEvE,OAAO,CAACwE,SAJrB;UAKE,WAAW,EAAExE,OAAO,CAACyE,WALvB;UAME,WAAW,EAAEzE,OAAO,CAAC0E,WANvB;UAOE,MAAM,EAAE1E,OAAO,CAAC2E;QAPlB,EADD,CAFH;MALI,CAAR;IAqBD,CAtBD,MAsBO;MACLzF,KAAK,GAAG;QACNmF,KAAK,EAAE,KAAKnF,KAAL,CAAWmF,KADZ;QAENlG,UAAU,EAAE,KAAKyB;MAFX,CAAR;IAID;;IAED,oBAAO,6BAAC,UAAD,eACDV,KADC;MAEL,GAAG,EAAE,KAAKY;IAFL,GAAP;EAID;;AAjUqC;;;AAoUxChB,SAAS,CAAC3B,SAAV,GAAsBA,SAAtB;AACA,IAAIyH,UAAU,GAAG,IAAAC,mCAAA,EAAwB,YAAxB,EAAqC/F,SAArC,CAAjB"}
|
|
1
|
+
{"version":3,"names":["_propTypes","_interopRequireDefault","require","_react","_deprecatedReactNativePropTypes","_AreaFocusManager","_AreaFocuser","_MFPolygon","_Map4dMapNativeModule","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","CameraShape","PropTypes","shape","target","latitude","number","isRequired","longitude","zoom","bearing","tilt","viewPropTypes","ViewPropTypes","View","propTypes","mapID","string","mapStyle","showsMyLocationButton","bool","showsMyLocation","showsBuildings","showsPOIs","zoomGesturesEnabled","scrollGesturesEnabled","rotateGesturesEnabled","tiltGesturesEnabled","camera","mapType","oneOf","onMapReady","func","onPress","onPoiPress","onBuildingPress","onPlacePress","onDataSourceFeaturePress","onCameraMove","onCameraMoveStart","onCameraIdle","onMyLocationButtonPress","MFMapView","React","Component","constructor","props","areaFocusManager","AreaFocusManager","areaFocuser","AreaFocuser","state","isReady","Platform","OS","managedPolygons","_onMapReady","bind","_ref","_addPolygon","polygon","id","trim","length","_polygon","setState","prevState","_removePolygon","_clearManagedPolygons","ref","map","getCamera","_runMap4dMapModuleMethod","_getHandle","_runCommand","Promise","reject","getBounds","getMyLocation","animateCamera","moveCamera","setMyLocationEnabled","enable","setPOIsEnabled","setZoomGesturesEnabled","setScrollGesturesEnabled","setRotateGesturesEnabled","setTiltGesturesEnabled","setAllGesturesEnabled","setTime","time","t","Date","parse","isNaN","console","log","fitBounds","boundsData","cameraForBounds","pointForCoordinate","coordinate","coordinateForPoint","point","focusArea","focusOptions","resolve","focus","clearFocusedArea","clear","findNodeHandle","name","args","map4dMapNativeModule","getMap4dMapNativeModule","runViewManagerCommand","componentName","moduleName","commandName","reactTag","platform","rejectOnError","render","children","restProps","Object","values","style","jsxs","Fragment","jsx","MFPolygon","coordinates","holes","fillColor","strokeColor","strokeWidth","zIndex","RMFMapView","exports","requireNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFMapView.js"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AAIsB,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB,MAAMG,WAAW,GAAGC,kBAAS,CAACC,KAAK,CAAC;EAClCC,MAAM,EAAEF,kBAAS,CAACC,KAAK,CAAC;IACtBE,QAAQ,EAAEH,kBAAS,CAACI,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEN,kBAAS,CAACI,MAAM,CAACC;EAC9B,CAAC,CAAC;EACF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