@opengeoweb/webmap-react 19.6.1-nightly-20260915 → 19.6.1-nightly-20260917
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
CHANGED
|
@@ -730,17 +730,14 @@ var makeDimValuesToPrefetch = function makeDimValuesToPrefetch(wmTimeDim, stepsT
|
|
|
730
730
|
var timePrefetchValuesArray = Array.from(timePrefetchValuesSet);
|
|
731
731
|
var futurePrefetchValues = timePrefetchValuesArray.filter(function (timeStepAsTime) {
|
|
732
732
|
return timeStepAsTime >= currentTimeOfLayer;
|
|
733
|
+
}).sort(function (timeStepA, timeStepB) {
|
|
734
|
+
return timeStepA - timeStepB;
|
|
733
735
|
});
|
|
734
736
|
var pastPrefetchValues = timePrefetchValuesArray.filter(function (timeStepAsTime) {
|
|
735
737
|
return timeStepAsTime < currentTimeOfLayer;
|
|
738
|
+
}).sort(function (timeStepA, timeStepB) {
|
|
739
|
+
return isAnimating ? timeStepA - timeStepB : timeStepB - timeStepA;
|
|
736
740
|
});
|
|
737
|
-
// eslint-disable-next-line @typescript-eslint/require-array-sort-compare
|
|
738
|
-
futurePrefetchValues.sort();
|
|
739
|
-
isAnimating ?
|
|
740
|
-
// eslint-disable-next-line @typescript-eslint/require-array-sort-compare
|
|
741
|
-
pastPrefetchValues.sort() :
|
|
742
|
-
// eslint-disable-next-line @typescript-eslint/require-array-sort-compare
|
|
743
|
-
pastPrefetchValues.sort().reverse();
|
|
744
741
|
var dimensionValuesToPrefetchCombined = [].concat(_toConsumableArray(futurePrefetchValues), _toConsumableArray(pastPrefetchValues));
|
|
745
742
|
var dimValuesToPrefetch = dimensionValuesToPrefetchCombined.map(function (timeStamp) {
|
|
746
743
|
return wmTimeDim.getClosestValueForTime(timeStamp);
|
|
@@ -2082,6 +2079,7 @@ var getLegendClass = function getLegendClass(edrColorLegend, value) {
|
|
|
2082
2079
|
entry: entry
|
|
2083
2080
|
};
|
|
2084
2081
|
});
|
|
2082
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
2085
2083
|
distances.sort(function (d1, d2) {
|
|
2086
2084
|
return d1.distance - d2.distance;
|
|
2087
2085
|
});
|
|
@@ -3086,6 +3084,7 @@ var DimensionSelectSlider = function DimensionSelectSlider(_ref) {
|
|
|
3086
3084
|
// Only sort numeric dimensions
|
|
3087
3085
|
return Number.isNaN(numA) || Number.isNaN(numB) ? 0 : numA - numB;
|
|
3088
3086
|
});
|
|
3087
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
3089
3088
|
var adaptedMarks = reverse ? sortedMarks.reverse() : sortedMarks;
|
|
3090
3089
|
var values = adaptedMarks.map(function (mark) {
|
|
3091
3090
|
return mark.value;
|
|
@@ -3457,13 +3456,16 @@ var getDimensionsList = function getDimensionsList(dimensions) {
|
|
|
3457
3456
|
});
|
|
3458
3457
|
});
|
|
3459
3458
|
// sort alphabetically so other dimensions are sorted
|
|
3459
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
3460
3460
|
result.sort(function (compA, compB) {
|
|
3461
3461
|
return compA.label.localeCompare(compB.label);
|
|
3462
3462
|
});
|
|
3463
3463
|
// sort by fixed order
|
|
3464
3464
|
var preferredOrder = ['Time', 'Reference time', 'Elevation'];
|
|
3465
3465
|
// using reverse ordering to make sure the other dimensions come last
|
|
3466
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
3466
3467
|
preferredOrder.reverse();
|
|
3468
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
3467
3469
|
result.sort(function (compA, compB) {
|
|
3468
3470
|
return preferredOrder.indexOf(compB.label) - preferredOrder.indexOf(compA.label);
|
|
3469
3471
|
});
|
|
@@ -3630,7 +3632,9 @@ var HoldShiftToZoomMessage = function HoldShiftToZoomMessage() {
|
|
|
3630
3632
|
});
|
|
3631
3633
|
};
|
|
3632
3634
|
|
|
3633
|
-
var MapMousePosition = function MapMousePosition() {
|
|
3635
|
+
var MapMousePosition = function MapMousePosition(_ref) {
|
|
3636
|
+
var _ref$bottom = _ref.bottom,
|
|
3637
|
+
bottom = _ref$bottom === void 0 ? '26px' : _ref$bottom;
|
|
3634
3638
|
var _useContext = useContext(MapContext),
|
|
3635
3639
|
map = _useContext.map;
|
|
3636
3640
|
var projection = map === null || map === void 0 ? void 0 : map.getView().getProjection().getCode();
|
|
@@ -3689,7 +3693,7 @@ var MapMousePosition = function MapMousePosition() {
|
|
|
3689
3693
|
sx: {
|
|
3690
3694
|
zIndex: 10,
|
|
3691
3695
|
justifySelf: 'center',
|
|
3692
|
-
bottom:
|
|
3696
|
+
bottom: bottom,
|
|
3693
3697
|
left: '6px',
|
|
3694
3698
|
position: 'absolute'
|
|
3695
3699
|
},
|
|
@@ -3743,7 +3747,8 @@ var OpenLayersMapView = function OpenLayersMapView(_ref) {
|
|
|
3743
3747
|
holdShiftToScroll = _ref$holdShiftToScrol === void 0 ? false : _ref$holdShiftToScrol,
|
|
3744
3748
|
mapId = _ref.mapId,
|
|
3745
3749
|
_ref$showMapMousePosi = _ref.showMapMousePosition,
|
|
3746
|
-
showMapMousePosition = _ref$showMapMousePosi === void 0 ? true : _ref$showMapMousePosi
|
|
3750
|
+
showMapMousePosition = _ref$showMapMousePosi === void 0 ? true : _ref$showMapMousePosi,
|
|
3751
|
+
mapMousePositionBottom = _ref.mapMousePositionBottom;
|
|
3747
3752
|
var mapRef = useRef(null);
|
|
3748
3753
|
var _useState = useState(null),
|
|
3749
3754
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -3844,7 +3849,9 @@ var OpenLayersMapView = function OpenLayersMapView(_ref) {
|
|
|
3844
3849
|
height: '100%',
|
|
3845
3850
|
position: 'relative'
|
|
3846
3851
|
},
|
|
3847
|
-
children: [children, !!showMapMousePosition && jsx(MapMousePosition, {
|
|
3852
|
+
children: [children, !!showMapMousePosition && jsx(MapMousePosition, {
|
|
3853
|
+
bottom: mapMousePositionBottom
|
|
3854
|
+
}), !!holdShiftToScroll && !!isMouseWheelZoomEnabled && jsx(HoldShiftToZoomMessage, {})]
|
|
3848
3855
|
})
|
|
3849
3856
|
});
|
|
3850
3857
|
};
|
|
@@ -3894,6 +3901,7 @@ var removeOverlappingLines = function removeOverlappingLines(newPolyCoords) {
|
|
|
3894
3901
|
}
|
|
3895
3902
|
});
|
|
3896
3903
|
// Remove indices, starting with the highest index, therefore sort the indices from high to low
|
|
3904
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
3897
3905
|
indicesToRemove.sort(function (itemA, itemB) {
|
|
3898
3906
|
return itemB - itemA;
|
|
3899
3907
|
});
|
|
@@ -3920,6 +3928,7 @@ var polygonCleanDanglingCoords = function polygonCleanDanglingCoords(polyCoords)
|
|
|
3920
3928
|
});
|
|
3921
3929
|
// Sort the distance to the smallest and take the first
|
|
3922
3930
|
var flatDistance = distanceSet.map(function (aItem) {
|
|
3931
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
3923
3932
|
return aItem.sort(function (itemA, itemB) {
|
|
3924
3933
|
return itemA - itemB;
|
|
3925
3934
|
})[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "19.6.1-nightly-
|
|
3
|
+
"version": "19.6.1-nightly-20260917",
|
|
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": "19.6.1-nightly-
|
|
24
|
-
"@opengeoweb/theme": "19.6.1-nightly-
|
|
25
|
-
"@opengeoweb/shared": "19.6.1-nightly-
|
|
23
|
+
"@opengeoweb/webmap": "19.6.1-nightly-20260917",
|
|
24
|
+
"@opengeoweb/theme": "19.6.1-nightly-20260917",
|
|
25
|
+
"@opengeoweb/shared": "19.6.1-nightly-20260917",
|
|
26
26
|
"lodash": "^4.18.1",
|
|
27
27
|
"ol": "^10.4.0",
|
|
28
28
|
"proj4": "^2.9.2",
|