Skip to content

Commit

Permalink
attribution fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirmmo committed Nov 10, 2024
1 parent e634915 commit 723ee2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/app/Services/API/Requests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Map/TWLSample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const TWLSample = (props: any) => {
zIndex: zIndex,
display: true,
attribution:
'&copy; <a target="_blank" rel="noopener" href="https://www.arpa.veneto.it/">ARPAV</a>',
'&copy; <a target="_blank" rel="noopener" href="https://www.arpa.veneto.it/">ARPAV-Arpa FVG</a>',
};
const tlUrl = `${V2_WMS_PROXY_URL}${selected_map_path}`;
// @ts-ignore
Expand Down

0 comments on commit 723ee2e

Please sign in to comment.