@eeacms/volto-arcgis-block 0.1.224 → 0.1.225
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,8 @@ 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.225](https://github.com/eea/volto-arcgis-block/compare/0.1.224...0.1.225) - 26 October 2023
|
|
8
|
+
|
|
7
9
|
### [0.1.224](https://github.com/eea/volto-arcgis-block/compare/0.1.223...0.1.224) - 25 October 2023
|
|
8
10
|
|
|
9
11
|
### [0.1.223](https://github.com/eea/volto-arcgis-block/compare/0.1.222...0.1.223) - 25 October 2023
|
package/package.json
CHANGED
|
@@ -32,7 +32,8 @@ class AreaWidget extends React.Component {
|
|
|
32
32
|
'esri-icon-cursor-marquee esri-widget--button esri-widget esri-interactive';
|
|
33
33
|
// Enable defaultPopup option to charge popup and highlifght feature
|
|
34
34
|
this.props.mapViewer.view.popup.defaultPopupTemplateEnabled = true;
|
|
35
|
-
this.nutsUrl =
|
|
35
|
+
this.nutsUrl =
|
|
36
|
+
'https://land.discomap.eea.europa.eu/arcgis/rest/services/CLMS_Portal/NUTS_2021_Improved/MapServer/0/query?f=json&text=&objectIds=&time=&timeRelation=esriTimeRelationOverlaps&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&distance=&units=esriSRUnit_Foot&relationParam=&outFields=*&returnGeometry=false&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=&havingClause=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&historicMoment=&returnDistinctValues=false&resultOffset=&resultRecordCount=&returnExtentOnly=false&sqlFormat=none&datumTransformation=¶meterValues=&rangeValues=&quantizationParameters=&featureEncoding=esriDefault&';
|
|
36
37
|
this.initFMI = this.initFMI.bind(this);
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -824,14 +824,16 @@ class HotspotWidget extends React.Component {
|
|
|
824
824
|
this.props.view.ui.add(this.container.current, 'top-right');
|
|
825
825
|
this.layerModelInit();
|
|
826
826
|
this.getBBoxData();
|
|
827
|
-
this.props.view.
|
|
828
|
-
this.
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
827
|
+
this.props.view.when(() => {
|
|
828
|
+
this.props.view.map.layers.on('change', () => {
|
|
829
|
+
this.setState({
|
|
830
|
+
activeLayersArray: Array.from(
|
|
831
|
+
document.querySelectorAll('.active-layer'),
|
|
832
|
+
),
|
|
833
|
+
});
|
|
834
|
+
const newHotspotData = this.props.hotspotData;
|
|
835
|
+
this.props.hotspotDataHandler(newHotspotData);
|
|
832
836
|
});
|
|
833
|
-
const newHotspotData = this.props.hotspotData;
|
|
834
|
-
this.props.hotspotDataHandler(newHotspotData);
|
|
835
837
|
});
|
|
836
838
|
}
|
|
837
839
|
|
|
@@ -227,9 +227,10 @@ class LegendWidget extends React.Component {
|
|
|
227
227
|
if (prevState.loading !== this.state.loading) {
|
|
228
228
|
if (this.state.loading === true) {
|
|
229
229
|
setTimeout(() => {
|
|
230
|
-
this.brokenLegendImagePatch();
|
|
231
230
|
if (this.props.download) {
|
|
232
231
|
this.hideNutsLegend();
|
|
232
|
+
} else {
|
|
233
|
+
this.brokenLegendImagePatch();
|
|
233
234
|
}
|
|
234
235
|
this.setState({ loading: false });
|
|
235
236
|
}, 2000);
|
|
@@ -648,8 +648,10 @@ class MenuWidget extends React.Component {
|
|
|
648
648
|
loadCss();
|
|
649
649
|
await this.loader();
|
|
650
650
|
await this.getTMSLayersJSON();
|
|
651
|
-
this.
|
|
652
|
-
|
|
651
|
+
if (!this.props.download) {
|
|
652
|
+
this.prepareHotspotLayers();
|
|
653
|
+
this.getHotspotLayerIds();
|
|
654
|
+
}
|
|
653
655
|
this.props.view.ui.add(this.container.current, 'top-left');
|
|
654
656
|
if (this.props.download) {
|
|
655
657
|
setTimeout(() => {
|
|
@@ -1915,7 +1917,9 @@ class MenuWidget extends React.Component {
|
|
|
1915
1917
|
) {
|
|
1916
1918
|
this.toggleCustomLegendItem(this.layers[elem.id]);
|
|
1917
1919
|
}
|
|
1918
|
-
this.
|
|
1920
|
+
if (!this.props.download) {
|
|
1921
|
+
this.activeLayersToHotspotData(elem.id);
|
|
1922
|
+
}
|
|
1919
1923
|
}
|
|
1920
1924
|
|
|
1921
1925
|
getHotspotLayerIds() {
|