@eeacms/volto-arcgis-block 0.1.61 → 0.1.63
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,18 @@ 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.63](https://github.com/eea/volto-arcgis-block/compare/0.1.62...0.1.63) - 20 September 2022
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS-1367 [joewdavies - [`270a653`](https://github.com/eea/volto-arcgis-block/commit/270a65300bc0e6bd1c2d5b9e1ada6afc93c5cc61)]
|
|
12
|
+
- CLMS-1368 [joewdavies - [`277813b`](https://github.com/eea/volto-arcgis-block/commit/277813b2ffbb079d6d762d7be48f2fca3c7f8b5a)]
|
|
13
|
+
### [0.1.62](https://github.com/eea/volto-arcgis-block/compare/0.1.61...0.1.62) - 19 September 2022
|
|
14
|
+
|
|
15
|
+
#### :hammer_and_wrench: Others
|
|
16
|
+
|
|
17
|
+
- ESlint fix [joewdavies - [`d76b3f6`](https://github.com/eea/volto-arcgis-block/commit/d76b3f68a1f8b251209cf256e7351e690923b2ad)]
|
|
18
|
+
- CLMS-1240 set opacity and visibility independently for sublayers [joewdavies - [`d2dc842`](https://github.com/eea/volto-arcgis-block/commit/d2dc84240351f618aea63d3e0daeea44c5d0660f)]
|
|
7
19
|
### [0.1.61](https://github.com/eea/volto-arcgis-block/compare/0.1.60...0.1.61) - 19 September 2022
|
|
8
20
|
|
|
9
21
|
#### :hammer_and_wrench: Others
|
|
@@ -117,10 +129,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
117
129
|
#### :hammer_and_wrench: Others
|
|
118
130
|
|
|
119
131
|
- Merge pull request #148 from eea/develop [KCarpinteroBM - [`24266fb`](https://github.com/eea/volto-arcgis-block/commit/24266fb3a0c1662d22ae0529dc1d5a25c711cf97)]
|
|
132
|
+
- Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`f751f69`](https://github.com/eea/volto-arcgis-block/commit/f751f69f652f0340ae55af6a4dab89d6bdc80906)]
|
|
120
133
|
- Revert "Revert "Mapviewer menu and map viewer options persistence"" [Mikel Larreategi - [`ad6e440`](https://github.com/eea/volto-arcgis-block/commit/ad6e440cdc160cffb1e86e1b26e501dbe648476c)]
|
|
121
134
|
- Revert "code coverage removal" [Mikel Larreategi - [`376f2d1`](https://github.com/eea/volto-arcgis-block/commit/376f2d1cd6e4e5110b3b63d5114af1bcfebe094b)]
|
|
122
135
|
- Revert "Update cypress.json" [Mikel Larreategi - [`43d01a0`](https://github.com/eea/volto-arcgis-block/commit/43d01a0a95a58ef5215c6cbf18223ca30a11b9cc)]
|
|
123
136
|
- Revert "Update cypress.json" [Mikel Larreategi - [`054c4ae`](https://github.com/eea/volto-arcgis-block/commit/054c4ae1767e1f26e6ec7e96a0e26a9711f29f04)]
|
|
137
|
+
- Revert "revert [JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`64ab56e`](https://github.com/eea/volto-arcgis-block/commit/64ab56e0f1f8dddc26f26039509a028e34653e64)]
|
|
138
|
+
- revert [JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967 [Mikel Larreategi - [`85ee194`](https://github.com/eea/volto-arcgis-block/commit/85ee1941e029df2b7dc910bf75231c75ffeca8c2)]
|
|
124
139
|
- Update cypress.json [KCarpinteroBM - [`be285ff`](https://github.com/eea/volto-arcgis-block/commit/be285fff0c53e06a0180d5318cce81195eabcf80)]
|
|
125
140
|
- Update cypress.json [KCarpinteroBM - [`a7f2118`](https://github.com/eea/volto-arcgis-block/commit/a7f2118acb7b048b4cef85aa9663c2244a1c9ca0)]
|
|
126
141
|
- linting fix [KCarpinteroBM - [`27e969a`](https://github.com/eea/volto-arcgis-block/commit/27e969a7a411fd4646e0e742ce846efc0d79703e)]
|
|
@@ -180,6 +195,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
180
195
|
- UX improvements [rodriama - [`151dc4b`](https://github.com/eea/volto-arcgis-block/commit/151dc4b02d0a73fdd66de9d594620ac0fa5f1dbf)]
|
|
181
196
|
- deleted failing tests [KCarpinteroBM - [`ddaa9e6`](https://github.com/eea/volto-arcgis-block/commit/ddaa9e6f06db6960a4c214d3be2420c48b26715d)]
|
|
182
197
|
- cleaning unnecessary files [KCarpinteroBM - [`2c02199`](https://github.com/eea/volto-arcgis-block/commit/2c021990912beb02b603a1de89aecd62e0063769)]
|
|
198
|
+
- Reverting to Automated release 0.1.39 [KCarpinteroBM - [`fb9f317`](https://github.com/eea/volto-arcgis-block/commit/fb9f3176ccdea18fceb329eaac13ced0566ee648)]
|
|
183
199
|
- commands added [KCarpinteroBM - [`049e60b`](https://github.com/eea/volto-arcgis-block/commit/049e60b7d124d1c05abd0b2775b510795f4ed59f)]
|
|
184
200
|
- Mapviewer testing implementation [KCarpinteroBM - [`0103002`](https://github.com/eea/volto-arcgis-block/commit/0103002869eea108e16e3b5ff2e77a725dcc7c4b)]
|
|
185
201
|
### [0.1.39](https://github.com/eea/volto-arcgis-block/compare/0.1.38...0.1.39) - 24 March 2022
|
|
@@ -199,6 +215,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
199
215
|
- ESLint fix [rodriama - [`75dae9b`](https://github.com/eea/volto-arcgis-block/commit/75dae9b5bba18ab6d9624f6c99714b4bd2179003)]
|
|
200
216
|
- Remove section title [rodriama - [`ece860e`](https://github.com/eea/volto-arcgis-block/commit/ece860eae3519c7e611abac16e8d53c9a9408b34)]
|
|
201
217
|
- Es-Lint [manuelmartinezbilbomatica - [`39d8d11`](https://github.com/eea/volto-arcgis-block/commit/39d8d11b9096fd603df8510c119d2e12817415d6)]
|
|
218
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`bf9f683`](https://github.com/eea/volto-arcgis-block/commit/bf9f683dd35a9edb4cfd9111affcb8f8edbeae89)]
|
|
202
219
|
- FEAT: Parser Time implemented [manuelmartinezbilbomatica - [`689c99e`](https://github.com/eea/volto-arcgis-block/commit/689c99e55221fee6c7c7fafc4ab95ae7a646d3dd)]
|
|
203
220
|
### [0.1.38](https://github.com/eea/volto-arcgis-block/compare/0.1.37...0.1.38) - 18 March 2022
|
|
204
221
|
|
|
@@ -293,6 +310,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
293
310
|
- ESLint fix [rodriama - [`5fd3772`](https://github.com/eea/volto-arcgis-block/commit/5fd3772f197a3a380067962a5638dbf901a4624e)]
|
|
294
311
|
- Pixel info [rodriama - [`1ccef39`](https://github.com/eea/volto-arcgis-block/commit/1ccef39a9adcc3ee94655c77a5a166b613600a08)]
|
|
295
312
|
- NUTS bug fix [rodriama - [`37fe7f3`](https://github.com/eea/volto-arcgis-block/commit/37fe7f3fad2c005e3b7c234b3b0564d5df92fa8c)]
|
|
313
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`ea5af8b`](https://github.com/eea/volto-arcgis-block/commit/ea5af8b02a5f2ee25b9b0be67cf3792bbbe84ed7)]
|
|
296
314
|
### [0.1.23](https://github.com/eea/volto-arcgis-block/compare/0.1.22...0.1.23) - 17 December 2021
|
|
297
315
|
|
|
298
316
|
#### :hammer_and_wrench: Others
|
|
@@ -537,6 +555,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
537
555
|
- Trying to delay ArcGIS modules load [gonzalezsd - [`ff16985`](https://github.com/eea/volto-arcgis-block/commit/ff169858e42d30bfcacc423ffc27762bb9ef05a4)]
|
|
538
556
|
- Run bootstrap to fix files [valentinab25 - [`236893f`](https://github.com/eea/volto-arcgis-block/commit/236893f03314eb638b7667f81b1f91491a98ee17)]
|
|
539
557
|
- fix git_name [valentinab25 - [`c7806c3`](https://github.com/eea/volto-arcgis-block/commit/c7806c312964425dc23e5d4c6973de8b81ddaeac)]
|
|
558
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`e3afb51`](https://github.com/eea/volto-arcgis-block/commit/e3afb515dda459ee03e2b5d4b56465d2d4ad1503)]
|
|
540
559
|
- Trying to change imports [gonzalezsd - [`d83d7e2`](https://github.com/eea/volto-arcgis-block/commit/d83d7e2f68da4b2a284735847f93c0763a7e13b6)]
|
|
541
560
|
- default design [bipoza - [`88fbe0b`](https://github.com/eea/volto-arcgis-block/commit/88fbe0b2bc73e732e2993324a567f53902e85506)]
|
|
542
561
|
- cleanup of unused code [bipoza - [`b167677`](https://github.com/eea/volto-arcgis-block/commit/b1676771f637f056cad50cb0bc186f2ea79e8517)]
|
package/package.json
CHANGED
|
@@ -287,8 +287,11 @@ class AreaWidget extends React.Component {
|
|
|
287
287
|
<div className="right-panel-content">
|
|
288
288
|
<div className="area-panel">
|
|
289
289
|
<div className="area-header">
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
For areas of interest in the EU, EFTA, candidate countries or
|
|
291
|
+
the United Kingdom: choose NUTS classification or draw a
|
|
292
|
+
rectangle on the map. For areas of interest outside the EU,
|
|
293
|
+
EFTA, candidate countries and the United Kingdom: draw a
|
|
294
|
+
rectangle on the map.
|
|
292
295
|
</div>
|
|
293
296
|
<div className="ccl-form">
|
|
294
297
|
<fieldset className="ccl-fieldset">
|
|
@@ -372,8 +375,10 @@ class AreaWidget extends React.Component {
|
|
|
372
375
|
>
|
|
373
376
|
<span>By rectangle</span>
|
|
374
377
|
<div>
|
|
375
|
-
(
|
|
376
|
-
|
|
378
|
+
(Click and drag your mouse on the map. As you move
|
|
379
|
+
your mouse, you’ll see the area of the rectangle next
|
|
380
|
+
to your cursor. Finish the rectangle by releasing your
|
|
381
|
+
mouse.)
|
|
377
382
|
</div>
|
|
378
383
|
</label>
|
|
379
384
|
</div>
|
|
@@ -94,6 +94,8 @@ class MapViewer extends React.Component {
|
|
|
94
94
|
basemap: 'topo',
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
+
mapStatus = this.recoverState();
|
|
98
|
+
|
|
97
99
|
if (
|
|
98
100
|
mapStatus === null ||
|
|
99
101
|
(mapStatus.zoom === null && mapStatus.center === null) ||
|
|
@@ -104,8 +106,6 @@ class MapViewer extends React.Component {
|
|
|
104
106
|
mapStatus.center = this.mapCfg.center;
|
|
105
107
|
this.setCenterState(this.mapCfg.center);
|
|
106
108
|
this.setZoomState(this.mapCfg.zoom);
|
|
107
|
-
} else {
|
|
108
|
-
mapStatus = this.recoverState();
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
this.view = new MapView({
|
|
@@ -479,6 +479,8 @@ class MenuWidget extends React.Component {
|
|
|
479
479
|
this.expandDropdowns();
|
|
480
480
|
this.loadLayers();
|
|
481
481
|
this.loadOpacity();
|
|
482
|
+
|
|
483
|
+
this.loadVisibility();
|
|
482
484
|
}
|
|
483
485
|
|
|
484
486
|
checkUrl() {
|
|
@@ -1622,23 +1624,23 @@ class MenuWidget extends React.Component {
|
|
|
1622
1624
|
setOpacity() {
|
|
1623
1625
|
let layer = document.querySelector('.opacity-slider input').dataset.layer;
|
|
1624
1626
|
let value = document.querySelector('.opacity-panel input').value;
|
|
1625
|
-
let group = this.getGroup(document.getElementById(layer));
|
|
1626
|
-
let groupLayers = this.getGroupLayers(group);
|
|
1627
|
-
if (group && groupLayers.length > 1) {
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
} else {
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
}
|
|
1627
|
+
// let group = this.getGroup(document.getElementById(layer));
|
|
1628
|
+
// let groupLayers = this.getGroupLayers(group);
|
|
1629
|
+
// if (group && groupLayers.length > 1) {
|
|
1630
|
+
// groupLayers.forEach((item) => {
|
|
1631
|
+
// this.layers[item].opacity = value / 100;
|
|
1632
|
+
// this.saveOpacity(item, value / 100);
|
|
1633
|
+
// document.querySelector(
|
|
1634
|
+
// '.active-layer[layer-id="' + item + '"] .active-layer-opacity',
|
|
1635
|
+
// ).dataset.opacity = value;
|
|
1636
|
+
// });
|
|
1637
|
+
// } else {
|
|
1638
|
+
this.layers[layer].opacity = value / 100;
|
|
1639
|
+
this.saveOpacity(layer, value / 100);
|
|
1640
|
+
document.querySelector(
|
|
1641
|
+
'.active-layer[layer-id="' + layer + '"] .active-layer-opacity',
|
|
1642
|
+
).dataset.opacity = value;
|
|
1643
|
+
// }
|
|
1642
1644
|
}
|
|
1643
1645
|
|
|
1644
1646
|
/**
|
|
@@ -1699,44 +1701,61 @@ class MenuWidget extends React.Component {
|
|
|
1699
1701
|
* @param {*} id id from elem
|
|
1700
1702
|
*/
|
|
1701
1703
|
eyeLayer(elem) {
|
|
1702
|
-
let group = this.getGroup(elem);
|
|
1703
|
-
let groupLayers = this.getGroupLayers(group);
|
|
1704
1704
|
if (this.visibleLayers[elem.id][1] === 'eye') {
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
this.layers[item].visible = false;
|
|
1708
|
-
this.visibleLayers[item] = ['fas', 'eye-slash'];
|
|
1709
|
-
});
|
|
1710
|
-
} else {
|
|
1711
|
-
this.layers[elem.id].visible = false;
|
|
1712
|
-
this.visibleLayers[elem.id] = ['fas', 'eye-slash'];
|
|
1713
|
-
}
|
|
1714
|
-
} else {
|
|
1715
|
-
if (group && groupLayers.length > 1) {
|
|
1716
|
-
groupLayers.forEach((item) => {
|
|
1717
|
-
this.map.add(this.layers[item]);
|
|
1718
|
-
this.layers[item].visible = true;
|
|
1719
|
-
this.visibleLayers[item] = ['fas', 'eye'];
|
|
1720
|
-
});
|
|
1721
|
-
} else {
|
|
1722
|
-
this.map.add(this.layers[elem.id]);
|
|
1723
|
-
this.layers[elem.id].visible = true;
|
|
1724
|
-
this.visibleLayers[elem.id] = ['fas', 'eye'];
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
if (group && groupLayers.length > 1) {
|
|
1728
|
-
groupLayers.forEach((item) => {
|
|
1729
|
-
elem = document.getElementById(item);
|
|
1730
|
-
this.activeLayersJSON[item] = this.addActiveLayer(elem, 0);
|
|
1731
|
-
});
|
|
1705
|
+
this.layers[elem.id].visible = false;
|
|
1706
|
+
this.visibleLayers[elem.id] = ['fas', 'eye-slash'];
|
|
1732
1707
|
} else {
|
|
1733
|
-
this.
|
|
1708
|
+
this.map.add(this.layers[elem.id]);
|
|
1709
|
+
this.layers[elem.id].visible = true;
|
|
1710
|
+
this.visibleLayers[elem.id] = ['fas', 'eye'];
|
|
1734
1711
|
}
|
|
1712
|
+
|
|
1713
|
+
this.saveVisibility();
|
|
1714
|
+
|
|
1715
|
+
this.activeLayersJSON[elem.id] = this.addActiveLayer(elem, 0);
|
|
1735
1716
|
this.layersReorder();
|
|
1736
1717
|
this.checkInfoWidget();
|
|
1737
1718
|
this.setState({});
|
|
1738
1719
|
}
|
|
1739
1720
|
|
|
1721
|
+
/**
|
|
1722
|
+
* Saves the layer visibility (eye icon state) to sessionStorage
|
|
1723
|
+
*/
|
|
1724
|
+
saveVisibility() {
|
|
1725
|
+
if (this.props.download) return;
|
|
1726
|
+
sessionStorage.setItem('visibleLayers', JSON.stringify(this.visibleLayers));
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Loads the layer visibility (eye icon state) from sessionStorage
|
|
1731
|
+
*/
|
|
1732
|
+
loadVisibility() {
|
|
1733
|
+
if (this.props.download) return;
|
|
1734
|
+
let vl = JSON.parse(sessionStorage.getItem('visibleLayers'));
|
|
1735
|
+
if (vl) {
|
|
1736
|
+
this.visibleLayers = vl;
|
|
1737
|
+
|
|
1738
|
+
for (const key in this.visibleLayers) {
|
|
1739
|
+
if (this.visibleLayers[key][1] === 'eye') {
|
|
1740
|
+
this.layers[key].visible = true;
|
|
1741
|
+
} else {
|
|
1742
|
+
this.layers[key].visible = false;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
let elem = document.getElementById(key);
|
|
1746
|
+
if (this.activeLayersJSON[elem.id]) {
|
|
1747
|
+
this.activeLayersJSON[elem.id] = this.addActiveLayer(elem, 0);
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
//this.layersReorder();
|
|
1751
|
+
//this.checkInfoWidget();
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
// update DOM
|
|
1755
|
+
this.setState({});
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1740
1759
|
/**
|
|
1741
1760
|
* Method to delete layer from "Active Layers" and uncheck dataset and products
|
|
1742
1761
|
* @param {*} e From the click event
|
|
@@ -1797,12 +1816,14 @@ class MenuWidget extends React.Component {
|
|
|
1797
1816
|
*/
|
|
1798
1817
|
deleteLayer(layer) {
|
|
1799
1818
|
let checkedLayers = JSON.parse(sessionStorage.getItem('checkedLayers'));
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
checkedLayers
|
|
1819
|
+
if (checkedLayers) {
|
|
1820
|
+
for (var i = 0; i < checkedLayers.length; i++) {
|
|
1821
|
+
if (checkedLayers[i] === layer) {
|
|
1822
|
+
checkedLayers.splice(i, 1);
|
|
1823
|
+
}
|
|
1803
1824
|
}
|
|
1825
|
+
sessionStorage.setItem('checkedLayers', JSON.stringify(checkedLayers));
|
|
1804
1826
|
}
|
|
1805
|
-
sessionStorage.setItem('checkedLayers', JSON.stringify(checkedLayers));
|
|
1806
1827
|
}
|
|
1807
1828
|
|
|
1808
1829
|
/**
|