@eeacms/volto-arcgis-block 0.1.373 → 0.1.375
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.375](https://github.com/eea/volto-arcgis-block/compare/0.1.374...0.1.375) - 14 July 2025
|
|
8
|
+
|
|
9
|
+
### [0.1.374](https://github.com/eea/volto-arcgis-block/compare/0.1.373...0.1.374) - 9 July 2025
|
|
10
|
+
|
|
7
11
|
### [0.1.373](https://github.com/eea/volto-arcgis-block/compare/0.1.372...0.1.373) - 8 July 2025
|
|
8
12
|
|
|
9
13
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -870,7 +870,10 @@ class AreaWidget extends React.Component {
|
|
|
870
870
|
checkExtent(extent) {
|
|
871
871
|
const areaLimit = this.mapviewer_config.Components[0].Products[0]
|
|
872
872
|
.Datasets[0].DownloadLimitAreaExtent;
|
|
873
|
-
if (
|
|
873
|
+
if (
|
|
874
|
+
extent.width * extent.height > areaLimit ||
|
|
875
|
+
extent.width * extent.height === 0
|
|
876
|
+
) {
|
|
874
877
|
return true;
|
|
875
878
|
} else {
|
|
876
879
|
return false;
|
|
@@ -993,20 +996,32 @@ class AreaWidget extends React.Component {
|
|
|
993
996
|
}
|
|
994
997
|
addCoordinates() {
|
|
995
998
|
this.clearWidget();
|
|
996
|
-
let pointNorth =
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
let
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
let
|
|
1009
|
-
|
|
999
|
+
let pointNorth = document.getElementById('menu-north');
|
|
1000
|
+
if (pointNorth.value > 90) {
|
|
1001
|
+
pointNorth.value = 90;
|
|
1002
|
+
} else if (pointNorth.value < -90) {
|
|
1003
|
+
pointNorth.value = -90;
|
|
1004
|
+
}
|
|
1005
|
+
let pointSouth = document.getElementById('menu-south');
|
|
1006
|
+
if (pointSouth.value > 90) {
|
|
1007
|
+
pointSouth.value = 90;
|
|
1008
|
+
} else if (pointSouth.value < -90) {
|
|
1009
|
+
pointSouth.value = -90;
|
|
1010
|
+
}
|
|
1011
|
+
let pointEast = document.getElementById('menu-east');
|
|
1012
|
+
if (pointEast.value > 180) {
|
|
1013
|
+
pointEast.value = 180;
|
|
1014
|
+
} else if (pointEast.value < -180) {
|
|
1015
|
+
pointEast.value = -180;
|
|
1016
|
+
}
|
|
1017
|
+
let pointWest = document.getElementById('menu-west');
|
|
1018
|
+
if (pointWest.value > 180) {
|
|
1019
|
+
pointWest.value = 180;
|
|
1020
|
+
} else if (pointWest.value < -180) {
|
|
1021
|
+
pointWest.value = -180;
|
|
1022
|
+
}
|
|
1023
|
+
let pointNW = [pointNorth.value, pointWest.value];
|
|
1024
|
+
let pointSE = [pointSouth.value, pointEast.value];
|
|
1010
1025
|
var fillSymbol = {
|
|
1011
1026
|
type: 'simple-fill',
|
|
1012
1027
|
color: [255, 255, 255, 0.5],
|
|
@@ -1017,10 +1032,10 @@ class AreaWidget extends React.Component {
|
|
|
1017
1032
|
};
|
|
1018
1033
|
let extentGraphic = new Graphic({
|
|
1019
1034
|
geometry: new Extent({
|
|
1020
|
-
xmin: Math.min(
|
|
1021
|
-
xmax: Math.max(
|
|
1022
|
-
ymin: Math.min(
|
|
1023
|
-
ymax: Math.max(
|
|
1035
|
+
xmin: Math.min(pointNW[1], pointSE[1]),
|
|
1036
|
+
xmax: Math.max(pointNW[1], pointSE[1]),
|
|
1037
|
+
ymin: Math.min(pointNW[0], pointSE[0]),
|
|
1038
|
+
ymax: Math.max(pointNW[0], pointSE[0]),
|
|
1024
1039
|
spatialReference: { wkid: 4326 },
|
|
1025
1040
|
}),
|
|
1026
1041
|
symbol: fillSymbol,
|
|
@@ -1032,7 +1047,6 @@ class AreaWidget extends React.Component {
|
|
|
1032
1047
|
extentGraphic.geometry,
|
|
1033
1048
|
outSpatialReference,
|
|
1034
1049
|
);
|
|
1035
|
-
|
|
1036
1050
|
if (extentGraphic && this.checkExtent(graphicProjection)) {
|
|
1037
1051
|
this.setState({
|
|
1038
1052
|
showInfoPopup: true,
|
|
@@ -1049,9 +1063,9 @@ class AreaWidget extends React.Component {
|
|
|
1049
1063
|
this.props.updateArea({
|
|
1050
1064
|
origin: {
|
|
1051
1065
|
x: extentGraphic.geometry.xmin,
|
|
1052
|
-
y: extentGraphic.geometry.
|
|
1066
|
+
y: extentGraphic.geometry.ymax,
|
|
1053
1067
|
},
|
|
1054
|
-
end: { x: extentGraphic.geometry.xmax, y: extentGraphic.geometry.
|
|
1068
|
+
end: { x: extentGraphic.geometry.xmax, y: extentGraphic.geometry.ymin },
|
|
1055
1069
|
});
|
|
1056
1070
|
this.props.view.graphics.add(extentGraphic);
|
|
1057
1071
|
}
|
|
@@ -1751,13 +1765,14 @@ class AreaWidget extends React.Component {
|
|
|
1751
1765
|
</div>
|
|
1752
1766
|
<div className="coordinateContainer">
|
|
1753
1767
|
<div className="coordinateSubContainer">
|
|
1754
|
-
<div className="coordinateSubContainerTitle">
|
|
1768
|
+
<div className="coordinateSubContainerTitle">NW</div>
|
|
1755
1769
|
<div>
|
|
1756
1770
|
Lat:
|
|
1757
1771
|
<input
|
|
1758
|
-
type="
|
|
1772
|
+
type="number"
|
|
1759
1773
|
id="menu-north"
|
|
1760
|
-
|
|
1774
|
+
min="-90"
|
|
1775
|
+
max="90"
|
|
1761
1776
|
placeholder="00.000000"
|
|
1762
1777
|
className="coordinateInput"
|
|
1763
1778
|
/>
|
|
@@ -1765,22 +1780,24 @@ class AreaWidget extends React.Component {
|
|
|
1765
1780
|
<div>
|
|
1766
1781
|
Lon:
|
|
1767
1782
|
<input
|
|
1768
|
-
type="
|
|
1769
|
-
id="menu-
|
|
1770
|
-
|
|
1783
|
+
type="number"
|
|
1784
|
+
id="menu-west"
|
|
1785
|
+
min="-180"
|
|
1786
|
+
max="180"
|
|
1771
1787
|
placeholder="00.000000"
|
|
1772
1788
|
className="coordinateInput"
|
|
1773
1789
|
/>
|
|
1774
1790
|
</div>
|
|
1775
1791
|
</div>
|
|
1776
1792
|
<div className="coordinateSubContainer">
|
|
1777
|
-
<div className="coordinateSubContainerTitle">
|
|
1793
|
+
<div className="coordinateSubContainerTitle">SE</div>
|
|
1778
1794
|
<div>
|
|
1779
1795
|
Lat:
|
|
1780
1796
|
<input
|
|
1781
|
-
type="
|
|
1797
|
+
type="number"
|
|
1782
1798
|
id="menu-south"
|
|
1783
|
-
|
|
1799
|
+
min="-90"
|
|
1800
|
+
max="90"
|
|
1784
1801
|
placeholder="00.000000"
|
|
1785
1802
|
className="coordinateInput"
|
|
1786
1803
|
/>
|
|
@@ -1788,9 +1805,10 @@ class AreaWidget extends React.Component {
|
|
|
1788
1805
|
<div>
|
|
1789
1806
|
Lon:
|
|
1790
1807
|
<input
|
|
1791
|
-
type="
|
|
1792
|
-
id="menu-
|
|
1793
|
-
|
|
1808
|
+
type="number"
|
|
1809
|
+
id="menu-east"
|
|
1810
|
+
min="-180"
|
|
1811
|
+
max="180"
|
|
1794
1812
|
placeholder="00.000000"
|
|
1795
1813
|
className="coordinateInput"
|
|
1796
1814
|
/>
|