@eeacms/volto-arcgis-block 0.1.170 → 0.1.171
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/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/components/MapViewer/MenuWidget.jsx +16 -13
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [0.1.171](https://github.com/eea/volto-arcgis-block/compare/0.1.170...0.1.171) - 14 July 2023
|
|
8
|
+
|
|
7
9
|
### [0.1.170](https://github.com/eea/volto-arcgis-block/compare/0.1.169...0.1.170) - 13 July 2023
|
|
8
10
|
|
|
9
11
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1757,25 +1757,24 @@ class MenuWidget extends React.Component {
|
|
|
1757
1757
|
//CLMS-1634 - This shows the zoom message for the checked dataset under the Snow and Ice Parameters Products dropdown only.
|
|
1758
1758
|
|
|
1759
1759
|
showZoomMessageOnDataset(dataset) {
|
|
1760
|
+
let datasetContainer = dataset.closest('.map-menu-dataset-dropdown');
|
|
1761
|
+
let datasetContainerId = datasetContainer.getAttribute('datasetid');
|
|
1762
|
+
|
|
1760
1763
|
if (this.props.download) return;
|
|
1761
1764
|
let snowAndIceParameters;
|
|
1762
1765
|
for (let i = 0; i < this.compCfg.length; i++) {
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
break;
|
|
1771
|
-
}
|
|
1766
|
+
for (let j = 0; j < this.compCfg[i].Products.length; j++) {
|
|
1767
|
+
if (
|
|
1768
|
+
this.compCfg[i].Products[j].ProductId ===
|
|
1769
|
+
'8474c3b080fa42cc837f1d2338fcf096'
|
|
1770
|
+
) {
|
|
1771
|
+
snowAndIceParameters = this.compCfg[i].Products[j];
|
|
1772
|
+
break;
|
|
1772
1773
|
}
|
|
1773
|
-
break;
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
|
|
1777
1776
|
snowAndIceParameters.Datasets.forEach((set) => {
|
|
1778
|
-
if (set.
|
|
1777
|
+
if (set.DatasetId === datasetContainerId) {
|
|
1779
1778
|
let node = document.getElementById(dataset.id).nextElementSibling
|
|
1780
1779
|
.lastElementChild.lastChild.lastElementChild;
|
|
1781
1780
|
if (dataset.checked) {
|
|
@@ -2033,10 +2032,14 @@ class MenuWidget extends React.Component {
|
|
|
2033
2032
|
findCheckedDatasetNoServiceToVisualize(elem) {
|
|
2034
2033
|
let parentId = elem.getAttribute('parentid');
|
|
2035
2034
|
let selectedDataset = document.querySelector('[id="' + parentId + '"]');
|
|
2035
|
+
let datasetContainer = selectedDataset.closest(
|
|
2036
|
+
'.map-menu-dataset-dropdown',
|
|
2037
|
+
);
|
|
2038
|
+
let datasetContainerId = datasetContainer.getAttribute('datasetid');
|
|
2036
2039
|
this.compCfg.forEach((component) => {
|
|
2037
2040
|
component.Products.forEach((product) => {
|
|
2038
2041
|
product.Datasets.forEach((dataset) => {
|
|
2039
|
-
if (dataset.
|
|
2042
|
+
if (dataset.DatasetId === datasetContainerId) {
|
|
2040
2043
|
return dataset.MarkAsDownloadableNoServiceToVisualize;
|
|
2041
2044
|
}
|
|
2042
2045
|
});
|