@eeacms/volto-arcgis-block 0.1.374 → 0.1.376
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.376](https://github.com/eea/volto-arcgis-block/compare/0.1.375...0.1.376) - 17 July 2025
|
|
8
|
+
|
|
9
|
+
### [0.1.375](https://github.com/eea/volto-arcgis-block/compare/0.1.374...0.1.375) - 14 July 2025
|
|
10
|
+
|
|
7
11
|
### [0.1.374](https://github.com/eea/volto-arcgis-block/compare/0.1.373...0.1.374) - 9 July 2025
|
|
8
12
|
|
|
9
13
|
### [0.1.373](https://github.com/eea/volto-arcgis-block/compare/0.1.372...0.1.373) - 8 July 2025
|
package/package.json
CHANGED
|
@@ -155,6 +155,7 @@ class AreaWidget extends React.Component {
|
|
|
155
155
|
});
|
|
156
156
|
this.props.uploadFileHandler(true);
|
|
157
157
|
this.clearWidget();
|
|
158
|
+
document.querySelector('.coordinateWindow').style.display = 'none';
|
|
158
159
|
this.removeFileUploadedLayer();
|
|
159
160
|
this.container.current.querySelector(
|
|
160
161
|
'#download_area_select_nuts0',
|
|
@@ -234,6 +235,18 @@ class AreaWidget extends React.Component {
|
|
|
234
235
|
document.querySelector('.coordinateWindow').style.display = 'block';
|
|
235
236
|
} else {
|
|
236
237
|
document.querySelector('.coordinateWindow').style.display = 'none';
|
|
238
|
+
if (document.getElementById('menu-north')) {
|
|
239
|
+
document.getElementById('menu-north').value = null;
|
|
240
|
+
}
|
|
241
|
+
if (document.getElementById('menu-south')) {
|
|
242
|
+
document.getElementById('menu-south').value = null;
|
|
243
|
+
}
|
|
244
|
+
if (document.getElementById('menu-east')) {
|
|
245
|
+
document.getElementById('menu-east').value = null;
|
|
246
|
+
}
|
|
247
|
+
if (document.getElementById('menu-west')) {
|
|
248
|
+
document.getElementById('menu-west').value = null;
|
|
249
|
+
}
|
|
237
250
|
}
|
|
238
251
|
}
|
|
239
252
|
nuts0handler(e) {
|
|
@@ -870,7 +883,10 @@ class AreaWidget extends React.Component {
|
|
|
870
883
|
checkExtent(extent) {
|
|
871
884
|
const areaLimit = this.mapviewer_config.Components[0].Products[0]
|
|
872
885
|
.Datasets[0].DownloadLimitAreaExtent;
|
|
873
|
-
if (
|
|
886
|
+
if (
|
|
887
|
+
extent.width * extent.height > areaLimit ||
|
|
888
|
+
extent.width * extent.height === 0
|
|
889
|
+
) {
|
|
874
890
|
return true;
|
|
875
891
|
} else {
|
|
876
892
|
return false;
|
|
@@ -993,20 +1009,32 @@ class AreaWidget extends React.Component {
|
|
|
993
1009
|
}
|
|
994
1010
|
addCoordinates() {
|
|
995
1011
|
this.clearWidget();
|
|
996
|
-
let pointNorth =
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
let
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
let
|
|
1009
|
-
|
|
1012
|
+
let pointNorth = document.getElementById('menu-north');
|
|
1013
|
+
if (pointNorth.value > 90) {
|
|
1014
|
+
pointNorth.value = 90;
|
|
1015
|
+
} else if (pointNorth.value < -90) {
|
|
1016
|
+
pointNorth.value = -90;
|
|
1017
|
+
}
|
|
1018
|
+
let pointSouth = document.getElementById('menu-south');
|
|
1019
|
+
if (pointSouth.value > 90) {
|
|
1020
|
+
pointSouth.value = 90;
|
|
1021
|
+
} else if (pointSouth.value < -90) {
|
|
1022
|
+
pointSouth.value = -90;
|
|
1023
|
+
}
|
|
1024
|
+
let pointEast = document.getElementById('menu-east');
|
|
1025
|
+
if (pointEast.value > 180) {
|
|
1026
|
+
pointEast.value = 180;
|
|
1027
|
+
} else if (pointEast.value < -180) {
|
|
1028
|
+
pointEast.value = -180;
|
|
1029
|
+
}
|
|
1030
|
+
let pointWest = document.getElementById('menu-west');
|
|
1031
|
+
if (pointWest.value > 180) {
|
|
1032
|
+
pointWest.value = 180;
|
|
1033
|
+
} else if (pointWest.value < -180) {
|
|
1034
|
+
pointWest.value = -180;
|
|
1035
|
+
}
|
|
1036
|
+
let pointNW = [pointNorth.value, pointWest.value];
|
|
1037
|
+
let pointSE = [pointSouth.value, pointEast.value];
|
|
1010
1038
|
var fillSymbol = {
|
|
1011
1039
|
type: 'simple-fill',
|
|
1012
1040
|
color: [255, 255, 255, 0.5],
|
|
@@ -1017,10 +1045,10 @@ class AreaWidget extends React.Component {
|
|
|
1017
1045
|
};
|
|
1018
1046
|
let extentGraphic = new Graphic({
|
|
1019
1047
|
geometry: new Extent({
|
|
1020
|
-
xmin: Math.min(
|
|
1021
|
-
xmax: Math.max(
|
|
1022
|
-
ymin: Math.min(
|
|
1023
|
-
ymax: Math.max(
|
|
1048
|
+
xmin: Math.min(pointNW[1], pointSE[1]),
|
|
1049
|
+
xmax: Math.max(pointNW[1], pointSE[1]),
|
|
1050
|
+
ymin: Math.min(pointNW[0], pointSE[0]),
|
|
1051
|
+
ymax: Math.max(pointNW[0], pointSE[0]),
|
|
1024
1052
|
spatialReference: { wkid: 4326 },
|
|
1025
1053
|
}),
|
|
1026
1054
|
symbol: fillSymbol,
|
|
@@ -1044,13 +1072,14 @@ class AreaWidget extends React.Component {
|
|
|
1044
1072
|
infoPopupType: 'download',
|
|
1045
1073
|
});
|
|
1046
1074
|
this.props.uploadFileHandler(true);
|
|
1075
|
+
this.closeCoordinates();
|
|
1047
1076
|
}
|
|
1048
1077
|
this.props.updateArea({
|
|
1049
1078
|
origin: {
|
|
1050
1079
|
x: extentGraphic.geometry.xmin,
|
|
1051
|
-
y: extentGraphic.geometry.
|
|
1080
|
+
y: extentGraphic.geometry.ymax,
|
|
1052
1081
|
},
|
|
1053
|
-
end: { x: extentGraphic.geometry.xmax, y: extentGraphic.geometry.
|
|
1082
|
+
end: { x: extentGraphic.geometry.xmax, y: extentGraphic.geometry.ymin },
|
|
1054
1083
|
});
|
|
1055
1084
|
this.props.view.graphics.add(extentGraphic);
|
|
1056
1085
|
}
|
|
@@ -1750,13 +1779,14 @@ class AreaWidget extends React.Component {
|
|
|
1750
1779
|
</div>
|
|
1751
1780
|
<div className="coordinateContainer">
|
|
1752
1781
|
<div className="coordinateSubContainer">
|
|
1753
|
-
<div className="coordinateSubContainerTitle">
|
|
1782
|
+
<div className="coordinateSubContainerTitle">NW</div>
|
|
1754
1783
|
<div>
|
|
1755
1784
|
Lat:
|
|
1756
1785
|
<input
|
|
1757
|
-
type="
|
|
1786
|
+
type="number"
|
|
1758
1787
|
id="menu-north"
|
|
1759
|
-
|
|
1788
|
+
min="-90"
|
|
1789
|
+
max="90"
|
|
1760
1790
|
placeholder="00.000000"
|
|
1761
1791
|
className="coordinateInput"
|
|
1762
1792
|
/>
|
|
@@ -1764,22 +1794,24 @@ class AreaWidget extends React.Component {
|
|
|
1764
1794
|
<div>
|
|
1765
1795
|
Lon:
|
|
1766
1796
|
<input
|
|
1767
|
-
type="
|
|
1768
|
-
id="menu-
|
|
1769
|
-
|
|
1797
|
+
type="number"
|
|
1798
|
+
id="menu-west"
|
|
1799
|
+
min="-180"
|
|
1800
|
+
max="180"
|
|
1770
1801
|
placeholder="00.000000"
|
|
1771
1802
|
className="coordinateInput"
|
|
1772
1803
|
/>
|
|
1773
1804
|
</div>
|
|
1774
1805
|
</div>
|
|
1775
1806
|
<div className="coordinateSubContainer">
|
|
1776
|
-
<div className="coordinateSubContainerTitle">
|
|
1807
|
+
<div className="coordinateSubContainerTitle">SE</div>
|
|
1777
1808
|
<div>
|
|
1778
1809
|
Lat:
|
|
1779
1810
|
<input
|
|
1780
|
-
type="
|
|
1811
|
+
type="number"
|
|
1781
1812
|
id="menu-south"
|
|
1782
|
-
|
|
1813
|
+
min="-90"
|
|
1814
|
+
max="90"
|
|
1783
1815
|
placeholder="00.000000"
|
|
1784
1816
|
className="coordinateInput"
|
|
1785
1817
|
/>
|
|
@@ -1787,9 +1819,10 @@ class AreaWidget extends React.Component {
|
|
|
1787
1819
|
<div>
|
|
1788
1820
|
Lon:
|
|
1789
1821
|
<input
|
|
1790
|
-
type="
|
|
1791
|
-
id="menu-
|
|
1792
|
-
|
|
1822
|
+
type="number"
|
|
1823
|
+
id="menu-east"
|
|
1824
|
+
min="-180"
|
|
1825
|
+
max="180"
|
|
1793
1826
|
placeholder="00.000000"
|
|
1794
1827
|
className="coordinateInput"
|
|
1795
1828
|
/>
|