fix: make coordinates display with fixed point

This commit is contained in:
TheClashFruit 2023-11-17 19:51:14 +01:00
parent d14e5b6e48
commit ae6f145720
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204

View file

@ -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);
</script>