From 57b8ba433e152a8caefef635a8071ba9c1b9e22a Mon Sep 17 00:00:00 2001 From: Riwala1 <67402870+Riwala1@users.noreply.github.com> Date: Wed, 19 Nov 2025 21:08:02 -0300 Subject: [PATCH 1/2] Update status.js Force Maptiler aerial image when maptiler key is used. --- web_app/static/status.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web_app/static/status.js b/web_app/static/status.js index 6f7cd6e4..b868e0a8 100644 --- a/web_app/static/status.js +++ b/web_app/static/status.js @@ -123,7 +123,10 @@ $(document).ready(function () { if (typeof(aerialLayer) !== 'undefined') { baseMaps["Aerial_Hybrid"] = aerialLayer; + L.control.layers(baseMaps).addTo(map); + aerialLayer.addTo(map); }; + L.control.layers(baseMaps).addTo(map); osm2Layer.addTo(map); @@ -206,4 +209,4 @@ $(document).ready(function () { socket.on("current config base", function(msg) { showBase(msg); }); -}); \ No newline at end of file +}); From e5e5eb3d3698e8d928c0ea50c06eb9136e473330 Mon Sep 17 00:00:00 2001 From: Riwala1 <67402870+Riwala1@users.noreply.github.com> Date: Wed, 19 Nov 2025 21:11:31 -0300 Subject: [PATCH 2/2] Update status.js Force Maptiler aerial image when maptiler key is used. --- web_app/static/status.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web_app/static/status.js b/web_app/static/status.js index b868e0a8..eb91d08b 100644 --- a/web_app/static/status.js +++ b/web_app/static/status.js @@ -123,12 +123,15 @@ $(document).ready(function () { if (typeof(aerialLayer) !== 'undefined') { baseMaps["Aerial_Hybrid"] = aerialLayer; - L.control.layers(baseMaps).addTo(map); - aerialLayer.addTo(map); }; L.control.layers(baseMaps).addTo(map); osm2Layer.addTo(map); + + if (typeof(aerialLayer) !== 'undefined') { + aerialLayer.addTo(map); + }; + // Add Base station crosshair var crossIcon = L.icon({