@eeacms/volto-arcgis-block 0.1.472 → 0.1.474
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 +13 -0
- package/package.json +1 -1
- package/src/components/MapViewer/MenuWidget.jsx +18 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ 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.474](https://github.com/eea/volto-arcgis-block/compare/0.1.473...0.1.474) - 17 August 2026
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- (chore): fix linting [Unai Bolivar - [`4c46f70`](https://github.com/eea/volto-arcgis-block/commit/4c46f701128b5068f921b34e98564cbb2471610f)]
|
|
12
|
+
- (chore): fix linting [Unai Bolivar - [`3d938ad`](https://github.com/eea/volto-arcgis-block/commit/3d938add367c4f22b178748722b4f5bff4b500e1)]
|
|
13
|
+
### [0.1.473](https://github.com/eea/volto-arcgis-block/compare/0.1.472...0.1.473) - 17 August 2026
|
|
14
|
+
|
|
15
|
+
#### :hammer_and_wrench: Others
|
|
16
|
+
|
|
17
|
+
- Merge pull request #1202 from eea/develop [Unai Bolivar - [`7a77993`](https://github.com/eea/volto-arcgis-block/commit/7a77993e4249100ed44eb1e47ee655fc56563f4a)]
|
|
18
|
+
- Merge pull request #1201 from eea/CLMS-304632-RESTORE-GROUP-FUNCTION [Unai Bolivar - [`1e1e81d`](https://github.com/eea/volto-arcgis-block/commit/1e1e81d9fe93653cfa7902923fd8a94ee453b90e)]
|
|
19
|
+
- (bug): group layer toc menu fix for rechecking these datasets [Unai Bolivar - [`6c2a8e9`](https://github.com/eea/volto-arcgis-block/commit/6c2a8e9e9cc46187eb127108816329685bca83a7)]
|
|
7
20
|
### [0.1.472](https://github.com/eea/volto-arcgis-block/compare/0.1.471...0.1.472) - 14 August 2026
|
|
8
21
|
|
|
9
22
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1260,6 +1260,7 @@ class MenuWidget extends React.Component {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
this.layers[layer.LayerId + '_' + inheritedIndexLayer] = new GroupLayer({
|
|
1263
|
+
id: layer.LayerId + '_' + inheritedIndexLayer,
|
|
1263
1264
|
title: baseLayerTitle,
|
|
1264
1265
|
visibilityMode: 'independent',
|
|
1265
1266
|
layers: dualResolutionLayers,
|
|
@@ -5129,11 +5130,18 @@ class MenuWidget extends React.Component {
|
|
|
5129
5130
|
) {
|
|
5130
5131
|
mapLayersToRemove.push(currentLayerData);
|
|
5131
5132
|
}
|
|
5132
|
-
const
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5133
|
+
const shouldMatchServiceData = currentLayerData?.type === 'wmts';
|
|
5134
|
+
const currentLayerService = shouldMatchServiceData
|
|
5135
|
+
? String(
|
|
5136
|
+
currentLayerData?.ViewService || currentLayerData?.url || '',
|
|
5137
|
+
).toLowerCase()
|
|
5138
|
+
: '';
|
|
5139
|
+
const currentLayerActive = shouldMatchServiceData
|
|
5140
|
+
? currentLayerData?.activeLayer?.id || null
|
|
5141
|
+
: null;
|
|
5142
|
+
const currentLayerDataset = shouldMatchServiceData
|
|
5143
|
+
? currentLayerData?.DatasetId || null
|
|
5144
|
+
: null;
|
|
5137
5145
|
const mapLayerItems = this.map?.layers?.items || [];
|
|
5138
5146
|
mapLayerItems.forEach((candidateLayer) => {
|
|
5139
5147
|
if (!candidateLayer) {
|
|
@@ -5150,6 +5158,9 @@ class MenuWidget extends React.Component {
|
|
|
5150
5158
|
mapLayersToRemove.push(candidateLayer);
|
|
5151
5159
|
return;
|
|
5152
5160
|
}
|
|
5161
|
+
if (!shouldMatchServiceData) {
|
|
5162
|
+
return;
|
|
5163
|
+
}
|
|
5153
5164
|
const candidateService = String(
|
|
5154
5165
|
candidateLayer.ViewService || candidateLayer.url || '',
|
|
5155
5166
|
).toLowerCase();
|
|
@@ -5185,12 +5196,14 @@ class MenuWidget extends React.Component {
|
|
|
5185
5196
|
if (
|
|
5186
5197
|
layerToRemove.type &&
|
|
5187
5198
|
layerToRemove.type !== 'base-tile' &&
|
|
5199
|
+
layerToRemove.type !== 'group' &&
|
|
5188
5200
|
layerToRemove.type !== 'wmts' &&
|
|
5189
5201
|
typeof layerToRemove.clear === 'function'
|
|
5190
5202
|
) {
|
|
5191
5203
|
layerToRemove.clear();
|
|
5192
5204
|
}
|
|
5193
5205
|
if (
|
|
5206
|
+
layerToRemove.type !== 'group' &&
|
|
5194
5207
|
layerToRemove.type !== 'wmts' &&
|
|
5195
5208
|
typeof layerToRemove.destroy === 'function'
|
|
5196
5209
|
) {
|