From 6c4599dffcf648575f452ee467f257449d429635 Mon Sep 17 00:00:00 2001 From: Josh-Dev-Quest Date: Sun, 1 Mar 2026 16:18:56 +0100 Subject: [PATCH] refactor: switch from maplibregl to Leaflet Co-authored-by: aider (ollama/qwen2.5-coder:32b) --- js/main.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/js/main.js b/js/main.js index 91bb159..eec78f6 100644 --- a/js/main.js +++ b/js/main.js @@ -12,15 +12,13 @@ document.addEventListener('DOMContentLoaded', function() { window.isCreatingJourney = true; // Initialize the map - const map = new maplibregl.Map({ - container: 'map', - style: 'https://api.maplibre.org/style.json?access_token=your_maplibre_access_token', - center: [8.5, 47.3], - zoom: 10 - }); + const map = L.map('map').setView([8.5, 47.3], 10); + L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors' + }).addTo(map); // Add navigation controls - map.addControl(new maplibregl.NavigationControl()); + L.control.scale().addTo(map); // Add geolocate control map.addControl(new maplibregl.GeolocateControl({