From 723ee2ef60f18781a854f5aad2e3dc5b894f4bcb Mon Sep 17 00:00:00 2001 From: Marco Montanari Date: Sun, 10 Nov 2024 17:06:00 +0100 Subject: [PATCH] attribution fix --- src/app/Services/API/Requests/index.ts | 5 +++-- src/app/components/Map/TWLSample.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/Services/API/Requests/index.ts b/src/app/Services/API/Requests/index.ts index a43d83a..8bbe73d 100644 --- a/src/app/Services/API/Requests/index.ts +++ b/src/app/Services/API/Requests/index.ts @@ -46,9 +46,10 @@ export class RequestApi extends Http { */ const mapCoverageLinks = (x: string) => { const url = - x + dataSet + x + + (dataSet ? `?coords=POLYGON ((${dataSet.east} ${dataSet.south}, ${dataSet.west} ${dataSet.south}, ${dataSet.west} ${dataSet.north}, ${dataSet.east} ${dataSet.north}, ${dataSet.east} ${dataSet.south}))&datetime=${dataSet.time_start}-01-01/${dataSet.time_end}-12-31` - : ''; + : ''); const label = x.split('/')[x.split('/').length - 1]; return { url, label }; }; diff --git a/src/app/components/Map/TWLSample.tsx b/src/app/components/Map/TWLSample.tsx index 859d34c..8f4e1b1 100644 --- a/src/app/components/Map/TWLSample.tsx +++ b/src/app/components/Map/TWLSample.tsx @@ -69,7 +69,7 @@ export const TWLSample = (props: any) => { zIndex: zIndex, display: true, attribution: - '© ARPAV', + '© ARPAV-Arpa FVG', }; const tlUrl = `${V2_WMS_PROXY_URL}${selected_map_path}`; // @ts-ignore