Skip to content

Commit

Permalink
Update data products
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjak committed Sep 23, 2024
1 parent a937a80 commit c192ec1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/layer/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const DEFAULT_FIND_TILES_MAX_COUNT_PARAMETER = 50;
export type DataProductId = string;

export const SUPPORTED_DATA_PRODUCTS_PROCESSING: DataProductId[] = [
'https://services.sentinel-hub.com/configuration/v1/datasets/S2L1C/dataproducts/643',
'https://services.sentinel-hub.com/api/v2/configuration/datasets/S2L1C/dataproducts/643',
];

export type BYOCBand = {
Expand Down
4 changes: 3 additions & 1 deletion src/layer/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ export async function fetchLayerParamsFromConfigurationService(
maxCloudCoverPercent: l.datasourceDefaults.maxCloudCoverage,
}),
evalscript: l.styles[0].evalScript,
dataProduct: l.styles[0].dataProduct ? l.styles[0].dataProduct['@id'] : undefined,
dataProduct: l.styles[0].dataProduct
? `${configurationServiceHostName}api/v2/configuration/${l.collectionType}/dataproducts/${l.styles[0].dataProduct['id']}`
: undefined,
legend: l.styles.find((s: any) => s.name === l.defaultStyleName)
? l.styles.find((s: any) => s.name === l.defaultStyleName).legend
: null,
Expand Down

0 comments on commit c192ec1

Please sign in to comment.