feat: add journey path drawing functionality

Co-authored-by: aider (ollama/qwen2.5-coder:32b) <aider@aider.chat>
This commit is contained in:
Josh-Dev-Quest 2026-03-01 17:04:14 +01:00
parent 64e8728ea4
commit 6ba26cb792
No known key found for this signature in database

View File

@ -9,18 +9,6 @@ document.addEventListener('DOMContentLoaded', function() {
path: null
};
// Add journey path layer
const journeyPath = L.polyline([], {color: '#3887be', weight: 4});
map.addLayer(journeyPath);
function updateJourneyPath() {
const coordinates = window.currentJourney.markers.map(marker => [
marker.getLatLng().lat,
marker.getLatLng().lng
]);
journeyPath.setLatLngs(coordinates);
}
// Function to prepare and save the journey
function prepareAndSaveJourney() {