@eeacms/volto-arcgis-block 0.1.228 → 0.1.230

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.230](https://github.com/eea/volto-arcgis-block/compare/0.1.229...0.1.230) - 2 November 2023
8
+
9
+ ### [0.1.229](https://github.com/eea/volto-arcgis-block/compare/0.1.228...0.1.229) - 2 November 2023
10
+
7
11
  ### [0.1.228](https://github.com/eea/volto-arcgis-block/compare/0.1.227...0.1.228) - 31 October 2023
8
12
 
9
13
  ### [0.1.227](https://github.com/eea/volto-arcgis-block/compare/0.1.226...0.1.227) - 30 October 2023
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.228",
3
+ "version": "0.1.230",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -32,8 +32,7 @@ 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 =
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=&parameterValues=&rangeValues=&quantizationParameters=&featureEncoding=esriDefault&';
35
+ this.nutsUrl = '';
37
36
  this.initFMI = this.initFMI.bind(this);
38
37
  }
39
38
 
@@ -427,7 +426,9 @@ class AreaWidget extends React.Component {
427
426
  fetchUrl = 'https://land.copernicus.eu/++api++/@anon-registry';
428
427
  }
429
428
  try {
430
- let nutsResponse = await fetch(fetchUrl + this.props.urls.nutsHandler);
429
+ let nutsResponse = await fetch(
430
+ fetchUrl + '/clms.downloadtool.fme_config_controlpanel.nuts_service',
431
+ );
431
432
  if (nutsResponse.status === 200) {
432
433
  this.nutsUrl = await nutsResponse.json();
433
434
  } else {
@@ -1920,6 +1920,7 @@ class MenuWidget extends React.Component {
1920
1920
  if (!this.props.download) {
1921
1921
  this.activeLayersToHotspotData(elem.id);
1922
1922
  }
1923
+ this.renderHotspot();
1923
1924
  }
1924
1925
 
1925
1926
  getHotspotLayerIds() {