@eeacms/volto-arcgis-block 0.1.388 → 0.1.390

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,17 @@ 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.390](https://github.com/eea/volto-arcgis-block/compare/0.1.389...0.1.390) - 23 September 2025
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - (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
+ ### [0.1.389](https://github.com/eea/volto-arcgis-block/compare/0.1.388...0.1.389) - 18 September 2025
13
+
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - Merge pull request #1018 from eea/CLMS-291307-ADAPT-DATA-VIEWER-TIME-SLIDER-FOR-CDSE-TIME-SERIES-DATASETS [Unai Bolivar - [`da9c70f`](https://github.com/eea/volto-arcgis-block/commit/da9c70f56b030432f95b07487775be947d6c668c)]
17
+ - (bug): time slider widget turns off logo for cdse tiles [Unai Bolivar - [`555b466`](https://github.com/eea/volto-arcgis-block/commit/555b466b3fe54ca44a20c97102846651d825f7ef)]
7
18
  ### [0.1.388](https://github.com/eea/volto-arcgis-block/compare/0.1.387...0.1.388) - 17 September 2025
8
19
 
9
20
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.388",
3
+ "version": "0.1.390",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -92,7 +92,8 @@ export const AddCartItem = ({
92
92
  }
93
93
  });
94
94
  };
95
- const checkExtent = (e) => {
95
+ const checkExtent = async (e) => {
96
+ let target = e?.currentTarget;
96
97
  let intersection = false;
97
98
  let areaExtent = null;
98
99
  let check = document.querySelector('.area-panel input:checked')?.value;
@@ -123,7 +124,7 @@ export const AddCartItem = ({
123
124
  areaExtent = areaData?.geometry;
124
125
  }
125
126
  if (dataset?.DatasetTitle) {
126
- Object.keys(props.layers).forEach((id) => {
127
+ for (const id of Object.keys(props.layers)) {
127
128
  if (
128
129
  props.layers[id]?.DatasetTitle &&
129
130
  dataset.DatasetTitle === props.layers[id].DatasetTitle
@@ -140,25 +141,38 @@ export const AddCartItem = ({
140
141
  props.layers[id].fullExtents &&
141
142
  props.layers[id].fullExtents[0]
142
143
  ) {
143
- layerExtent = new Extent({
144
- xmin: props.layers[id].fullExtents[0].xmin,
145
- ymin: props.layers[id].fullExtents[0].ymin,
146
- xmax: props.layers[id].fullExtents[0].xmax,
147
- ymax: props.layers[id].fullExtents[0].ymax,
148
- spatialReference:
149
- props.layers[id].fullExtents[0].spatialReference ||
150
- mapViewer?.view?.spatialReference,
151
- });
152
144
  if (isCDSE) {
153
- try {
154
- const projected = projection.project(
155
- layerExtent,
156
- mapViewer.view.spatialReference,
157
- );
158
- if (projected) {
159
- layerExtent = projected;
160
- }
161
- } catch (e) {}
145
+ let e0 = props.layers[id].fullExtents[0];
146
+ let xmin = e0.xmin;
147
+ let ymin = e0.ymin;
148
+ let xmax = e0.xmax;
149
+ let ymax = e0.ymax;
150
+ for (let i = 1; i < props.layers[id].fullExtents.length; i++) {
151
+ let ex = props.layers[id].fullExtents[i];
152
+ if (!ex) continue;
153
+ if (ex.xmin < xmin) xmin = ex.xmin;
154
+ if (ex.ymin < ymin) ymin = ex.ymin;
155
+ if (ex.xmax > xmax) xmax = ex.xmax;
156
+ if (ex.ymax > ymax) ymax = ex.ymax;
157
+ }
158
+ layerExtent = new Extent({
159
+ xmin: xmin,
160
+ ymin: ymin,
161
+ xmax: xmax,
162
+ ymax: ymax,
163
+ spatialReference:
164
+ e0.spatialReference || mapViewer?.view?.spatialReference,
165
+ });
166
+ } else {
167
+ layerExtent = new Extent({
168
+ xmin: props.layers[id].fullExtents[0].xmin,
169
+ ymin: props.layers[id].fullExtents[0].ymin,
170
+ xmax: props.layers[id].fullExtents[0].xmax,
171
+ ymax: props.layers[id].fullExtents[0].ymax,
172
+ spatialReference:
173
+ props.layers[id].fullExtents[0].spatialReference ||
174
+ mapViewer?.view?.spatialReference,
175
+ });
162
176
  }
163
177
  } else {
164
178
  layerExtent = new Extent({
@@ -179,13 +193,15 @@ export const AddCartItem = ({
179
193
  intersection = true;
180
194
  }
181
195
  }
182
- });
196
+ }
183
197
  if (intersection) {
184
- checkArea();
198
+ try {
199
+ checkArea();
200
+ } catch (error) {}
185
201
  } else {
186
202
  const popupContainer = document.querySelector('.popup-container');
187
203
  if (popupContainer) {
188
- e.currentTarget.appendChild(popupContainer);
204
+ target.appendChild(popupContainer);
189
205
  handleOpenPopup();
190
206
  }
191
207
  }
@@ -3850,7 +3866,6 @@ class MenuWidget extends React.Component {
3850
3866
  } else {
3851
3867
  this.url = serviceLayer.ViewService;
3852
3868
  }
3853
- // const isCDSE = !!this.url && this.url.toLowerCase().includes('/ogc/');
3854
3869
  const isCDSE =
3855
3870
  !!this.url &&
3856
3871
  ['/ogc/', '/cdse/'].some((s) => this.url.toLowerCase().includes(s));
@@ -384,7 +384,9 @@ class TimesliderWidget extends React.Component {
384
384
  };
385
385
 
386
386
  if (this.layer.type === 'wmts') {
387
- this.layer.customLayerParameters = {};
387
+ this.layer.customLayerParameters = {
388
+ SHOWLOGO: false,
389
+ };
388
390
  const time = times[this.layerName].array.map(
389
391
  (d) => new Date(d),
390
392
  );
@@ -426,7 +428,9 @@ class TimesliderWidget extends React.Component {
426
428
  this.TimesliderWidget.stop();
427
429
  }
428
430
  if (this.layer.type === 'wmts') {
429
- this.layer.customLayerParameters = {};
431
+ this.layer.customLayerParameters = {
432
+ SHOWLOGO: false,
433
+ };
430
434
  this.layer.customLayerParameters['TIME'] =
431
435
  timeDict[this.TimesliderWidget.timeExtent.end];
432
436
  } else {