@eeacms/volto-arcgis-block 0.1.118 → 0.1.119
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,12 @@ 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.119](https://github.com/eea/volto-arcgis-block/compare/0.1.118...0.1.119) - 22 March 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS-1886 (bug):Works well on custom map [Urkorue - [`81a9d1d`](https://github.com/eea/volto-arcgis-block/commit/81a9d1d5beccbfa71b3a2b8bf19f66996aba3c16)]
|
|
12
|
+
- CLMS-1886 (bug):Opacities work well with filtered layers [Urkorue - [`97ba87b`](https://github.com/eea/volto-arcgis-block/commit/97ba87bd861bc802bd5a062c5bb196cc01debd27)]
|
|
7
13
|
### [0.1.118](https://github.com/eea/volto-arcgis-block/compare/0.1.117...0.1.118) - 22 March 2023
|
|
8
14
|
|
|
9
15
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -2350,8 +2350,16 @@ class MenuWidget extends React.Component {
|
|
|
2350
2350
|
// ).dataset.opacity = value;
|
|
2351
2351
|
// });
|
|
2352
2352
|
// } else {
|
|
2353
|
-
this.layers[
|
|
2354
|
-
|
|
2353
|
+
if (this.layers['lcc_filter'] && layer.includes('all_lcc')) {
|
|
2354
|
+
this.layers['lcc_filter'].opacity = value / 100;
|
|
2355
|
+
this.saveOpacity(this.layers['lcc_filter'], value / 100);
|
|
2356
|
+
} else if (this.layers['lc_filter'] && layer.includes('all_present')) {
|
|
2357
|
+
this.layers['lc_filter'].opacity = value / 100;
|
|
2358
|
+
this.saveOpacity(this.layers['lc_filter'], value / 100);
|
|
2359
|
+
} else {
|
|
2360
|
+
this.layers[layer].opacity = value / 100;
|
|
2361
|
+
this.saveOpacity(this.layer, value / 100);
|
|
2362
|
+
}
|
|
2355
2363
|
document.querySelector(
|
|
2356
2364
|
'.active-layer[layer-id="' + layer + '"] .active-layer-opacity',
|
|
2357
2365
|
).dataset.opacity = value;
|
|
@@ -2419,9 +2427,24 @@ class MenuWidget extends React.Component {
|
|
|
2419
2427
|
if (this.visibleLayers[elem.id][1] === 'eye') {
|
|
2420
2428
|
this.layers[elem.id].visible = false;
|
|
2421
2429
|
this.visibleLayers[elem.id] = ['fas', 'eye-slash'];
|
|
2430
|
+
if (this.layers['lcc_filter'] && elem.id.includes('all_lcc')) {
|
|
2431
|
+
this.map.remove(this.layers['lcc_filter']);
|
|
2432
|
+
this.layers['lcc_filter'].visible = false;
|
|
2433
|
+
} else if (this.layers['lc_filter'] && elem.id.includes('all_present')) {
|
|
2434
|
+
this.map.remove(this.layers['lc_filter']);
|
|
2435
|
+
this.layers['lc_filter'].visible = false;
|
|
2436
|
+
}
|
|
2422
2437
|
} else {
|
|
2423
|
-
|
|
2424
|
-
|
|
2438
|
+
if (this.layers['lcc_filter'] && elem.id.includes('all_lcc')) {
|
|
2439
|
+
this.map.add(this.layers['lcc_filter']);
|
|
2440
|
+
this.layers['lcc_filter'].visible = true;
|
|
2441
|
+
} else if (this.layers['lc_filter'] && elem.id.includes('all_present')) {
|
|
2442
|
+
this.map.add(this.layers['lc_filter']);
|
|
2443
|
+
this.layers['lc_filter'].visible = true;
|
|
2444
|
+
} else {
|
|
2445
|
+
this.map.add(this.layers[elem.id]);
|
|
2446
|
+
this.layers[elem.id].visible = true;
|
|
2447
|
+
}
|
|
2425
2448
|
this.visibleLayers[elem.id] = ['fas', 'eye'];
|
|
2426
2449
|
}
|
|
2427
2450
|
|