@opengeoweb/webmap-react 20.0.0-nightly-20260918 → 20.0.0-nightly-20260920
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/dist/index.esm.js +11 -22
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2078,9 +2078,7 @@ var getLegendClass = function getLegendClass(edrColorLegend, value) {
|
|
|
2078
2078
|
distance: Math.abs((entry.min + entry.max) / 2 - value),
|
|
2079
2079
|
entry: entry
|
|
2080
2080
|
};
|
|
2081
|
-
})
|
|
2082
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
2083
|
-
distances.sort(function (d1, d2) {
|
|
2081
|
+
}).sort(function (d1, d2) {
|
|
2084
2082
|
return d1.distance - d2.distance;
|
|
2085
2083
|
});
|
|
2086
2084
|
return distances[0].entry;
|
|
@@ -3084,8 +3082,7 @@ var DimensionSelectSlider = function DimensionSelectSlider(_ref) {
|
|
|
3084
3082
|
// Only sort numeric dimensions
|
|
3085
3083
|
return Number.isNaN(numA) || Number.isNaN(numB) ? 0 : numA - numB;
|
|
3086
3084
|
});
|
|
3087
|
-
|
|
3088
|
-
var adaptedMarks = reverse ? sortedMarks.reverse() : sortedMarks;
|
|
3085
|
+
var adaptedMarks = reverse ? sortedMarks.slice().reverse() : sortedMarks;
|
|
3089
3086
|
var values = adaptedMarks.map(function (mark) {
|
|
3090
3087
|
return mark.value;
|
|
3091
3088
|
});
|
|
@@ -3455,21 +3452,15 @@ var getDimensionsList = function getDimensionsList(dimensions) {
|
|
|
3455
3452
|
icon: icon
|
|
3456
3453
|
});
|
|
3457
3454
|
});
|
|
3458
|
-
// sort alphabetically so other dimensions are sorted
|
|
3459
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
3460
|
-
result.sort(function (compA, compB) {
|
|
3461
|
-
return compA.label.localeCompare(compB.label);
|
|
3462
|
-
});
|
|
3463
|
-
// sort by fixed order
|
|
3464
|
-
var preferredOrder = ['Time', 'Reference time', 'Elevation'];
|
|
3465
3455
|
// using reverse ordering to make sure the other dimensions come last
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
//
|
|
3469
|
-
result.sort(function (compA, compB) {
|
|
3456
|
+
var preferredOrder = ['Time', 'Reference time', 'Elevation'].reverse();
|
|
3457
|
+
// sort alphabetically so other dimensions are sorted, then apply the fixed
|
|
3458
|
+
// order on top (a stable sort keeps the alphabetical order for ties)
|
|
3459
|
+
return result.slice().sort(function (compA, compB) {
|
|
3460
|
+
return compA.label.localeCompare(compB.label);
|
|
3461
|
+
}).sort(function (compA, compB) {
|
|
3470
3462
|
return preferredOrder.indexOf(compB.label) - preferredOrder.indexOf(compA.label);
|
|
3471
3463
|
});
|
|
3472
|
-
return result;
|
|
3473
3464
|
};
|
|
3474
3465
|
|
|
3475
3466
|
var LayerInfoDialog = function LayerInfoDialog(_ref) {
|
|
@@ -3901,11 +3892,10 @@ var removeOverlappingLines = function removeOverlappingLines(newPolyCoords) {
|
|
|
3901
3892
|
}
|
|
3902
3893
|
});
|
|
3903
3894
|
// Remove indices, starting with the highest index, therefore sort the indices from high to low
|
|
3904
|
-
|
|
3905
|
-
indicesToRemove.sort(function (itemA, itemB) {
|
|
3895
|
+
var sortedIndicesToRemove = indicesToRemove.slice().sort(function (itemA, itemB) {
|
|
3906
3896
|
return itemB - itemA;
|
|
3907
3897
|
});
|
|
3908
|
-
|
|
3898
|
+
sortedIndicesToRemove.forEach(function (index) {
|
|
3909
3899
|
newPolyCoords.splice(index, 1);
|
|
3910
3900
|
});
|
|
3911
3901
|
// Check if polys still close, if the distance is too much, add the begin point to the end.
|
|
@@ -3928,8 +3918,7 @@ var polygonCleanDanglingCoords = function polygonCleanDanglingCoords(polyCoords)
|
|
|
3928
3918
|
});
|
|
3929
3919
|
// Sort the distance to the smallest and take the first
|
|
3930
3920
|
var flatDistance = distanceSet.map(function (aItem) {
|
|
3931
|
-
|
|
3932
|
-
return aItem.sort(function (itemA, itemB) {
|
|
3921
|
+
return aItem.slice().sort(function (itemA, itemB) {
|
|
3933
3922
|
return itemA - itemB;
|
|
3934
3923
|
})[0];
|
|
3935
3924
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "20.0.0-nightly-
|
|
3
|
+
"version": "20.0.0-nightly-20260920",
|
|
4
4
|
"description": "GeoWeb react wrapper for webmap",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opengeoweb/webmap": "20.0.0-nightly-
|
|
24
|
-
"@opengeoweb/theme": "20.0.0-nightly-
|
|
25
|
-
"@opengeoweb/shared": "20.0.0-nightly-
|
|
23
|
+
"@opengeoweb/webmap": "20.0.0-nightly-20260920",
|
|
24
|
+
"@opengeoweb/theme": "20.0.0-nightly-20260920",
|
|
25
|
+
"@opengeoweb/shared": "20.0.0-nightly-20260920",
|
|
26
26
|
"lodash": "^4.18.1",
|
|
27
27
|
"ol": "^10.4.0",
|
|
28
28
|
"proj4": "^2.9.2",
|