@eeacms/volto-arcgis-block 0.1.314 → 0.1.316
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,14 @@ 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.316](https://github.com/eea/volto-arcgis-block/compare/0.1.315...0.1.316) - 19 November 2024
|
|
8
|
+
|
|
9
|
+
### [0.1.315](https://github.com/eea/volto-arcgis-block/compare/0.1.314...0.1.315) - 18 November 2024
|
|
10
|
+
|
|
11
|
+
#### :hammer_and_wrench: Others
|
|
12
|
+
|
|
13
|
+
- Merge pull request #846 from eea/develop [Unai Bolivar - [`8d17585`](https://github.com/eea/volto-arcgis-block/commit/8d1758530435af46731e2a1e4b3a658badf85741)]
|
|
14
|
+
- CLMS-276819 (bug): improved specificity in container variables upon load/reload [Unai Bolivar - [`dac6af1`](https://github.com/eea/volto-arcgis-block/commit/dac6af15642e02cf436f7395f31b1916e7b04ef3)]
|
|
7
15
|
### [0.1.314](https://github.com/eea/volto-arcgis-block/compare/0.1.313...0.1.314) - 13 November 2024
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -683,11 +683,16 @@ class MenuWidget extends React.Component {
|
|
|
683
683
|
// and ensure that the component is rendered again
|
|
684
684
|
this.setState({ showMapMenu: false });
|
|
685
685
|
} else {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
686
|
+
/*
|
|
687
|
+
The following variables have been changed from container
|
|
688
|
+
to this.container.current to avoid data viewer crash
|
|
689
|
+
when client comes from dataset / product pages or refreshing
|
|
690
|
+
*/
|
|
691
|
+
const tabContainer = this.container.current.querySelector(
|
|
692
|
+
'#tabcontainer',
|
|
693
|
+
);
|
|
694
|
+
const paneles = this.container.current.querySelector('#paneles');
|
|
695
|
+
const esriWidgetButton = this.container.current.querySelector(
|
|
691
696
|
'.esri-widget--button',
|
|
692
697
|
);
|
|
693
698
|
const timeSliderContainer = document.querySelector(
|
|
@@ -719,7 +724,7 @@ class MenuWidget extends React.Component {
|
|
|
719
724
|
// and ensure that the component is rendered again
|
|
720
725
|
this.setState({ showMapMenu: true });
|
|
721
726
|
}
|
|
722
|
-
if (this.loadFirst) {
|
|
727
|
+
if (this.loadFirst && this.container.current) {
|
|
723
728
|
this.checkUrl();
|
|
724
729
|
this.loadFirst = false;
|
|
725
730
|
this.zoomTooltips();
|
|
@@ -822,13 +827,6 @@ class MenuWidget extends React.Component {
|
|
|
822
827
|
}, 1000);
|
|
823
828
|
}
|
|
824
829
|
|
|
825
|
-
waitForContainer(mapdiv) {
|
|
826
|
-
while (mapdiv === null) {
|
|
827
|
-
new Promise((resolve) => setTimeout(resolve, 100)); // wait for 100ms
|
|
828
|
-
}
|
|
829
|
-
return mapdiv;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
830
|
/**
|
|
833
831
|
* This method is executed after the render method is executed
|
|
834
832
|
*/
|
|
@@ -875,11 +873,6 @@ class MenuWidget extends React.Component {
|
|
|
875
873
|
this.props.bookmarkData === undefined
|
|
876
874
|
) {
|
|
877
875
|
return;
|
|
878
|
-
//} else if (
|
|
879
|
-
// this.props.bookmarkData &&
|
|
880
|
-
// this.props.bookmarkData.active === false
|
|
881
|
-
//) {
|
|
882
|
-
// return;
|
|
883
876
|
} else if (
|
|
884
877
|
this.props.bookmarkData &&
|
|
885
878
|
this.props.bookmarkData.active === true
|
|
@@ -897,13 +890,11 @@ class MenuWidget extends React.Component {
|
|
|
897
890
|
let visibleArray = this.props.bookmarkData.visible[pos];
|
|
898
891
|
visible =
|
|
899
892
|
String(visibleArray[index]) === 'true' ? true : false;
|
|
900
|
-
//this.layers[layer].visible = visible;
|
|
901
893
|
if (this.layers[layer]) {
|
|
902
894
|
let opacityArray = this.props.bookmarkData.opacity[pos];
|
|
903
895
|
this.layers[layer].opacity = opacityArray[index];
|
|
904
896
|
}
|
|
905
897
|
}
|
|
906
|
-
//this.map.layers.add(this.layers[layer]);
|
|
907
898
|
node.checked = true;
|
|
908
899
|
this.toggleLayer(node);
|
|
909
900
|
if (visible === false) {
|
|
@@ -642,6 +642,7 @@ class TimesliderWidget extends React.Component {
|
|
|
642
642
|
showIcon
|
|
643
643
|
inline
|
|
644
644
|
onChange={(date) => this.setDatepick(date)}
|
|
645
|
+
openToDate={this.TimesliderWidget?.fullTimeExtent?.start}
|
|
645
646
|
dateFormat="dd.MM.yyyy"
|
|
646
647
|
dropdownMode="select"
|
|
647
648
|
showMonthDropdown
|