Add Hybrid map style (satellite + road/label overlay)
This commit is contained in:
1
app.js
1
app.js
@@ -6,6 +6,7 @@ const MAPTILER_KEY_STORAGE = 'droneMapUK_maptilerKey';
|
|||||||
const STYLES = {
|
const STYLES = {
|
||||||
outdoor: key => `https://api.maptiler.com/maps/outdoor-v2/style.json?key=${key}`,
|
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}`,
|
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}`,
|
streets: key => `https://api.maptiler.com/maps/streets-v2/style.json?key=${key}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -138,6 +138,7 @@
|
|||||||
<div class="style-row">
|
<div class="style-row">
|
||||||
<button class="style-btn active" data-style="outdoor">Terrain</button>
|
<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="satellite">Satellite</button>
|
||||||
|
<button class="style-btn" data-style="hybrid">Hybrid</button>
|
||||||
<button class="style-btn" data-style="streets">Streets</button>
|
<button class="style-btn" data-style="streets">Streets</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -113,8 +113,8 @@ body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; b
|
|||||||
/* ── Style row ── */
|
/* ── Style row ── */
|
||||||
.style-row { display: flex; gap: 6px; margin-top: 4px; }
|
.style-row { display: flex; gap: 6px; margin-top: 4px; }
|
||||||
.style-btn {
|
.style-btn {
|
||||||
flex: 1; padding: 6px 4px; border-radius: 6px; border: 1px solid #333;
|
flex: 1; padding: 6px 2px; border-radius: 6px; border: 1px solid #333;
|
||||||
background: #2a2d38; color: #aaa; font-size: .75rem; cursor: pointer;
|
background: #2a2d38; color: #aaa; font-size: .7rem; cursor: pointer;
|
||||||
transition: all .15s;
|
transition: all .15s;
|
||||||
}
|
}
|
||||||
.style-btn:hover { background: #34384a; color: #fff; }
|
.style-btn:hover { background: #34384a; color: #fff; }
|
||||||
|
|||||||
Reference in New Issue
Block a user