default to stations mode, move stations button to the left
This commit is contained in:
parent
cd3515003b
commit
078050dce6
1 changed files with 5 additions and 5 deletions
|
|
@ -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', () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue