geonetwork-ui 2.8.2-dev.fa42c5152 → 2.8.2
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/fesm2022/geonetwork-ui.mjs +7 -5
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +13 -3
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +1 -1
|
@@ -25519,7 +25519,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
25519
25519
|
}] } });
|
|
25520
25520
|
|
|
25521
25521
|
var name = "geonetwork-ui";
|
|
25522
|
-
var version = "2.8.2
|
|
25522
|
+
var version = "2.8.2";
|
|
25523
25523
|
var engines = {
|
|
25524
25524
|
node: ">=20"
|
|
25525
25525
|
};
|
|
@@ -38378,12 +38378,12 @@ class DataService {
|
|
|
38378
38378
|
throw new Error(`ogc.unreachable.unknown`);
|
|
38379
38379
|
});
|
|
38380
38380
|
}
|
|
38381
|
-
async getItemsFromOgcApi(url) {
|
|
38381
|
+
async getItemsFromOgcApi(url, limit) {
|
|
38382
38382
|
const endpoint = new OgcApiEndpoint(url);
|
|
38383
38383
|
return await endpoint.featureCollections
|
|
38384
38384
|
.then((collections) => {
|
|
38385
38385
|
return collections.length
|
|
38386
|
-
? endpoint.getCollectionItems(collections[0])
|
|
38386
|
+
? endpoint.getCollectionItems(collections[0], limit)
|
|
38387
38387
|
: null;
|
|
38388
38388
|
})
|
|
38389
38389
|
.catch(() => {
|
|
@@ -38479,7 +38479,9 @@ class DataService {
|
|
|
38479
38479
|
if (!geojsonUrl) {
|
|
38480
38480
|
return throwError(() => 'ogc.geojson.notsupported');
|
|
38481
38481
|
}
|
|
38482
|
-
|
|
38482
|
+
const urlWithoutLimit = new URL(geojsonUrl);
|
|
38483
|
+
urlWithoutLimit.searchParams.delete('limit');
|
|
38484
|
+
return openDataset(urlWithoutLimit.toString(), 'geojson', undefined, cacheActive);
|
|
38483
38485
|
}));
|
|
38484
38486
|
}
|
|
38485
38487
|
return throwError(() => 'protocol not supported');
|
|
@@ -39480,7 +39482,7 @@ class MdViewFacade {
|
|
|
39480
39482
|
if (this.linkClassifier.hasUsage(link, LinkUsage.GEODATA)) {
|
|
39481
39483
|
if (link.type === 'service' &&
|
|
39482
39484
|
link.accessServiceProtocol === 'ogcFeatures') {
|
|
39483
|
-
return from(this.dataService.getItemsFromOgcApi(link.url.href)).pipe(map$1((collectionRecords) => {
|
|
39485
|
+
return from(this.dataService.getItemsFromOgcApi(link.url.href, 1)).pipe(map$1((collectionRecords) => {
|
|
39484
39486
|
return collectionRecords &&
|
|
39485
39487
|
collectionRecords[0] &&
|
|
39486
39488
|
collectionRecords[0].geometry
|