adds modes of transportation to routing

This commit is contained in:
Christian Beutel
2024-05-02 14:23:32 +02:00
parent b3ed2b1098
commit 2a771b195e
7 changed files with 183 additions and 83 deletions

View File

@@ -12,13 +12,13 @@
export let value: any;
export let items: SelectItem[] = [];
export let label: string = "";
export let disabled: boolean = false;
const dispatch = createEventDispatcher();
function onChange(target: any) {
dispatch("change", target?.value)
dispatch("change", target?.value);
}
</script>
<div>
@@ -30,6 +30,8 @@
<select
{name}
class="bg-input-background h-10 w-full px-4 border-r-8 border-transparent outline outline-1 outline-input-border rounded-md focus:outline-input-border-focus transition-colors"
class:text-gray-500={disabled}
{disabled}
bind:value
on:change={(e) => onChange(e.target)}
>

View File

@@ -139,7 +139,7 @@
});
</script>
<div id="map-container" class="flex flex-col">
<div id="map-container" class="flex flex-col h-full">
<div
id="map"
class="rounded-xl z-0 basis-full"