feat(navigation): add maneuver icons based on type

This commit is contained in:
Cfp
2025-06-20 20:04:04 +02:00
parent 30fb523cf7
commit 9925c090cf
93 changed files with 439 additions and 33 deletions

View File

@ -0,0 +1,15 @@
<script>
import LanesDisplay from "$lib/services/navigation/LanesDisplay.svelte";
import { routing } from "$lib/services/navigation/routing.svelte";
import ManeuverIcon from "./ManeuverIcon.svelte";
</script>
<div class="fixed top-4 left-4 z-50 w-3/4 h-10 bg-background text-white">
<div class="flex gap-2">
<ManeuverIcon maneuver={routing.currentTripInfo.currentManeuver?.type ?? 0} />
{routing.currentTripInfo.currentManeuver?.instruction}
</div>
<LanesDisplay
lanes={routing.currentTripInfo.currentManeuver?.lanes}
/>
</div>