default to stations mode, move stations button to the left

This commit is contained in:
Polen 2026-04-02 10:38:36 -04:00
parent cd3515003b
commit 078050dce6

View file

@ -75,8 +75,8 @@
<div id="map"></div> <div id="map"></div>
<div id="controls"> <div id="controls">
<button class="mode-btn active" data-mode="heatmap">Heatmap</button> <button class="mode-btn active" data-mode="stations">Stations</button>
<button class="mode-btn" data-mode="stations">Stations</button> <button class="mode-btn" data-mode="heatmap">Heatmap</button>
</div> </div>
<div id="slider-panel"> <div id="slider-panel">
@ -111,7 +111,7 @@
}).addTo(map); }).addTo(map);
// State // State
let currentMode = 'heatmap'; let currentMode = 'stations';
let allStations = []; let allStations = [];
let minPrice = 0; let minPrice = 0;
let maxPrice = 300; let maxPrice = 300;
@ -178,8 +178,8 @@
// Build all station markers // Build all station markers
buildStationMarkers(maxPrice); buildStationMarkers(maxPrice);
// Start in heatmap mode // Start in stations mode
setMode('heatmap'); setMode('stations');
// Slider events // Slider events
slider.addEventListener('input', () => { slider.addEventListener('input', () => {