@opengeoweb/core 12.9.1 → 12.10.0
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/index.esm.js +11 -17
- package/package.json +10 -10
package/index.esm.js
CHANGED
|
@@ -6467,6 +6467,12 @@ var getFeatureInfoUrl = function getFeatureInfoUrl(layer, mapPinLocation) {
|
|
|
6467
6467
|
LAYERS: wmjsLayer.getLayerName()
|
|
6468
6468
|
}
|
|
6469
6469
|
});
|
|
6470
|
+
layer.dimensions && layer.dimensions.forEach(function (dim) {
|
|
6471
|
+
var wmDim = wmjsLayer.getDimension(dim.name);
|
|
6472
|
+
if (wmDim && wmDim.getValue() !== dim.currentValue) {
|
|
6473
|
+
wmDim.setValue(dim.currentValue);
|
|
6474
|
+
}
|
|
6475
|
+
});
|
|
6470
6476
|
return source.getFeatureInfoUrl([mapPinLocation.projectionX, mapPinLocation.projectionY], mapPinLocation.resolution, mapPinLocation.srs, {
|
|
6471
6477
|
INFO_FORMAT: 'text/html'
|
|
6472
6478
|
}) + "&" + getMapDimURL(wmjsLayer).toString();
|
|
@@ -6537,15 +6543,10 @@ var GetFeatureInfoDialog = function GetFeatureInfoDialog(_ref) {
|
|
|
6537
6543
|
mapPinLocation = _ref.mapPinLocation;
|
|
6538
6544
|
var _useCoreTranslation = useCoreTranslation(),
|
|
6539
6545
|
t = _useCoreTranslation.t;
|
|
6540
|
-
/* Ref and state for maplocation */
|
|
6541
|
-
var mapLocationWasChanged = React__default.useRef(false);
|
|
6542
|
-
var _React$useState = React__default.useState(false),
|
|
6543
|
-
isInitialMapLocationChanged = _React$useState[0],
|
|
6544
|
-
setInitialMapLocationIsChanged = _React$useState[1];
|
|
6545
6546
|
/* Ref, state and update function for results per layer map */
|
|
6546
6547
|
var gfiResultMap = React__default.useRef(new Map()).current;
|
|
6547
|
-
var _React$
|
|
6548
|
-
triggerRerender = _React$
|
|
6548
|
+
var _React$useState = React__default.useState(),
|
|
6549
|
+
triggerRerender = _React$useState[1];
|
|
6549
6550
|
var updateLayerResult = function updateLayerResult(_ref2) {
|
|
6550
6551
|
var layerId = _ref2.layerId,
|
|
6551
6552
|
data = _ref2.data,
|
|
@@ -6609,16 +6610,9 @@ var GetFeatureInfoDialog = function GetFeatureInfoDialog(_ref) {
|
|
|
6609
6610
|
return _ref3.apply(this, arguments);
|
|
6610
6611
|
};
|
|
6611
6612
|
}();
|
|
6612
|
-
/* Wait till the user has clicked the map. */
|
|
6613
|
-
React__default.useEffect(function () {
|
|
6614
|
-
if (mapLocationWasChanged.current !== false) {
|
|
6615
|
-
setInitialMapLocationIsChanged(true);
|
|
6616
|
-
}
|
|
6617
|
-
mapLocationWasChanged.current = true;
|
|
6618
|
-
}, [mapPinLocation]);
|
|
6619
6613
|
/* For each changed getfeature url string, load new data using WMS GetFeatureInfo */
|
|
6620
6614
|
React__default.useEffect(function () {
|
|
6621
|
-
if (
|
|
6615
|
+
if (mapPinLocation && isOpen) {
|
|
6622
6616
|
layerToUpdateList.forEach(function (_ref4) {
|
|
6623
6617
|
var url = _ref4.url,
|
|
6624
6618
|
layerId = _ref4.layerId;
|
|
@@ -6648,7 +6642,7 @@ var GetFeatureInfoDialog = function GetFeatureInfoDialog(_ref) {
|
|
|
6648
6642
|
sx: {
|
|
6649
6643
|
padding: 0
|
|
6650
6644
|
},
|
|
6651
|
-
children: [isOpen && hasLayers &&
|
|
6645
|
+
children: [isOpen && hasLayers && mapPinLocation && jsx(Box, {
|
|
6652
6646
|
"data-testid": "GetFeatureInfoList",
|
|
6653
6647
|
ref: stopWheelEventPropagationRef,
|
|
6654
6648
|
children: layerToUpdateList.map(function (layer) {
|
|
@@ -6701,7 +6695,7 @@ var GetFeatureInfoDialog = function GetFeatureInfoDialog(_ref) {
|
|
|
6701
6695
|
})]
|
|
6702
6696
|
}, layerId);
|
|
6703
6697
|
})
|
|
6704
|
-
}), hasLayers && !
|
|
6698
|
+
}), hasLayers && !mapPinLocation && jsx(Typography, {
|
|
6705
6699
|
"data-testid": "click-on-map-for-info",
|
|
6706
6700
|
variant: "subtitle1",
|
|
6707
6701
|
sx: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.10.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "12.
|
|
11
|
+
"@opengeoweb/shared": "12.10.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/timeslider": "12.
|
|
13
|
+
"@opengeoweb/store": "12.10.0",
|
|
14
|
+
"@opengeoweb/timeslider": "12.10.0",
|
|
15
15
|
"@reduxjs/toolkit": "^2.6.1",
|
|
16
|
-
"@opengeoweb/webmap-react": "12.
|
|
17
|
-
"@opengeoweb/webmap": "12.
|
|
18
|
-
"@opengeoweb/theme": "12.
|
|
16
|
+
"@opengeoweb/webmap-react": "12.10.0",
|
|
17
|
+
"@opengeoweb/webmap": "12.10.0",
|
|
18
|
+
"@opengeoweb/theme": "12.10.0",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "12.
|
|
20
|
+
"@opengeoweb/layer-select": "12.10.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ol": "^10.4.0",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
24
|
"sortablejs": "^1.15.1",
|
|
25
25
|
"@mui/system": "^7.0.1",
|
|
26
|
-
"@opengeoweb/snackbar": "12.
|
|
26
|
+
"@opengeoweb/snackbar": "12.10.0",
|
|
27
27
|
"react-router-dom": "^6.21.0",
|
|
28
28
|
"react-draggable": "^4.4.6",
|
|
29
29
|
"i18next": "^25.0.1",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
33
|
"@sentry/react": "^8.34.0",
|
|
34
34
|
"@tanstack/react-query": "^5.69.2",
|
|
35
|
-
"@opengeoweb/api": "12.
|
|
35
|
+
"@opengeoweb/api": "12.10.0",
|
|
36
36
|
"@types/geojson": "^7946.0.14"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|