@eeacms/volto-arcgis-block 0.1.104 → 0.1.105

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,12 @@ 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.105](https://github.com/eea/volto-arcgis-block/compare/0.1.104...0.1.105) - 22 February 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - CLMS-1680 [Amanda Rodriguez - [`c3cec32`](https://github.com/eea/volto-arcgis-block/commit/c3cec32b85cbbf505a112ff1eb68cc9b1f062d90)]
12
+ - CLMS-1732 [Amanda Rodriguez - [`eee9be5`](https://github.com/eea/volto-arcgis-block/commit/eee9be5e5c0dd959e95d0f74eefdf834cfcf0d1f)]
7
13
  ### [0.1.104](https://github.com/eea/volto-arcgis-block/compare/0.1.103...0.1.104) - 22 February 2023
8
14
 
9
15
  #### :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.104",
3
+ "version": "0.1.105",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -476,15 +476,19 @@ class MenuWidget extends React.Component {
476
476
  this.props.view.ui.add(this.container.current, 'top-left');
477
477
  if (this.props.download) {
478
478
  document.querySelector('.area-panel input:checked').click();
479
- document.querySelector('.map-product-checkbox input').click();
480
- let dropdown = document.querySelector(
481
- '.map-menu-dropdown .ccl-expandable__button',
482
- );
483
- dropdown.setAttribute('aria-expanded', 'true');
484
- dropdown = document.querySelector(
485
- '.map-menu-product-dropdown .ccl-expandable__button',
486
- );
487
- dropdown.setAttribute('aria-expanded', 'true');
479
+ if (document.querySelector('.map-product-checkbox input')) {
480
+ document.querySelector('.map-product-checkbox input').click();
481
+ let dropdown = document.querySelector(
482
+ '.map-menu-dropdown .ccl-expandable__button',
483
+ );
484
+ if (dropdown) {
485
+ dropdown.setAttribute('aria-expanded', 'true');
486
+ dropdown = document.querySelector(
487
+ '.map-menu-product-dropdown .ccl-expandable__button',
488
+ );
489
+ dropdown.setAttribute('aria-expanded', 'true');
490
+ }
491
+ }
488
492
  }
489
493
  //to watch the component
490
494
  this.setState({});
@@ -2,7 +2,7 @@ const config = {
2
2
  Map: {
3
3
  div: 'mapDiv',
4
4
  center: [5, 52],
5
- zoom: 4,
5
+ zoom: 3,
6
6
  minZoom: 3,
7
7
  maxZoom: 20,
8
8
  activeLayers: [],