@eeacms/volto-arcgis-block 0.1.450 → 0.1.452
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,10 @@ 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.452](https://github.com/eea/volto-arcgis-block/compare/0.1.451...0.1.452) - 28 May 2026
|
|
8
|
+
|
|
9
|
+
### [0.1.451](https://github.com/eea/volto-arcgis-block/compare/0.1.450...0.1.451) - 21 May 2026
|
|
10
|
+
|
|
7
11
|
### [0.1.450](https://github.com/eea/volto-arcgis-block/compare/0.1.449...0.1.450) - 13 May 2026
|
|
8
12
|
|
|
9
13
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -155,9 +155,10 @@ class InfoWidget extends React.Component {
|
|
|
155
155
|
fields: layer.fields,
|
|
156
156
|
});
|
|
157
157
|
promises.push(
|
|
158
|
-
this.cdseCapabilities(layer.ViewService, layer).then((xml) =>
|
|
159
|
-
|
|
160
|
-
),
|
|
158
|
+
// this.cdseCapabilities(layer.ViewService, layer).then((xml) =>
|
|
159
|
+
// this.identifyCDSE(xml, layer),
|
|
160
|
+
// ),
|
|
161
|
+
this.identifyWMTS(layer, e),
|
|
161
162
|
);
|
|
162
163
|
} else if (layer.url.toLowerCase().includes('wms')) {
|
|
163
164
|
layerTypes.push({
|
|
@@ -540,7 +541,73 @@ class InfoWidget extends React.Component {
|
|
|
540
541
|
QUERY_LAYERS: layerId,
|
|
541
542
|
LAYERS: layerId,
|
|
542
543
|
INFO_FORMAT: format,
|
|
543
|
-
TIME:
|
|
544
|
+
TIME:
|
|
545
|
+
layer.customLayerParameters && layer.customLayerParameters['TIME']
|
|
546
|
+
? layer.customLayerParameters['TIME']
|
|
547
|
+
: times
|
|
548
|
+
? times[nTimes - 1] + '/' + times[nTimes - 1]
|
|
549
|
+
: '',
|
|
550
|
+
FEATURE_COUNT: '' + nTimes,
|
|
551
|
+
},
|
|
552
|
+
})
|
|
553
|
+
.then((response) => {
|
|
554
|
+
let format = response.requestOptions.query.INFO_FORMAT;
|
|
555
|
+
let data;
|
|
556
|
+
if (format.includes('text')) {
|
|
557
|
+
data = new window.DOMParser().parseFromString(
|
|
558
|
+
response.data,
|
|
559
|
+
'text/html',
|
|
560
|
+
);
|
|
561
|
+
} else if (format.includes('json')) {
|
|
562
|
+
data = JSON.parse(response.data);
|
|
563
|
+
}
|
|
564
|
+
return data; // Added return statement
|
|
565
|
+
})
|
|
566
|
+
.then((data) => {
|
|
567
|
+
return data;
|
|
568
|
+
});
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
identifyWMTS(layer, event) {
|
|
573
|
+
let layerId = this.getLayerName(layer);
|
|
574
|
+
let url = layer.featureInfoUrl ? layer.featureInfoUrl : layer.url;
|
|
575
|
+
return this.wmsCapabilities(url).then((xml) => {
|
|
576
|
+
let version = layer.version;
|
|
577
|
+
let format = this.parseFormat(xml, layerId);
|
|
578
|
+
let times = '';
|
|
579
|
+
let nTimes = 1;
|
|
580
|
+
return esriRequest(url, {
|
|
581
|
+
responseType: 'html',
|
|
582
|
+
sync: 'true',
|
|
583
|
+
query: {
|
|
584
|
+
request: 'GetFeatureInfo',
|
|
585
|
+
service: 'WMS',
|
|
586
|
+
version: version,
|
|
587
|
+
SRS: 'EPSG:' + this.props.view.spatialReference.latestWkid,
|
|
588
|
+
CRS: 'EPSG:' + this.props.view.spatialReference.latestWkid,
|
|
589
|
+
BBOX:
|
|
590
|
+
'' +
|
|
591
|
+
this.props.view.extent.xmin +
|
|
592
|
+
', ' +
|
|
593
|
+
this.props.view.extent.ymin +
|
|
594
|
+
', ' +
|
|
595
|
+
this.props.view.extent.xmax +
|
|
596
|
+
', ' +
|
|
597
|
+
this.props.view.extent.ymax,
|
|
598
|
+
HEIGHT: this.props.view.height,
|
|
599
|
+
WIDTH: this.props.view.width,
|
|
600
|
+
X: Math.round(event.screenPoint.x),
|
|
601
|
+
Y: Math.round(event.screenPoint.y),
|
|
602
|
+
QUERY_LAYERS: layerId,
|
|
603
|
+
LAYERS: layerId,
|
|
604
|
+
INFO_FORMAT: format,
|
|
605
|
+
TIME:
|
|
606
|
+
layer.customLayerParameters && layer.customLayerParameters['TIME']
|
|
607
|
+
? layer.customLayerParameters['TIME']
|
|
608
|
+
: times
|
|
609
|
+
? times[nTimes - 1] + '/' + times[nTimes - 1]
|
|
610
|
+
: '',
|
|
544
611
|
FEATURE_COUNT: '' + nTimes,
|
|
545
612
|
},
|
|
546
613
|
})
|
|
@@ -5156,13 +5156,17 @@ class MenuWidget extends React.Component {
|
|
|
5156
5156
|
datasetChecks.forEach((element) => {
|
|
5157
5157
|
if (element) {
|
|
5158
5158
|
element.checked = value;
|
|
5159
|
-
|
|
5159
|
+
if (element.id.includes('family')) {
|
|
5160
|
+
this.toggleFamily(value, element.id, element);
|
|
5161
|
+
} else {
|
|
5162
|
+
this.toggleDataset(value, element.id, element);
|
|
5163
|
+
}
|
|
5160
5164
|
}
|
|
5161
5165
|
});
|
|
5162
5166
|
}
|
|
5163
5167
|
|
|
5164
5168
|
toggleFamily(value, id, element) {
|
|
5165
|
-
let familyDefCheck = element.
|
|
5169
|
+
let familyDefCheck = element.getAttribute('defcheck');
|
|
5166
5170
|
let splitdefCheck = familyDefCheck.split(',');
|
|
5167
5171
|
|
|
5168
5172
|
let datasetChecks = [];
|