From c765d63804d089e4c198e386dd6e269bae07fc80 Mon Sep 17 00:00:00 2001 From: Roslund Date: Fri, 13 Mar 2026 21:31:07 +0100 Subject: [PATCH] =?UTF-8?q?Update=20tooltip=20to=20display=20images=20from?= =?UTF-8?q?=20both=20HeyWhatsThat.com=20and=20TjenaVad=C3=84rDetD=C3=A4r.s?= =?UTF-8?q?e.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/public/index.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/public/index.html b/src/public/index.html index d2f1f0d..3af5243 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -3224,7 +3224,7 @@ } - function getTerrainProfileImage(node1, node2) { + function getTerrainProfileImage(url,node1, node2) { // line colour between nodes const lineColour = "0000FF"; // blue @@ -3242,7 +3242,7 @@ const node2ElevationMSL = node2.altitude ?? ""; // generate terrain profile image url - return "https://heywhatsthat.com/bin/profile-0904.cgi?" + new URLSearchParams({ + return url + new URLSearchParams({ src: "meshtastic.liamcottle.net", axes: 1, // include grid lines and a scale metric: 1, // show metric units @@ -3706,9 +3706,13 @@ } // Add terrain profile image - const terrainImageUrl = getTerrainProfileImage(nodeA, nodeB); - tooltip += `

Terrain images from HeyWhatsThat.com`; + const terrainImageUrl = getTerrainProfileImage("https://heywhatsthat.com/bin/profile-0904.cgi?", nodeA, nodeB); + tooltip += `

Terrain image from HeyWhatsThat.com`; tooltip += `
`; + + const terrainImageUrl2 = getTerrainProfileImage("https://tjenavadärdetdär.se/?", nodeA, nodeB); + tooltip += `
Terrain image from TjenaVadÄrDetDär.se`; + tooltip += `
`; return tooltip; }