diff --git a/static/index.html b/static/index.html index 1cd3f3f..61026fc 100644 --- a/static/index.html +++ b/static/index.html @@ -787,18 +787,23 @@ border-radius: var(--radius); /* Map controls bar */ .map-controls { - display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; + display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; align-items: center; } .map-chip { + display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--card2); color: var(--text2); cursor: pointer; transition: all 0.15s; -webkit-tap-highlight-color: transparent; + user-select: none; } + .map-chip svg { width: 14px; height: 14px; flex-shrink: 0; } .map-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; } .map-chip.heat-on { background: var(--amber); border-color: var(--amber); color: #000; } + .map-chip.heat-on svg { color: #000; } .map-chip.park-on { background: var(--accent); border-color: var(--accent); color: #fff; } + .map-chip.park-on svg { color: #fff; } .park-label-icon { pointer-events: none !important; background: transparent !important; border: none !important; } .leaflet-popup-content-wrapper { background: var(--card) !important; @@ -1319,9 +1324,18 @@ ═══════════════════════════════════════════════════════════════════════ -->
- 🔥 Heatmap - 🏰 Parks ON - ◎ My GPS + + + Heatmap + + + + Parks ON + + + + My Location +
@@ -3351,13 +3365,14 @@ function toggleParkOutlines() { parkOutlinesVisible = !parkOutlinesVisible; const chip = document.getElementById('chipParkOutlines'); + const label = chip.querySelector('.chip-label'); if (parkOutlinesVisible) { chip.classList.add('park-on'); - chip.textContent = '🏰 Parks ON'; + if (label) label.textContent = 'Parks ON'; drawParkOutlines(); } else { chip.classList.remove('park-on'); - chip.textContent = '🏰 Parks'; + if (label) label.textContent = 'Parks'; if (parkOutlineGroup) map.removeLayer(parkOutlineGroup); parkOutlineGroup = null; } @@ -4405,11 +4420,12 @@ async function toggleHeatmap() { if (!map) return; const chip = document.getElementById('chipHeat'); + const label = chip.querySelector('.chip-label'); if (heatVisible) { heatVisible = false; chip.classList.remove('heat-on'); - chip.textContent = '🔥 Heatmap'; + if (label) label.textContent = 'Heatmap'; if (heatLayer) map.removeLayer(heatLayer); heatLayer = null; return; @@ -4417,7 +4433,7 @@ heatVisible = true; chip.classList.add('heat-on'); - chip.textContent = '🔥 Heatmap ON'; + if (label) label.textContent = 'Heatmap ON'; await loadHeatmapData(); }