@eeacms/volto-arcgis-block 0.1.317 → 0.1.319

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,13 @@ 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.319](https://github.com/eea/volto-arcgis-block/compare/0.1.318...0.1.319) - 2 December 2024
8
+
9
+ ### [0.1.318](https://github.com/eea/volto-arcgis-block/compare/0.1.317...0.1.318) - 25 November 2024
10
+
11
+ #### :hammer_and_wrench: Others
12
+
13
+ - Merge pull request #852 from eea/develop [Unai Bolivar - [`d2a7ca2`](https://github.com/eea/volto-arcgis-block/commit/d2a7ca29faf0ea9865075713d696b2bbe2615361)]
7
14
  ### [0.1.317](https://github.com/eea/volto-arcgis-block/compare/0.1.316...0.1.317) - 20 November 2024
8
15
 
9
16
  #### :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.317",
3
+ "version": "0.1.319",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -165,7 +165,15 @@ class InfoWidget extends React.Component {
165
165
  promises.push(this.identify(layer, e));
166
166
  }
167
167
  } else {
168
- if (layer.url?.toLowerCase().endsWith('mapserver')) {
168
+ if (layer.url.toLowerCase().includes('wms')) {
169
+ layerTypes.push({
170
+ isTimeSeries: false,
171
+ type: 'wms',
172
+ title: title,
173
+ fields: layer.fields,
174
+ });
175
+ promises.push(this.identifyWMS(layer, e));
176
+ } else if (layer.url?.toLowerCase().endsWith('mapserver')) {
169
177
  const capabilitiesIndex = {
170
178
  1: 13,
171
179
  2: 12,
@@ -187,11 +195,15 @@ class InfoWidget extends React.Component {
187
195
  title: title,
188
196
  fields: layer.fields,
189
197
  });
190
- capabilitiesIndex[index] !== undefined
191
- ? promises.push(
192
- this.ogcCapabilities(layer, capabilitiesIndex[index]),
193
- )
194
- : promises.push(Promise.reject());
198
+ if (layer.datasetId === '0407d497d3c44bcd93ce8fd5bf78596a') {
199
+ capabilitiesIndex[index] !== undefined
200
+ ? promises.push(
201
+ this.ogcCapabilities(layer, capabilitiesIndex[index]),
202
+ )
203
+ : promises.push(Promise.reject());
204
+ } else {
205
+ promises.push(this.ogcCapabilities(layer, index));
206
+ }
195
207
  } else if (layer.url.toLowerCase().includes('wmts')) {
196
208
  layerTypes.push({
197
209
  isTimeSeries: false,
@@ -1656,10 +1656,10 @@ class MenuWidget extends React.Component {
1656
1656
  ] = new MapImageLayer({
1657
1657
  url: viewService,
1658
1658
  title: layer.Title,
1659
- datasetId: DatasetId,
1660
- datasetTitle: DatasetTitle,
1661
- productId: ProductId,
1662
- layerTitle: layer.Title,
1659
+ DatasetId: DatasetId,
1660
+ DatasetTitle: DatasetTitle,
1661
+ ProductId: ProductId,
1662
+ LayerTitle: layer.Title,
1663
1663
  });
1664
1664
  //iterate sublayers fetching all sublayer data
1665
1665
  } else if (viewService?.toLowerCase().includes('wms')) {
@@ -2200,7 +2200,7 @@ class MenuWidget extends React.Component {
2200
2200
  ) {
2201
2201
  this.toggleCustomLegendItem(this.layers[elem.id]);
2202
2202
  }
2203
- if (!this.props.download) {
2203
+ if (!this.props.download && this.props.hotspotData) {
2204
2204
  this.activeLayersToHotspotData(elem.id);
2205
2205
  }
2206
2206
  this.renderHotspot();