From 0b44298a7e7901b8d42b1a9d1fb1167846cd3053 Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Wed, 21 Aug 2024 10:06:14 +0200 Subject: [PATCH] Add coordinate columns --- .../overview/boreholeTable/boreholeTable.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/client/src/pages/overview/boreholeTable/boreholeTable.tsx b/src/client/src/pages/overview/boreholeTable/boreholeTable.tsx index 55eb777cc..151e82d98 100644 --- a/src/client/src/pages/overview/boreholeTable/boreholeTable.tsx +++ b/src/client/src/pages/overview/boreholeTable/boreholeTable.tsx @@ -110,10 +110,26 @@ export const BoreholeTable: FC = ({ headerName: t("reference_elevation"), flex: 1, }, + { + field: "location_x", + valueGetter: (value, row) => { + return `${Math.round(row.location_x * 100) / 100 || "-"}`; + }, + headerName: t("location_x"), + flex: 1, + }, + { + field: "location_y", + valueGetter: (value, row) => { + return `${Math.round(row.location_y * 100) / 100 || "-"}`; + }, + headerName: t("location_y"), + flex: 1, + }, { field: "lock", headerName: "", - width: 70, + width: 20, renderCell: value => { if (value.row.lock) { return (