completed
This commit is contained in:
parent
b816412306
commit
26985812a4
7 changed files with 387 additions and 25 deletions
|
|
@ -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()}&`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue