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
|
@@ -5,24 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.buildGeojsonStyle = buildGeojsonStyle;
|
|
7
7
|
exports.createCategoryItemsSignature = createCategoryItemsSignature;
|
|
8
|
-
|
|
9
8
|
var _DefaultRoadmapStyle = _interopRequireDefault(require("./DefaultRoadmapStyle"));
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
10
|
const GEOJSON_SOURCE_NAME = 'geojson';
|
|
14
|
-
|
|
15
11
|
function deepClone(value) {
|
|
16
12
|
return JSON.parse(JSON.stringify(value));
|
|
17
13
|
}
|
|
18
|
-
|
|
19
14
|
function toStyleObject(mapStyle) {
|
|
20
15
|
const defaultStyle = deepClone(_DefaultRoadmapStyle.default);
|
|
21
|
-
|
|
22
16
|
if (mapStyle == null) {
|
|
23
17
|
return defaultStyle;
|
|
24
18
|
}
|
|
25
|
-
|
|
26
19
|
if (typeof mapStyle === 'string') {
|
|
27
20
|
try {
|
|
28
21
|
return JSON.parse(mapStyle);
|
|
@@ -30,7 +23,6 @@ function toStyleObject(mapStyle) {
|
|
|
30
23
|
return defaultStyle;
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
|
-
|
|
34
26
|
if (typeof mapStyle === 'object' && !Array.isArray(mapStyle)) {
|
|
35
27
|
try {
|
|
36
28
|
return deepClone(mapStyle);
|
|
@@ -38,20 +30,16 @@ function toStyleObject(mapStyle) {
|
|
|
38
30
|
return defaultStyle;
|
|
39
31
|
}
|
|
40
32
|
}
|
|
41
|
-
|
|
42
33
|
return defaultStyle;
|
|
43
34
|
}
|
|
44
|
-
|
|
45
35
|
function generateLayerStyle(source, items) {
|
|
46
36
|
const layers = [];
|
|
47
37
|
items.forEach(item => {
|
|
48
|
-
const key = item
|
|
49
|
-
const style = item
|
|
50
|
-
|
|
38
|
+
const key = item?.key;
|
|
39
|
+
const style = item?.style;
|
|
51
40
|
if (!key || !style || typeof style !== 'object') {
|
|
52
41
|
return;
|
|
53
42
|
}
|
|
54
|
-
|
|
55
43
|
if (Array.isArray(style.line)) {
|
|
56
44
|
style.line.forEach((line, index) => {
|
|
57
45
|
layers.push({
|
|
@@ -60,11 +48,13 @@ function generateLayerStyle(source, items) {
|
|
|
60
48
|
source,
|
|
61
49
|
source_layer: line.layer,
|
|
62
50
|
filter: line.filter,
|
|
63
|
-
draw: line.draw
|
|
51
|
+
draw: line.draw,
|
|
52
|
+
metadata: {
|
|
53
|
+
managedBy: 'MFBanDoSo'
|
|
54
|
+
}
|
|
64
55
|
});
|
|
65
56
|
});
|
|
66
57
|
}
|
|
67
|
-
|
|
68
58
|
if (Array.isArray(style.fill)) {
|
|
69
59
|
style.fill.forEach((fill, index) => {
|
|
70
60
|
layers.push({
|
|
@@ -73,11 +63,13 @@ function generateLayerStyle(source, items) {
|
|
|
73
63
|
source,
|
|
74
64
|
source_layer: fill.layer,
|
|
75
65
|
filter: fill.filter,
|
|
76
|
-
draw: fill.draw
|
|
66
|
+
draw: fill.draw,
|
|
67
|
+
metadata: {
|
|
68
|
+
managedBy: 'MFBanDoSo'
|
|
69
|
+
}
|
|
77
70
|
});
|
|
78
71
|
});
|
|
79
72
|
}
|
|
80
|
-
|
|
81
73
|
if (Array.isArray(style.symbol)) {
|
|
82
74
|
style.symbol.forEach((symbol, index) => {
|
|
83
75
|
layers.push({
|
|
@@ -86,50 +78,47 @@ function generateLayerStyle(source, items) {
|
|
|
86
78
|
source,
|
|
87
79
|
source_layer: symbol.layer,
|
|
88
80
|
filter: symbol.filter,
|
|
89
|
-
draw: symbol.draw
|
|
81
|
+
draw: symbol.draw,
|
|
82
|
+
metadata: {
|
|
83
|
+
managedBy: 'MFBanDoSo'
|
|
84
|
+
}
|
|
90
85
|
});
|
|
91
86
|
});
|
|
92
87
|
}
|
|
93
88
|
});
|
|
94
89
|
return layers;
|
|
95
90
|
}
|
|
96
|
-
|
|
97
91
|
function createCategoryItemsSignature(items) {
|
|
98
92
|
if (!Array.isArray(items)) {
|
|
99
93
|
return '';
|
|
100
94
|
}
|
|
101
|
-
|
|
102
95
|
const normalized = items.map(item => ({
|
|
103
|
-
key:
|
|
104
|
-
checked: !!
|
|
105
|
-
style:
|
|
96
|
+
key: item?.key || '',
|
|
97
|
+
checked: !!item?.checked,
|
|
98
|
+
style: item?.style || null
|
|
106
99
|
}));
|
|
107
100
|
return JSON.stringify(normalized);
|
|
108
101
|
}
|
|
109
|
-
|
|
110
102
|
function buildGeojsonStyle(mapStyle, sourceUrl, items) {
|
|
111
103
|
const result = toStyleObject(mapStyle);
|
|
112
104
|
result.sources = result.sources || {};
|
|
113
105
|
const defaultGeojsonSource = typeof result.sources[GEOJSON_SOURCE_NAME] === 'object' && result.sources[GEOJSON_SOURCE_NAME] !== null ? result.sources[GEOJSON_SOURCE_NAME] : {};
|
|
114
|
-
result.sources[GEOJSON_SOURCE_NAME] = {
|
|
106
|
+
result.sources[GEOJSON_SOURCE_NAME] = {
|
|
107
|
+
...defaultGeojsonSource,
|
|
115
108
|
type: 'vector'
|
|
116
109
|
};
|
|
117
|
-
|
|
118
110
|
if (typeof sourceUrl === 'string' && sourceUrl.trim().length > 0) {
|
|
119
111
|
result.sources[GEOJSON_SOURCE_NAME].url = sourceUrl;
|
|
120
112
|
}
|
|
121
|
-
|
|
122
113
|
const normalizeItems = Array.isArray(items) ? items : [];
|
|
123
114
|
const layerStyle = generateLayerStyle(GEOJSON_SOURCE_NAME, normalizeItems);
|
|
124
115
|
const baseLayers = (Array.isArray(result.layers) ? result.layers : []).filter(layer => {
|
|
125
116
|
if (!layer || typeof layer !== 'object') {
|
|
126
117
|
return false;
|
|
127
118
|
}
|
|
128
|
-
|
|
129
119
|
if (layer.source_layer === 'pois') {
|
|
130
120
|
return false;
|
|
131
121
|
}
|
|
132
|
-
|
|
133
122
|
const metadata = layer.metadata;
|
|
134
123
|
return !(metadata && metadata.managedBy === 'MFBanDoSo');
|
|
135
124
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GEOJSON_SOURCE_NAME","deepClone","value","JSON","parse","stringify","toStyleObject","mapStyle","defaultStyle","defaultRoadmapStyle","error","Array","isArray","generateLayerStyle","source","items","layers","forEach","item","key","style","line","index","push","id","type","source_layer","layer","filter","draw","fill","symbol","createCategoryItemsSignature","normalized","map","checked","buildGeojsonStyle","sourceUrl","result","sources","defaultGeojsonSource","trim","length","url","normalizeItems","layerStyle","baseLayers","
|
|
1
|
+
{"version":3,"names":["_DefaultRoadmapStyle","_interopRequireDefault","require","e","__esModule","default","GEOJSON_SOURCE_NAME","deepClone","value","JSON","parse","stringify","toStyleObject","mapStyle","defaultStyle","defaultRoadmapStyle","error","Array","isArray","generateLayerStyle","source","items","layers","forEach","item","key","style","line","index","push","id","type","source_layer","layer","filter","draw","metadata","managedBy","fill","symbol","createCategoryItemsSignature","normalized","map","checked","buildGeojsonStyle","sourceUrl","result","sources","defaultGeojsonSource","trim","length","url","normalizeItems","layerStyle","baseLayers","concat"],"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Q,IAAIA,SAAS,CAACI,IAAI,CAAC,CAAC,CAACC,MAAM,GAAG,CAAC,EAAE;IAChEJ,MAAM,CAACC,OAAO,CAACzC,mBAAmB,CAAC,CAAC6C,GAAG,GAAGN,SAAS;EACrD;EAEA,MAAMO,cAAc,GAAGnC,KAAK,CAACC,OAAO,CAACG,KAAK,CAAC,GAAGA,KAAK,GAAG,EAAE;EACxD,MAAMgC,UAAU,GAAGlC,kBAAkB,CAACb,mBAAmB,EAAE8C,cAAc,CAAC;EAE1E,MAAME,UAAU,GAAG,CAACrC,KAAK,CAACC,OAAO,CAAC4B,MAAM,CAACxB,MAAM,CAAC,GAAGwB,MAAM,CAACxB,MAAM,GAAG,EAAE,EAAEY,MAAM,CAC1ED,KAAK,IAAK;IACT,IAAI,CAACA,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;MACvC,OAAO,KAAK;IACd;IAEA,IAAIA,KAAK,CAACD,YAAY,KAAK,MAAM,EAAE;MACjC,OAAO,KAAK;IACd;IAEA,MAAMI,QAAQ,GAAGH,KAAK,CAACG,QAAQ;IAC/B,OAAO,EAAEA,QAAQ,IAAIA,QAAQ,CAACC,SAAS,KAAK,WAAW,CAAC;EAC1D,CACF,CAAC;EAEDS,MAAM,CAACxB,MAAM,GAAGgC,UAAU,CAACC,MAAM,CAACF,UAAU,CAAC;EAE7C,OAAO5C,IAAI,CAACE,SAAS,CAACmC,MAAM,CAAC;AAC/B","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -69,26 +69,15 @@ Object.defineProperty(exports, "MFTileOverlay", {
|
|
|
69
69
|
return _MFTileOverlay.MFTileOverlay;
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
|
|
73
72
|
var _MFMapView = require("./components/MFMapView");
|
|
74
|
-
|
|
75
73
|
var _MFBanDoSo = require("./components/MFBanDoSo");
|
|
76
|
-
|
|
77
74
|
var _MFMarker = require("./components/MFMarker");
|
|
78
|
-
|
|
79
75
|
var _MFCircle = require("./components/MFCircle");
|
|
80
|
-
|
|
81
76
|
var _MFPolyline = require("./components/MFPolyline");
|
|
82
|
-
|
|
83
77
|
var _MFPolygon = require("./components/MFPolygon");
|
|
84
|
-
|
|
85
78
|
var _MFPOI = require("./components/MFPOI");
|
|
86
|
-
|
|
87
79
|
var _MFDirectionsRenderer = require("./components/MFDirectionsRenderer");
|
|
88
|
-
|
|
89
80
|
var _MFTileOverlay = require("./components/MFTileOverlay");
|
|
90
|
-
|
|
91
81
|
var _MFBuilding = require("./components/MFBuilding");
|
|
92
|
-
|
|
93
82
|
var _AreaFocuser = require("./components/extends/AreaFocuser");
|
|
94
83
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":["_MFMapView","require","_MFBanDoSo","_MFMarker","_MFCircle","_MFPolyline","_MFPolygon","_MFPOI","_MFDirectionsRenderer","_MFTileOverlay","_MFBuilding","_AreaFocuser"],"sourceRoot":"..\\..\\src","sources":["index.js"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,qBAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getMap4dMapNativeModule = void 0;
|
|
7
|
+
var _NativeModuleResolver = require("./NativeModuleResolver");
|
|
8
|
+
const getMap4dMapNativeModule = () => (0, _NativeModuleResolver.getNativeModule)('Map4dMap');
|
|
9
|
+
exports.getMap4dMapNativeModule = getMap4dMapNativeModule;
|
|
10
|
+
//# sourceMappingURL=Map4dMapNativeModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_NativeModuleResolver","require","getMap4dMapNativeModule","getNativeModule","exports"],"sourceRoot":"..\\..\\..\\src","sources":["native/Map4dMapNativeModule.js"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,OAAA;AAEO,MAAMC,uBAAuB,GAAGA,CAAA,KAAM,IAAAC,qCAAe,EAAC,UAAU,CAAC;AAACC,OAAA,CAAAF,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getUIManager = exports.getNativeModule = void 0;
|
|
7
|
+
const getReactNative = () => require('react-native');
|
|
8
|
+
const getNativeModule = moduleName => {
|
|
9
|
+
const reactNative = getReactNative();
|
|
10
|
+
const turboRegistry = reactNative && reactNative.TurboModuleRegistry;
|
|
11
|
+
if (turboRegistry && typeof turboRegistry.get === 'function') {
|
|
12
|
+
const turboModule = turboRegistry.get(moduleName);
|
|
13
|
+
if (turboModule) {
|
|
14
|
+
return turboModule;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const nativeModules = reactNative && reactNative.NativeModules;
|
|
18
|
+
if (!nativeModules) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
return nativeModules[moduleName] || null;
|
|
22
|
+
};
|
|
23
|
+
exports.getNativeModule = getNativeModule;
|
|
24
|
+
const getUIManager = () => {
|
|
25
|
+
const reactNative = getReactNative();
|
|
26
|
+
if (!reactNative) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
if (reactNative.UIManager) {
|
|
30
|
+
return reactNative.UIManager;
|
|
31
|
+
}
|
|
32
|
+
return reactNative.NativeModules ? reactNative.NativeModules.UIManager : null;
|
|
33
|
+
};
|
|
34
|
+
exports.getUIManager = getUIManager;
|
|
35
|
+
//# sourceMappingURL=NativeModuleResolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getReactNative","require","getNativeModule","moduleName","reactNative","turboRegistry","TurboModuleRegistry","get","turboModule","nativeModules","NativeModules","exports","getUIManager","UIManager"],"sourceRoot":"..\\..\\..\\src","sources":["native/NativeModuleResolver.js"],"mappings":";;;;;;AAAA,MAAMA,cAAc,GAAGA,CAAA,KAAMC,OAAO,CAAC,cAAc,CAAC;AAE7C,MAAMC,eAAe,GAAIC,UAAU,IAAK;EAC7C,MAAMC,WAAW,GAAGJ,cAAc,CAAC,CAAC;EACpC,MAAMK,aAAa,GAAGD,WAAW,IAAIA,WAAW,CAACE,mBAAmB;EAEpE,IAAID,aAAa,IAAI,OAAOA,aAAa,CAACE,GAAG,KAAK,UAAU,EAAE;IAC5D,MAAMC,WAAW,GAAGH,aAAa,CAACE,GAAG,CAACJ,UAAU,CAAC;IACjD,IAAIK,WAAW,EAAE;MACf,OAAOA,WAAW;IACpB;EACF;EAEA,MAAMC,aAAa,GAAGL,WAAW,IAAIA,WAAW,CAACM,aAAa;EAC9D,IAAI,CAACD,aAAa,EAAE;IAClB,OAAO,IAAI;EACb;EAEA,OAAOA,aAAa,CAACN,UAAU,CAAC,IAAI,IAAI;AAC1C,CAAC;AAACQ,OAAA,CAAAT,eAAA,GAAAA,eAAA;AAEK,MAAMU,YAAY,GAAGA,CAAA,KAAM;EAChC,MAAMR,WAAW,GAAGJ,cAAc,CAAC,CAAC;EACpC,IAAI,CAACI,WAAW,EAAE;IAChB,OAAO,IAAI;EACb;EAEA,IAAIA,WAAW,CAACS,SAAS,EAAE;IACzB,OAAOT,WAAW,CAACS,SAAS;EAC9B;EAEA,OAAOT,WAAW,CAACM,aAAa,GAAGN,WAAW,CAACM,aAAa,CAACG,SAAS,GAAG,IAAI;AAC/E,CAAC;AAACF,OAAA,CAAAC,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.runViewManagerCommand = exports.getViewManagerCommandId = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _NativeModuleResolver = require("./NativeModuleResolver");
|
|
9
|
+
const rejectOrIgnore = (message, rejectOnError) => {
|
|
10
|
+
if (rejectOnError) {
|
|
11
|
+
return Promise.reject(message);
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
};
|
|
15
|
+
const getViewManagerCommandId = (componentName, commandName) => {
|
|
16
|
+
const uiManager = _reactNative.UIManager || (0, _NativeModuleResolver.getUIManager)();
|
|
17
|
+
if (!uiManager) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
if (!uiManager.getViewManagerConfig) {
|
|
21
|
+
// RN < 0.58
|
|
22
|
+
const legacyConfig = uiManager[componentName];
|
|
23
|
+
return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[commandName] : null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// RN >= 0.58
|
|
27
|
+
const config = uiManager.getViewManagerConfig(componentName);
|
|
28
|
+
return config && config.Commands ? config.Commands[commandName] : null;
|
|
29
|
+
};
|
|
30
|
+
exports.getViewManagerCommandId = getViewManagerCommandId;
|
|
31
|
+
const runViewManagerCommand = ({
|
|
32
|
+
componentName,
|
|
33
|
+
moduleName,
|
|
34
|
+
commandName,
|
|
35
|
+
args = [],
|
|
36
|
+
reactTag,
|
|
37
|
+
platform = _reactNative.Platform.OS,
|
|
38
|
+
rejectOnError = false
|
|
39
|
+
}) => {
|
|
40
|
+
switch (platform) {
|
|
41
|
+
case 'android':
|
|
42
|
+
{
|
|
43
|
+
const uiManager = _reactNative.UIManager || (0, _NativeModuleResolver.getUIManager)();
|
|
44
|
+
if (!uiManager || typeof uiManager.dispatchViewManagerCommand !== 'function') {
|
|
45
|
+
return rejectOrIgnore('UIManager.dispatchViewManagerCommand is unavailable on this React Native version', rejectOnError);
|
|
46
|
+
}
|
|
47
|
+
const commandId = getViewManagerCommandId(componentName, commandName);
|
|
48
|
+
if (commandId == null) {
|
|
49
|
+
return rejectOrIgnore(`Cannot find native command "${commandName}" for ${componentName}`, rejectOnError);
|
|
50
|
+
}
|
|
51
|
+
return uiManager.dispatchViewManagerCommand(reactTag, commandId, args);
|
|
52
|
+
}
|
|
53
|
+
case 'ios':
|
|
54
|
+
{
|
|
55
|
+
const mapManager = (0, _NativeModuleResolver.getNativeModule)(moduleName || componentName);
|
|
56
|
+
const mapManagerCommand = mapManager ? mapManager[commandName] : null;
|
|
57
|
+
if (typeof mapManagerCommand !== 'function') {
|
|
58
|
+
return rejectOrIgnore(`Cannot find native command "${commandName}" for ${componentName}`, rejectOnError);
|
|
59
|
+
}
|
|
60
|
+
return mapManagerCommand(reactTag, ...args);
|
|
61
|
+
}
|
|
62
|
+
default:
|
|
63
|
+
return rejectOrIgnore(`Invalid platform was passed: ${platform}`, rejectOnError);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.runViewManagerCommand = runViewManagerCommand;
|
|
67
|
+
//# sourceMappingURL=ViewManagerCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeModuleResolver","rejectOrIgnore","message","rejectOnError","Promise","reject","undefined","getViewManagerCommandId","componentName","commandName","uiManager","UIManager","getUIManager","getViewManagerConfig","legacyConfig","Commands","config","exports","runViewManagerCommand","moduleName","args","reactTag","platform","Platform","OS","dispatchViewManagerCommand","commandId","mapManager","getNativeModule","mapManagerCommand"],"sourceRoot":"..\\..\\..\\src","sources":["native/ViewManagerCommand.js"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAGA,CAACC,OAAO,EAAEC,aAAa,KAAK;EACjD,IAAIA,aAAa,EAAE;IACjB,OAAOC,OAAO,CAACC,MAAM,CAACH,OAAO,CAAC;EAChC;EAEA,OAAOI,SAAS;AAClB,CAAC;AAEM,MAAMC,uBAAuB,GAAGA,CAACC,aAAa,EAAEC,WAAW,KAAK;EACrE,MAAMC,SAAS,GAAGC,sBAAS,IAAI,IAAAC,kCAAY,EAAC,CAAC;EAE7C,IAAI,CAACF,SAAS,EAAE;IACd,OAAO,IAAI;EACb;EAEA,IAAI,CAACA,SAAS,CAACG,oBAAoB,EAAE;IACnC;IACA,MAAMC,YAAY,GAAGJ,SAAS,CAACF,aAAa,CAAC;IAC7C,OAAOM,YAAY,IAAIA,YAAY,CAACC,QAAQ,GACxCD,YAAY,CAACC,QAAQ,CAACN,WAAW,CAAC,GAClC,IAAI;EACV;;EAEA;EACA,MAAMO,MAAM,GAAGN,SAAS,CAACG,oBAAoB,CAACL,aAAa,CAAC;EAC5D,OAAOQ,MAAM,IAAIA,MAAM,CAACD,QAAQ,GAAGC,MAAM,CAACD,QAAQ,CAACN,WAAW,CAAC,GAAG,IAAI;AACxE,CAAC;AAACQ,OAAA,CAAAV,uBAAA,GAAAA,uBAAA;AAEK,MAAMW,qBAAqB,GAAGA,CAAC;EACpCV,aAAa;EACbW,UAAU;EACVV,WAAW;EACXW,IAAI,GAAG,EAAE;EACTC,QAAQ;EACRC,QAAQ,GAAGC,qBAAQ,CAACC,EAAE;EACtBrB,aAAa,GAAG;AAClB,CAAC,KAAK;EACJ,QAAQmB,QAAQ;IACd,KAAK,SAAS;MAAE;QACd,MAAMZ,SAAS,GAAGC,sBAAS,IAAI,IAAAC,kCAAY,EAAC,CAAC;QAC7C,IAAI,CAACF,SAAS,IAAI,OAAOA,SAAS,CAACe,0BAA0B,KAAK,UAAU,EAAE;UAC5E,OAAOxB,cAAc,CACnB,kFAAkF,EAClFE,aACF,CAAC;QACH;QAEA,MAAMuB,SAAS,GAAGnB,uBAAuB,CAACC,aAAa,EAAEC,WAAW,CAAC;QACrE,IAAIiB,SAAS,IAAI,IAAI,EAAE;UACrB,OAAOzB,cAAc,CACnB,+BAA+BQ,WAAW,SAASD,aAAa,EAAE,EAClEL,aACF,CAAC;QACH;QAEA,OAAOO,SAAS,CAACe,0BAA0B,CAACJ,QAAQ,EAAEK,SAAS,EAAEN,IAAI,CAAC;MACxE;IAEA,KAAK,KAAK;MAAE;QACV,MAAMO,UAAU,GAAG,IAAAC,qCAAe,EAACT,UAAU,IAAIX,aAAa,CAAC;QAC/D,MAAMqB,iBAAiB,GAAGF,UAAU,GAAGA,UAAU,CAAClB,WAAW,CAAC,GAAG,IAAI;QAErE,IAAI,OAAOoB,iBAAiB,KAAK,UAAU,EAAE;UAC3C,OAAO5B,cAAc,CACnB,+BAA+BQ,WAAW,SAASD,aAAa,EAAE,EAClEL,aACF,CAAC;QACH;QAEA,OAAO0B,iBAAiB,CAACR,QAAQ,EAAE,GAAGD,IAAI,CAAC;MAC7C;IAEA;MACE,OAAOnB,cAAc,CACnB,gCAAgCqB,QAAQ,EAAE,EAC1CnB,aACF,CAAC;EACL;AACF,CAAC;AAACc,OAAA,CAAAC,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.get < Spec > 'Map4dMap';
|
|
9
|
+
//# sourceMappingURL=NativeMap4dMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get","Spec"],"sourceRoot":"..\\..\\..\\src","sources":["specs/NativeMap4dMap.js"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAiD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAWlCC,gCAAmB,CAACC,GAAG,GAACC,IAAI,GAAE,UAAW","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const SELECTOR_DRAWER_TRANSLATE_X = -320;
|
|
4
|
+
const SELECTOR_OPEN_DURATION_MS = 240;
|
|
5
|
+
const SELECTOR_CLOSE_DURATION_MS = 210;
|
|
6
|
+
const SELECTOR_SWIPE_ACTIVATION_DISTANCE = 10;
|
|
7
|
+
const SELECTOR_SWIPE_CLOSE_DISTANCE = 80;
|
|
8
|
+
const SELECTOR_SWIPE_CLOSE_VELOCITY = 0.5;
|
|
9
|
+
const SELECTOR_TITLE = 'Chọn lớp dữ liệu trên bản đồ';
|
|
10
|
+
const LEGEND_TITLE = 'Chú giải';
|
|
11
|
+
const API_HOST = 'https://cmcdtqg-gateway.dieuhanhso.vn';
|
|
12
|
+
const SOURCE_URL_PATH = 'bds/api/tile/vector/{z}/{x}/{y}.pbf?p=1';
|
|
13
|
+
const CATEGORY_CONFIG_URL_PATH = 'bds/api/BanDo/dau-tu/category-config';
|
|
14
|
+
function buildApiUrl(path, isStaging) {
|
|
15
|
+
const stagingSegment = isStaging ? '/staging' : '';
|
|
16
|
+
return `${API_HOST}${stagingSegment}/${path}`;
|
|
17
|
+
}
|
|
18
|
+
function getSourceUrl(isStaging) {
|
|
19
|
+
return buildApiUrl(SOURCE_URL_PATH, isStaging);
|
|
20
|
+
}
|
|
21
|
+
function getCategoryConfigUrl(isStaging) {
|
|
22
|
+
return buildApiUrl(CATEGORY_CONFIG_URL_PATH, isStaging);
|
|
23
|
+
}
|
|
24
|
+
export { SELECTOR_DRAWER_TRANSLATE_X, SELECTOR_OPEN_DURATION_MS, SELECTOR_CLOSE_DURATION_MS, SELECTOR_SWIPE_ACTIVATION_DISTANCE, SELECTOR_SWIPE_CLOSE_DISTANCE, SELECTOR_SWIPE_CLOSE_VELOCITY, SELECTOR_TITLE, LEGEND_TITLE, getSourceUrl, getCategoryConfigUrl };
|
|
25
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SELECTOR_DRAWER_TRANSLATE_X","SELECTOR_OPEN_DURATION_MS","SELECTOR_CLOSE_DURATION_MS","SELECTOR_SWIPE_ACTIVATION_DISTANCE","SELECTOR_SWIPE_CLOSE_DISTANCE","SELECTOR_SWIPE_CLOSE_VELOCITY","SELECTOR_TITLE","LEGEND_TITLE","API_HOST","SOURCE_URL_PATH","CATEGORY_CONFIG_URL_PATH","buildApiUrl","path","isStaging","stagingSegment","getSourceUrl","getCategoryConfigUrl"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/MFBanDoSo/constants.js"],"mappings":";;AAAA,MAAMA,2BAA2B,GAAG,CAAC,GAAG;AACxC,MAAMC,yBAAyB,GAAG,GAAG;AACrC,MAAMC,0BAA0B,GAAG,GAAG;AACtC,MAAMC,kCAAkC,GAAG,EAAE;AAC7C,MAAMC,6BAA6B,GAAG,EAAE;AACxC,MAAMC,6BAA6B,GAAG,GAAG;AACzC,MAAMC,cAAc,GAAG,8BAA8B;AACrD,MAAMC,YAAY,GAAG,UAAU;AAE/B,MAAMC,QAAQ,GAAG,uCAAuC;AACxD,MAAMC,eAAe,GAAG,yCAAyC;AACjE,MAAMC,wBAAwB,GAAG,sCAAsC;AAEvE,SAASC,WAAWA,CAACC,IAAI,EAAEC,SAAS,EAAE;EACpC,MAAMC,cAAc,GAAGD,SAAS,GAAG,UAAU,GAAG,EAAE;EAClD,OAAO,GAAGL,QAAQ,GAAGM,cAAc,IAAIF,IAAI,EAAE;AAC/C;AAEA,SAASG,YAAYA,CAACF,SAAS,EAAE;EAC/B,OAAOF,WAAW,CAACF,eAAe,EAAEI,SAAS,CAAC;AAChD;AAEA,SAASG,oBAAoBA,CAACH,SAAS,EAAE;EACvC,OAAOF,WAAW,CAACD,wBAAwB,EAAEG,SAAS,CAAC;AACzD;AAEA,SACEb,2BAA2B,EAC3BC,yBAAyB,EACzBC,0BAA0B,EAC1BC,kCAAkC,EAClCC,6BAA6B,EAC7BC,6BAA6B,EAC7BC,cAAc,EACdC,YAAY,EACZQ,YAAY,EACZC,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createCategoryItemsSignature } from '../internal/GeojsonStyleUtils';
|
|
4
|
+
function normalizeColorValue(color) {
|
|
5
|
+
if (typeof color === 'string' && color.trim().length > 0) {
|
|
6
|
+
return color.trim();
|
|
7
|
+
}
|
|
8
|
+
if (Array.isArray(color) && typeof color[0] === 'string' && color[0].trim().length > 0) {
|
|
9
|
+
return color[0].trim();
|
|
10
|
+
}
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
function resolveItemsFromCategoryResponse(json) {
|
|
14
|
+
const data = json?.data ?? json;
|
|
15
|
+
if (Array.isArray(data)) {
|
|
16
|
+
return data;
|
|
17
|
+
}
|
|
18
|
+
if (Array.isArray(data?.items)) {
|
|
19
|
+
return data.items;
|
|
20
|
+
}
|
|
21
|
+
if (Array.isArray(json?.items)) {
|
|
22
|
+
return json.items;
|
|
23
|
+
}
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
function resolveCategoryGroupMetadataFromResponse(json) {
|
|
27
|
+
const data = json?.data ?? json;
|
|
28
|
+
const groups = Array.isArray(data?.groups) ? data.groups : Array.isArray(json?.groups) ? json.groups : [];
|
|
29
|
+
const titleByKey = {};
|
|
30
|
+
const orderKeys = [];
|
|
31
|
+
groups.forEach((group, index) => {
|
|
32
|
+
if (!group || typeof group !== 'object') {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const rawKeyValue = [group.key, group.code, group.group, group.id].find(value => value != null && `${value}`.trim().length > 0);
|
|
36
|
+
if (rawKeyValue == null) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const key = `${rawKeyValue}`.trim();
|
|
40
|
+
const rawTitleValue = [group.title, group.name, group.label, group.display_name, group.displayName].find(value => typeof value === 'string' && value.trim().length > 0);
|
|
41
|
+
const title = rawTitleValue ? rawTitleValue.trim() : key;
|
|
42
|
+
titleByKey[key] = title;
|
|
43
|
+
const preferredOrder = Number.isFinite(group.order) ? group.order : index;
|
|
44
|
+
orderKeys.push({
|
|
45
|
+
key,
|
|
46
|
+
order: preferredOrder,
|
|
47
|
+
index
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
orderKeys.sort((a, b) => {
|
|
51
|
+
if (a.order === b.order) {
|
|
52
|
+
return a.index - b.index;
|
|
53
|
+
}
|
|
54
|
+
return a.order - b.order;
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
titleByKey,
|
|
58
|
+
orderedKeys: orderKeys.map(entry => entry.key)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function normalizeCategoryItems(items) {
|
|
62
|
+
if (!Array.isArray(items)) {
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
return items.map(item => ({
|
|
66
|
+
...item,
|
|
67
|
+
checked: item?.checked !== false
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
function getSelectedCategoryItems(items) {
|
|
71
|
+
return (Array.isArray(items) ? items : []).filter(item => item?.checked !== false);
|
|
72
|
+
}
|
|
73
|
+
function resolveCategoryGroupKey(item) {
|
|
74
|
+
const rawGroup = typeof item?.group === 'string' ? item.group.trim() : '';
|
|
75
|
+
return rawGroup.length > 0 ? rawGroup : '__ungrouped__';
|
|
76
|
+
}
|
|
77
|
+
function createCategoryGroupSections(items, titleByKey = {}, orderedKeys = []) {
|
|
78
|
+
const list = Array.isArray(items) ? items : [];
|
|
79
|
+
const groupedMap = new Map();
|
|
80
|
+
list.forEach((item, index) => {
|
|
81
|
+
const groupKey = resolveCategoryGroupKey(item);
|
|
82
|
+
const mappedTitle = typeof titleByKey[groupKey] === 'string' && titleByKey[groupKey].trim().length > 0 ? titleByKey[groupKey].trim() : null;
|
|
83
|
+
const groupTitle = mappedTitle || (groupKey === '__ungrouped__' ? 'Khac' : groupKey);
|
|
84
|
+
if (!groupedMap.has(groupKey)) {
|
|
85
|
+
groupedMap.set(groupKey, {
|
|
86
|
+
key: groupKey,
|
|
87
|
+
title: groupTitle,
|
|
88
|
+
items: []
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
groupedMap.get(groupKey).items.push({
|
|
92
|
+
item,
|
|
93
|
+
index
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
const sections = Array.from(groupedMap.values());
|
|
97
|
+
if (!Array.isArray(orderedKeys) || orderedKeys.length === 0) {
|
|
98
|
+
return sections;
|
|
99
|
+
}
|
|
100
|
+
const orderMap = orderedKeys.reduce((acc, key, index) => {
|
|
101
|
+
if (typeof key === 'string' && key.length > 0) {
|
|
102
|
+
acc[key] = index;
|
|
103
|
+
}
|
|
104
|
+
return acc;
|
|
105
|
+
}, {});
|
|
106
|
+
return sections.sort((a, b) => {
|
|
107
|
+
const aOrder = Object.prototype.hasOwnProperty.call(orderMap, a.key) ? orderMap[a.key] : Number.MAX_SAFE_INTEGER;
|
|
108
|
+
const bOrder = Object.prototype.hasOwnProperty.call(orderMap, b.key) ? orderMap[b.key] : Number.MAX_SAFE_INTEGER;
|
|
109
|
+
if (aOrder === bOrder) {
|
|
110
|
+
return a.title.localeCompare(b.title);
|
|
111
|
+
}
|
|
112
|
+
return aOrder - bOrder;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function reconcileExpandedGroupKeys(groupSections, previousExpandedGroupKeys) {
|
|
116
|
+
const prev = previousExpandedGroupKeys && typeof previousExpandedGroupKeys === 'object' ? previousExpandedGroupKeys : {};
|
|
117
|
+
return (Array.isArray(groupSections) ? groupSections : []).reduce((acc, group) => {
|
|
118
|
+
const key = group?.key;
|
|
119
|
+
if (typeof key !== 'string' || key.length === 0) {
|
|
120
|
+
return acc;
|
|
121
|
+
}
|
|
122
|
+
acc[key] = typeof prev[key] === 'boolean' ? prev[key] : true;
|
|
123
|
+
return acc;
|
|
124
|
+
}, {});
|
|
125
|
+
}
|
|
126
|
+
function createSelectedCategoryItemsSignature(items) {
|
|
127
|
+
return createCategoryItemsSignature(getSelectedCategoryItems(items));
|
|
128
|
+
}
|
|
129
|
+
function toggleCategoryItemChecked(items, targetKey, targetIndex) {
|
|
130
|
+
return (Array.isArray(items) ? items : []).map((item, index) => {
|
|
131
|
+
const currentKey = item?.key ?? `index-${index}`;
|
|
132
|
+
const isTarget = currentKey === targetKey && index === targetIndex;
|
|
133
|
+
if (!isTarget) {
|
|
134
|
+
return item;
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
...item,
|
|
138
|
+
checked: !(item?.checked !== false)
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function toggleCategoryGroupChecked(items, targetGroupKey, checkedValue) {
|
|
143
|
+
if (typeof targetGroupKey !== 'string' || targetGroupKey.length === 0) {
|
|
144
|
+
return Array.isArray(items) ? items : [];
|
|
145
|
+
}
|
|
146
|
+
const nextChecked = checkedValue !== false;
|
|
147
|
+
return (Array.isArray(items) ? items : []).map(item => {
|
|
148
|
+
const groupKey = resolveCategoryGroupKey(item);
|
|
149
|
+
if (groupKey !== targetGroupKey) {
|
|
150
|
+
return item;
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
...item,
|
|
154
|
+
checked: nextChecked
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function extractColorFromItemStyle(item) {
|
|
159
|
+
if (!item || typeof item !== 'object') {
|
|
160
|
+
return null;
|
|
161
|
+
}
|
|
162
|
+
const lineColor = normalizeColorValue(item?.style?.line?.[0]?.draw?.color);
|
|
163
|
+
if (lineColor) {
|
|
164
|
+
return lineColor;
|
|
165
|
+
}
|
|
166
|
+
const fillColor = normalizeColorValue(item?.style?.fill?.[0]?.draw?.color);
|
|
167
|
+
if (fillColor) {
|
|
168
|
+
return fillColor;
|
|
169
|
+
}
|
|
170
|
+
const symbolColor = normalizeColorValue(item?.style?.symbol?.[0]?.draw?.icon_color);
|
|
171
|
+
if (symbolColor) {
|
|
172
|
+
return symbolColor;
|
|
173
|
+
}
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
function resolveCategoryItemColor(item) {
|
|
177
|
+
const customColor = normalizeColorValue(item?.color);
|
|
178
|
+
if (customColor) {
|
|
179
|
+
return customColor;
|
|
180
|
+
}
|
|
181
|
+
const styleColor = extractColorFromItemStyle(item);
|
|
182
|
+
if (styleColor) {
|
|
183
|
+
return styleColor;
|
|
184
|
+
}
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
export { createCategoryGroupSections, createSelectedCategoryItemsSignature, getSelectedCategoryItems, normalizeCategoryItems, reconcileExpandedGroupKeys, resolveCategoryGroupMetadataFromResponse, resolveCategoryItemColor, resolveItemsFromCategoryResponse, toggleCategoryGroupChecked, toggleCategoryItemChecked };
|
|
188
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createCategoryItemsSignature","normalizeColorValue","color","trim","length","Array","isArray","resolveItemsFromCategoryResponse","json","data","items","resolveCategoryGroupMetadataFromResponse","groups","titleByKey","orderKeys","forEach","group","index","rawKeyValue","key","code","id","find","value","rawTitleValue","title","name","label","display_name","displayName","preferredOrder","Number","isFinite","order","push","sort","a","b","orderedKeys","map","entry","normalizeCategoryItems","item","checked","getSelectedCategoryItems","filter","resolveCategoryGroupKey","rawGroup","createCategoryGroupSections","list","groupedMap","Map","groupKey","mappedTitle","groupTitle","has","set","get","sections","from","values","orderMap","reduce","acc","aOrder","Object","prototype","hasOwnProperty","call","MAX_SAFE_INTEGER","bOrder","localeCompare","reconcileExpandedGroupKeys","groupSections","previousExpandedGroupKeys","prev","createSelectedCategoryItemsSignature","toggleCategoryItemChecked","targetKey","targetIndex","currentKey","isTarget","toggleCategoryGroupChecked","targetGroupKey","checkedValue","nextChecked","extractColorFromItemStyle","lineColor","style","line","draw","fillColor","fill","symbolColor","symbol","icon_color","resolveCategoryItemColor","customColor","styleColor"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/MFBanDoSo/helpers.js"],"mappings":";;AAAA,SAASA,4BAA4B,QAAQ,+BAA+B;AAE5E,SAASC,mBAAmBA,CAACC,KAAK,EAAE;EAClC,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,IAAI,CAAC,CAAC,CAACC,MAAM,GAAG,CAAC,EAAE;IACxD,OAAOF,KAAK,CAACC,IAAI,CAAC,CAAC;EACrB;EAEA,IAAIE,KAAK,CAACC,OAAO,CAACJ,KAAK,CAAC,IAAI,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAIA,KAAK,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC,CAACC,MAAM,GAAG,CAAC,EAAE;IACtF,OAAOF,KAAK,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC;EACxB;EAEA,OAAO,IAAI;AACb;AAEA,SAASI,gCAAgCA,CAACC,IAAI,EAAE;EAC9C,MAAMC,IAAI,GAAGD,IAAI,EAAEC,IAAI,IAAID,IAAI;EAE/B,IAAIH,KAAK,CAACC,OAAO,CAACG,IAAI,CAAC,EAAE;IACvB,OAAOA,IAAI;EACb;EAEA,IAAIJ,KAAK,CAACC,OAAO,CAACG,IAAI,EAAEC,KAAK,CAAC,EAAE;IAC9B,OAAOD,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mBAAmB,CAACyC,IAAI,EAAE8C,KAAK,EAAEM,MAAM,GAAG,CAAC,CAAC,EAAEJ,IAAI,EAAEK,UAAU,CAAC;EACnF,IAAIF,WAAW,EAAE;IACf,OAAOA,WAAW;EACpB;EAEA,OAAO,IAAI;AACb;AAEA,SAASG,wBAAwBA,CAACtD,IAAI,EAAE;EACtC,MAAMuD,WAAW,GAAGhG,mBAAmB,CAACyC,IAAI,EAAExC,KAAK,CAAC;EACpD,IAAI+F,WAAW,EAAE;IACf,OAAOA,WAAW;EACpB;EAEA,MAAMC,UAAU,GAAGZ,yBAAyB,CAAC5C,IAAI,CAAC;EAClD,IAAIwD,UAAU,EAAE;IACd,OAAOA,UAAU;EACnB;EAEA,OAAO,IAAI;AACb;AAEA,SACElD,2BAA2B,EAC3B4B,oCAAoC,EACpChC,wBAAwB,EACxBH,sBAAsB,EACtB+B,0BAA0B,EAC1B7D,wCAAwC,EACxCqF,wBAAwB,EACxBzF,gCAAgC,EAChC2E,0BAA0B,EAC1BL,yBAAyB","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { MFMapView } from '../MFMapView';
|
|
5
|
+
const banDoSoPropTypes = {
|
|
6
|
+
...MFMapView.propTypes,
|
|
7
|
+
/**
|
|
8
|
+
* If `true` (default), fetch category config and vector tiles from the staging API.
|
|
9
|
+
* If `false`, use the production API (no `/staging` path segment).
|
|
10
|
+
*/
|
|
11
|
+
isStaging: PropTypes.bool
|
|
12
|
+
};
|
|
13
|
+
export { banDoSoPropTypes };
|
|
14
|
+
//# sourceMappingURL=propTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PropTypes","MFMapView","banDoSoPropTypes","propTypes","isStaging","bool"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/MFBanDoSo/propTypes.js"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,SAASC,SAAS,QAAQ,cAAc;AAExC,MAAMC,gBAAgB,GAAG;EACvB,GAAGD,SAAS,CAACE,SAAS;EAEtB;AACF;AACA;AACA;EACEC,SAAS,EAAEJ,SAAS,CAACK;AACvB,CAAC;AAED,SAASH,gBAAgB","ignoreList":[]}
|