@opengeoweb/webmap-react 20.0.0 → 20.0.1-nightly-20261003
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
|
@@ -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
|
});
|
|
@@ -6287,7 +6276,7 @@ var createInterSections = function createInterSections(geojson, otherGeoJSON) {
|
|
|
6287
6276
|
return intersections;
|
|
6288
6277
|
};
|
|
6289
6278
|
// Feature properties which should never be persisted
|
|
6290
|
-
var TRANSIENT_FEATURE_PROPERTIES = ['isSelected', 'highlightSelectedFeature', 'highlightNearbyFeature', 'hover', 'boxSelectPreview', 'isReadonly'];
|
|
6279
|
+
var TRANSIENT_FEATURE_PROPERTIES = ['isSelected', 'highlightSelectedFeature', 'highlightNearbyFeature', 'hover', 'boxSelectPreview', 'isReadonly', 'isHoverDisabled'];
|
|
6291
6280
|
/**
|
|
6292
6281
|
* Removes the passed properties from the features of a feature collection
|
|
6293
6282
|
* @param geoJSON feature collection
|
|
@@ -7954,7 +7943,7 @@ var FeatureLayer = function FeatureLayer(_ref) {
|
|
|
7954
7943
|
return;
|
|
7955
7944
|
}
|
|
7956
7945
|
var hoveredFeature = map.forEachFeatureAtPixel(evt.pixel, function (feature, layer) {
|
|
7957
|
-
if (!layer || (layer === null || layer === void 0 ? void 0 : layer.getSource()) !== source) {
|
|
7946
|
+
if (!layer || (layer === null || layer === void 0 ? void 0 : layer.getSource()) !== source || feature.get('isHoverDisabled')) {
|
|
7958
7947
|
return false;
|
|
7959
7948
|
}
|
|
7960
7949
|
return feature;
|
|
@@ -73,7 +73,7 @@ export declare const isPointFeatureCollection: (geojson: GeoJSON.FeatureCollecti
|
|
|
73
73
|
* @returns GeoJSONS extend with intersections
|
|
74
74
|
*/
|
|
75
75
|
export declare const createInterSections: (geojson: GeoJSON.FeatureCollection, otherGeoJSON: GeoJSON.FeatureCollection, geoJSONproperties?: GeoJSON.GeoJsonProperties, proj?: string) => GeoJSON.FeatureCollection;
|
|
76
|
-
export declare const TRANSIENT_FEATURE_PROPERTIES: readonly ["isSelected", "highlightSelectedFeature", "highlightNearbyFeature", "hover", "boxSelectPreview", "isReadonly"];
|
|
76
|
+
export declare const TRANSIENT_FEATURE_PROPERTIES: readonly ["isSelected", "highlightSelectedFeature", "highlightNearbyFeature", "hover", "boxSelectPreview", "isReadonly", "isHoverDisabled"];
|
|
77
77
|
/**
|
|
78
78
|
* Removes the passed properties from the features of a feature collection
|
|
79
79
|
* @param geoJSON feature collection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.1-nightly-20261003",
|
|
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.
|
|
24
|
-
"@opengeoweb/theme": "20.0.
|
|
25
|
-
"@opengeoweb/shared": "20.0.
|
|
23
|
+
"@opengeoweb/webmap": "20.0.1-nightly-20261003",
|
|
24
|
+
"@opengeoweb/theme": "20.0.1-nightly-20261003",
|
|
25
|
+
"@opengeoweb/shared": "20.0.1-nightly-20261003",
|
|
26
26
|
"lodash": "^4.18.1",
|
|
27
27
|
"ol": "^10.4.0",
|
|
28
28
|
"proj4": "^2.9.2",
|