Skip to content

Commit

Permalink
fix: use url instead of proxy for ogc api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Dec 20, 2024
1 parent 73ff485 commit 38213a8
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 38213a8

Please sign in to comment.