@eeacms/volto-arcgis-block 0.1.141 → 0.1.142
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,11 @@ 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.142](https://github.com/eea/volto-arcgis-block/compare/0.1.141...0.1.142) - 11 May 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS-1953 (fix): set legend image opacity to 1 regardless of layer view opacity [ujbolivar - [`0adad47`](https://github.com/eea/volto-arcgis-block/commit/0adad4733f487213ddbb90513e3d217c1d87c951)]
|
|
7
12
|
### [0.1.141](https://github.com/eea/volto-arcgis-block/compare/0.1.140...0.1.141) - 11 May 2023
|
|
8
13
|
|
|
9
14
|
### [0.1.140](https://github.com/eea/volto-arcgis-block/compare/0.1.139...0.1.140) - 11 May 2023
|
package/package.json
CHANGED
|
@@ -2682,6 +2682,30 @@ class MenuWidget extends React.Component {
|
|
|
2682
2682
|
'.active-layer[layer-id="' + layer + '"] .active-layer-opacity',
|
|
2683
2683
|
).dataset.opacity = value;
|
|
2684
2684
|
// }
|
|
2685
|
+
setTimeout(() => {
|
|
2686
|
+
this.setLegendOpacity();
|
|
2687
|
+
}, 100);
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
setLegendOpacity() {
|
|
2691
|
+
const collection = document.getElementsByClassName('esri-legend__symbol');
|
|
2692
|
+
|
|
2693
|
+
Array.prototype.forEach.call(collection, function (element) {
|
|
2694
|
+
let img = {};
|
|
2695
|
+
|
|
2696
|
+
if (element.hasChildNodes()) {
|
|
2697
|
+
img = element.childNodes[0];
|
|
2698
|
+
} else {
|
|
2699
|
+
img = element;
|
|
2700
|
+
}
|
|
2701
|
+
// Set Legend opacity back to 1;
|
|
2702
|
+
if (img) {
|
|
2703
|
+
img.setAttribute(
|
|
2704
|
+
'style',
|
|
2705
|
+
'opacity:1; -moz-opacity:1; filter:alpha(opacity=100)',
|
|
2706
|
+
);
|
|
2707
|
+
}
|
|
2708
|
+
});
|
|
2685
2709
|
}
|
|
2686
2710
|
|
|
2687
2711
|
/**
|