@eeacms/volto-arcgis-block 0.1.382 → 0.1.383
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,10 +4,16 @@ 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.383](https://github.com/eea/volto-arcgis-block/compare/0.1.382...0.1.383) - 29 August 2025
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- (bug): implemented CDSE extent mod to full extent button in activelayers tab of the menu widget [Unai Bolivar - [`e9fdd2f`](https://github.com/eea/volto-arcgis-block/commit/e9fdd2f066d7d9cb2d2036e9e780473c751e0937)]
|
|
7
12
|
### [0.1.382](https://github.com/eea/volto-arcgis-block/compare/0.1.381...0.1.382) - 28 August 2025
|
|
8
13
|
|
|
9
14
|
#### :hammer_and_wrench: Others
|
|
10
15
|
|
|
16
|
+
- Merge pull request #1005 from eea/develop [Unai Bolivar - [`820e1bb`](https://github.com/eea/volto-arcgis-block/commit/820e1bb0d930b5388cb088d7d58bbc4bf582efa5)]
|
|
11
17
|
- (feat): clean extent for CDSE working [Unai Bolivar - [`676f76f`](https://github.com/eea/volto-arcgis-block/commit/676f76fd3b0a3bba9d451ea513ee95f47c1d4cbe)]
|
|
12
18
|
- (feat): extent is working for WMTS requests [Unai Bolivar - [`96f1fff`](https://github.com/eea/volto-arcgis-block/commit/96f1fffd898b238da5cece8b83fbd9489b240d68)]
|
|
13
19
|
- (feat): using wfs data to determine graphic position in map viewer. [Unai Bolivar - [`2e4e923`](https://github.com/eea/volto-arcgis-block/commit/2e4e923d6e6e8a8e0c39cbe9e2585b9f5ff550cb)]
|
package/package.json
CHANGED
|
@@ -3866,6 +3866,8 @@ class MenuWidget extends React.Component {
|
|
|
3866
3866
|
}
|
|
3867
3867
|
|
|
3868
3868
|
async fullExtent(elem) {
|
|
3869
|
+
this.url = this.layers[elem.id]?.url;
|
|
3870
|
+
const isCDSE = !!this.url && this.url.toLowerCase().includes('/ogc/');
|
|
3869
3871
|
const serviceLayer = this.state.wmsUserServiceLayers.find(
|
|
3870
3872
|
(layer) => layer.LayerId === elem.id,
|
|
3871
3873
|
);
|
|
@@ -3880,7 +3882,12 @@ class MenuWidget extends React.Component {
|
|
|
3880
3882
|
let firstLayer;
|
|
3881
3883
|
let landCoverAndLandUseMapping = document.querySelector('#component_0');
|
|
3882
3884
|
let productIds = [];
|
|
3883
|
-
if (
|
|
3885
|
+
if (isCDSE) {
|
|
3886
|
+
const cdseGeometry = await this.getCDSEWFSGeoCoordinates(this.url);
|
|
3887
|
+
const extent = await this.createExtentFromCoordinates(cdseGeometry);
|
|
3888
|
+
this.view.goTo(extent);
|
|
3889
|
+
return;
|
|
3890
|
+
} else if (landCoverAndLandUseMapping) {
|
|
3884
3891
|
const productElements = landCoverAndLandUseMapping.querySelectorAll(
|
|
3885
3892
|
'.map-menu-product-dropdown',
|
|
3886
3893
|
);
|
|
@@ -3890,9 +3897,7 @@ class MenuWidget extends React.Component {
|
|
|
3890
3897
|
productIds.push(productId);
|
|
3891
3898
|
}
|
|
3892
3899
|
});
|
|
3893
|
-
}
|
|
3894
|
-
|
|
3895
|
-
if (this.productId?.includes('333e4100b79045daa0ff16466ac83b7f')) {
|
|
3900
|
+
} else if (this.productId?.includes('333e4100b79045daa0ff16466ac83b7f')) {
|
|
3896
3901
|
//global dynamic landCover
|
|
3897
3902
|
this.findDatasetBoundingBox(elem);
|
|
3898
3903
|
|
|
@@ -3920,10 +3925,7 @@ class MenuWidget extends React.Component {
|
|
|
3920
3925
|
BBoxes = await this.parseBBOXMAPSERVER(this.layers[elem.id]);
|
|
3921
3926
|
} else if (this.url?.toLowerCase().includes('wms') || serviceLayer) {
|
|
3922
3927
|
await this.getCapabilities(this.url, 'wms');
|
|
3923
|
-
|
|
3924
|
-
} else {
|
|
3925
|
-
BBoxes = this.parseBBOXWMS(this.xml);
|
|
3926
|
-
}
|
|
3928
|
+
BBoxes = this.parseBBOXWMS(this.xml);
|
|
3927
3929
|
} else if (this.url?.toLowerCase().includes('wmts')) {
|
|
3928
3930
|
await this.getCapabilities(this.url, 'wmts');
|
|
3929
3931
|
BBoxes = this.parseBBOXWMTS(this.xml);
|
|
@@ -4041,6 +4043,7 @@ class MenuWidget extends React.Component {
|
|
|
4041
4043
|
});
|
|
4042
4044
|
this.view.goTo(myExtent); //
|
|
4043
4045
|
}
|
|
4046
|
+
this.url = null;
|
|
4044
4047
|
}
|
|
4045
4048
|
/**
|
|
4046
4049
|
* Method to show Active Layers of the map
|