From c29aeb3c7a65593cb8a3600412fac2924134c19d Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 8 Sep 2023 16:50:35 +0200 Subject: [PATCH] =?UTF-8?q?Decalage=20de=20-=200.05=C2=B0=20=3D=20MAP=20co?= =?UTF-8?q?ord=20SW?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/register.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/register.html b/templates/register.html index 827ce48c..f774b777 100644 --- a/templates/register.html +++ b/templates/register.html @@ -147,9 +147,13 @@ document.addEventListener('DOMContentLoaded', function() { uplanetElement.value = '@'; // Default to '0.00' if lon is missing } - const satURL = `https://ipfs.copylaradio.com/ipfs/QmfVZajimvgkCHhybnwVuKuY1aDzGLBsDbnzSXpN7RmfUm/sat_render.html?southWestLat=${latElement.value}&southWestLon=${lonElement.value}°=0.1`; + // Decalage de - 0.05° = MAP coord SW + const latMAP.value = (parseFloat(latElement.value) - 0.05).toFixed(2); // Subtract 0.05 from latElement + const lonMAP.value = (parseFloat(lonElement.value) - 0.05).toFixed(2); // Subtract 0.05 from lonElement + + const satURL = `https://ipfs.copylaradio.com/ipfs/QmfVZajimvgkCHhybnwVuKuY1aDzGLBsDbnzSXpN7RmfUm/sat_render.html?southWestLat=${latMAP.value}&southWestLon=${lonMAP.value}°=0.1`; document.getElementById("satLink").href = satURL; - const mapURL = `https://ipfs.copylaradio.com/ipfs/QmRG3ZAiXWvKBccPFbv4eUTZFPMsfXG25PiZQD6N8M8MMM/map_render.html?southWestLat=${latElement.value}&southWestLon=${lonElement.value}°=0.1`; + const mapURL = `https://ipfs.copylaradio.com/ipfs/QmRG3ZAiXWvKBccPFbv4eUTZFPMsfXG25PiZQD6N8M8MMM/map_render.html?southWestLat=${latMAP.value}&southWestLon=${lonMAP.value}°=0.1`; document.getElementById("mapLink").href = mapURL; document.getElementById("LAT").innerHTML = latElement.value ;