@eeacms/volto-arcgis-block 0.1.104 → 0.1.106

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,17 @@ 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.106](https://github.com/eea/volto-arcgis-block/compare/0.1.105...0.1.106) - 23 February 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - ES Lint fix [Amanda Rodriguez - [`9499122`](https://github.com/eea/volto-arcgis-block/commit/9499122e63fe162d5d7e0308d0847bf55a237d51)]
12
+ ### [0.1.105](https://github.com/eea/volto-arcgis-block/compare/0.1.104...0.1.105) - 22 February 2023
13
+
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - CLMS-1680 [Amanda Rodriguez - [`c3cec32`](https://github.com/eea/volto-arcgis-block/commit/c3cec32b85cbbf505a112ff1eb68cc9b1f062d90)]
17
+ - CLMS-1732 [Amanda Rodriguez - [`eee9be5`](https://github.com/eea/volto-arcgis-block/commit/eee9be5e5c0dd959e95d0f74eefdf834cfcf0d1f)]
7
18
  ### [0.1.104](https://github.com/eea/volto-arcgis-block/compare/0.1.103...0.1.104) - 22 February 2023
8
19
 
9
20
  #### :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.106",
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({});
@@ -1,8 +1,8 @@
1
1
  const config = {
2
2
  Map: {
3
3
  div: 'mapDiv',
4
- center: [5, 52],
5
- zoom: 4,
4
+ center: [-15, 35],
5
+ zoom: 3,
6
6
  minZoom: 3,
7
7
  maxZoom: 20,
8
8
  activeLayers: [],
@@ -1195,8 +1195,6 @@ input[type='range']::-ms-track {
1195
1195
  /*Draw rectangle popup*/
1196
1196
 
1197
1197
  .drawRectanglePopup-content {
1198
- /*margin-right: calc(100vw - 250px);
1199
- margin-top: -8rem;*/
1200
1198
  position: absolute;
1201
1199
  display: flex;
1202
1200
  width: 19rem;
@@ -1204,7 +1202,6 @@ input[type='range']::-ms-track {
1204
1202
  justify-content: space-between;
1205
1203
  padding: 0.6rem 0.8rem 0.8rem 0.8rem;
1206
1204
  background-color: white;
1207
- transform: translate(-34vw, -214%);
1208
1205
  }
1209
1206
 
1210
1207
  .drawRectanglePopup-content .drawRectanglePopup-icon {
@@ -1215,20 +1212,20 @@ input[type='range']::-ms-track {
1215
1212
  text-decoration: none;
1216
1213
  }
1217
1214
 
1218
- /*.drawRectanglePopup-icon .svg{
1219
- margin-top: 0.6rem;
1220
- }*/
1221
-
1222
1215
  .drawRectanglePopup-text {
1223
1216
  font-family: 'Lato', sans-serif;
1224
1217
  font-size: 0.875rem;
1225
1218
  }
1226
1219
 
1220
+ .area-container .drawRectanglePopup-content {
1221
+ transform: translate(-34vw, -214%);
1222
+ }
1223
+
1227
1224
  .esri-component.drawRectanglePopup-block {
1228
1225
  margin: 0 !important;
1229
1226
  }
1230
1227
 
1231
- .esri-component .drawRectanglePopup-content {
1228
+ .esri-component.drawRectanglePopup-block .drawRectanglePopup-content {
1232
1229
  top: 0;
1233
1230
  right: -450px;
1234
1231
  transform: translate(-50vw, 0);