@eeacms/volto-arcgis-block 0.1.174 → 0.1.175
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
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.175](https://github.com/eea/volto-arcgis-block/compare/0.1.174...0.1.175) - 19 July 2023
|
|
8
|
+
|
|
7
9
|
### [0.1.174](https://github.com/eea/volto-arcgis-block/compare/0.1.173...0.1.174) - 18 July 2023
|
|
8
10
|
|
|
9
11
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -974,10 +974,11 @@ class MenuWidget extends React.Component {
|
|
|
974
974
|
);
|
|
975
975
|
let productCheck = document.querySelector('#' + productid);
|
|
976
976
|
let trueCheck = datasetChecks.filter((elem) => elem.checked).length;
|
|
977
|
-
|
|
977
|
+
let product = productCheck.closest('.map-menu-product-dropdown');
|
|
978
|
+
let productId = product.getAttribute('productid');
|
|
978
979
|
productCheck.checked = trueCheck > 0;
|
|
979
|
-
let productCheckLabel = productCheck.labels[0].innerText;
|
|
980
|
-
if (
|
|
980
|
+
// let productCheckLabel = productCheck.labels[0].innerText;
|
|
981
|
+
if (productId === '8474c3b080fa42cc837f1d2338fcf096') {
|
|
981
982
|
sessionStorage.setItem('snowAndIce', true);
|
|
982
983
|
} else {
|
|
983
984
|
sessionStorage.setItem('snowAndIce', false);
|
|
@@ -2994,6 +2995,21 @@ class MenuWidget extends React.Component {
|
|
|
2994
2995
|
}
|
|
2995
2996
|
}
|
|
2996
2997
|
|
|
2998
|
+
componentDidUpdate() {
|
|
2999
|
+
if (sessionStorage.getItem('snowAndIce') === 'true') {
|
|
3000
|
+
//grab all checkedLayers from sessionstorage store them in checkedLayeers
|
|
3001
|
+
let checkedLayers = JSON.parse(sessionStorage.getItem('checkedLayers'));
|
|
3002
|
+
for (let i = 0; i < checkedLayers.length; i++) {
|
|
3003
|
+
let layerCheck = document.getElementById(checkedLayers[i]);
|
|
3004
|
+
let datasetParentContainer = layerCheck.closest('.ccl-fieldset');
|
|
3005
|
+
let datasetInputParentContainer =
|
|
3006
|
+
datasetParentContainer.firstElementChild;
|
|
3007
|
+
let datasetCheck = datasetInputParentContainer.querySelector('input');
|
|
3008
|
+
this.showZoomMessageOnDataset(datasetCheck);
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
|
|
2997
3013
|
/**
|
|
2998
3014
|
* Saves the layer visibility (eye icon state) to sessionStorage
|
|
2999
3015
|
*/
|