@eeacms/volto-arcgis-block 0.1.258 → 0.1.260
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,10 @@ 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.260](https://github.com/eea/volto-arcgis-block/compare/0.1.259...0.1.260) - 15 February 2024
|
|
8
|
+
|
|
9
|
+
### [0.1.259](https://github.com/eea/volto-arcgis-block/compare/0.1.258...0.1.259) - 14 February 2024
|
|
10
|
+
|
|
7
11
|
### [0.1.258](https://github.com/eea/volto-arcgis-block/compare/0.1.257...0.1.258) - 12 February 2024
|
|
8
12
|
|
|
9
13
|
### [0.1.257](https://github.com/eea/volto-arcgis-block/compare/0.1.256...0.1.257) - 7 February 2024
|
package/package.json
CHANGED
|
@@ -701,11 +701,13 @@ class MenuWidget extends React.Component {
|
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
+
let counter = layers.length - 1;
|
|
704
705
|
layers.forEach((layer, index) => {
|
|
706
|
+
let order = counter - index;
|
|
705
707
|
let activeLayers = document.querySelectorAll('.active-layer');
|
|
706
708
|
activeLayers.forEach((item) => {
|
|
707
709
|
if (layer === item.getAttribute('layer-id')) {
|
|
708
|
-
item.parentElement.insertBefore(item, activeLayers[
|
|
710
|
+
item.parentElement.insertBefore(item, activeLayers[order]);
|
|
709
711
|
}
|
|
710
712
|
});
|
|
711
713
|
});
|
|
@@ -2843,7 +2845,7 @@ class MenuWidget extends React.Component {
|
|
|
2843
2845
|
let activeLayers = document.querySelectorAll('.active-layer');
|
|
2844
2846
|
let newLayerOrder = [];
|
|
2845
2847
|
for (let i = 0; i < activeLayers.length; i++) {
|
|
2846
|
-
newLayerOrder.
|
|
2848
|
+
newLayerOrder.unshift(activeLayers[i].getAttribute('layer-id'));
|
|
2847
2849
|
}
|
|
2848
2850
|
sessionStorage.setItem('checkedLayers', JSON.stringify(newLayerOrder));
|
|
2849
2851
|
window.dispatchEvent(new Event('storage'));
|
|
@@ -3061,8 +3063,24 @@ class MenuWidget extends React.Component {
|
|
|
3061
3063
|
});
|
|
3062
3064
|
if (layers.length === 0 && document.querySelector('.info-container')) {
|
|
3063
3065
|
document.querySelector('.info-container').style.display = 'none';
|
|
3066
|
+
if (
|
|
3067
|
+
this.props.mapViewer.activeWidget?.container.current.className ===
|
|
3068
|
+
'info-container esri-component'
|
|
3069
|
+
) {
|
|
3070
|
+
document
|
|
3071
|
+
.querySelector('.esri-ui-top-right.esri-ui-corner')
|
|
3072
|
+
.classList.remove('show-panel');
|
|
3073
|
+
}
|
|
3064
3074
|
} else if (layers.length > 0) {
|
|
3065
3075
|
document.querySelector('.info-container').style.display = 'flex';
|
|
3076
|
+
if (
|
|
3077
|
+
this.props.mapViewer.activeWidget?.container.current.className ===
|
|
3078
|
+
'info-container esri-component'
|
|
3079
|
+
) {
|
|
3080
|
+
document
|
|
3081
|
+
.querySelector('.esri-ui-top-right.esri-ui-corner')
|
|
3082
|
+
.classList.add('show-panel');
|
|
3083
|
+
}
|
|
3066
3084
|
}
|
|
3067
3085
|
}
|
|
3068
3086
|
|