Add Hybrid map style (satellite + road/label overlay)

This commit is contained in:
Jon
2026-05-25 22:57:54 +01:00
parent 0a8c21a88b
commit 0c31cb1cdf
3 changed files with 4 additions and 2 deletions

1
app.js
View File

@@ -6,6 +6,7 @@ const MAPTILER_KEY_STORAGE = 'droneMapUK_maptilerKey';
const STYLES = {
outdoor: key => `https://api.maptiler.com/maps/outdoor-v2/style.json?key=${key}`,
satellite: key => `https://api.maptiler.com/maps/satellite/style.json?key=${key}`,
hybrid: key => `https://api.maptiler.com/maps/hybrid/style.json?key=${key}`,
streets: key => `https://api.maptiler.com/maps/streets-v2/style.json?key=${key}`,
};

View File

@@ -138,6 +138,7 @@
<div class="style-row">
<button class="style-btn active" data-style="outdoor">Terrain</button>
<button class="style-btn" data-style="satellite">Satellite</button>
<button class="style-btn" data-style="hybrid">Hybrid</button>
<button class="style-btn" data-style="streets">Streets</button>
</div>

View File

@@ -113,8 +113,8 @@ body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; b
/* ── Style row ── */
.style-row { display: flex; gap: 6px; margin-top: 4px; }
.style-btn {
flex: 1; padding: 6px 4px; border-radius: 6px; border: 1px solid #333;
background: #2a2d38; color: #aaa; font-size: .75rem; cursor: pointer;
flex: 1; padding: 6px 2px; border-radius: 6px; border: 1px solid #333;
background: #2a2d38; color: #aaa; font-size: .7rem; cursor: pointer;
transition: all .15s;
}
.style-btn:hover { background: #34384a; color: #fff; }