From 5c1b1dbc3a4608ca7533af55355ccaa96d57c3c3 Mon Sep 17 00:00:00 2001 From: Andrew Copeland <50109276+AndrewCopeland@users.noreply.github.com> Date: Tue, 5 Sep 2023 21:35:38 -0400 Subject: [PATCH] Add google maps --- index.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 15a0959..42f68bc 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,17 @@ let cell = document.createElement("th") cell.innerText = value return cell - } + } + + const createForadexGoogleMapsCall = (long, lat) => { + let cell = document.createElement("th") + let link = document.createElement("a") + link.href = `https://www.google.com/maps/search/?api=1&query=${lat},${long}` + link.innerText = "Map" + console.log("google query: " + link.href) + cell.appendChild(link) + return cell + } const createForadexRow = (find) => { let row = document.createElement("tr") @@ -74,6 +84,7 @@ row.appendChild(createForadexCell(find.type)) row.appendChild(createForadexCell(find.locationLong)) row.appendChild(createForadexCell(find.locationLat)) + row.appendChild(createForadexGoogleMapsCall(find.locationLong, find.locationLat)) return row } @@ -276,6 +287,7 @@