format properly
This commit is contained in:
parent
288fd1f7c7
commit
19e75f9647
@ -31,9 +31,9 @@ function displayMousePosition(element: HTMLParagraphElement, mouse: Position) {
|
||||
}
|
||||
|
||||
function displayCoords(element: HTMLParagraphElement, coords: Coordinate) {
|
||||
element.innerHTML = `Coords: <code>${coords.longitude.toFixed(
|
||||
3,
|
||||
)}, ${coords.latitude.toFixed(3)}</code>`;
|
||||
const longitude = coords.longitude.toFixed(3);
|
||||
const latitude = coords.latitude.toFixed(3);
|
||||
element.innerHTML = `Coords: <code>${longitude}, ${latitude}</code>`;
|
||||
}
|
||||
|
||||
function displayZipCode(
|
||||
|
Loading…
Reference in New Issue
Block a user