diff --git a/src/lib/components/DirectionsPanel.svelte b/src/lib/components/DirectionsPanel.svelte index 121f1d8..d64d121 100644 --- a/src/lib/components/DirectionsPanel.svelte +++ b/src/lib/components/DirectionsPanel.svelte @@ -37,6 +37,8 @@ destination: { lat: number; lon: number; label?: string } | null; /** Called whenever the destination should change. */ onDestinationChange: (d: { lat: number; lon: number; label?: string } | null) => void; + /** Called when the user closes the panel (X button). */ + onClose: () => void; } let { @@ -52,7 +54,8 @@ runRoute, savedPoints = [], destination = null, - onDestinationChange + onDestinationChange, + onClose }: Props = $props(); // --- destination --- @@ -231,7 +234,10 @@