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({