@eeacms/volto-arcgis-block 0.1.235 → 0.1.237

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.237](https://github.com/eea/volto-arcgis-block/compare/0.1.236...0.1.237) - 22 November 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - CLMS-2273 (chore): Added descriptive label under the title for filterable hotspot datasets in the menu widget [ujbolivar - [`349ac11`](https://github.com/eea/volto-arcgis-block/commit/349ac114d654419c9bbbb9fb289292e2acedc9c0)]
12
+ - CLMS-2317 (chore): Redirected fetch requests for hotspot filter data to our backend [ujbolivar - [`e6274f4`](https://github.com/eea/volto-arcgis-block/commit/e6274f475892b0743c4c7d880daf770a2d1c9cf4)]
13
+ ### [0.1.236](https://github.com/eea/volto-arcgis-block/compare/0.1.235...0.1.236) - 20 November 2023
14
+
15
+ #### :hammer_and_wrench: Others
16
+
17
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`f45d4bf`](https://github.com/eea/volto-arcgis-block/commit/f45d4bf42061d13d9c18554bef692cb40b3a6fb7)]
7
18
  ### [0.1.235](https://github.com/eea/volto-arcgis-block/compare/0.1.234...0.1.235) - 16 November 2023
8
19
 
9
20
  ### [0.1.234](https://github.com/eea/volto-arcgis-block/compare/0.1.233...0.1.234) - 15 November 2023
package/Jenkinsfile CHANGED
@@ -1,4 +1,7 @@
1
1
  pipeline {
2
+ tools {
3
+ jdk 'Java17'
4
+ }
2
5
  agent any
3
6
 
4
7
  environment {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.235",
3
+ "version": "0.1.237",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -1250,11 +1250,13 @@ class MenuWidget extends React.Component {
1250
1250
  Zoom in to view on map
1251
1251
  </div>
1252
1252
  </div>
1253
- ) : dataset.productId ===
1254
- 'd764e020485a402598551fa461bf1db2' ? (
1255
- <div className="hotspot-filter-message-container">
1253
+ ) : dataset.DatasetId ===
1254
+ '9827d711d3e148aabccc76dd501a4b86' ||
1255
+ dataset.DatasetId ===
1256
+ 'e27dbc8330084b58bb5e282231fca74d' ? (
1257
+ <div className="zoom-in-message-container">
1256
1258
  <span>{dataset.DatasetTitle}</span>
1257
- <div className="hotspot-filter-message hotspot-filter-message-dataset">
1259
+ <div className="zoom-in-message">
1258
1260
  Use the filter to visualize a KLC area
1259
1261
  </div>
1260
1262
  </div>
@@ -75,10 +75,10 @@ class SwipeWidget extends React.Component {
75
75
  this.map.layers.on('change', () => {
76
76
  if (this.hasSwipe) {
77
77
  this.map.layers.removeAll();
78
- if (this.swipe.leadingLayers.items[0]) {
78
+ if (this.swipe.leadingLayers && this.swipe.leadingLayers.items[0]) {
79
79
  this.map.layers.add(this.swipe.leadingLayers.items[0]);
80
80
  }
81
- if (this.swipe.trailingLayers.items[0]) {
81
+ if (this.swipe.trailingLayers && this.swipe.trailingLayers.items[0]) {
82
82
  this.map.layers.add(this.swipe.trailingLayers.items[0]);
83
83
  }
84
84
  }
@@ -162,49 +162,53 @@ class SwipeWidget extends React.Component {
162
162
  layerId = this.layers['pa_filter'].id;
163
163
  }
164
164
  }
165
- if (
166
- this.swipe.leadingLayers &&
167
- this.swipe.leadingLayers.items[0] &&
168
- this.swipe.leadingLayers.items[0].id === layerId
169
- ) {
170
- selectLeadingLayer.options.add(
171
- new Option(
172
- this.getLayerTitle(this.layers[layer]),
173
- layerId,
174
- true,
175
- true,
176
- ),
177
- );
178
- } else {
179
- selectLeadingLayer.options.add(
180
- new Option(
181
- this.getLayerTitle(this.layers[layer]),
182
- layerId,
183
- false,
184
- ),
185
- );
165
+ if (selectLeadingLayer) {
166
+ if (
167
+ this.swipe.leadingLayers &&
168
+ this.swipe.leadingLayers.items[0] &&
169
+ this.swipe.leadingLayers.items[0].id === layerId
170
+ ) {
171
+ selectLeadingLayer.options.add(
172
+ new Option(
173
+ this.getLayerTitle(this.layers[layer]),
174
+ layerId,
175
+ true,
176
+ true,
177
+ ),
178
+ );
179
+ } else {
180
+ selectLeadingLayer.options.add(
181
+ new Option(
182
+ this.getLayerTitle(this.layers[layer]),
183
+ layerId,
184
+ false,
185
+ ),
186
+ );
187
+ }
186
188
  }
187
- if (
188
- this.swipe.trailingLayers &&
189
- this.swipe.trailingLayers.items[0] &&
190
- this.swipe.trailingLayers.items[0].id === layerId
191
- ) {
192
- selectTrailingLayer.options.add(
193
- new Option(
194
- this.getLayerTitle(this.layers[layer]),
195
- layerId,
196
- true,
197
- true,
198
- ),
199
- );
200
- } else {
201
- selectTrailingLayer.options.add(
202
- new Option(
203
- this.getLayerTitle(this.layers[layer]),
204
- layerId,
205
- false,
206
- ),
207
- );
189
+ if (selectTrailingLayer) {
190
+ if (
191
+ this.swipe.trailingLayers &&
192
+ this.swipe.trailingLayers.items[0] &&
193
+ this.swipe.trailingLayers.items[0].id === layerId
194
+ ) {
195
+ selectTrailingLayer.options.add(
196
+ new Option(
197
+ this.getLayerTitle(this.layers[layer]),
198
+ layerId,
199
+ true,
200
+ true,
201
+ ),
202
+ );
203
+ } else {
204
+ selectTrailingLayer.options.add(
205
+ new Option(
206
+ this.getLayerTitle(this.layers[layer]),
207
+ layerId,
208
+ false,
209
+ ),
210
+ );
211
+ }
208
212
  }
209
213
  }
210
214
  });
@@ -227,11 +227,13 @@ const config = {
227
227
  'https://geospatial.jrc.ec.europa.eu/geoserver/hotspots/wms?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=all_lcc_b_pol',
228
228
  cop_klc:
229
229
  'https://geospatial.jrc.ec.europa.eu/geoserver/hotspots/wms?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=cop_klc',
230
- klc_bbox: 'https://land.copernicus.eu/global/hsm/php/klc_bbox.php',
230
+ klc_bbox:
231
+ 'https://land.copernicus.eu/en/products/lclcc-hot-spots/json-files/klc_bbox.php/@@download/file',
231
232
  legendLinkUrl:
232
233
  'https://geospatial.jrc.ec.europa.eu/geoserver/hotspots/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=',
233
234
  serviceUrl: 'https://geospatial.jrc.ec.europa.eu/geoserver/hotspots/wms',
234
- all_geo_klc: 'https://land.copernicus.eu/global/hsm/all_geo_klc_json',
235
+ all_geo_klc:
236
+ 'https://land.copernicus.eu/en/products/lclcc-hot-spots/json-files/all_geo_klc.json/@@download/file',
235
237
  positronCompositeThumbnail:
236
238
  'https://gisco-services.ec.europa.eu/maps/wmts/OSMPositronComposite/EPSG3857/0/0/0.png',
237
239
  positronCompositeTemplate:
@@ -1252,7 +1252,7 @@ input[type='range']::-ms-track {
1252
1252
 
1253
1253
  .zoom-in-message,
1254
1254
  .hotspot-filter-message {
1255
- padding: 0.1rem 0.6rem 0.1rem 0.6rem;
1255
+ padding: 0.3rem 0.6rem 0.1rem 0.6rem;
1256
1256
  margin-top: 0.2rem;
1257
1257
  background: #a0b128;
1258
1258
  border-radius: 10px;