@eeacms/volto-arcgis-block 0.1.369 → 0.1.370

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,8 +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.370](https://github.com/eea/volto-arcgis-block/compare/0.1.369...0.1.370) - 19 June 2025
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - CLMS-287480 (bug): Implement the regrouping of layers when REST services exist [Unai Bolivar - [`0e9ed21`](https://github.com/eea/volto-arcgis-block/commit/0e9ed218e0fbe691773220afd7cbd4f2a948c33d)]
7
12
  ### [0.1.369](https://github.com/eea/volto-arcgis-block/compare/0.1.368...0.1.369) - 18 June 2025
8
13
 
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - Merge pull request #978 from eea/develop [Unai Bolivar - [`32cddf9`](https://github.com/eea/volto-arcgis-block/commit/32cddf9f880a50082094cf73e10316848555d792)]
9
17
  ### [0.1.368](https://github.com/eea/volto-arcgis-block/compare/0.1.367...0.1.368) - 17 June 2025
10
18
 
11
19
  ### [0.1.367](https://github.com/eea/volto-arcgis-block/compare/0.1.366...0.1.367) - 17 June 2025
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.369",
3
+ "version": "0.1.370",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -2862,11 +2862,17 @@ class MenuWidget extends React.Component {
2862
2862
  }
2863
2863
  this.visibleLayers[elem.id] = ['fas', 'eye'];
2864
2864
  this.timeLayers[elem.id] = ['far', 'clock'];
2865
+ let layer = this.layers[elem.id];
2866
+ let isMapServer = layer?.url.toLowerCase().endsWith('mapserver')
2867
+ ? true
2868
+ : false;
2865
2869
  if (group) {
2866
- elem.title = this.getLayerTitle(this.layers[elem.id]);
2870
+ elem.title = isMapServer
2871
+ ? this.layers[elem.id].DatasetTitle
2872
+ : this.getLayerTitle(this.layers[elem.id]);
2867
2873
  let groupLayers = this.getGroupLayers(group);
2868
2874
  if (groupLayers.length > 0 && groupLayers[0] in this.activeLayersJSON) {
2869
- elem.hide = true;
2875
+ elem.hide = isMapServer;
2870
2876
  }
2871
2877
  this.activeLayersJSON[elem.id] = this.addActiveLayer(
2872
2878
  elem,
@@ -3757,7 +3763,7 @@ class MenuWidget extends React.Component {
3757
3763
  layer-id={elem.id}
3758
3764
  layer-order={order}
3759
3765
  draggable="true"
3760
- // {...(elem.hide && { style: { display: 'none' } })}
3766
+ {...(elem.hide && { style: { display: 'none' } })}
3761
3767
  onDrop={(e) => this.onDrop(e)}
3762
3768
  onDragOver={(e) => this.onDragOver(e)}
3763
3769
  onDragStart={(e) => this.onDragStart(e)}