@eeacms/volto-arcgis-block 0.1.120 → 0.1.121
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,11 @@ 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.121](https://github.com/eea/volto-arcgis-block/compare/0.1.120...0.1.121) - 23 March 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Revert "Merge pull request #338 from eea/develop" [ujbolivar - [`04f6d58`](https://github.com/eea/volto-arcgis-block/commit/04f6d588952ae58eb6af6db81e5172539e522f5e)]
|
|
7
12
|
### [0.1.120](https://github.com/eea/volto-arcgis-block/compare/0.1.119...0.1.120) - 23 March 2023
|
|
8
13
|
|
|
9
14
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -819,7 +819,11 @@ class MenuWidget extends React.Component {
|
|
|
819
819
|
// CLMS-1544
|
|
820
820
|
// dont show the product if all of its datasets has the auxiliary service as its ViewService URL
|
|
821
821
|
const isAuxiliary = (dataset) =>
|
|
822
|
-
|
|
822
|
+
dataset.ViewService.toLowerCase() ===
|
|
823
|
+
'https://trial.discomap.eea.europa.eu/arcgis/services/clms/worldcountries/mapserver/wmsserver' ||
|
|
824
|
+
dataset.ViewService.toLowerCase() ===
|
|
825
|
+
'https://trial.discomap.eea.europa.eu/arcgis/services/clms/worldcountries/mapserver/wmsserver?';
|
|
826
|
+
|
|
823
827
|
if (!component.Products[i].Datasets.every(isAuxiliary)) {
|
|
824
828
|
products.push(
|
|
825
829
|
this.metodProcessProduct(
|
|
@@ -894,8 +898,14 @@ class MenuWidget extends React.Component {
|
|
|
894
898
|
var idDataset = 'map_dataset_' + inheritedIndexProduct + '_' + index;
|
|
895
899
|
dataset_def.push(idDataset);
|
|
896
900
|
}
|
|
901
|
+
|
|
897
902
|
// CLMS-1545
|
|
898
|
-
if (
|
|
903
|
+
if (
|
|
904
|
+
product.Datasets[i].ViewService.toLowerCase() !==
|
|
905
|
+
'https://trial.discomap.eea.europa.eu/arcgis/services/clms/worldcountries/mapserver/wmsserver' &&
|
|
906
|
+
product.Datasets[i].ViewService.toLowerCase() !==
|
|
907
|
+
'https://trial.discomap.eea.europa.eu/arcgis/services/clms/worldcountries/mapserver/wmsserver?'
|
|
908
|
+
) {
|
|
899
909
|
datasets.push(
|
|
900
910
|
this.metodProcessDataset(
|
|
901
911
|
product.Datasets[i],
|
|
@@ -1891,7 +1901,7 @@ class MenuWidget extends React.Component {
|
|
|
1891
1901
|
* Method to show Active Layers of the map
|
|
1892
1902
|
* @param {*} elem From the click event
|
|
1893
1903
|
*/
|
|
1894
|
-
addActiveLayer(elem, order, fromDownload
|
|
1904
|
+
addActiveLayer(elem, order, fromDownload) {
|
|
1895
1905
|
return (
|
|
1896
1906
|
<div
|
|
1897
1907
|
className="active-layer"
|
|
@@ -1982,12 +1992,7 @@ class MenuWidget extends React.Component {
|
|
|
1982
1992
|
/>
|
|
1983
1993
|
</span>
|
|
1984
1994
|
{this.timeLayers[elem.id][1] === 'stop' &&
|
|
1985
|
-
this.renderTimeslider(
|
|
1986
|
-
elem,
|
|
1987
|
-
this.layers[elem.id],
|
|
1988
|
-
fromDownload,
|
|
1989
|
-
hideCalendar,
|
|
1990
|
-
)}
|
|
1995
|
+
this.renderTimeslider(elem, this.layers[elem.id], fromDownload)}
|
|
1991
1996
|
</div>
|
|
1992
1997
|
</div>
|
|
1993
1998
|
);
|
|
@@ -2123,7 +2128,7 @@ class MenuWidget extends React.Component {
|
|
|
2123
2128
|
* @param {*} id id from elem
|
|
2124
2129
|
*/
|
|
2125
2130
|
|
|
2126
|
-
showTimeSlider(elem, fromDownload
|
|
2131
|
+
showTimeSlider(elem, fromDownload) {
|
|
2127
2132
|
if (
|
|
2128
2133
|
sessionStorage.key('timeSliderTag') &&
|
|
2129
2134
|
sessionStorage.getItem('timeSliderTag') === 'true'
|
|
@@ -2163,7 +2168,6 @@ class MenuWidget extends React.Component {
|
|
|
2163
2168
|
elem,
|
|
2164
2169
|
order,
|
|
2165
2170
|
fromDownload,
|
|
2166
|
-
hideCalendar,
|
|
2167
2171
|
);
|
|
2168
2172
|
} else {
|
|
2169
2173
|
if (
|
|
@@ -2737,7 +2741,7 @@ class MenuWidget extends React.Component {
|
|
|
2737
2741
|
}
|
|
2738
2742
|
}
|
|
2739
2743
|
|
|
2740
|
-
renderTimeslider(elem, layer, fromDownload
|
|
2744
|
+
renderTimeslider(elem, layer, fromDownload) {
|
|
2741
2745
|
if (this.props.view && layer) {
|
|
2742
2746
|
let activeLayer = document.querySelector('#active_' + elem.id);
|
|
2743
2747
|
let time = { elem: activeLayer };
|
|
@@ -2761,7 +2765,6 @@ class MenuWidget extends React.Component {
|
|
|
2761
2765
|
logged={isLoggedIn}
|
|
2762
2766
|
fromDownload={fromDownload}
|
|
2763
2767
|
area={this.props.area}
|
|
2764
|
-
hideCalendar={hideCalendar}
|
|
2765
2768
|
/>,
|
|
2766
2769
|
document.querySelector('.esri-ui-bottom-right'),
|
|
2767
2770
|
);
|
|
@@ -2782,7 +2785,7 @@ class MenuWidget extends React.Component {
|
|
|
2782
2785
|
.querySelector('[datasetid="' + id + '"] input')
|
|
2783
2786
|
.getAttribute('defcheck');
|
|
2784
2787
|
setTimeout(() => {
|
|
2785
|
-
this.showTimeSlider(document.getElementById(layerId),
|
|
2788
|
+
this.showTimeSlider(document.getElementById(layerId), false);
|
|
2786
2789
|
}, 100);
|
|
2787
2790
|
}
|
|
2788
2791
|
}
|
|
@@ -26,8 +26,7 @@ class TimesliderWidget extends React.Component {
|
|
|
26
26
|
timeSelectedValuesC: [], //To compare time slider stored values with new selected values
|
|
27
27
|
showDatePanel: false,
|
|
28
28
|
lockDatePanel: true,
|
|
29
|
-
showCalendar:
|
|
30
|
-
this.props.fromDownload && !this.props.hideCalendar ? true : false,
|
|
29
|
+
showCalendar: this.props.fromDownload ? true : false,
|
|
31
30
|
dateStart: this.props.time.start ? new Date(this.props.time.start) : null,
|
|
32
31
|
dateEnd: this.props.time.end ? new Date(this.props.time.end) : null,
|
|
33
32
|
periodicity: null,
|