@eeacms/volto-arcgis-block 0.1.250 → 0.1.251

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.251](https://github.com/eea/volto-arcgis-block/compare/0.1.250...0.1.251) - 24 January 2024
8
+
7
9
  ### [0.1.250](https://github.com/eea/volto-arcgis-block/compare/0.1.249...0.1.250) - 18 January 2024
8
10
 
9
11
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.250",
3
+ "version": "0.1.251",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -34,6 +34,7 @@ class AreaWidget extends React.Component {
34
34
  this.props.mapViewer.view.popup.defaultPopupTemplateEnabled = true;
35
35
  this.nutsUrl = '';
36
36
  this.initFMI = this.initFMI.bind(this);
37
+ this.mapviewer_config = this.props.mapviewer_config;
37
38
  }
38
39
 
39
40
  loader() {
@@ -195,7 +196,9 @@ class AreaWidget extends React.Component {
195
196
  }
196
197
 
197
198
  checkExtent(extent) {
198
- if (extent.width * extent.height > 1996137506460) {
199
+ const areaLimit = this.mapviewer_config.Components[0].Products[0]
200
+ .Datasets[0].DownloadLimitAreaExtent;
201
+ if (extent.width * extent.height > areaLimit) {
199
202
  return true;
200
203
  } else {
201
204
  return false;
@@ -471,6 +471,7 @@ export const CheckLogin = ({ reference }) => {
471
471
  download={reference.props.mapviewer_config.Download}
472
472
  updateArea={reference.updateArea}
473
473
  urls={reference.cfgUrls}
474
+ mapviewer_config={reference.props.mapviewer_config}
474
475
  />
475
476
  )}
476
477
  </>
@@ -282,7 +282,7 @@
282
282
  .esri-bookmarks .esri-button:hover {
283
283
  border-color: #a0b128;
284
284
  background-color: #a0b128;
285
- color: white;
285
+ color: white !important;
286
286
  }
287
287
 
288
288
  body.section-map-viewer