@eeacms/volto-arcgis-block 0.1.390 → 0.1.392
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,10 +4,20 @@ 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.392](https://github.com/eea/volto-arcgis-block/compare/0.1.391...0.1.392) - 25 September 2025
|
|
8
|
+
|
|
9
|
+
### [0.1.391](https://github.com/eea/volto-arcgis-block/compare/0.1.390...0.1.391) - 24 September 2025
|
|
10
|
+
|
|
11
|
+
#### :hammer_and_wrench: Others
|
|
12
|
+
|
|
13
|
+
- Merge pull request #1023 from eea/develop [Unai Bolivar - [`1671349`](https://github.com/eea/volto-arcgis-block/commit/1671349e02d636b62eab4a37fd49044248bf704b)]
|
|
14
|
+
- Merge pull request #1022 from eea/CLMS-292477 [Unai Bolivar - [`4ccf86e`](https://github.com/eea/volto-arcgis-block/commit/4ccf86e244145c0b3e3e899ef122449d0e7e37fa)]
|
|
15
|
+
- (bug): The time slider doesn't load when the web service URL is in proxy format. FIXED [Unai Bolivar - [`fb9980b`](https://github.com/eea/volto-arcgis-block/commit/fb9980b17a0754fe0f50c87c0c8bbc0d20422a27)]
|
|
7
16
|
### [0.1.390](https://github.com/eea/volto-arcgis-block/compare/0.1.389...0.1.390) - 23 September 2025
|
|
8
17
|
|
|
9
18
|
#### :hammer_and_wrench: Others
|
|
10
19
|
|
|
20
|
+
- Merge pull request #1021 from eea/develop [Unai Bolivar - [`3a1db8d`](https://github.com/eea/volto-arcgis-block/commit/3a1db8db8d64e7ca63f1f1551255df9f443dd695)]
|
|
11
21
|
- (bug): Download area button didn't popup no available data showed up for cdse datasets in certain NUTS 3 counties. [Unai Bolivar - [`1b46d88`](https://github.com/eea/volto-arcgis-block/commit/1b46d88642fdae3ae5235c2a5b91ba02e2a6bbdc)]
|
|
12
22
|
### [0.1.389](https://github.com/eea/volto-arcgis-block/compare/0.1.388...0.1.389) - 18 September 2025
|
|
13
23
|
|
package/package.json
CHANGED
|
@@ -1758,7 +1758,7 @@ class MenuWidget extends React.Component {
|
|
|
1758
1758
|
<div
|
|
1759
1759
|
className={
|
|
1760
1760
|
dataset.FamilyTitle
|
|
1761
|
-
? 'map-menu-family-dataset-dropdown'
|
|
1761
|
+
? 'map-menu-dataset-dropdown map-menu-family-dataset-dropdown'
|
|
1762
1762
|
: 'map-menu-dataset-dropdown'
|
|
1763
1763
|
}
|
|
1764
1764
|
id={'dataset_' + inheritedIndexDataset}
|
|
@@ -86,7 +86,6 @@ class TimesliderWidget extends React.Component {
|
|
|
86
86
|
|
|
87
87
|
async getCDSEWFSTemporalData(url, layer) {
|
|
88
88
|
if (!url) return {};
|
|
89
|
-
const match = /\/ogc\/(?:wmts|wms)\/([^/?]+)/i.exec(url);
|
|
90
89
|
const datasetDownloadInformation =
|
|
91
90
|
layer?.DatasetDownloadInformation ||
|
|
92
91
|
layer?.DatasetDownloadInformation ||
|
|
@@ -95,8 +94,47 @@ class TimesliderWidget extends React.Component {
|
|
|
95
94
|
const byocCollectionId =
|
|
96
95
|
datasetDownloadInformation?.items[0].byoc_collection || null;
|
|
97
96
|
if (!byocCollectionId) return {};
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
let revProxyUrl = '';
|
|
98
|
+
let cdseDatasetId = '';
|
|
99
|
+
if (typeof url === 'string') {
|
|
100
|
+
try {
|
|
101
|
+
const u = new URL(
|
|
102
|
+
url,
|
|
103
|
+
window.location && window.location.href
|
|
104
|
+
? window.location.href
|
|
105
|
+
: undefined,
|
|
106
|
+
);
|
|
107
|
+
const parts = u.pathname.split('/').filter(Boolean);
|
|
108
|
+
const idx = parts.indexOf('cdse');
|
|
109
|
+
if (idx !== -1) {
|
|
110
|
+
revProxyUrl = u.origin + '/' + parts[idx] + '/';
|
|
111
|
+
cdseDatasetId = parts[idx + 1] || '';
|
|
112
|
+
} else {
|
|
113
|
+
const base = url.split('?')[0];
|
|
114
|
+
const b = new URL(
|
|
115
|
+
base,
|
|
116
|
+
window.location && window.location.href
|
|
117
|
+
? window.location.href
|
|
118
|
+
: undefined,
|
|
119
|
+
);
|
|
120
|
+
const bparts = b.pathname.split('/').filter(Boolean);
|
|
121
|
+
cdseDatasetId = bparts[bparts.length - 1] || '';
|
|
122
|
+
revProxyUrl = b.origin + '/';
|
|
123
|
+
}
|
|
124
|
+
} catch (_e) {
|
|
125
|
+
const base = url.split('?')[0];
|
|
126
|
+
const path = base.split('/');
|
|
127
|
+
cdseDatasetId = path[path.length - 1] || '';
|
|
128
|
+
const idx = path.findIndex((p) => p === 'cdse');
|
|
129
|
+
if (idx > 0) {
|
|
130
|
+
revProxyUrl = path.slice(0, idx + 1).join('/') + '/';
|
|
131
|
+
} else {
|
|
132
|
+
revProxyUrl = base.replace(cdseDatasetId, '');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (!revProxyUrl || !cdseDatasetId) return {};
|
|
137
|
+
const fetchUrl = `${revProxyUrl}wfs/${cdseDatasetId}?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=byoc-${byocCollectionId}&COUNT=100&BBOX=-21039383,-22375217,21039383,22375217&OUTPUTFORMAT=application/json`;
|
|
100
138
|
try {
|
|
101
139
|
const res = await fetch(fetchUrl);
|
|
102
140
|
const data = await res.json();
|