@eeacms/volto-arcgis-block 0.1.147 → 0.1.149
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,16 @@ 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.149](https://github.com/eea/volto-arcgis-block/compare/0.1.148...0.1.149) - 24 May 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS-2210-2213 (bug): Final touches and ran linting again [ujbolivar - [`886a317`](https://github.com/eea/volto-arcgis-block/commit/886a317c5c35f8143419db724ef7fc805578aaa5)]
|
|
12
|
+
- CLMS-2210-2213 (bug): Extent work fine now when coming from products or datasets pages. Ran linting scripts. [ujbolivar - [`7053b41`](https://github.com/eea/volto-arcgis-block/commit/7053b417f256c7fabd28b863aa1d176aed13e6cc)]
|
|
13
|
+
- CLMS-2213-2210 (bug): saving changes so far [ujbolivar - [`8d63737`](https://github.com/eea/volto-arcgis-block/commit/8d6373735865c5019e567d1d96a12b56e825fbad)]
|
|
14
|
+
- CLMS-2052 (fix): Links to prod included. Ran linting scripts [ujbolivar - [`81f5fe5`](https://github.com/eea/volto-arcgis-block/commit/81f5fe55e94250ea3485c12c62d50b9022fbb70b)]
|
|
15
|
+
### [0.1.148](https://github.com/eea/volto-arcgis-block/compare/0.1.147...0.1.148) - 23 May 2023
|
|
16
|
+
|
|
7
17
|
### [0.1.147](https://github.com/eea/volto-arcgis-block/compare/0.1.146...0.1.147) - 23 May 2023
|
|
8
18
|
|
|
9
19
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -38,27 +38,46 @@ class LegendWidget extends React.Component {
|
|
|
38
38
|
img.src =
|
|
39
39
|
'https://clmsdemo.devel6cph.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/dichotomous-reference-land-cover.png/@@images/image-283-df1c7b022cfd505c9bab4b4be08cd4f5.png';
|
|
40
40
|
|
|
41
|
+
//prod
|
|
42
|
+
// img.src = "https://clms-prod.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/dichotomous-reference-land-cover.png/@@images/image-800-8e5528b4247acef813af4b91d30a22d1.png";
|
|
43
|
+
|
|
41
44
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.style.display =
|
|
42
45
|
'none';
|
|
43
46
|
return;
|
|
44
47
|
} else if (img?.src?.includes('all_present_lc_b_pol')) {
|
|
45
48
|
img.src =
|
|
46
49
|
'https://clmsdemo.devel6cph.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/modular-reference-land-cover.png/@@images/image-312-a552fdf4af5b831c1af6cd039ad9ae2b.png';
|
|
50
|
+
|
|
51
|
+
//prod
|
|
52
|
+
// img.src = "https://clmsdemo.devel6cph.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/modular-reference-land-cover.png/@@images/image-800-97f58b15239b2b3ea85d701e171eaf64.png";
|
|
53
|
+
|
|
47
54
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.style.display =
|
|
48
55
|
'none';
|
|
49
56
|
} else if (img?.src?.includes('all_lcc_a_pol')) {
|
|
50
57
|
img.src =
|
|
51
58
|
'https://clmsdemo.devel6cph.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/dichotomous-land-cover-change.png/@@images/image-324-83819bb107020e7fdab5764d199b000d.png';
|
|
59
|
+
|
|
60
|
+
//prod
|
|
61
|
+
//img.src = "https://clms-prod.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/dichotomous-land-cover-change.png/@@images/image-800-e77885afc5da8e0535f648b563e60408.png";
|
|
62
|
+
|
|
52
63
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.style.display =
|
|
53
64
|
'none';
|
|
54
65
|
} else if (img?.src?.includes('all_lcc_b_pol')) {
|
|
55
66
|
img.src =
|
|
56
67
|
'https://clmsdemo.devel6cph.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/modular-land-cover-change.png/@@images/image-314-30a9e6f64333da441b830fc31875c011.png';
|
|
68
|
+
|
|
69
|
+
//prod
|
|
70
|
+
//img.src = "https://clms-prod.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/modular-land-cover-change.png/@@images/image-800-7e36e74d09ddd7e3f94fb502f0b5be8e.png";
|
|
71
|
+
|
|
57
72
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.style.display =
|
|
58
73
|
'none';
|
|
59
74
|
} else if (img?.src?.includes('cop_klc')) {
|
|
60
75
|
img.src =
|
|
61
76
|
'https://clmsdemo.devel6cph.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/key-landscapes-for-conservation-borders.png/@@images/image-278-ebd9539bdc95d6a1028a01cd59efd680.png';
|
|
77
|
+
|
|
78
|
+
//prod
|
|
79
|
+
//img.src = "https://clms-prod.eea.europa.eu/en/products/lclcc-hot-spots/static-legends/key-landscapes-for-conservation-borders.png/@@images/image-800-28ced0e8616b9a414ea5076399a5ba4e.png";
|
|
80
|
+
|
|
62
81
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.style.display =
|
|
63
82
|
'none';
|
|
64
83
|
} else if (img.style) {
|
|
@@ -119,8 +119,6 @@ class MapViewer extends React.Component {
|
|
|
119
119
|
loadCss();
|
|
120
120
|
await this.loader();
|
|
121
121
|
await this.waitForDataFill();
|
|
122
|
-
// this.mapdiv.current is the reference to the current DOM element of
|
|
123
|
-
// this.mapdiv after it was mounted by the render() method
|
|
124
122
|
|
|
125
123
|
this.positronCompositeBasemap = new Basemap({
|
|
126
124
|
title: 'Positron composite',
|
|
@@ -229,6 +227,7 @@ class MapViewer extends React.Component {
|
|
|
229
227
|
this.view.container = null;
|
|
230
228
|
this.view.destroy();
|
|
231
229
|
delete this.view;
|
|
230
|
+
sessionStorage.removeItem('mapStatus');
|
|
232
231
|
}
|
|
233
232
|
}
|
|
234
233
|
|
|
@@ -335,6 +335,7 @@ class MenuWidget extends React.Component {
|
|
|
335
335
|
showMapMenu: false,
|
|
336
336
|
noServiceModal: true,
|
|
337
337
|
setNoServiceModal: true,
|
|
338
|
+
extentIniated: false,
|
|
338
339
|
};
|
|
339
340
|
// call the props of the layers list (mapviewer.jsx)
|
|
340
341
|
this.compCfg = this.props.conf;
|
|
@@ -654,6 +655,7 @@ class MenuWidget extends React.Component {
|
|
|
654
655
|
async componentDidMount() {
|
|
655
656
|
loadCss();
|
|
656
657
|
await this.loader();
|
|
658
|
+
this.state.url = window.location.href;
|
|
657
659
|
await this.getTMSLayersJSON();
|
|
658
660
|
this.props.view.ui.add(this.container.current, 'top-left');
|
|
659
661
|
if (this.props.download) {
|
|
@@ -1593,10 +1595,21 @@ class MenuWidget extends React.Component {
|
|
|
1593
1595
|
let parentId = elem.getAttribute('parentid');
|
|
1594
1596
|
let group = this.getGroup(elem);
|
|
1595
1597
|
if (elem.checked) {
|
|
1596
|
-
if (
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1598
|
+
if (
|
|
1599
|
+
this.props.download ||
|
|
1600
|
+
!(
|
|
1601
|
+
this.state.url === 'http://localhost:3000/en/map-viewer' ||
|
|
1602
|
+
this.state.url ===
|
|
1603
|
+
'https://clmsdemo.devel6cph.eea.europa.eu/en/map-viewer' ||
|
|
1604
|
+
this.state.url === 'https://clms-prod.eea.europa.eu/en/map-viewer'
|
|
1605
|
+
)
|
|
1606
|
+
) {
|
|
1607
|
+
if (this.state.extentIniated === false) {
|
|
1608
|
+
this.setState({ extentIniated: true });
|
|
1609
|
+
setTimeout(() => {
|
|
1610
|
+
this.fullExtent(elem);
|
|
1611
|
+
}, 2000);
|
|
1612
|
+
}
|
|
1600
1613
|
}
|
|
1601
1614
|
if (this.layers['lc_filter'] || this.layers['lcc_filter']) {
|
|
1602
1615
|
if (elem.id.includes('cop_klc')) {
|