diff --git a/frontend/src/lib/components/Tabs.svelte b/frontend/src/lib/components/Tabs.svelte
index 1a1eb0c..453206f 100644
--- a/frontend/src/lib/components/Tabs.svelte
+++ b/frontend/src/lib/components/Tabs.svelte
@@ -2,6 +2,8 @@
import InfoTab from './tabs/InfoTab.svelte';
import DescTab from './tabs/DescTab.svelte';
import MapTab from './tabs/MapTab.svelte';
+ import { createEventDispatcher } from 'svelte';
+ const dispatch = createEventDispatcher();
let component = InfoTab;
const activeClicked = (evt) => {
@@ -24,6 +26,8 @@
component = MapTab;
break;
}
+
+ dispatch('map-click', {component});
};
@@ -64,6 +68,7 @@
.tab {
padding: 10px;
+ height: 100%;
background-color: white;
}
diff --git a/frontend/src/lib/components/tabs/MapTab.svelte b/frontend/src/lib/components/tabs/MapTab.svelte
index 5064397..13d018a 100644
--- a/frontend/src/lib/components/tabs/MapTab.svelte
+++ b/frontend/src/lib/components/tabs/MapTab.svelte
@@ -43,7 +43,7 @@
diff --git a/frontend/src/routes/routes/[slug]/+page.svelte b/frontend/src/routes/routes/[slug]/+page.svelte
index 930356c..d89b9ca 100644
--- a/frontend/src/routes/routes/[slug]/+page.svelte
+++ b/frontend/src/routes/routes/[slug]/+page.svelte
@@ -1,19 +1,29 @@