adds video support

This commit is contained in:
Christian Beutel
2025-03-16 18:01:12 +01:00
parent 6cfa21c025
commit 8706fe7ac9
23 changed files with 937 additions and 97 deletions

View File

@@ -167,12 +167,11 @@
}
});
$effect(() => {
if (waypoints) {
untrack(() => {
showWaypoints();
refreshElevationProfile();
});
}
waypoints;
untrack(() => {
showWaypoints();
refreshElevationProfile();
});
});
function getData(trails: Trail[]) {
@@ -280,7 +279,7 @@
right: 16,
bottom:
16 +
(epc?.isProfileShown
(epc?.isProfileShown && !elevationProfileContainer
? map!.getContainer().clientHeight * 0.3
: 0),
},
@@ -663,6 +662,13 @@
markers.push(marker);
}
}
markers = markers.filter((marker) => {
if (!waypoints.find((w) => w.id == marker._element.id)) {
marker.remove();
return false;
}
return true;
});
}
function hideWaypoints() {