@eeacms/volto-arcgis-block 0.1.453 → 0.1.455

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,13 @@ 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.455](https://github.com/eea/volto-arcgis-block/compare/0.1.454...0.1.455) - 9 June 2026
8
+
9
+ ### [0.1.454](https://github.com/eea/volto-arcgis-block/compare/0.1.453...0.1.454) - 8 June 2026
10
+
11
+ #### :hammer_and_wrench: Others
12
+
13
+ - (feat): For 10m CDSE datasets, remove the message from the TOC menu once the correct zoom level has been reached [Unai Bolivar - [`f5a2f19`](https://github.com/eea/volto-arcgis-block/commit/f5a2f19e2ca8f8311bfcd69bbf90d14c168f0f9b)]
7
14
  ### [0.1.453](https://github.com/eea/volto-arcgis-block/compare/0.1.452...0.1.453) - 3 June 2026
8
15
 
9
16
  #### :house: Internal changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.453",
3
+ "version": "0.1.455",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -537,6 +537,24 @@ class MenuWidget extends React.Component {
537
537
  });
538
538
  }
539
539
  }
540
+ let zoomInMessageContainers = document.getElementsByClassName(
541
+ 'zoom-in-message-container',
542
+ );
543
+ let zoomInMessageContainersList = [...zoomInMessageContainers];
544
+ zoomInMessageContainersList.forEach((container) => {
545
+ if (container && container !== null) {
546
+ let nodes = [
547
+ ...document.getElementsByClassName('zoom-in-message-dataset'),
548
+ ];
549
+ nodes.forEach((node) => {
550
+ if (node && node !== null) {
551
+ if (node.innerText === 'Zoom in') {
552
+ node.style.display = zoom > 6 ? 'none' : 'block';
553
+ }
554
+ }
555
+ });
556
+ }
557
+ });
540
558
  if (!this.visibleLayers) this.visibleLayers = {};
541
559
  this.handleRasterVectorLegend();
542
560
  this.setState({});
@@ -7880,13 +7898,61 @@ class MenuWidget extends React.Component {
7880
7898
 
7881
7899
  renderTimeslider(elem, layer, fromDownload, hideCalendar) {
7882
7900
  if (this.props.view && layer) {
7883
- let elemId;
7884
- if (elem.id.includes('.')) {
7885
- elemId = elem.id.replaceAll('.', '\\.');
7886
- } else {
7887
- elemId = elem.id;
7901
+ let activeLayer = document.getElementById('active_' + elem.id);
7902
+ if (!activeLayer) {
7903
+ if (!this._pendingTimesliderRender) {
7904
+ this._pendingTimesliderRender = {};
7905
+ }
7906
+ if (!this._pendingTimesliderRenderCount) {
7907
+ this._pendingTimesliderRenderCount = {};
7908
+ }
7909
+ if (!this._pendingTimesliderRender[elem.id]) {
7910
+ this._pendingTimesliderRender[elem.id] = true;
7911
+ setTimeout(() => {
7912
+ if (this._pendingTimesliderRender) {
7913
+ this._pendingTimesliderRender[elem.id] = false;
7914
+ }
7915
+ if (!this._pendingTimesliderRenderCount[elem.id]) {
7916
+ this._pendingTimesliderRenderCount[elem.id] = 0;
7917
+ }
7918
+ this._pendingTimesliderRenderCount[elem.id] += 1;
7919
+ if (
7920
+ this.timeLayers &&
7921
+ this.timeLayers[elem.id] &&
7922
+ this.timeLayers[elem.id][1] === 'stop' &&
7923
+ this._pendingTimesliderRenderCount[elem.id] < 6
7924
+ ) {
7925
+ let sourceElem = document.getElementById(elem.id) || elem;
7926
+ let order =
7927
+ this.activeLayersJSON && this.activeLayersJSON[elem.id]
7928
+ ? this.activeLayersJSON[elem.id].props['layer-order']
7929
+ : 0;
7930
+ if (sourceElem && this.activeLayersJSON) {
7931
+ this.activeLayersJSON[elem.id] = this.addActiveLayer(
7932
+ sourceElem,
7933
+ order,
7934
+ fromDownload,
7935
+ hideCalendar,
7936
+ );
7937
+ }
7938
+ this.setState({});
7939
+ }
7940
+ }, 0);
7941
+ }
7942
+ return null;
7943
+ }
7944
+ if (
7945
+ this._pendingTimesliderRender &&
7946
+ this._pendingTimesliderRender[elem.id]
7947
+ ) {
7948
+ this._pendingTimesliderRender[elem.id] = false;
7949
+ }
7950
+ if (
7951
+ this._pendingTimesliderRenderCount &&
7952
+ this._pendingTimesliderRenderCount[elem.id]
7953
+ ) {
7954
+ this._pendingTimesliderRenderCount[elem.id] = 0;
7888
7955
  }
7889
- let activeLayer = document.querySelector('#active_' + elemId);
7890
7956
  let time = { elem: activeLayer };
7891
7957
  if (this.props.download) {
7892
7958
  let dataset = document.querySelector('.map-dataset-checkbox input');