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