From ae6f1457205f2c1f898570cdfc96056d3719a38a Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Fri, 17 Nov 2023 19:51:14 +0100 Subject: [PATCH] fix: make coordinates display with fixed point --- template/map.twig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/template/map.twig b/template/map.twig index b8eb4fd..e75b39d 100644 --- a/template/map.twig +++ b/template/map.twig @@ -78,7 +78,13 @@ L.control.mousePosition({ position: 'bottomright', - separator: '; ' + separator: '; ', + lngFormatter: (x) => { + return x.toFixed(3) + }, + latFormatter: (y) => { + return y.toFixed(3) + } }).addTo(map);