@eeacms/volto-arcgis-block 0.1.463 → 0.1.464
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 +9 -0
- package/package.json +1 -1
- package/src/components/MapViewer/MenuWidget.jsx +118 -136
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ 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.464](https://github.com/eea/volto-arcgis-block/compare/0.1.463...0.1.464) - 3 August 2026
|
|
8
|
+
|
|
9
|
+
#### :house: Internal changes
|
|
10
|
+
|
|
11
|
+
- style: Automated code fix [eea-jenkins - [`223790e`](https://github.com/eea/volto-arcgis-block/commit/223790ead69bbd36d2f9e10b5f90bdfc428fe3b2)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- (bug): ensure time slider operates independently for each layer for CDSE datsets with multiple layers [Unai Bolivar - [`15d1c8e`](https://github.com/eea/volto-arcgis-block/commit/15d1c8eeda8cf59ed9bdff8de1bb01aa1e2ebb90)]
|
|
7
16
|
### [0.1.463](https://github.com/eea/volto-arcgis-block/compare/0.1.462...0.1.463) - 16 July 2026
|
|
8
17
|
|
|
9
18
|
### [0.1.462](https://github.com/eea/volto-arcgis-block/compare/0.1.461...0.1.462) - 14 July 2026
|
package/package.json
CHANGED
|
@@ -6763,155 +6763,137 @@ class MenuWidget extends React.Component {
|
|
|
6763
6763
|
)
|
|
6764
6764
|
this.setSliderTag(false);
|
|
6765
6765
|
else this.setSliderTag(true);
|
|
6766
|
-
|
|
6767
|
-
let
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
this.visibleLayers[elem.id] = ['fas', 'eye'];
|
|
6784
|
-
}
|
|
6785
|
-
document
|
|
6786
|
-
.querySelectorAll(
|
|
6787
|
-
'.active-layer[layer-id="' +
|
|
6788
|
-
elem.id +
|
|
6789
|
-
'"] .map-menu-icon:not(.active-layer-time)',
|
|
6790
|
-
)
|
|
6791
|
-
.forEach((item) => {
|
|
6792
|
-
item.classList.add('locked');
|
|
6793
|
-
});
|
|
6794
|
-
if (document.querySelector('#products_label'))
|
|
6795
|
-
document.querySelector('#products_label').classList.add('locked');
|
|
6796
|
-
if (document.querySelector('#map_remove_layers')) {
|
|
6797
|
-
const mapRemoveBtn = document.querySelector('#map_remove_layers');
|
|
6798
|
-
if (mapRemoveBtn) mapRemoveBtn.classList.add('locked');
|
|
6799
|
-
}
|
|
6800
|
-
if (this.props.download && document.querySelector('#download_label'))
|
|
6801
|
-
document.querySelector('#download_label').classList.add('locked');
|
|
6802
|
-
this.activeLayersJSON[elem.id] = this.addActiveLayer(
|
|
6803
|
-
elem,
|
|
6804
|
-
order,
|
|
6805
|
-
fromDownload,
|
|
6806
|
-
hideCalendar,
|
|
6807
|
-
);
|
|
6808
|
-
} else {
|
|
6809
|
-
const node = document.getElementById(layerId);
|
|
6810
|
-
if (
|
|
6811
|
-
node &&
|
|
6812
|
-
node.parentElement &&
|
|
6813
|
-
node.parentElement.dataset &&
|
|
6814
|
-
node.parentElement.dataset.timeseries === 'true'
|
|
6815
|
-
) {
|
|
6816
|
-
if (!this.visibleLayers[layerId]) {
|
|
6817
|
-
this.visibleLayers[layerId] = ['fas', 'eye'];
|
|
6818
|
-
}
|
|
6819
|
-
if (this.visibleLayers[layerId][1] === 'eye') {
|
|
6820
|
-
if (this.layers[layerId]) this.layers[layerId].visible = false;
|
|
6821
|
-
this.visibleLayers[layerId] = ['fas', 'eye-slash'];
|
|
6822
|
-
}
|
|
6823
|
-
const activeNode = document.querySelector(
|
|
6824
|
-
'.active-layer[layer-id="' + layerId + '"]',
|
|
6825
|
-
);
|
|
6826
|
-
if (activeNode) activeNode.classList.add('locked');
|
|
6827
|
-
}
|
|
6828
|
-
this.activeLayersJSON[layerId] = this.addActiveLayer(
|
|
6829
|
-
document.getElementById(layerId),
|
|
6830
|
-
order,
|
|
6766
|
+
const selectedLayerId = elem.id;
|
|
6767
|
+
let activeTimeLayerId = null;
|
|
6768
|
+
Object.keys(this.timeLayers).forEach((layerId) => {
|
|
6769
|
+
if (this.timeLayers[layerId] && this.timeLayers[layerId][1] === 'stop') {
|
|
6770
|
+
activeTimeLayerId = layerId;
|
|
6771
|
+
}
|
|
6772
|
+
});
|
|
6773
|
+
if (this.timeLayers[selectedLayerId][1] === 'clock') {
|
|
6774
|
+
if (activeTimeLayerId && activeTimeLayerId !== selectedLayerId) {
|
|
6775
|
+
this.timeLayers[activeTimeLayerId] = ['far', 'clock'];
|
|
6776
|
+
const previousLayerNode = document.getElementById(activeTimeLayerId);
|
|
6777
|
+
const previousOrder =
|
|
6778
|
+
this.activeLayersJSON[activeTimeLayerId]?.props?.['layer-order'] || 0;
|
|
6779
|
+
if (previousLayerNode) {
|
|
6780
|
+
this.activeLayersJSON[activeTimeLayerId] = this.addActiveLayer(
|
|
6781
|
+
previousLayerNode,
|
|
6782
|
+
previousOrder,
|
|
6831
6783
|
fromDownload,
|
|
6832
6784
|
);
|
|
6833
6785
|
}
|
|
6834
|
-
|
|
6786
|
+
document
|
|
6787
|
+
.querySelectorAll(
|
|
6788
|
+
'.active-layer[layer-id="' +
|
|
6789
|
+
activeTimeLayerId +
|
|
6790
|
+
'"] .map-menu-icon:not(.active-layer-time)',
|
|
6791
|
+
)
|
|
6792
|
+
.forEach((item) => {
|
|
6793
|
+
item.classList.remove('locked');
|
|
6794
|
+
});
|
|
6795
|
+
}
|
|
6796
|
+
this.timeLayers[selectedLayerId] = ['fas', 'stop'];
|
|
6797
|
+
if (
|
|
6798
|
+
!this.visibleLayers[selectedLayerId] ||
|
|
6799
|
+
this.visibleLayers[selectedLayerId][1] === 'eye-slash'
|
|
6800
|
+
) {
|
|
6801
|
+
if (this.layers[selectedLayerId])
|
|
6802
|
+
this.layers[selectedLayerId].visible = true;
|
|
6803
|
+
this.visibleLayers[selectedLayerId] = ['fas', 'eye'];
|
|
6804
|
+
}
|
|
6805
|
+
document
|
|
6806
|
+
.querySelectorAll(
|
|
6807
|
+
'.active-layer[layer-id="' +
|
|
6808
|
+
selectedLayerId +
|
|
6809
|
+
'"] .map-menu-icon:not(.active-layer-time)',
|
|
6810
|
+
)
|
|
6811
|
+
.forEach((item) => {
|
|
6812
|
+
item.classList.add('locked');
|
|
6813
|
+
});
|
|
6814
|
+
if (document.querySelector('#products_label'))
|
|
6815
|
+
document.querySelector('#products_label').classList.add('locked');
|
|
6816
|
+
if (document.querySelector('#map_remove_layers')) {
|
|
6817
|
+
const mapRemoveBtn = document.querySelector('#map_remove_layers');
|
|
6818
|
+
if (mapRemoveBtn) mapRemoveBtn.classList.add('locked');
|
|
6819
|
+
}
|
|
6820
|
+
if (this.props.download && document.querySelector('#download_label'))
|
|
6821
|
+
document.querySelector('#download_label').classList.add('locked');
|
|
6822
|
+
const selectedOrder =
|
|
6823
|
+
this.activeLayersJSON[selectedLayerId]?.props?.['layer-order'] || 0;
|
|
6824
|
+
this.activeLayersJSON[selectedLayerId] = this.addActiveLayer(
|
|
6825
|
+
elem,
|
|
6826
|
+
selectedOrder,
|
|
6827
|
+
fromDownload,
|
|
6828
|
+
hideCalendar,
|
|
6829
|
+
);
|
|
6835
6830
|
const op = document.querySelector('.opacity-panel');
|
|
6836
6831
|
if (op && op.style.display === 'block') {
|
|
6837
6832
|
this.closeOpacity();
|
|
6838
6833
|
}
|
|
6839
6834
|
} else {
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6835
|
+
this.timeLayers[selectedLayerId] = ['far', 'clock'];
|
|
6836
|
+
const selectedOrder =
|
|
6837
|
+
this.activeLayersJSON[selectedLayerId]?.props?.['layer-order'] || 0;
|
|
6838
|
+
this.activeLayersJSON[selectedLayerId] = this.addActiveLayer(
|
|
6839
|
+
elem,
|
|
6840
|
+
selectedOrder,
|
|
6841
|
+
fromDownload,
|
|
6842
|
+
);
|
|
6843
|
+
document
|
|
6844
|
+
.querySelectorAll(
|
|
6845
|
+
'.active-layer[layer-id="' +
|
|
6846
|
+
selectedLayerId +
|
|
6847
|
+
'"] .map-menu-icon:not(.active-layer-time)',
|
|
6848
|
+
)
|
|
6849
|
+
.forEach((item) => {
|
|
6850
|
+
item.classList.remove('locked');
|
|
6851
|
+
});
|
|
6852
|
+
let hasActiveTimeSlider = false;
|
|
6853
|
+
Object.keys(this.timeLayers).forEach((layerId) => {
|
|
6854
|
+
if (
|
|
6855
|
+
this.timeLayers[layerId] &&
|
|
6856
|
+
this.timeLayers[layerId][1] === 'stop'
|
|
6857
|
+
) {
|
|
6858
|
+
hasActiveTimeSlider = true;
|
|
6859
|
+
}
|
|
6860
|
+
});
|
|
6861
|
+
if (!hasActiveTimeSlider) {
|
|
6862
|
+
const productsLabel = document.querySelector('#products_label');
|
|
6863
|
+
if (productsLabel) productsLabel.classList.remove('locked');
|
|
6864
|
+
const removeBtn = document.querySelector('#map_remove_layers');
|
|
6865
|
+
if (removeBtn) removeBtn.classList.remove('locked');
|
|
6866
|
+
if (this.props.download) {
|
|
6867
|
+
const dl = document.querySelector('#download_label');
|
|
6868
|
+
if (dl) dl.classList.remove('locked');
|
|
6869
|
+
const timeIcon = document.querySelector(
|
|
6870
|
+
'.active-layer[layer-id="' +
|
|
6871
|
+
selectedLayerId +
|
|
6872
|
+
'"] .map-menu-icon.active-layer-time',
|
|
6852
6873
|
);
|
|
6853
|
-
|
|
6854
|
-
.
|
|
6855
|
-
|
|
6856
|
-
elem.id +
|
|
6857
|
-
'"] .map-menu-icon:not(.active-layer-time)',
|
|
6858
|
-
)
|
|
6859
|
-
.forEach((item) => {
|
|
6860
|
-
item.classList.remove('locked');
|
|
6861
|
-
});
|
|
6862
|
-
const productsLabel = document.querySelector('#products_label');
|
|
6863
|
-
if (productsLabel) productsLabel.classList.remove('locked');
|
|
6864
|
-
const removeBtn = document.querySelector('#map_remove_layers');
|
|
6865
|
-
if (removeBtn) removeBtn.classList.remove('locked');
|
|
6866
|
-
if (this.props.download) {
|
|
6867
|
-
const dl = document.querySelector('#download_label');
|
|
6868
|
-
if (dl) dl.classList.remove('locked');
|
|
6869
|
-
const timeIcon = document.querySelector(
|
|
6870
|
-
'.active-layer[layer-id="' +
|
|
6871
|
-
elem.id +
|
|
6872
|
-
'"] .map-menu-icon.active-layer-time',
|
|
6873
|
-
);
|
|
6874
|
-
if (timeIcon && timeIcon.dataset.download === 'true') {
|
|
6875
|
-
const dlBtn = document.getElementById('download_label');
|
|
6876
|
-
if (dlBtn) dlBtn.click();
|
|
6877
|
-
}
|
|
6878
|
-
} else {
|
|
6879
|
-
const timeIcon = document.querySelector(
|
|
6880
|
-
'.active-layer[layer-id="' +
|
|
6881
|
-
elem.id +
|
|
6882
|
-
'"] .map-menu-icon.active-layer-time',
|
|
6883
|
-
);
|
|
6884
|
-
if (timeIcon && timeIcon.dataset.download === 'true') {
|
|
6885
|
-
const prBtn = document.getElementById('products_label');
|
|
6886
|
-
if (prBtn) prBtn.click();
|
|
6887
|
-
}
|
|
6874
|
+
if (timeIcon && timeIcon.dataset.download === 'true') {
|
|
6875
|
+
const dlBtn = document.getElementById('download_label');
|
|
6876
|
+
if (dlBtn) dlBtn.click();
|
|
6888
6877
|
}
|
|
6889
|
-
const ts = document.querySelector('.timeslider-container');
|
|
6890
|
-
if (ts && document.contains(ts))
|
|
6891
|
-
ReactDOM.unmountComponentAtNode(
|
|
6892
|
-
document.querySelector('.esri-ui-bottom-right'),
|
|
6893
|
-
);
|
|
6894
|
-
const warn = document.querySelector('.drawRectanglePopup-block');
|
|
6895
|
-
if (warn) warn.style.display = 'block';
|
|
6896
6878
|
} else {
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
if (this.layers[layerId]) this.layers[layerId].visible = true;
|
|
6902
|
-
this.visibleLayers[layerId] = ['fas', 'eye'];
|
|
6903
|
-
this.activeLayersJSON[layerId] = this.addActiveLayer(
|
|
6904
|
-
document.getElementById(layerId),
|
|
6905
|
-
order,
|
|
6906
|
-
fromDownload,
|
|
6907
|
-
);
|
|
6908
|
-
}
|
|
6909
|
-
const activeNode = document.querySelector(
|
|
6910
|
-
'.active-layer[layer-id="' + layerId + '"]',
|
|
6879
|
+
const timeIcon = document.querySelector(
|
|
6880
|
+
'.active-layer[layer-id="' +
|
|
6881
|
+
selectedLayerId +
|
|
6882
|
+
'"] .map-menu-icon.active-layer-time',
|
|
6911
6883
|
);
|
|
6912
|
-
if (
|
|
6884
|
+
if (timeIcon && timeIcon.dataset.download === 'true') {
|
|
6885
|
+
const prBtn = document.getElementById('products_label');
|
|
6886
|
+
if (prBtn) prBtn.click();
|
|
6887
|
+
}
|
|
6913
6888
|
}
|
|
6914
|
-
|
|
6889
|
+
const ts = document.querySelector('.timeslider-container');
|
|
6890
|
+
if (ts && document.contains(ts))
|
|
6891
|
+
ReactDOM.unmountComponentAtNode(
|
|
6892
|
+
document.querySelector('.esri-ui-bottom-right'),
|
|
6893
|
+
);
|
|
6894
|
+
const warn = document.querySelector('.drawRectanglePopup-block');
|
|
6895
|
+
if (warn) warn.style.display = 'block';
|
|
6896
|
+
}
|
|
6915
6897
|
}
|
|
6916
6898
|
this.setState({});
|
|
6917
6899
|
}
|