completed

This commit is contained in:
lichene 2025-10-26 11:31:11 +01:00
parent b816412306
commit 26985812a4
7 changed files with 387 additions and 25 deletions

View file

@ -49,6 +49,7 @@
<div id="map"></div>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script src="./config.js"></script>
<script>
const OUR_COORDS = [46.0660875,11.1501202];
const MAP_CENTER = [20, 0];
@ -85,9 +86,10 @@
let animTimers = [];
let isPlaying = false;
let simStartMs = 0, simEndMs = 0;
async function fetchConnections(service, start, end) {
let url = `/connections?`;
let url = `${apiBaseUrl}/connections?`;
if (service) url += `service=${encodeURIComponent(service)}&`;
if (start) url += `start=${new Date(start).toISOString()}&`;
if (end) url += `end=${new Date(end).toISOString()}&`;