forked from CRSS/Website
fix: make coordinates display with fixed point
This commit is contained in:
parent
d14e5b6e48
commit
ae6f145720
|
@ -78,7 +78,13 @@
|
||||||
|
|
||||||
L.control.mousePosition({
|
L.control.mousePosition({
|
||||||
position: 'bottomright',
|
position: 'bottomright',
|
||||||
separator: '; '
|
separator: '; ',
|
||||||
|
lngFormatter: (x) => {
|
||||||
|
return x.toFixed(3)
|
||||||
|
},
|
||||||
|
latFormatter: (y) => {
|
||||||
|
return y.toFixed(3)
|
||||||
|
}
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue