Skip to content

Commit

Permalink
Merge pull request #1068 from geonetwork/DH-keep-proxy-xhr-call
Browse files Browse the repository at this point in the history
Datahub: Use url instead of proxy url for ogc api endpoint
  • Loading branch information
jahow authored Dec 20, 2024
2 parents 67e23df + 45f524c commit aa7e6a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/feature/dataviz/src/lib/service/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class DataService {
}

async getDownloadUrlsFromOgcApi(url: string): Promise<OgcApiCollectionInfo> {
const endpoint = new OgcApiEndpoint(this.proxy.getProxiedUrl(url))
const endpoint = new OgcApiEndpoint(url)
return await endpoint.allCollections
.then((collections) => {
return endpoint.getCollectionInfo(collections[0].name)
Expand All @@ -185,7 +185,7 @@ export class DataService {
}

async getItemsFromOgcApi(url: string): Promise<OgcApiRecord> {
const endpoint = new OgcApiEndpoint(this.proxy.getProxiedUrl(url))
const endpoint = new OgcApiEndpoint(url)
return await endpoint.featureCollections
.then((collections) => {
return collections.length
Expand Down

0 comments on commit aa7e6a3

Please sign in to comment.