@eeacms/volto-arcgis-block 0.1.176 → 0.1.178
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,10 @@ 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.178](https://github.com/eea/volto-arcgis-block/compare/0.1.177...0.1.178) - 20 July 2023
|
|
8
|
+
|
|
9
|
+
### [0.1.177](https://github.com/eea/volto-arcgis-block/compare/0.1.176...0.1.177) - 20 July 2023
|
|
10
|
+
|
|
7
11
|
### [0.1.176](https://github.com/eea/volto-arcgis-block/compare/0.1.175...0.1.176) - 20 July 2023
|
|
8
12
|
|
|
9
13
|
### [0.1.175](https://github.com/eea/volto-arcgis-block/compare/0.1.174...0.1.175) - 19 July 2023
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './css/ArcgisMap.css';
|
|
3
|
+
|
|
4
|
+
class Loader extends React.Component {
|
|
5
|
+
render() {
|
|
6
|
+
return (
|
|
7
|
+
<div
|
|
8
|
+
active=""
|
|
9
|
+
//type="indeterminate"
|
|
10
|
+
//scale="m"
|
|
11
|
+
id="loader"
|
|
12
|
+
className="loading"
|
|
13
|
+
role="alert"
|
|
14
|
+
aria-busy="true"
|
|
15
|
+
aria-live="polite"
|
|
16
|
+
>
|
|
17
|
+
<div></div>
|
|
18
|
+
<div></div>
|
|
19
|
+
<br></br>
|
|
20
|
+
<span>Loading...</span>
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default Loader;
|
|
@@ -6,8 +6,6 @@ import useCartState from '@eeacms/volto-clms-utils/cart/useCartState';
|
|
|
6
6
|
import { Modal, Popup } from 'semantic-ui-react';
|
|
7
7
|
import AreaWidget from './AreaWidget';
|
|
8
8
|
import TimesliderWidget from './TimesliderWidget';
|
|
9
|
-
import { Toast } from '@plone/volto/components';
|
|
10
|
-
import { toast } from 'react-toastify';
|
|
11
9
|
var WMSLayer, WMTSLayer, FeatureLayer, BaseTileLayer, esriRequest, Extent;
|
|
12
10
|
|
|
13
11
|
const popupSettings = {
|
|
@@ -57,7 +55,6 @@ export const AddCartItem = ({
|
|
|
57
55
|
}
|
|
58
56
|
let data = checkCartData(cartData, area, dataset);
|
|
59
57
|
addCartItem(data).then(() => {
|
|
60
|
-
showMessageTimer('Added to cart', 'success', 'Success');
|
|
61
58
|
if (dataset.IsTimeSeries) {
|
|
62
59
|
let id = dataset.DatasetId;
|
|
63
60
|
let datasetElem = document.querySelector('[datasetid="' + id + '"]');
|
|
@@ -86,18 +83,6 @@ export const AddCartItem = ({
|
|
|
86
83
|
return data;
|
|
87
84
|
};
|
|
88
85
|
|
|
89
|
-
const showMessageTimer = (msg, type, title) => {
|
|
90
|
-
toast[type](<Toast autoClose={4000} title={title} content={msg} />, {
|
|
91
|
-
position: 'top-center',
|
|
92
|
-
autoClose: 4000,
|
|
93
|
-
hideProgressBar: true,
|
|
94
|
-
closeOnClick: true,
|
|
95
|
-
pauseOnHover: false,
|
|
96
|
-
draggable: true,
|
|
97
|
-
progress: undefined,
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
|
|
101
86
|
if (!dataset) {
|
|
102
87
|
dataset = cartData[0].Products[0].Datasets[0];
|
|
103
88
|
}
|
|
@@ -2996,9 +2981,14 @@ class MenuWidget extends React.Component {
|
|
|
2996
2981
|
}
|
|
2997
2982
|
|
|
2998
2983
|
componentDidUpdate() {
|
|
2984
|
+
if (this.props.download) return;
|
|
2985
|
+
|
|
2999
2986
|
if (sessionStorage.getItem('snowAndIce') === 'true') {
|
|
3000
2987
|
//grab all checkedLayers from sessionstorage store them in checkedLayeers
|
|
3001
2988
|
let checkedLayers = JSON.parse(sessionStorage.getItem('checkedLayers'));
|
|
2989
|
+
|
|
2990
|
+
if (checkedLayers === null) return;
|
|
2991
|
+
|
|
3002
2992
|
for (let i = 0; i < checkedLayers.length; i++) {
|
|
3003
2993
|
let layerCheck = document.getElementById(checkedLayers[i]);
|
|
3004
2994
|
let datasetParentContainer = layerCheck.closest('.ccl-fieldset');
|