Skip to content

Commit d8cfd6f

Browse files
committed
Refactor map overlays for improved layout and visibility of GPS accuracy and distance information
1 parent e3f5743 commit d8cfd6f

1 file changed

Lines changed: 28 additions & 16 deletions

File tree

index.html

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1 class="flex items-center gap-2 text-lg sm:text-xl font-semibold truncate min
4141
</h1>
4242
<span id="appVersion" class="text-xs text-slate-400 flex-shrink-0 whitespace-nowrap">v1.0</span>
4343
</header>
44-
44+
4545
<!-- Connection Status Bar with Settings Panel -->
4646
<div>
4747
<!-- Connection Status Bar -->
@@ -146,25 +146,37 @@ <h2 class="text-sm font-medium text-slate-300 uppercase tracking-wide">Settings<
146146
referrerpolicy="no-referrer"
147147
src="https://yow.meshmapper.net/embed.php?cov_grid=1&fail_grid=1&pings=0&repeaters=1&rep_coverage=0&grid_lines=0&lat=45.42150&lon=-75.69720&meters=10000">
148148
</iframe>
149-
150-
<!-- Map Overlays - Single Row Horizontal Layout -->
151-
<div class="absolute bottom-2 left-2 right-2 flex gap-2 justify-between items-center">
152-
<!-- GPS Accuracy - Left -->
153-
<div class="bg-slate-900/80 backdrop-blur-sm border border-slate-700 rounded-lg px-3 py-2 text-xs text-slate-300 whitespace-nowrap flex-shrink-0">
154-
<span id="gpsAcc">±-</span>
155-
</div>
149+
150+
<!-- Map Section with Overlays -->
151+
<section class="relative bg-slate-800/80 border border-slate-700 rounded-xl overflow-hidden">
152+
<iframe
153+
id="coverageFrame"
154+
title="MeshMapper Coverage Zone"
155+
style="width: 100%; height: 400px; border: 0;"
156+
loading="lazy"
157+
referrerpolicy="no-referrer"
158+
src="https://yow.meshmapper.net/embed. php?cov_grid=1&fail_grid=1&pings=0&repeaters=1&rep_coverage=0&grid_lines=0&lat=45.42150&lon=-75.69720&meters=10000">
159+
</iframe>
156160

157-
<!-- GPS Coordinates - Center (flexible but constrained) -->
158-
<div class="bg-slate-900/80 backdrop-blur-sm border border-slate-700 rounded-lg px-3 py-2 text-xs text-slate-300 text-center flex-1 min-w-0">
159-
<div id="gpsInfo" class="truncate">-</div>
161+
<!-- Top Right Overlay - GPS Accuracy & Distance Stacked -->
162+
<div class="absolute top-2 right-2 flex flex-col gap-1">
163+
<!-- GPS Accuracy -->
164+
<div class="bg-slate-900/80 backdrop-blur-sm border border-slate-700 rounded-lg px-3 py-1.5 text-xs text-slate-300 whitespace-nowrap text-right">
165+
<span id="gpsAcc">±-</span>
166+
</div>
167+
<!-- Distance from Last Ping -->
168+
<div class="bg-slate-900/80 backdrop-blur-sm border border-slate-700 rounded-lg px-3 py-1.5 text-xs text-slate-300 whitespace-nowrap text-right">
169+
<span id="distanceInfo">-</span>
170+
</div>
160171
</div>
161172

162-
<!-- Distance from Last Ping - Right -->
163-
<div class="bg-slate-900/80 backdrop-blur-sm border border-slate-700 rounded-lg px-3 py-2 text-xs text-slate-300 whitespace-nowrap flex-shrink-0">
164-
<span id="distanceInfo">-</span>
173+
<!-- Bottom Overlay - GPS Coordinates Full Width -->
174+
<div class="absolute bottom-2 left-2 right-2">
175+
<div class="bg-slate-900/80 backdrop-blur-sm border border-slate-700 rounded-lg px-3 py-2 text-xs text-slate-300 text-center">
176+
<span id="gpsInfo">-</span>
177+
</div>
165178
</div>
166-
</div>
167-
</section>
179+
</section>
168180

169181
<!-- Control Buttons -->
170182
<section class="bg-slate-800/80 border border-slate-700 rounded-xl p-4 space-y-2">

0 commit comments

Comments
 (0)